Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cocoapods
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
cocoapods
Commits
21b40063
Commit
21b40063
authored
Apr 13, 2014
by
Andrea Mazzini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added spec and updated CHANGELOG
parent
9367f42d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
+21
-0
CHANGELOG.md
CHANGELOG.md
+4
-0
installer_spec.rb
spec/unit/installer_spec.rb
+17
-0
No files found.
CHANGELOG.md
View file @
21b40063
...
...
@@ -33,6 +33,10 @@ To install or update CocoaPods see this [guide](http://docs.cocoapods.org/guides
[
Samuel Ford
](
https://github.com/samuelwford
)
[
#1042
](
https://github.com/CocoaPods/CocoaPods/issues/1042
)
*
`pod update`
prints the previous version of the updated pods
[
Andrea Mazzini
](
https://github.com/andreamazz
)
[
#2008
](
https://github.com/CocoaPods/CocoaPods/issues/2008
)
## 0.31.1
[
CocoaPods
](
https://github.com/CocoaPods/CocoaPods/compare/0.31.1...0.31.0
)
•
[
CocoaPods-Core
](
https://github.com/CocoaPods/Core/compare/0.31.1...0.31.0
)
...
...
spec/unit/installer_spec.rb
View file @
21b40063
...
...
@@ -204,6 +204,23 @@ module Pod
@installer
.
installed_specs
.
should
==
[
spec
]
end
it
"prints the previous version of a pod while updating the spec"
do
spec
=
Spec
.
new
spec
.
name
=
'RestKit'
spec
.
version
=
'2.0'
manifest
=
Lockfile
.
new
({})
manifest
.
stubs
(
:version
).
with
(
'RestKit'
).
returns
(
'1.0'
)
@installer
.
sandbox
.
stubs
(
:manifest
).
returns
(
manifest
)
# Lockfile.any_instance.stubs(:version).with('RestKit').returns('1.0')
@installer
.
stubs
(
:root_specs
).
returns
([
spec
])
sandbox_state
=
Installer
::
Analyzer
::
SpecsState
.
new
sandbox_state
.
changed
<<
'RestKit'
@installer
.
stubs
(
:sandbox_state
).
returns
(
sandbox_state
)
@installer
.
expects
(
:install_source_of_pod
).
with
(
'RestKit'
)
@installer
.
send
(
:install_pod_sources
)
UI
.
output
.
should
.
include
'was 1.0'
end
#--------------------------------------#
describe
"#clean"
do
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment