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
8de8b8c7
Commit
8de8b8c7
authored
Dec 20, 2013
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Specification] Adopt the JSON format
parent
458aed5e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
17 deletions
+23
-17
CHANGELOG.md
CHANGELOG.md
+14
-7
inter_process_communication.rb
lib/cocoapods/command/inter_process_communication.rb
+3
-3
push.rb
lib/cocoapods/command/push.rb
+1
-1
inter_process_communication_spec.rb
spec/functional/command/inter_process_communication_spec.rb
+5
-6
No files found.
CHANGELOG.md
View file @
8de8b8c7
...
...
@@ -4,6 +4,20 @@ To install or update CocoaPods see this [guide](http://docs.cocoapods.org/guides
## Master
###### Breaking
*
The command
`podfile_info`
is now a plugin offered by CocoaPods.
As a result, the command has been removed from CocoaPods.
[
Joshua Kalpin
](
https://github.com/Kapin
)
[
#1589
](
https://github.com/CocoaPods/CocoaPods/issues/1589
)
*
JSON has been adopted as the format to store specifications. As a result
the
`pod ipc spec`
command returns a JSON representation and the YAML
specifications are not supported anymore. JSON specifications adopt the
`.podspec.json`
extension.
[
Fabio Pelosin
](
https://github.com/irrationalfab
)
[
#1568
](
https://github.com/CocoaPods/CocoaPods/pull/1568
)
###### Enhancements
*
Introduced
`pod try`
the easiest way to test the example project of a pod.
...
...
@@ -50,13 +64,6 @@ To install or update CocoaPods see this [guide](http://docs.cocoapods.org/guides
[
Florian Hanke
](
https://github.com/floere
)
[
#1643
][
https://github.com/CocoaPods/CocoaPods/pull/1682
]
###### Refactor
*
The command
`podfile_info`
is now a plugin offered by CocoaPods.
As a result, the command has been removed from CocoaPods.
[
Joshua Kalpin
](
https://github.com/Kapin
)
[
#1589
](
https://github.com/CocoaPods/CocoaPods/issues/1589
)
###### Bug Fixes
*
Fixed a bug which resulted in
`pod lib lint`
not being able to find the
...
...
lib/cocoapods/command/inter_process_communication.rb
View file @
8de8b8c7
...
...
@@ -13,8 +13,8 @@ module Pod
class
Spec
<
IPC
self
.
summary
=
'Converts a podspec to
YAML
.'
self
.
description
=
'Converts a podspec to
YAML
and prints it to STDOUT.'
self
.
summary
=
'Converts a podspec to
JSON
.'
self
.
description
=
'Converts a podspec to
JSON
and prints it to STDOUT.'
self
.
arguments
=
'PATH'
def
initialize
(
argv
)
...
...
@@ -29,7 +29,7 @@ module Pod
def
run
spec
=
Specification
.
from_file
(
@path
)
output_pipe
.
puts
spec
.
to_
yaml
output_pipe
.
puts
spec
.
to_
json
end
end
...
...
lib/cocoapods/command/push.rb
View file @
8de8b8c7
...
...
@@ -67,7 +67,7 @@ module Pod
base_url
=
'https://trunk.cocoapods.org/api/v1'
podspec_files
.
each
do
|
spec_file
|
spec
=
Pod
::
Specification
.
from_file
(
spec_file
)
REST
.
post
(
"
#{
base_url
}
/pods"
,
spec
.
to_
yaml
,
'Content-Type'
=>
'text/yaml'
,
'Authorization'
=>
"Token
#{
tokens
.
sample
}
"
)
REST
.
post
(
"
#{
base_url
}
/pods"
,
spec
.
to_
json
,
'Content-Type'
=>
'text/yaml'
,
'Authorization'
=>
"Token
#{
tokens
.
sample
}
"
)
end
rescue
Exception
# Nothing
...
...
spec/functional/command/inter_process_communication_spec.rb
View file @
8de8b8c7
...
...
@@ -13,12 +13,11 @@ module Pod
describe
Command
::
IPC
::
Spec
do
it
"converts a podspec to
yaml
and prints it to STDOUT"
do
it
"converts a podspec to
JSON
and prints it to STDOUT"
do
out
=
run_command
(
'ipc'
,
'spec'
,
fixture
(
'banana-lib/BananaLib.podspec'
))
out
.
should
.
include
(
'---'
)
out
.
should
.
match
/name: BananaLib/
out
.
should
.
match
/version: .1\.0./
out
.
should
.
match
/description: Full of chunky bananas./
out
.
should
.
match
/"name": "BananaLib"/
out
.
should
.
match
/"version": "1.0"/
out
.
should
.
match
/"description": "Full of chunky bananas."/
end
end
...
...
@@ -41,7 +40,7 @@ module Pod
describe
Command
::
IPC
::
List
do
it
"
converts a podspec to yaml
and prints it to STDOUT"
do
it
"
prints a list of podspecs in the yaml format
and prints it to STDOUT"
do
spec
=
fixture_spec
(
'banana-lib/BananaLib.podspec'
)
set
=
Specification
.
new
(
'BananaLib'
)
set
.
stubs
(
:specification
).
returns
(
spec
)
...
...
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