Rakefile in abstract_interface-0.1.0 vs Rakefile in abstract_interface-0.1.1

- old
+ new

@@ -23,19 +23,21 @@ require 'rake/clean' require 'rake/gempackagetask' gem_options = { :name => "abstract_interface", - :version => "0.1.0", + :version => "0.1.1", :summary => "Ruby language extensions", :dependencies => %w(facets) } +gem_name = gem_options[:name] spec = Gem::Specification.new do |s| gem_options.delete(:dependencies).each{|d| s.add_dependency d} gem_options.each{|k, v| s.send "#{k}=", v} + s.name = gem_name s.author = "Alexey Petrushin" s.homepage = "http://github.com/alexeypetrushin/#{gem_options[:name]}" s.require_path = "lib" s.files = (%w{Rakefile readme.md} + Dir.glob("{lib,spec}/**/*")) @@ -50,10 +52,10 @@ p.package_dir = package_dir end task :push do # dir = Dir.chdir package_dir do - gem_file = Dir.glob("#{package_dir}/#{gem_options[:name]}*.gem").first + gem_file = Dir.glob("#{package_dir}/#{gem_name}*.gem").first system "gem push #{gem_file}" # end end task :clean do \ No newline at end of file