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

Fix RuboCop violations

parent 04a17d3e
......@@ -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
......
......@@ -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
......
......@@ -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
......
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