lib/ggem/cli/commands.rb in ggem-1.8.1 vs lib/ggem/cli/commands.rb in ggem-1.8.3

- old
+ new

@@ -223,11 +223,12 @@ @build_command = BuildCommand.new(*args) end def run(argv, *args) super - @build_command.run(argv) + @build_command.run([]) + notify("#{@spec.name} #{@spec.version} installed to system gems") do @spec.run_install_cmd end end @@ -252,11 +253,11 @@ @build_command = BuildCommand.new(*args) end def run(argv, *args) super - @build_command.run(argv) + @build_command.run([]) @stdout.puts "Pushing #{@spec.gem_file_name} to #{@spec.push_host}..." notify("#{@spec.gem_file_name} received.") do @spec.run_push_cmd end @@ -357,11 +358,11 @@ @push_command = PushCommand.new(*args) end def run(argv, *args) super - @tag_command.run(argv) - @push_command.run(argv) + @tag_command.run(self.clirb.opts['force-tag'] ? ['--force-tag'] : []) + @push_command.run([]) end def summary "Tag #{@spec.version_tag} and push built #{@spec.gem_file_name} to " \ "#{@spec.push_host}"