Rakefile in common_interface-0.1.0 vs Rakefile in common_interface-0.1.1
- old
+ new
@@ -1,66 +1,11 @@
-require 'rake'
-require 'fileutils'
-current_dir = File.expand_path(File.dirname(__FILE__))
-Dir.chdir current_dir
+require 'rake_ext'
-
-#
-# Specs
-#
-require 'spec/rake/spectask'
-
-task :default => :spec
-
-Spec::Rake::SpecTask.new('spec') do |t|
- t.spec_files = FileList["spec/**/*_spec.rb"].select{|f| f !~ /\/_/}
- t.libs = ["#{current_dir}/lib"]
-end
-
-
-#
-# Gem
-#
-require 'rake/clean'
-require 'rake/gempackagetask'
-
-gem_options = {
+gem_spec(
:name => "common_interface",
- :version => "0.1.0",
- :summary => "Rapid Web Interface Creation for the Crystal framework",
- :dependencies => %w(abstract_interface)
-}
+ :version => "0.1.1",
+ :summary => "Rapid Web Interface Creation for the Crystal framework",
+ :dependencies => %w(abstract_interface),
-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}/**/*"))
-
- s.platform = Gem::Platform::RUBY
- s.has_rdoc = true
-end
-
-package_dir = "#{current_dir}/build"
-Rake::GemPackageTask.new(spec) do |p|
- p.need_tar = true if RUBY_PLATFORM !~ /mswin/
- p.need_zip = true
- p.package_dir = package_dir
-end
-
-task :push do
- # dir = Dir.chdir package_dir do
- gem_file = Dir.glob("#{package_dir}/#{gem_name}*.gem").first
- system "gem push #{gem_file}"
- # end
-end
-
-task :clean do
- system "rm -r #{package_dir}"
-end
-
-task :release => [:gem, :push, :clean]
+ :author => "Alexey Petrushin",
+ :homepage => "http://github.com/alexeypetrushin/common_interface"
+)
\ No newline at end of file