Skip to content

Commit

Permalink
Prepare gem release.
Browse files Browse the repository at this point in the history
  • Loading branch information
clemens committed Oct 31, 2009
1 parent d5bffc0 commit b176836
Show file tree
Hide file tree
Showing 7 changed files with 101 additions and 17 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
pkg/*
21 changes: 4 additions & 17 deletions Rakefile
Expand Up @@ -2,22 +2,9 @@ require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'

require 'tasks/distribution'
require 'tasks/documentation'
require 'tasks/testing'

desc 'Default: run unit tests.'
task :default => :test

desc 'Test the delocalize plugin.'
Rake::TestTask.new(:test) do |t|
t.libs << 'lib'
t.libs << 'test'
t.pattern = 'test/**/*_test.rb'
t.verbose = true
end

desc 'Generate documentation for the delocalize plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'Delocalize'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README')
rdoc.rdoc_files.include('lib/**/*.rb')
end
1 change: 1 addition & 0 deletions VERSION
@@ -0,0 +1 @@
0.1.3
59 changes: 59 additions & 0 deletions delocalize.gemspec
@@ -0,0 +1,59 @@
# Generated by jeweler
# DO NOT EDIT THIS FILE DIRECTLY
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
# -*- encoding: utf-8 -*-

Gem::Specification.new do |s|
s.name = %q{delocalize}
s.version = "0.1.3"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Clemens Kofler"]
s.date = %q{2009-10-31}
s.description = %q{Delocalize is a tool for parsing localized dates/times and numbers.}
s.email = %q{clemens@railway.at}
s.extra_rdoc_files = [
"README"
]
s.files = [
"MIT-LICENSE",
"README",
"Rakefile",
"VERSION",
"init.rb",
"lib/delocalize.rb",
"lib/delocalize/i18n_ext.rb",
"lib/delocalize/localized_date_time_parser.rb",
"lib/delocalize/rails_ext.rb",
"lib/delocalize/rails_ext/action_view.rb",
"lib/delocalize/rails_ext/active_record.rb",
"lib/delocalize/rails_ext/time_zone.rb",
"lib/delocalize/ruby_ext.rb",
"lib/delocalize/ruby_ext/date.rb",
"lib/delocalize/ruby_ext/datetime.rb",
"lib/delocalize/ruby_ext/time.rb",
"tasks/distribution.rb",
"tasks/documentation.rb",
"tasks/testing.rb"
]
s.homepage = %q{http://github.com/clemens/delocalize}
s.rdoc_options = ["--charset=UTF-8"]
s.require_paths = ["lib"]
s.rubygems_version = %q{1.3.5}
s.summary = %q{Localized date/time and number parsing}
s.test_files = [
"test/delocalize_test.rb",
"test/test_helper.rb"
]

if s.respond_to? :specification_version then
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
s.specification_version = 3

if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
else
end
else
end
end

21 changes: 21 additions & 0 deletions tasks/distribution.rb
@@ -0,0 +1,21 @@
begin
require 'jeweler'
Jeweler::Tasks.new do |s|
s.name = "delocalize"
s.summary = "Localized date/time and number parsing"
s.email = "clemens@railway.at"
s.homepage = "http://github.com/clemens/delocalize"
s.description = "Delocalize is a tool for parsing localized dates/times and numbers."
s.authors = ["Clemens Kofler"]
s.files = FileList["init.rb",
"lib/**/*.rb",
"MIT-LICENSE",
"Rakefile",
"README",
"tasks/**/*.rb",
"VERSION"]
s.test_files = FileList["test/**/*.rb"]
end
rescue LoadError
puts "Jeweler, or one of its dependencies, is not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end
8 changes: 8 additions & 0 deletions tasks/documentation.rb
@@ -0,0 +1,8 @@
desc 'Generate documentation for the delocalize plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'Delocalize'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README')
rdoc.rdoc_files.include('lib/**/*.rb')
end
7 changes: 7 additions & 0 deletions tasks/testing.rb
@@ -0,0 +1,7 @@
desc 'Test the delocalize plugin.'
Rake::TestTask.new(:test) do |t|
t.libs << 'lib'
t.libs << 'test'
t.pattern = 'test/**/*_test.rb'
t.verbose = true
end

0 comments on commit b176836

Please sign in to comment.