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
45b51e00
Commit
45b51e00
authored
Apr 02, 2015
by
Marius Rackwitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Spec] Fix stubbed podspec's license by default
parent
42007244
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
validator_spec.rb
spec/unit/validator_spec.rb
+1
-2
No files found.
spec/unit/validator_spec.rb
View file @
45b51e00
...
@@ -31,6 +31,7 @@ module Pod
...
@@ -31,6 +31,7 @@ module Pod
#
#
def
stub_podspec
(
pattern
=
nil
,
replacement
=
nil
)
def
stub_podspec
(
pattern
=
nil
,
replacement
=
nil
)
spec
=
(
fixture
(
'spec-repos'
)
+
'master/Specs/JSONKit/1.4/JSONKit.podspec.json'
).
read
spec
=
(
fixture
(
'spec-repos'
)
+
'master/Specs/JSONKit/1.4/JSONKit.podspec.json'
).
read
spec
.
gsub!
(
/.*license.*$/
,
'"license": "Public Domain",'
)
spec
.
gsub!
(
%r{https://github
\.
com/johnezang/JSONKit
\.
git}
,
fixture
(
'integration/JSONKit'
).
to_s
)
spec
.
gsub!
(
%r{https://github
\.
com/johnezang/JSONKit
\.
git}
,
fixture
(
'integration/JSONKit'
).
to_s
)
spec
.
gsub!
(
pattern
,
replacement
)
if
pattern
&&
replacement
spec
.
gsub!
(
pattern
,
replacement
)
if
pattern
&&
replacement
spec
spec
...
@@ -439,7 +440,6 @@ module Pod
...
@@ -439,7 +440,6 @@ module Pod
it
'validates a podspec with dependencies'
do
it
'validates a podspec with dependencies'
do
podspec
=
stub_podspec
(
/.*name.*/
,
'"name": "ZKit",'
)
podspec
=
stub_podspec
(
/.*name.*/
,
'"name": "ZKit",'
)
podspec
.
gsub!
(
/.*requires_arc.*/
,
'"dependencies": { "SBJson": [ "~> 3.2" ] }, "requires_arc": false'
)
podspec
.
gsub!
(
/.*requires_arc.*/
,
'"dependencies": { "SBJson": [ "~> 3.2" ] }, "requires_arc": false'
)
podspec
.
gsub!
(
/.*license.*$/
,
'"license": "Public Domain",'
)
file
=
write_podspec
(
podspec
,
'ZKit.podspec.json'
)
file
=
write_podspec
(
podspec
,
'ZKit.podspec.json'
)
spec
=
Specification
.
from_file
(
file
)
spec
=
Specification
.
from_file
(
file
)
...
@@ -504,7 +504,6 @@ module Pod
...
@@ -504,7 +504,6 @@ module Pod
describe
'swift validation'
do
describe
'swift validation'
do
def
test_swiftpod
def
test_swiftpod
podspec
=
stub_podspec
(
/.*source_files.*/
,
'"source_files": "*.swift",'
)
podspec
=
stub_podspec
(
/.*source_files.*/
,
'"source_files": "*.swift",'
)
podspec
.
gsub!
(
/.*license.*$/
,
'"license": "Public Domain",'
)
file
=
write_podspec
(
podspec
)
file
=
write_podspec
(
podspec
)
Podfile
::
TargetDefinition
.
any_instance
.
stubs
(
:uses_frameworks?
).
returns
(
true
)
Podfile
::
TargetDefinition
.
any_instance
.
stubs
(
:uses_frameworks?
).
returns
(
true
)
...
...
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