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
697f8bd1
Commit
697f8bd1
authored
Oct 21, 2012
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP
parent
6ca21338
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
4 additions
and
10 deletions
+4
-10
.kick
.kick
+0
-3
linter.rb
lib/cocoapods/command/linter.rb
+2
-3
installer.rb
lib/cocoapods/installer.rb
+0
-0
integration_spec.rb
spec/integration_spec.rb
+2
-4
installer_spec.rb
spec/unit/installer_spec.rb
+0
-0
No files found.
.kick
View file @
697f8bd1
...
...
@@ -6,9 +6,6 @@ process do |files|
specs = files.take_and_map do |file|
if file =~ %r{lib/cocoapods/(.+?)\.rb$}
s = Dir.glob("spec/**/#{File.basename(file, '.rb')}_spec.rb")
if file =~ %r{lib/cocoapods/installer.*\.rb$}
s.concat(['spec/unit/installer_spec.rb', 'spec/unit/installer/target_installer_spec.rb'])
end
s.uniq unless s.empty?
end
end
...
...
lib/cocoapods/command/linter.rb
View file @
697f8bd1
...
...
@@ -113,10 +113,9 @@ module Pod
config
.
verbose
config
.
skip_repo_update
=
true
sandbox
=
Sandbox
.
new
(
config
.
project_pods_root
)
resolver
=
Resolver
.
new
(
podfile
,
nil
,
sandbox
)
installer
=
Installer
.
new
(
resolver
)
installer
=
Installer
.
new
(
sandbox
,
podfile
)
installer
.
install!
@pod
=
installer
.
pods
.
find
{
|
pod
|
pod
.
top_specification
==
spec
}
@pod
=
installer
.
local_
pods
.
find
{
|
pod
|
pod
.
top_specification
==
spec
}
config
.
silent
end
...
...
lib/cocoapods/installer.rb
View file @
697f8bd1
This diff is collapsed.
Click to expand it.
spec/integration_spec.rb
View file @
697f8bd1
...
...
@@ -70,8 +70,7 @@ else
end
# Note that we are *not* using the stubbed SpecHelper::Installer subclass.
resolver
=
Pod
::
Resolver
.
new
(
podfile
,
nil
,
Pod
::
Sandbox
.
new
(
config
.
project_pods_root
))
installer
=
Pod
::
Installer
.
new
(
resolver
)
installer
=
Pod
::
Installer
.
new
(
Pod
::
Sandbox
.
new
(
config
.
project_pods_root
),
podfile
)
installer
.
install!
result
=
installer
.
lockfile
.
to_hash
result
[
'PODS'
].
should
==
[
'SSToolkit (0.1.3)'
]
...
...
@@ -88,8 +87,7 @@ else
pod
'Reachability'
,
:podspec
=>
url
end
resolver
=
Pod
::
Resolver
.
new
(
podfile
,
nil
,
Pod
::
Sandbox
.
new
(
config
.
project_pods_root
))
installer
=
SpecHelper
::
Installer
.
new
(
resolver
)
installer
=
SpecHelper
::
Installer
.
new
(
Pod
::
Sandbox
.
new
(
config
.
project_pods_root
),
podfile
)
installer
.
install!
result
=
installer
.
lockfile
.
to_hash
result
[
'PODS'
].
should
==
[
'Reachability (1.2.3)'
]
...
...
spec/unit/installer_spec.rb
View file @
697f8bd1
This diff is collapsed.
Click to expand it.
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