lib/rabbit/task/slide.rb in rabbit-2.1.9 vs lib/rabbit/task/slide.rb in rabbit-2.2.0
- old
+ new
@@ -1,6 +1,6 @@
-# Copyright (C) 2012-2013 Kouhei Sutou <kou@cozmixng.org>
+# Copyright (C) 2012-2016 Kouhei Sutou <kou@cozmixng.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
@@ -20,10 +20,11 @@
require "rabbit/logger"
require "rabbit/command/rabbit"
require "rabbit/slide-configuration"
require "rabbit/readme-parser"
require "rabbit/gem-builder"
+require "rabbit/gem-pusher"
module Rabbit
module Task
class Slide
include Rake::DSL
@@ -173,10 +174,11 @@
end
def define_publish_rubygems_task
desc(_("Publish the slide to %s" % "RubyGems.org"))
task :rubygems => :gem do
- ruby("-S", "gem", "push", gem_path)
+ pusher = GemPusher.new(gem_path, @slide.author.rubygems_user)
+ pusher.push
end
end
def define_publish_slideshare_task
slideshare_user = @slide.author.slideshare_user