simple_captcha_reloaded 0.0.1.beta1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: aa801cc85f0158820e305bf66357177b8c5bd510
4
+ data.tar.gz: 132bf89c7a166597d1696da847e286ff660a51f7
5
+ SHA512:
6
+ metadata.gz: b1e5dde7410f5d751fac27564b03394854224b2f7bb6301574b3d238899fde52c5dc9f253e772f9d2d98c838529d50bf0e8389b2c5595418d1e9dfe8739f0819
7
+ data.tar.gz: 2d0e18542d4e71e4ae8abdd4541a540ee944a10ea1027c8f499e503289b44ec29e8c58466dafb9fa93e930491e5b06d9be192b7773d3ad95bb145f0b47dcdcc0
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright 2014 YOURNAME
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/Rakefile ADDED
@@ -0,0 +1,19 @@
1
+ begin
2
+ require 'bundler/setup'
3
+ rescue LoadError
4
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
5
+ end
6
+
7
+ APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
8
+ if File.exists?(APP_RAKEFILE)
9
+ load 'rails/tasks/engine.rake'
10
+ end
11
+ ENV['TEMPLATE'] = 'spec/template.rb'
12
+ ENV['ENGINE'] = 'simple_captcha_reloaded'
13
+ require 'rails/dummy/tasks'
14
+ require 'rspec-rails'
15
+
16
+
17
+ require 'pry'
18
+ Bundler::GemHelper.install_tasks
19
+
@@ -0,0 +1,13 @@
1
+ // This is a manifest file that'll be compiled into application.js, which will include all the files
2
+ // listed below.
3
+ //
4
+ // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
+ // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
6
+ //
7
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
+ // compiled file.
9
+ //
10
+ // Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
11
+ // about supported directives.
12
+ //
13
+ //= require_tree .
@@ -0,0 +1,15 @@
1
+ /*
2
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
3
+ * listed below.
4
+ *
5
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
+ * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7
+ *
8
+ * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
+ * compiled file so the styles you add here take precedence over styles defined in any styles
10
+ * defined in the other CSS/SCSS files in this directory. It is generally better to create a new
11
+ * file per style scope.
12
+ *
13
+ *= require_tree .
14
+ *= require_self
15
+ */
@@ -0,0 +1,4 @@
1
+ module SimpleCaptchaReloaded
2
+ class ApplicationController < ActionController::Base
3
+ end
4
+ end
@@ -0,0 +1,4 @@
1
+ module SimpleCaptchaReloaded
2
+ module ApplicationHelper
3
+ end
4
+ end
@@ -0,0 +1,19 @@
1
+ module SimpleCaptchaReloaded
2
+ class Data < ActiveRecord::Base
3
+
4
+ def self.generate_captcha_id(old_key: nil)
5
+ SimpleCaptchaReloaded::Data.clear unless Rails.env.test?
6
+ if old_key
7
+ SimpleCaptchaReloaded::Data.where(key: old_key).delete_all
8
+ end
9
+ key, value = SimpleCaptchaReloaded::Config.generate_challenge
10
+ SimpleCaptchaReloaded::Data.create!(key: key, value: value)
11
+ key
12
+ end
13
+
14
+ def self.clear
15
+ SimpleCaptchaReloaded::Data.where('created_at < ?', 1.hour.ago).delete_all
16
+ end
17
+
18
+ end
19
+ end
@@ -0,0 +1,14 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>SimpleCaptchaReloaded</title>
5
+ <%= stylesheet_link_tag "simple_captcha_reloaded/application", media: "all" %>
6
+ <%= javascript_include_tag "simple_captcha_reloaded/application" %>
7
+ <%= csrf_meta_tags %>
8
+ </head>
9
+ <body>
10
+
11
+ <%= yield %>
12
+
13
+ </body>
14
+ </html>
File without changes
@@ -0,0 +1,7 @@
1
+ en:
2
+ simple_captcha_reloaded:
3
+ errors:
4
+ missing_captcha: 'no captcha parameters found'
5
+ blank: 'Please fill in the words above'
6
+ wrong: 'The entered text was not correct. Please try again.'
7
+ refresh_button_html: 'Refresh'
data/config/routes.rb ADDED
@@ -0,0 +1,2 @@
1
+ SimpleCaptchaReloaded::Engine.routes.draw do
2
+ end
@@ -0,0 +1,9 @@
1
+ class CreateSimpleCaptchaReloadedSimpleCaptchaReloadedData < ActiveRecord::Migration
2
+ def change
3
+ create_table :simple_captcha_reloaded_data do |t|
4
+ t.string :key, limit: 128
5
+ t.string :value, limit: 8
6
+ t.timestamps
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,64 @@
1
+ require 'simple_form/version'
2
+ class SimpleCaptchaInput < SimpleForm::Inputs::StringInput
3
+ def input(wrapper_options=nil)
4
+ set_options
5
+ code = get_code
6
+
7
+ if SimpleForm::VERSION[/^3\.0/]
8
+ input = super()
9
+ else
10
+ input = super
11
+ end
12
+ refresh = if options[:captcha][:refresh_button]
13
+ refresh_button(code)
14
+ else
15
+ ""
16
+ end
17
+ [
18
+ image_tag(code),
19
+ captcha_key(code),
20
+ input,
21
+ refresh
22
+ ].join.html_safe
23
+ end
24
+
25
+ protected
26
+
27
+ def refresh_button(code)
28
+ template.content_tag :div, class: 'simple-captcha-reload' do
29
+ url = SimpleCaptchaReloaded::Config.refresh_url(template.request, options[:captcha][:id])
30
+ template.link_to url, class: options[:captcha][:refresh_button_class], data: {remote: true} do
31
+ I18n.t('simple_captcha_reloaded.refresh_button_html')
32
+ end
33
+ end
34
+ end
35
+
36
+ def set_options
37
+ options[:wrapper_html] ||= {}
38
+ options[:captcha] ||= {}
39
+ options[:captcha].reverse_merge!(default_options)
40
+ options[:wrapper_html][:id] ||= options[:captcha][:id]
41
+ end
42
+
43
+ def get_code
44
+ old_key = template.request.session[:captcha]
45
+ SimpleCaptchaReloaded::Data.generate_captcha_id(old_key: old_key)
46
+ end
47
+
48
+
49
+ def image_tag(code)
50
+ url = SimpleCaptchaReloaded::Config.image_url(code, template.request)
51
+ template.content_tag(:img, nil, src: url, alt: 'Captcha', class: 'simple-captcha-image')
52
+ end
53
+
54
+ def captcha_key(code)
55
+ @builder.hidden_field :captcha_key, value: code
56
+ end
57
+
58
+ def default_options
59
+ {
60
+ refresh_button: true,
61
+ id: 'simple_captcha_wrapper'
62
+ }
63
+ end
64
+ end
@@ -0,0 +1,41 @@
1
+ class SimpleCaptchaReloaded::Config
2
+ cattr_accessor :captcha_path
3
+ cattr_accessor :image
4
+ cattr_accessor :characters
5
+ cattr_accessor :length
6
+
7
+ def self.image_url(code, request)
8
+ time = Time.now.to_i
9
+ path = captcha_path + "?code=#{code}&time=#{time}"
10
+ if request && defined?(request.protocol)
11
+ "#{request.protocol}#{request.host_with_port}#{ENV['RAILS_RELATIVE_URL_ROOT']}#{path}"
12
+ else
13
+ "#{ENV['RAILS_RELATIVE_URL_ROOT']}#{path}"
14
+ end
15
+ end
16
+
17
+ def self.refresh_url(request, id)
18
+ path = captcha_path + "?id=#{id}"
19
+ if request && defined?(request.protocol)
20
+ "#{request.protocol}#{request.host_with_port}#{ENV['RAILS_RELATIVE_URL_ROOT']}#{path}"
21
+ else
22
+ "#{ENV['RAILS_RELATIVE_URL_ROOT']}#{path}"
23
+ end
24
+ end
25
+
26
+ def self.generate_challenge
27
+ key = SecureRandom.uuid
28
+ value = length.times.map do |i|
29
+ characters.sample
30
+ end
31
+ [ key, value.join ]
32
+ end
33
+ end
34
+
35
+ SimpleCaptchaReloaded::Config.tap do |config|
36
+ config.captcha_path = '/simple_captcha'
37
+ config.image = SimpleCaptchaReloaded::Image.new
38
+ config.characters = %w[a b c d e f g h j k m n p q r s t u v w x y z 0 2 3 4 5 6 8 9]
39
+ config.length = 6
40
+ end
41
+
@@ -0,0 +1,12 @@
1
+ module SimpleCaptchaReloaded
2
+ class Engine < ::Rails::Engine
3
+ isolate_namespace SimpleCaptchaReloaded
4
+ initializer "simple_captcha.load" do |app|
5
+ if defined?(SimpleForm)
6
+ require 'simple_captcha_reloaded/adapters/simple_form'
7
+ end
8
+ app.middleware.use SimpleCaptchaReloaded::Middleware
9
+ end
10
+
11
+ end
12
+ end
@@ -0,0 +1,90 @@
1
+ require 'open3'
2
+ module SimpleCaptchaReloaded
3
+ class Image
4
+ IMAGE_STYLES = {
5
+ 'embosed_silver' => ['-fill darkblue', '-shade 20x60', '-background white'],
6
+ 'simply_red' => ['-fill darkred', '-background white'],
7
+ 'simply_green' => ['-fill darkgreen', '-background white'],
8
+ 'simply_blue' => ['-fill darkblue', '-background white'],
9
+ 'distorted_black' => ['-fill darkblue', '-edge 10', '-background white'],
10
+ 'all_black' => ['-fill darkblue', '-edge 2', '-background white'],
11
+ 'charcoal_grey' => ['-fill darkblue', '-charcoal 5', '-background white'],
12
+ 'almost_invisible' => ['-fill red', '-solarize 50', '-background white']
13
+ }
14
+
15
+ DISTORTIONS = {
16
+ low: -> { [0 + rand(2), 80 + rand(20)] },
17
+ medium: -> { [2 + rand(2), 50 + rand(20)] },
18
+ high: -> { [4 + rand(2), 30 + rand(20)] },
19
+ }
20
+ IMPLODES = {
21
+ none: 0,
22
+ low: 0.1,
23
+ medium: 0.2,
24
+ high: 0.3
25
+ }
26
+
27
+ def initialize(implode: :medium,
28
+ distortion: :random,
29
+ image_styles: IMAGE_STYLES,
30
+ noise: 0,
31
+ size: '100x28',
32
+ image_magick_path: '',
33
+ tmp_path: nil)
34
+ @implode = implode
35
+ @distortion = distortion
36
+ if !DISTORTIONS.keys.include?(@distortion)
37
+ @distortion = DISTORTIONS.keys.sample
38
+ end
39
+ @distortion_function = DISTORTIONS[@distortion]
40
+ @image_styles = image_styles
41
+ @noise = noise
42
+ @size = size
43
+ @image_magick_path = image_magick_path
44
+ @tmp_path = tmp_path
45
+ end
46
+
47
+ def generate(text)
48
+ amplitude, frequency = calculate_distortion
49
+
50
+ params = image_params
51
+ params << "-size #{@size}"
52
+ params << "-wave #{amplitude}x#{frequency}"
53
+ params << "-gravity Center"
54
+ params << "-pointsize 22"
55
+ params << "-implode #{IMPLODES[@implode]}"
56
+ params << "label:#{text}"
57
+ params << "-evaluate Uniform-noise #{@noise}"
58
+ params << "jpeg:-"
59
+ run("convert", params.join(' '))
60
+ end
61
+
62
+ protected
63
+
64
+ def image_params
65
+ @image_styles.values.sample
66
+ end
67
+
68
+ def calculate_distortion
69
+ @distortion_function.call()
70
+ end
71
+
72
+ def run(cmd, params = "")
73
+ command = %Q[#{cmd} #{params}].gsub(/\s+/, " ")
74
+ command = "#{command} 2>&1"
75
+ unless (image_magick_path = @image_magick_path).blank?
76
+ command = File.join(image_magick_path, command)
77
+ end
78
+ stderr_r, stderr_w = IO.pipe
79
+ stdout_r, stdout_w = IO.pipe
80
+ success = system(command, out: stdout_w, err: stderr_w)
81
+ stdout_w.close; stderr_w.close
82
+ output = stdout_r.read
83
+ error = stderr_r.read
84
+ unless success
85
+ raise ::StandardError, "Error while running #{command}\n Exit Code: #{$?}\n stderr:#{error.inspect}\n stdout:#{output.inspect}"
86
+ end
87
+ output
88
+ end
89
+ end
90
+ end
@@ -0,0 +1,71 @@
1
+ class SimpleCaptchaReloaded::Middleware
2
+ DEFAULT_SEND_FILE_OPTIONS = {
3
+ :type => 'application/octet-stream'.freeze,
4
+ :disposition => 'attachment'.freeze,
5
+ }.freeze
6
+
7
+ def initialize(app, options={})
8
+ @app = app
9
+ end
10
+
11
+ def call(env)
12
+ @env = env
13
+ if env["REQUEST_METHOD"] == "GET" && captcha_path?(env['PATH_INFO'])
14
+ if request.params.present? && (code = request.params['code']) && code.present?
15
+ make_image(code)
16
+ else
17
+ refresh_code
18
+ end
19
+ else
20
+ @app.call(env)
21
+ end
22
+ end
23
+
24
+ protected
25
+
26
+ def request
27
+ Rack::Request.new(@env)
28
+ end
29
+
30
+ def make_image(code)
31
+ if !d = SimpleCaptchaReloaded::Data.find_by_key(code)
32
+ not_found
33
+ else
34
+ blob = SimpleCaptchaReloaded::Config.image.generate(d.value)
35
+ send_data(blob, type: 'image/jpeg', disposition: 'inline', filename: 'simple_captcha.jpg')
36
+ end
37
+ end
38
+
39
+ def refresh_code
40
+ code = SimpleCaptchaReloaded::Data.generate_captcha_id(old_key: request.session[:captcha])
41
+ request.session[:captcha] = code
42
+ id = request.params['id'] || 'simple_captcha'
43
+ url = SimpleCaptchaReloaded::Config.image_url(code, request)
44
+ body = %Q{
45
+ $("##{id} img").attr('src', '#{url}');
46
+ $("##{id} input[type=hidden]").attr('value', '#{code}');
47
+ }
48
+ headers = {
49
+ 'Content-Type' => 'text/javascript; charset=utf-8',
50
+ "Content-Disposition" => "inline; filename='captcha.js'",
51
+ "Content-Length" => body.length.to_s
52
+ }
53
+ [200, headers, [body]]
54
+ end
55
+
56
+ def captcha_path?(request_path)
57
+ request_path.include?(SimpleCaptchaReloaded::Config.captcha_path)
58
+ end
59
+
60
+ def send_data(response_body, options = {})
61
+ status = options[:status] || 200
62
+ headers = {"Content-Disposition" => "#{options[:disposition]}; filename='#{options[:filename]}'", "Content-Type" => options[:type], 'Content-Transfer-Encoding' => 'binary', 'Cache-Control' => 'private'}
63
+
64
+ [status, headers, [response_body]]
65
+ end
66
+
67
+ def not_found
68
+ [404, {}, []]
69
+ end
70
+
71
+ end
@@ -0,0 +1,33 @@
1
+ module SimpleCaptchaReloaded::Model
2
+ attr_accessor :captcha_key
3
+ attr_accessor :captcha
4
+ def valid_with_captcha?
5
+ valid? & captcha_valid?
6
+ end
7
+
8
+ def save_with_captcha(*args)
9
+ valid_with_captcha? & save(*args)
10
+ end
11
+
12
+ def captcha_valid?
13
+ if @last_result.nil?
14
+ @last_result = begin
15
+ data = SimpleCaptchaReloaded::Data.where(key: captcha_key).first
16
+ if !data
17
+ errors.add :captcha, I18n.t('simple_captcha_reloaded.errors.missing_captcha')
18
+ false
19
+ elsif !captcha.present?
20
+ errors.add :captcha, I18n.t('simple_captcha_reloaded.errors.blank')
21
+ false
22
+ elsif data.value != captcha.downcase.strip
23
+ errors.add :captcha, I18n.t('simple_captcha_reloaded.errors.wrong')
24
+ false
25
+ else
26
+ true
27
+ end
28
+ end
29
+ end
30
+ @last_result
31
+ end
32
+
33
+ end
@@ -0,0 +1,3 @@
1
+ module SimpleCaptchaReloaded
2
+ VERSION = "0.0.1.beta1"
3
+ end
@@ -0,0 +1,8 @@
1
+ require 'simple_captcha_reloaded/engine'
2
+ require 'simple_captcha_reloaded/image'
3
+ require 'simple_captcha_reloaded/config'
4
+ require 'simple_captcha_reloaded/model'
5
+ require 'simple_captcha_reloaded/middleware'
6
+
7
+ module SimpleCaptchaReloaded
8
+ end
@@ -0,0 +1,4 @@
1
+ # desc "Explaining what the task does"
2
+ # task :simple_captcha_reloaded do
3
+ # # Task goes here
4
+ # end
metadata ADDED
@@ -0,0 +1,234 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: simple_captcha_reloaded
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1.beta1
5
+ platform: ruby
6
+ authors:
7
+ - Stefan Wienert
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-12-01 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '4.1'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '4.1'
27
+ - !ruby/object:Gem::Dependency
28
+ name: sqlite3
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec-rails
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rails-dummy
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: guard-rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: guard-shell
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: pry
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: pry-doc
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: uglifier
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: database_cleaner
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: appraisal
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ description: ''
182
+ email:
183
+ - info@stefanwienert.de
184
+ executables: []
185
+ extensions: []
186
+ extra_rdoc_files: []
187
+ files:
188
+ - MIT-LICENSE
189
+ - Rakefile
190
+ - app/assets/javascripts/simple_captcha_reloaded/application.js
191
+ - app/assets/stylesheets/simple_captcha_reloaded/application.css
192
+ - app/controllers/simple_captcha_reloaded/application_controller.rb
193
+ - app/helpers/simple_captcha_reloaded/application_helper.rb
194
+ - app/models/simple_captcha_reloaded/data.rb
195
+ - app/views/layouts/simple_captcha_reloaded/application.html.erb
196
+ - config/environment.rb
197
+ - config/locales/simple_captcha.en.yml
198
+ - config/routes.rb
199
+ - db/migrate/20141129170641_create_simple_captcha_reloaded_simple_captcha_reloaded_data.rb
200
+ - lib/simple_captcha_reloaded.rb
201
+ - lib/simple_captcha_reloaded/adapters/simple_form.rb
202
+ - lib/simple_captcha_reloaded/config.rb
203
+ - lib/simple_captcha_reloaded/engine.rb
204
+ - lib/simple_captcha_reloaded/image.rb
205
+ - lib/simple_captcha_reloaded/middleware.rb
206
+ - lib/simple_captcha_reloaded/model.rb
207
+ - lib/simple_captcha_reloaded/version.rb
208
+ - lib/tasks/simple_captcha_reloaded_tasks.rake
209
+ homepage: https://github.com/zealot128/simple_captcha_reloaded
210
+ licenses:
211
+ - MIT
212
+ metadata: {}
213
+ post_install_message:
214
+ rdoc_options: []
215
+ require_paths:
216
+ - lib
217
+ required_ruby_version: !ruby/object:Gem::Requirement
218
+ requirements:
219
+ - - ">="
220
+ - !ruby/object:Gem::Version
221
+ version: '0'
222
+ required_rubygems_version: !ruby/object:Gem::Requirement
223
+ requirements:
224
+ - - ">"
225
+ - !ruby/object:Gem::Version
226
+ version: 1.3.1
227
+ requirements: []
228
+ rubyforge_project:
229
+ rubygems_version: 2.2.2
230
+ signing_key:
231
+ specification_version: 4
232
+ summary: Captcha library which uses imagemagick to create captchas
233
+ test_files: []
234
+ has_rdoc: