Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Tweaks to rails installation
  • Loading branch information
Jason L Perry committed Sep 14, 2009
1 parent bfc5134 commit 17e0f88
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
@@ -1,4 +1,5 @@
* Removed Ambethia namespace, and restructured classes a bit
* Added an example rails app in the example-rails branch

== 0.2.0 / 2009-09-12

Expand Down
10 changes: 10 additions & 0 deletions README.rdoc
Expand Up @@ -15,6 +15,16 @@ You'll want to add your public and private API keys in the environment variables
and RECAPTCHA_PRIVATE_KEY, respectively. You could also specify them in config/environment.rb if you
are so inclined. Exceptions will be raised if you call these methods and the keys can't be found.

== Rails Installation

ReCaptcha for rails can be installed as a gem:

config.gem "ambethia-recaptcha", :lib => "recaptcha/rails", :source => "http://gems.github.com"

Or, as a standard rails plugin:

script/plugin install git://github.com/ambethia/recaptcha.git

== +recaptcha_tags+

Some of the options available:
Expand Down
1 change: 1 addition & 0 deletions Rakefile
Expand Up @@ -5,6 +5,7 @@ begin
Jeweler::Tasks.new do |gem|
gem.name = "recaptcha"
gem.description = "This plugin adds helpers for the ReCAPTCHA API "
gem.summary = "Helpers for the ReCAPTCHA API"
gem.homepage = "http://github.com/ambethia/recaptcha"
gem.authors = ["Jason L. Perry"]
gem.email = "jasper@ambethia.com"
Expand Down
4 changes: 3 additions & 1 deletion init.rb
@@ -1,2 +1,4 @@
require 'recaptcha'
# Rails plugin initialization.
# You can also install it as a gem:
# config.gem "ambethia-recaptcha", :lib => "recaptcha/rails", :source => "http://gems.github.com"
require 'recaptcha/rails'
2 changes: 2 additions & 0 deletions lib/recaptcha/rails.rb
@@ -1,2 +1,4 @@
require 'recaptcha'

ActionView::Base.send(:include, Recaptcha::ClientHelper)
ActionController::Base.send(:include, Recaptcha::Verify)
11 changes: 8 additions & 3 deletions recaptcha.gemspec
@@ -1,3 +1,6 @@
# Generated by jeweler
# DO NOT EDIT THIS FILE
# Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
# -*- encoding: utf-8 -*-

Gem::Specification.new do |s|
Expand All @@ -6,7 +9,7 @@ Gem::Specification.new do |s|

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Jason L. Perry"]
s.date = %q{2009-09-12}
s.date = %q{2009-09-14}
s.description = %q{This plugin adds helpers for the ReCAPTCHA API }
s.email = %q{jasper@ambethia.com}
s.extra_rdoc_files = [
Expand All @@ -23,7 +26,9 @@ Gem::Specification.new do |s|
"VERSION",
"init.rb",
"lib/recaptcha.rb",
"lib/recaptcha/recaptcha.rb",
"lib/recaptcha/client_helper.rb",
"lib/recaptcha/rails.rb",
"lib/recaptcha/verify.rb",
"recaptcha.gemspec",
"tasks/recaptcha_tasks.rake",
"test/recaptcha_test.rb",
Expand All @@ -33,7 +38,7 @@ Gem::Specification.new do |s|
s.rdoc_options = ["--charset=UTF-8"]
s.require_paths = ["lib"]
s.rubygems_version = %q{1.3.5}
s.summary = nil
s.summary = %q{Helpers for the ReCAPTCHA API}
s.test_files = [
"test/recaptcha_test.rb",
"test/verify_recaptcha_test.rb"
Expand Down

0 comments on commit 17e0f88

Please sign in to comment.