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
8f2f979c
Commit
8f2f979c
authored
Apr 12, 2018
by
Samuel Giddins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix RuboCop violations
parent
04a17d3e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
6 deletions
+4
-6
abstract_external_source.rb
lib/cocoapods/external_sources/abstract_external_source.rb
+1
-1
sandbox.rb
lib/cocoapods/sandbox.rb
+3
-3
installer_spec.rb
spec/unit/installer_spec.rb
+0
-2
No files found.
lib/cocoapods/external_sources/abstract_external_source.rb
View file @
8f2f979c
...
...
@@ -165,7 +165,7 @@ module Pod
when
String
path
=
"
#{
name
}
.podspec"
path
<<
'.json'
if
json
Specification
.
from_string
(
spec
,
path
).
tap
{
|
s
|
s
.
defined_in_file
=
nil
}
Specification
.
from_string
(
spec
,
path
).
tap
{
|
s
|
s
.
defined_in_file
=
nil
}
when
Specification
spec
.
dup
else
...
...
lib/cocoapods/sandbox.rb
View file @
8f2f979c
...
...
@@ -211,8 +211,8 @@ module Pod
#
def
specification
(
name
)
@stored_podspecs
[
name
]
||=
if
file
=
specification_path
(
name
)
original_path
=
development_pods
[
name
]
Specification
.
from_file
(
original_path
||
file
)
original_path
=
development_pods
[
name
]
Specification
.
from_file
(
original_path
||
file
)
end
end
...
...
@@ -264,7 +264,7 @@ module Pod
spec
=
Specification
.
from_file
(
podspec
)
FileUtils
.
copy
(
podspec
,
output_path
)
when
Specification
raise
ArgumentError
,
"can only store Specification objects as json"
unless
json
raise
ArgumentError
,
'can only store Specification objects as json'
unless
json
output_path
.
open
(
'w'
)
{
|
f
|
f
.
puts
(
podspec
.
to_pretty_json
)
}
spec
=
podspec
.
dup
else
...
...
spec/unit/installer_spec.rb
View file @
8f2f979c
...
...
@@ -776,7 +776,6 @@ module Pod
@installer
=
Installer
.
new
(
config
.
sandbox
,
podfile
,
lockfile
)
@installer
.
expects
(
:integrate_user_project
)
@installer
.
install!
pod_targets
=
@installer
.
aggregate_targets
.
map
(
&
:pod_targets
)
::
SpecHelper
.
reset_config_instance
...
...
@@ -804,7 +803,6 @@ module Pod
@installer
=
Installer
.
new
(
config
.
sandbox
,
podfile
,
lockfile
)
@installer
.
expects
(
:integrate_user_project
)
@installer
.
install!
pod_targets
=
@installer
.
aggregate_targets
.
map
(
&
:pod_targets
)
::
SpecHelper
.
reset_config_instance
...
...
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