Permalink
Browse files

Prepare for release on RubyForge. Bump to 1.0.3

  • Loading branch information...
1 parent 05a9a02 commit f6ca70ebd9335285f0719bf2b9cf761af83b0c77 @thbar committed Mar 29, 2009
Showing with 102 additions and 26 deletions.
  1. +69 −3 Rakefile
  2. +4 −0 VERSION.yml
  3. +29 −23 diacritics_fu.gemspec
View
@@ -2,13 +2,79 @@ require 'rubygems'
require 'spec'
require 'spec/rake/spectask'
-task :default => :spec
+gem_name = "diacritics_fu"
+
+begin
+ require 'jeweler'
+ Jeweler::Tasks.new do |s|
+ s.name = gem_name
+ s.summary = %Q{A small library to remove accents from a string. Relies on ActiveSupport.}
+ s.email = "thibaut.barrere@gmail.com"
+ s.homepage = "http://github.com/thbar/diacritics_fu"
+ s.description = "TODO"
+ s.authors = ["Thibaut Barrère"]
+ s.rubyforge_project = 'diacritics_fu'
+ end
+rescue LoadError
+ puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
+end
+
+begin
+ require 'rake/contrib/sshpublisher'
+ namespace :rubyforge do
+
+ desc "Release gem and RDoc documentation to RubyForge"
+ task :release => ["rubyforge:release:gem", "rubyforge:release:docs"]
+
+ namespace :release do
+ desc "Publish RDoc to RubyForge."
+ task :docs => [:rdoc] do
+ config = YAML.load(
+ File.read(File.expand_path('~/.rubyforge/user-config.yml'))
+ )
+
+ host = "#{config['username']}@rubyforge.org"
+ remote_dir = "/var/www/gforge-projects/#{gem_name}/"
+ local_dir = 'rdoc'
+
+ Rake::SshDirPublisher.new(host, remote_dir, local_dir).upload
+ end
+ end
+ end
+rescue LoadError
+ puts "Rake SshDirPublisher is unavailable or your rubyforge environment is not configured."
+end
+
+require 'rake/rdoctask'
+Rake::RDocTask.new do |rdoc|
+ rdoc.rdoc_dir = 'rdoc'
+ rdoc.title = gem_name
+ rdoc.options << '--line-numbers' << '--inline-source'
+ rdoc.rdoc_files.include('README*')
+ rdoc.rdoc_files.include('lib/**/*.rb')
+end
-desc "run specs for the gem"
+require 'spec/rake/spectask'
Spec::Rake::SpecTask.new(:spec) do |t|
- t.spec_files = FileList["spec/**/*_spec.rb"]
+ t.libs << 'lib' << 'spec'
+ t.spec_files = FileList['spec/**/*_spec.rb']
+end
+
+Spec::Rake::SpecTask.new(:rcov) do |t|
+ t.libs << 'lib' << 'spec'
+ t.spec_files = FileList['spec/**/*_spec.rb']
+ t.rcov = true
+end
+
+begin
+ require 'cucumber/rake/task'
+ Cucumber::Rake::Task.new(:features)
+rescue LoadError
+ puts "Cucumber is not available. In order to run features, you must: sudo gem install cucumber"
end
+task :default => :spec
+
desc "run specs for the gem against all available activesupport versions"
task :spec_multi do
# hmm - there's probably a better way to write this
View
@@ -0,0 +1,4 @@
+---
+:major: 1
+:minor: 0
+:patch: 3
View
@@ -1,25 +1,31 @@
+# -*- encoding: utf-8 -*-
+
Gem::Specification.new do |s|
- s.name = "diacritics_fu"
- s.version = "1.0.2"
- s.date = "2008-12-10"
- s.summary = "Tiny Ruby library to remove accents and other diacritics from a string (relies on ActiveSupport)."
- s.email = "thibaut.barrere@gmail.com"
- s.homepage = "http://github.com/thbar/diacritics_fu"
- s.description = "A small library to remove accents from a string."
+ s.name = %q{diacritics_fu}
+ s.version = "1.0.3"
+
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
+ s.authors = ["Thibaut Barr\303\250re"]
+ s.date = %q{2009-03-29}
+ s.description = %q{TODO}
+ s.email = %q{thibaut.barrere@gmail.com}
+ s.extra_rdoc_files = ["README"]
+ s.files = ["History.txt", "Manifest.txt", "VERSION.yml", "lib/diacritics_fu", "lib/diacritics_fu/new_escaper.rb", "lib/diacritics_fu/new_escaper_kcode_utf8.rb", "lib/diacritics_fu/old_escaper.rb", "lib/diacritics_fu.rb", "spec/diacritics_fu_spec.rb", "spec/spec_helper.rb", "README"]
s.has_rdoc = true
- s.authors = ["Thibaut Barrère"]
- s.files = ["History.txt",
- "README",
- "Rakefile",
- "Manifest.txt",
- "diacritics_fu.gemspec",
- "lib/diacritics_fu.rb",
- "lib/diacritics_fu/new_escaper.rb",
- "lib/diacritics_fu/new_escaper_kcode_utf8.rb",
- "lib/diacritics_fu/old_escaper.rb"]
- s.test_files = ["spec/diacritics_fu_spec.rb","spec/spec_helper.rb"]
-
- s.rdoc_options = ["--main", "README"]
- s.extra_rdoc_files = ["History.txt", "Manifest.txt", "README"]
- s.add_dependency("activesupport", ["> 0.0.0"])
-end
+ s.homepage = %q{http://github.com/thbar/diacritics_fu}
+ s.rdoc_options = ["--inline-source", "--charset=UTF-8"]
+ s.require_paths = ["lib"]
+ s.rubyforge_project = %q{diacritics_fu}
+ s.rubygems_version = %q{1.3.1}
+ s.summary = %q{A small library to remove accents from a string. Relies on ActiveSupport.}
+
+ if s.respond_to? :specification_version then
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
+ s.specification_version = 2
+
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
+ else
+ end
+ else
+ end
+end

0 comments on commit f6ca70e

Please sign in to comment.