Rakefile in locale_rails-0.1.0 vs Rakefile in locale_rails-2.0.0
- old
+ new
@@ -10,11 +10,11 @@
#desc "Default Task"
#task :default => [ :test ]
PKG_NAME = "locale_rails"
-PKG_VERSION = Locale::LOCALE_RAILS_VERSION
+PKG_VERSION = LocaleRails::VERSION
# Run the unit tests
task :test do
Dir.glob("test/test_*.rb").each do |v|
ruby "-Ilib #{v}"
@@ -33,23 +33,23 @@
rdoc.rdoc_files.include('README', 'ChangeLog')
rdoc.rdoc_files.include('lib/**/*.rb')
rdoc.template = allison if allison.size > 0
}
-desc "Create gem"
+desc "Create gem and tar.gz"
spec = Gem::Specification.new do |s|
s.name = PKG_NAME
s.version = PKG_VERSION
s.summary = 'Ruby-Locale for Ruby on Rails is the pure ruby library which provides basic functions for localization based on Ruby-Locale.'
s.author = 'Masao Mutoh'
- s.email = 'mutoh@highway.ne.jp'
+ s.email = 'mutomasa at gmail.com'
s.homepage = 'http://locale.rubyforge.org/'
s.rubyforge_project = "locale"
- s.files = FileList['**/*'].to_a.select{|v| v !~ /pkg|CVS/}
+ s.files = FileList['**/*'].to_a.select{|v| v !~ /pkg|CVS|git/}
s.require_path = 'lib'
s.bindir = 'bin'
- s.add_dependency('locale', '>= 0.9.0')
+ s.add_dependency('locale', '>= 2.0.0')
s.has_rdoc = true
s.description = <<-EOF
Ruby-Locale for Ruby on Rails is the pure ruby library which provides basic functions for localization.
EOF
end
@@ -63,10 +63,11 @@
desc "Publish the release files to RubyForge."
task :release => [ :package ] do
require 'rubyforge'
rubyforge = RubyForge.new
+ rubyforge.configure
rubyforge.login
- rubyforge.add_release("locale", "locale",
- "Ruby-Locale for Ruby on Rails #{PKG_VERSION}",
+ rubyforge.add_release("locale", "locale_rails",
+ PKG_VERSION,
"pkg/#{PKG_NAME}-#{PKG_VERSION}.gem")
end