Commit 8f2f979c authored by Samuel Giddins's avatar Samuel Giddins

Fix RuboCop violations

parent 04a17d3e
...@@ -165,7 +165,7 @@ module Pod ...@@ -165,7 +165,7 @@ module Pod
when String when String
path = "#{name}.podspec" path = "#{name}.podspec"
path << '.json' if json 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 when Specification
spec.dup spec.dup
else else
......
...@@ -264,7 +264,7 @@ module Pod ...@@ -264,7 +264,7 @@ module Pod
spec = Specification.from_file(podspec) spec = Specification.from_file(podspec)
FileUtils.copy(podspec, output_path) FileUtils.copy(podspec, output_path)
when Specification 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) } output_path.open('w') { |f| f.puts(podspec.to_pretty_json) }
spec = podspec.dup spec = podspec.dup
else else
......
...@@ -776,7 +776,6 @@ module Pod ...@@ -776,7 +776,6 @@ module Pod
@installer = Installer.new(config.sandbox, podfile, lockfile) @installer = Installer.new(config.sandbox, podfile, lockfile)
@installer.expects(:integrate_user_project) @installer.expects(:integrate_user_project)
@installer.install! @installer.install!
pod_targets = @installer.aggregate_targets.map(&:pod_targets)
::SpecHelper.reset_config_instance ::SpecHelper.reset_config_instance
...@@ -804,7 +803,6 @@ module Pod ...@@ -804,7 +803,6 @@ module Pod
@installer = Installer.new(config.sandbox, podfile, lockfile) @installer = Installer.new(config.sandbox, podfile, lockfile)
@installer.expects(:integrate_user_project) @installer.expects(:integrate_user_project)
@installer.install! @installer.install!
pod_targets = @installer.aggregate_targets.map(&:pod_targets)
::SpecHelper.reset_config_instance ::SpecHelper.reset_config_instance
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment