wxianfeng_simple_captcha 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -1,19 +1,6 @@
1
1
  =SimpleCaptcha
2
2
 
3
- SimpleCaptcha is the simplest and a robust captcha plugin. Its implementation requires
4
- adding up a single line in views and in controllers/models.
5
- SimpleCaptcha is available to be used with Rails 3 or above and also it provides the
6
- backward compatibility with previous versions of Rails.
7
-
8
- ==Features
9
-
10
- * Zero FileSystem usage(secret code moved to db-store and image storage removed).
11
- * Provides various image styles.
12
- * Provides three level of complexity of images.
13
- * Works absolutely fine in distributed environment(session and db based implementation works fine in distributed environment).
14
- * Implementation is as easy as just writing a single line in your view. "<%= show_simple_captcha %>" within the 'form' tags.
15
- * Flexible DOM and CSS handling(There is a separate view partial for rednering SimpleCaptcha DOM elements).
16
- * Automated removal of 1 hour old unmatched simple_captcha data.
3
+ SimpleCaptcha for Rails 3
17
4
 
18
5
  ==Requirements
19
6
 
@@ -24,7 +11,11 @@ backward compatibility with previous versions of Rails.
24
11
 
25
12
  ==Installation
26
13
 
27
- gem 'simple_captcha', :git => 'git://github.com/wxianfeng/simple-captcha.git'
14
+ rails < 3.1
15
+ gem 'wxianfeng_simple_captcha', '0.1.0' , require: 'simple_captcha'
16
+
17
+ rails >= 3.1
18
+ gem 'wxianfeng_simple_captcha' , '0.2.0' , require: 'simple_captcha'
28
19
 
29
20
  ==Setup
30
21
 
@@ -209,15 +200,3 @@ You can change the CSS of the SimpleCaptcha DOM elements as per your need in thi
209
200
  ==Who's who?
210
201
 
211
202
  Enjoy the simplest captcha implementation.
212
-
213
- Author: Sur
214
-
215
- Blog: http://expressica.com
216
-
217
- Contact: sur.max@gmail.com
218
-
219
- Plugin Homepage: http://expressica.com/simple_captcha
220
-
221
- Plugin update for rails 3: http://github.com/galetahub
222
-
223
- Any feedback/comment/issue/donation is welcome!
data/Rakefile CHANGED
@@ -1,6 +1,6 @@
1
1
  require 'rake'
2
2
  require 'rake/testtask'
3
- require 'rake/rdoctask'
3
+ require 'rdoc/task'
4
4
 
5
5
  require File.expand_path("../lib/simple_captcha/version", __FILE__)
6
6
 
@@ -37,5 +37,5 @@ task :release => :build do
37
37
  puts "Pushing to Github..."
38
38
  system "git push --tags"
39
39
  puts "Pushing to rubygems.org..."
40
- system "gem push hanzi_to_pinyin-#{SimpleCaptcha::VERSION}.gem"
40
+ system "gem push wxianfeng_simple_captcha-#{SimpleCaptcha::VERSION}.gem"
41
41
  end
@@ -1,6 +1,8 @@
1
1
  # encoding:utf-8
2
- class SimpleCaptchaController < ActionController::Metal
3
- include ActionController::Streaming
2
+ # class SimpleCaptchaController < ActionController::Metal
3
+ class SimpleCaptchaController < ActionController::Base
4
+ # include ActionController::Streaming if Rails.version.to_f < 3.1
5
+ # include ActionController::DataStreaming if Rails.version.to_f >= 3.1
4
6
  include SimpleCaptcha::ImageHelpers
5
7
 
6
8
  # GET /simple_captcha
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wxianfeng_simple_captcha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: