Rakefile in tabs_on_rails-2.0.0 vs Rakefile in tabs_on_rails-2.0.1
- old
+ new
@@ -1,28 +1,28 @@
-require "rubygems"
-require "rake/testtask"
-require "rake/gempackagetask"
+require 'rubygems'
+require 'rake/testtask'
+require 'rake/gempackagetask'
begin
- require "hanna/rdoctask"
+ require 'hanna/rdoctask'
rescue LoadError
- require "rake/rdoctask"
+ require 'rake/rdoctask'
end
-$:.unshift(File.dirname(__FILE__) + "/lib")
-require "tabs_on_rails"
+$:.unshift(File.dirname(__FILE__) + '/lib')
+require 'tabs_on_rails/version'
-PKG_NAME = ENV['PKG_NAME'] || TabsOnRails::GEM
+PKG_NAME = ENV['PKG_NAME'] || "tabs_on_rails"
PKG_VERSION = ENV['PKG_VERSION'] || TabsOnRails::VERSION
if ENV['SNAPSHOT'].to_i == 1
PKG_VERSION << "." << Time.now.utc.strftime("%Y%m%d%H%M%S")
end
# Run test by default.
-task :default => ["test"]
+task :default => :test
# This builds the actual gem. For details of what all these options
# mean, and other ones you can add, check the documentation here:
#
# http://rubygems.org/read/chapter/20
@@ -44,19 +44,19 @@
# as appropriate
s.extra_rdoc_files = Dir.glob("*.rdoc")
s.rdoc_options = %w(--main README.rdoc)
# Add any extra files to include in the gem (like your README)
- s.files = %w( Rakefile LICENSE init.rb ) + Dir.glob("*.{rdoc,gemspec}") + Dir.glob("{test,lib,rails}/**/*")
+ s.files = %w( Rakefile LICENSE init.rb .gemtest ) + Dir.glob("*.{rdoc,gemspec}") + Dir.glob("{lib,test,rails}/**/*")
s.require_paths = ["lib"]
# If you want to depend on other gems, add them here, along with any
# relevant versions
# s.add_dependency("some_other_gem", "~> 0.1.0")
# If your tests use any gems, include them here
s.add_development_dependency("bundler")
- s.add_development_dependency("rails", "~> 3.0.3")
+ s.add_development_dependency("rails", "3.0.3")
s.add_development_dependency("mocha", "~> 0.9.10")
end
# This task actually builds the gem. We also regenerate a static
# .gemspec file, which is useful if something (i.e. GitHub) will