lib/rabbit/task/theme.rb in rabbit-2.0.6 vs lib/rabbit/task/theme.rb in rabbit-2.0.7
- old
+ new
@@ -1,6 +1,6 @@
-# Copyright (C) 2012 Kouhei Sutou <kou@cozmixng.org>
+# Copyright (C) 2012-2013 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.
@@ -19,10 +19,11 @@
require "rabbit/gettext"
require "rabbit/logger"
require "rabbit/command/rabbit"
require "rabbit/theme-configuration"
require "rabbit/readme-parser"
+require "rabbit/gem-builder"
module Rabbit
module Task
class Theme
include Rake::DSL
@@ -102,10 +103,10 @@
def define_gem_create_task
desc(_("Create gem: %{gem_path}") % {:gem_path => gem_path})
task :gem => "gem:validate" do
mkdir_p(@package_dir)
- Gem::Builder.new(spec).build
+ GemBuilder.build(spec)
mv(File.basename(spec.cache_file), gem_path)
end
end
def define_gem_validate_task