Permalink
Browse files

Version bump to 0.2.0 (<3 Jeweler)

  • Loading branch information...
1 parent a6bafeb commit c63cd3f8542da0854a2c910fbff1ab30d27886b8 @ambethia committed Sep 12, 2009
Showing with 84 additions and 56 deletions.
  1. +2 −3 .gitignore
  2. +2 −8 README.rdoc
  3. +46 −31 Rakefile
  4. +1 −0 VERSION
  5. +33 −14 recaptcha.gemspec
View
@@ -1,3 +1,2 @@
-html
-doc
-pkg
+rdoc
+pkg
View
@@ -1,17 +1,11 @@
= ReCAPTCHA
Author:: Jason L Perry (http://ambethia.com)
-
Copyright:: Copyright (c) 2007 Jason L Perry
-
License:: MIT
-
-RDOC:: http://ambethia.com/recaptcha/
-
+Info:: http://ambethia.com/recaptcha/
Git:: http://github.com/ambethia/recaptcha/tree/master
-
-Bugs:: http://ambethia.lighthouseapp.com/projects/11072-recaptcha/overview
-
+Bugs:: http://github.com/ambethia/recaptcha/issues
This plugin adds helpers for the ReCAPTCHA API (http://recaptcha.net/). In your views you can use
the +recaptcha_tags+ method to embed the needed javascript, and you can validate in your controllers
View
@@ -1,40 +1,55 @@
require 'rake'
-require 'rake/testtask'
-require 'rake/rdoctask'
-require 'echoe'
-
-Echoe.new('recaptcha', '0.1.0') do |p|
- p.description = "This plugin adds helpers for the ReCAPTCHA API "
- p.url = "http://github.com/ambethia/recaptcha/tree/master"
- p.author = "Jason L. Perry"
- p.email = "jasper@ambethia.com"
- p.ignore_pattern = ["pkg/**/*"]
- p.development_dependencies = []
+
+begin
+ require 'jeweler'
+ Jeweler::Tasks.new do |gem|
+ gem.name = "recaptcha"
+ gem.description = "This plugin adds helpers for the ReCAPTCHA API "
+ gem.homepage = "http://github.com/ambethia/recaptcha"
+ gem.authors = ["Jason L. Perry"]
+ gem.email = "jasper@ambethia.com"
+ end
+rescue LoadError
+ puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end
+require 'rake/rdoctask'
+Rake::RDocTask.new do |rd|
+ if File.exist?('VERSION.yml')
+ config = YAML.load(File.read('VERSION.yml'))
+ version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
+ else
+ version = ""
+ end
-desc 'Default: run unit tests.'
-task :default => :test
+ rd.main = "README.rdoc"
+ rd.rdoc_files.include "README.rdoc", "LICENSE", "lib/**/*.rb"
+ rd.rdoc_dir = 'rdoc'
+ rd.options << '-N' # line numbers
+ rd.options << '-S' # inline source
+end
-desc 'Test the recaptcha plugin.'
-Rake::TestTask.new(:test) do |t|
- t.libs << 'lib'
- t.pattern = 'test/**/*_test.rb'
- t.verbose = true
+require 'rake/testtask'
+Rake::TestTask.new(:test) do |test|
+ test.libs << 'lib' << 'test'
+ test.pattern = 'test/**/*_test.rb'
+ test.verbose = true
end
-ALLISON = "/Library/Ruby/Gems/1.8/gems/allison-2.0.3/lib/allison.rb"
-
-Rake::RDocTask.new do |rd|
- rd.main = "README.rdoc"
- rd.rdoc_files.include "README.rdoc", "LICENSE", "lib/**/*.rb"
- rd.title = "ReCAPTCHA"
- rd.options << '-N' # line numbers
- rd.options << '-S' # inline source
- rd.template = ALLISON if File.exist?(ALLISON)
+begin
+ require 'rcov/rcovtask'
+ Rcov::RcovTask.new do |test|
+ test.libs << 'test'
+ test.pattern = 'test/**/*_test.rb'
+ test.verbose = true
+ end
+rescue LoadError
+ task :rcov do
+ abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
+ end
end
-desc "Upload the rdoc to ambethia.com"
-task "publish" do
- sh "scp -r html/* ambethia.com:~/www/ambethia.com/recaptcha"
-end
+task :default => :test
+
+
+
View
@@ -0,0 +1 @@
+0.2.0
View
@@ -2,27 +2,46 @@
Gem::Specification.new do |s|
s.name = %q{recaptcha}
- s.version = "0.1.0"
+ s.version = "0.2.0"
- s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Jason L. Perry"]
- s.date = %q{2009-02-08}
- s.description = %q{This plugin adds helpers for the ReCAPTCHA API}
+ s.date = %q{2009-09-12}
+ s.description = %q{This plugin adds helpers for the ReCAPTCHA API }
s.email = %q{jasper@ambethia.com}
- s.extra_rdoc_files = ["CHANGELOG", "lib/recaptcha/recaptcha.rb", "lib/recaptcha.rb", "LICENSE", "README.rdoc", "tasks/recaptcha_tasks.rake"]
- s.files = ["CHANGELOG", "init.rb", "lib/recaptcha/recaptcha.rb", "lib/recaptcha.rb", "LICENSE", "Manifest", "Rakefile", "README.rdoc", "tasks/recaptcha_tasks.rake", "test/recaptcha_test.rb", "test/verify_recaptcha_test.rb", "recaptcha.gemspec"]
- s.has_rdoc = true
- s.homepage = %q{http://github.com/ambethia/recaptcha/tree/master}
- s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Recaptcha", "--main", "README.rdoc"]
+ s.extra_rdoc_files = [
+ "LICENSE",
+ "README.rdoc"
+ ]
+ s.files = [
+ ".gitignore",
+ "CHANGELOG",
+ "LICENSE",
+ "Manifest",
+ "README.rdoc",
+ "Rakefile",
+ "VERSION",
+ "init.rb",
+ "lib/recaptcha.rb",
+ "lib/recaptcha/recaptcha.rb",
+ "recaptcha.gemspec",
+ "tasks/recaptcha_tasks.rake",
+ "test/recaptcha_test.rb",
+ "test/verify_recaptcha_test.rb"
+ ]
+ s.homepage = %q{http://github.com/ambethia/recaptcha}
+ s.rdoc_options = ["--charset=UTF-8"]
s.require_paths = ["lib"]
- s.rubyforge_project = %q{recaptcha}
- s.rubygems_version = %q{1.3.1}
- s.summary = %q{This plugin adds helpers for the ReCAPTCHA API}
- s.test_files = ["test/recaptcha_test.rb", "test/verify_recaptcha_test.rb"]
+ s.rubygems_version = %q{1.3.5}
+ s.summary = nil
+ s.test_files = [
+ "test/recaptcha_test.rb",
+ "test/verify_recaptcha_test.rb"
+ ]
if s.respond_to? :specification_version then
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
- s.specification_version = 2
+ s.specification_version = 3
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
else

0 comments on commit c63cd3f

Please sign in to comment.