diff options
Diffstat (limited to 'chef-config/lib/chef-config/package_task.rb')
-rw-r--r-- | chef-config/lib/chef-config/package_task.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chef-config/lib/chef-config/package_task.rb b/chef-config/lib/chef-config/package_task.rb index 6c7a4d6f55..4f75af9c6c 100644 --- a/chef-config/lib/chef-config/package_task.rb +++ b/chef-config/lib/chef-config/package_task.rb @@ -189,7 +189,7 @@ end IO.write(version_rb_path, contents) end - Dir[File.expand_path("*gemspec", root_path)].reverse.each do |gemspec_path| + Dir[File.expand_path("*gemspec", root_path)].reverse_each do |gemspec_path| gemspec = eval(IO.read(gemspec_path)) Gem::PackageTask.new(gemspec) do |task| task.package_dir = full_package_dir @@ -212,7 +212,7 @@ end task :ship => [:clobber_package, :gem] do sh("git tag #{version}") sh("git push #{git_remote} --tags") - Dir[File.expand_path("*.gem", full_package_dir)].reverse.each do |built_gem| + Dir[File.expand_path("*.gem", full_package_dir)].reverse_each do |built_gem| sh("gem push #{built_gem}") end end |