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
ddc5ac50
Commit
ddc5ac50
authored
Nov 09, 2011
by
Eloy Duran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make specs green.
parent
55d5c919
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
dependency.rb
lib/cocoapods/dependency.rb
+4
-4
specification_spec.rb
spec/unit/specification_spec.rb
+0
-1
No files found.
lib/cocoapods/dependency.rb
View file @
ddc5ac50
...
...
@@ -20,7 +20,7 @@ module Pod
if
name_and_version_requirements
.
last
.
is_a?
(
Hash
)
@external_spec_source
=
name_and_version_requirements
.
pop
end
super
(
name_and_version_requirements
.
first
)
super
(
*
name_and_version_requirements
)
else
raise
Informative
,
"A dependency needs either a name and version requirements, "
\
...
...
@@ -32,8 +32,7 @@ module Pod
def
==
(
other
)
super
&&
@only_part_of_other_pod
==
other
.
only_part_of_other_pod
&&
@external_spec_source
==
other
.
external_spec_source
&&
@specification
==
other
.
specification
(
@specification
?
@specification
==
other
.
specification
:
@external_spec_source
==
other
.
external_spec_source
)
end
def
external_podspec?
...
...
@@ -46,7 +45,7 @@ module Pod
def
specification
@specification
||=
begin
# This is an external podspec
if
external_podspec?
pod_root
=
Config
.
instance
.
project_pods_root
+
@name
spec
=
nil
if
@external_spec_source
[
:podspec
]
...
...
@@ -64,6 +63,7 @@ module Pod
Specification
.
from_file
(
spec
)
end
end
end
# Taken from a newer version of RubyGems
unless
public_method_defined?
(
:merge
)
...
...
spec/unit/specification_spec.rb
View file @
ddc5ac50
...
...
@@ -101,7 +101,6 @@ describe "A Pod::Specification loaded from a podspec" do
@spec
.
compiler_flags
=
"-Wunused-value"
@spec
.
compiler_flags
.
should
==
"-Wunused-value -fobj-arc"
end
end
describe
"A Pod::Specification that's part of another pod's source"
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