easy_captcha 0.6.4 → 0.6.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +110 -81
- data/Rakefile +5 -3
- data/lib/easy_captcha.rb +1 -2
- data/lib/easy_captcha/{controller.rb → captcha_controller.rb} +1 -1
- data/lib/easy_captcha/generator/default.rb +6 -3
- data/lib/easy_captcha/routes.rb +1 -1
- data/lib/easy_captcha/version.rb +1 -1
- data/spec/easy_captcha_spec.rb +61 -63
- data/spec/espeak_spec.rb +5 -6
- data/spec/spec_helper.rb +0 -5
- metadata +19 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d677d4f711f8c85c5ad9c1eab34f214e70de508
|
4
|
+
data.tar.gz: 472562770ddff03f0f84fb67eb5d0ed873183114
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90c942e04a357cf9c84ec1348af37785cc43bf60d9ea7af2f687e2ab54079f9ccec4cad2e7051aba272151936a846aa69d89375eb3a94602d374eb67edb0a832
|
7
|
+
data.tar.gz: db59832dcd59c726dc2de7b713a53a8570b33fc927b4621c4f258a07b3ee14ad6462591bfdb58b50ec9aa9f5fc3c817a7ca2cc987fbdb8cef406031bb505fede
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
easy_captcha (0.6.
|
4
|
+
easy_captcha (0.6.5)
|
5
5
|
bundler (>= 1.1.0)
|
6
6
|
rails (>= 3.0.0)
|
7
7
|
rmagick (>= 2.13.1)
|
@@ -12,98 +12,127 @@ PATH
|
|
12
12
|
GEM
|
13
13
|
remote: http://rubygems.org/
|
14
14
|
specs:
|
15
|
-
actionmailer (4.
|
16
|
-
actionpack (= 4.
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
15
|
+
actionmailer (4.2.3)
|
16
|
+
actionpack (= 4.2.3)
|
17
|
+
actionview (= 4.2.3)
|
18
|
+
activejob (= 4.2.3)
|
19
|
+
mail (~> 2.5, >= 2.5.4)
|
20
|
+
rails-dom-testing (~> 1.0, >= 1.0.5)
|
21
|
+
actionpack (4.2.3)
|
22
|
+
actionview (= 4.2.3)
|
23
|
+
activesupport (= 4.2.3)
|
24
|
+
rack (~> 1.6)
|
23
25
|
rack-test (~> 0.6.2)
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
26
|
+
rails-dom-testing (~> 1.0, >= 1.0.5)
|
27
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
28
|
+
actionview (4.2.3)
|
29
|
+
activesupport (= 4.2.3)
|
30
|
+
builder (~> 3.1)
|
31
|
+
erubis (~> 2.7.0)
|
32
|
+
rails-dom-testing (~> 1.0, >= 1.0.5)
|
33
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
34
|
+
activejob (4.2.3)
|
35
|
+
activesupport (= 4.2.3)
|
36
|
+
globalid (>= 0.3.0)
|
37
|
+
activemodel (4.2.3)
|
38
|
+
activesupport (= 4.2.3)
|
39
|
+
builder (~> 3.1)
|
40
|
+
activerecord (4.2.3)
|
41
|
+
activemodel (= 4.2.3)
|
42
|
+
activesupport (= 4.2.3)
|
43
|
+
arel (~> 6.0)
|
44
|
+
activesupport (4.2.3)
|
45
|
+
i18n (~> 0.7)
|
46
|
+
json (~> 1.7, >= 1.7.7)
|
47
|
+
minitest (~> 5.1)
|
48
|
+
thread_safe (~> 0.3, >= 0.3.4)
|
49
|
+
tzinfo (~> 1.1)
|
50
|
+
arel (6.0.3)
|
51
|
+
builder (3.2.2)
|
52
|
+
diff-lcs (1.2.5)
|
53
|
+
docile (1.1.5)
|
43
54
|
erubis (2.7.0)
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
+
globalid (0.3.6)
|
56
|
+
activesupport (>= 4.1.0)
|
57
|
+
i18n (0.7.0)
|
58
|
+
json (1.8.3)
|
59
|
+
loofah (2.0.2)
|
60
|
+
nokogiri (>= 1.5.9)
|
61
|
+
mail (2.6.3)
|
62
|
+
mime-types (>= 1.16, < 3)
|
63
|
+
mime-types (2.6.1)
|
64
|
+
mini_portile (0.6.2)
|
65
|
+
minitest (5.8.0)
|
66
|
+
nokogiri (1.6.6.2)
|
67
|
+
mini_portile (~> 0.6.0)
|
68
|
+
rack (1.6.4)
|
69
|
+
rack-test (0.6.3)
|
55
70
|
rack (>= 1.0)
|
56
|
-
rails (4.
|
57
|
-
actionmailer (= 4.
|
58
|
-
actionpack (= 4.
|
59
|
-
|
60
|
-
|
71
|
+
rails (4.2.3)
|
72
|
+
actionmailer (= 4.2.3)
|
73
|
+
actionpack (= 4.2.3)
|
74
|
+
actionview (= 4.2.3)
|
75
|
+
activejob (= 4.2.3)
|
76
|
+
activemodel (= 4.2.3)
|
77
|
+
activerecord (= 4.2.3)
|
78
|
+
activesupport (= 4.2.3)
|
61
79
|
bundler (>= 1.3.0, < 2.0)
|
62
|
-
railties (= 4.
|
63
|
-
sprockets-rails
|
64
|
-
|
65
|
-
|
66
|
-
|
80
|
+
railties (= 4.2.3)
|
81
|
+
sprockets-rails
|
82
|
+
rails-deprecated_sanitizer (1.0.3)
|
83
|
+
activesupport (>= 4.2.0.alpha)
|
84
|
+
rails-dom-testing (1.0.6)
|
85
|
+
activesupport (>= 4.2.0.beta, < 5.0)
|
86
|
+
nokogiri (~> 1.6.0)
|
87
|
+
rails-deprecated_sanitizer (>= 1.0.1)
|
88
|
+
rails-html-sanitizer (1.0.2)
|
89
|
+
loofah (~> 2.0)
|
90
|
+
railties (4.2.3)
|
91
|
+
actionpack (= 4.2.3)
|
92
|
+
activesupport (= 4.2.3)
|
67
93
|
rake (>= 0.8.7)
|
68
94
|
thor (>= 0.18.1, < 2.0)
|
69
|
-
rake (10.
|
70
|
-
rmagick (2.
|
71
|
-
rspec-core (
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
95
|
+
rake (10.4.2)
|
96
|
+
rmagick (2.15.3)
|
97
|
+
rspec-core (3.3.2)
|
98
|
+
rspec-support (~> 3.3.0)
|
99
|
+
rspec-expectations (3.3.1)
|
100
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
101
|
+
rspec-support (~> 3.3.0)
|
102
|
+
rspec-mocks (3.3.2)
|
103
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
104
|
+
rspec-support (~> 3.3.0)
|
105
|
+
rspec-rails (3.3.3)
|
106
|
+
actionpack (>= 3.0, < 4.3)
|
107
|
+
activesupport (>= 3.0, < 4.3)
|
108
|
+
railties (>= 3.0, < 4.3)
|
109
|
+
rspec-core (~> 3.3.0)
|
110
|
+
rspec-expectations (~> 3.3.0)
|
111
|
+
rspec-mocks (~> 3.3.0)
|
112
|
+
rspec-support (~> 3.3.0)
|
113
|
+
rspec-support (3.3.0)
|
114
|
+
simplecov (0.10.0)
|
115
|
+
docile (~> 1.1.0)
|
116
|
+
json (~> 1.8)
|
117
|
+
simplecov-html (~> 0.10.0)
|
118
|
+
simplecov-html (0.10.0)
|
119
|
+
sprockets (3.3.0)
|
89
120
|
rack (~> 1.0)
|
90
|
-
|
91
|
-
sprockets-rails (2.0.0)
|
121
|
+
sprockets-rails (2.3.2)
|
92
122
|
actionpack (>= 3.0)
|
93
123
|
activesupport (>= 3.0)
|
94
|
-
sprockets (
|
95
|
-
thor (0.
|
96
|
-
thread_safe (0.
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
polyglot
|
101
|
-
polyglot (>= 0.3.1)
|
102
|
-
tzinfo (0.3.37)
|
103
|
-
yard (0.8.6.2)
|
124
|
+
sprockets (>= 2.8, < 4.0)
|
125
|
+
thor (0.19.1)
|
126
|
+
thread_safe (0.3.5)
|
127
|
+
tzinfo (1.2.2)
|
128
|
+
thread_safe (~> 0.1)
|
129
|
+
yard (0.8.7.6)
|
104
130
|
|
105
131
|
PLATFORMS
|
106
132
|
ruby
|
107
133
|
|
108
134
|
DEPENDENCIES
|
109
135
|
easy_captcha!
|
136
|
+
|
137
|
+
BUNDLED WITH
|
138
|
+
1.10.3
|
data/Rakefile
CHANGED
data/lib/easy_captcha.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
require 'RMagick'
|
2
1
|
require 'rails'
|
3
2
|
require 'action_controller'
|
4
3
|
require 'active_record'
|
@@ -8,7 +7,7 @@ require 'active_support'
|
|
8
7
|
module EasyCaptcha
|
9
8
|
autoload :Espeak, 'easy_captcha/espeak'
|
10
9
|
autoload :Captcha, 'easy_captcha/captcha'
|
11
|
-
autoload :
|
10
|
+
autoload :CaptchaController, 'easy_captcha/captcha_controller'
|
12
11
|
autoload :ModelHelpers, 'easy_captcha/model_helpers'
|
13
12
|
autoload :ViewHelpers, 'easy_captcha/view_helpers'
|
14
13
|
autoload :ControllerHelpers, 'easy_captcha/controller_helpers'
|
@@ -1,4 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
+
|
2
3
|
module EasyCaptcha
|
3
4
|
module Generator
|
4
5
|
|
@@ -9,7 +10,7 @@ module EasyCaptcha
|
|
9
10
|
def defaults
|
10
11
|
@font_size = 24
|
11
12
|
@font_fill_color = '#333333'
|
12
|
-
@font
|
13
|
+
@font = File.expand_path('../../../../resources/captcha.ttf', __FILE__)
|
13
14
|
@font_stroke = '#000000'
|
14
15
|
@font_stroke_color = 0
|
15
16
|
@image_background_color = '#FFFFFF'
|
@@ -57,6 +58,8 @@ module EasyCaptcha
|
|
57
58
|
|
58
59
|
# generate image
|
59
60
|
def generate(code)
|
61
|
+
require 'rmagick' unless defined?(Magick)
|
62
|
+
|
60
63
|
config = self
|
61
64
|
canvas = Magick::Image.new(EasyCaptcha.image_width, EasyCaptcha.image_height) do |variable|
|
62
65
|
self.background_color = config.image_background_color unless config.image_background_color.nil?
|
@@ -66,7 +69,7 @@ module EasyCaptcha
|
|
66
69
|
# Render the text in the image
|
67
70
|
canvas.annotate(Magick::Draw.new, 0, 0, 0, 0, code) {
|
68
71
|
self.gravity = Magick::CenterGravity
|
69
|
-
self.font
|
72
|
+
self.font = config.font
|
70
73
|
self.font_weight = Magick::LighterWeight
|
71
74
|
self.fill = config.font_fill_color
|
72
75
|
if config.font_stroke.to_i > 0
|
@@ -101,7 +104,7 @@ module EasyCaptcha
|
|
101
104
|
|
102
105
|
image = background.to_blob { self.format = 'PNG' }
|
103
106
|
else
|
104
|
-
|
107
|
+
image = canvas.to_blob { self.format = 'PNG' }
|
105
108
|
end
|
106
109
|
|
107
110
|
# ruby-1.9
|
data/lib/easy_captcha/routes.rb
CHANGED
@@ -3,7 +3,7 @@ module ActionDispatch #:nodoc:
|
|
3
3
|
class Mapper #:nodoc:
|
4
4
|
# call to add default captcha root
|
5
5
|
def captcha_route
|
6
|
-
match 'captcha' =>
|
6
|
+
match 'captcha' => 'easy_captcha/captcha#captcha', :via => :get
|
7
7
|
end
|
8
8
|
end
|
9
9
|
end
|
data/lib/easy_captcha/version.rb
CHANGED
data/spec/easy_captcha_spec.rb
CHANGED
@@ -1,59 +1,57 @@
|
|
1
1
|
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
|
2
2
|
|
3
3
|
describe EasyCaptcha do
|
4
|
-
|
5
4
|
describe :setup do
|
6
5
|
EasyCaptcha.setup do |config|
|
7
6
|
# Cache
|
8
|
-
config.cache
|
7
|
+
config.cache = false
|
9
8
|
|
10
9
|
# Chars
|
11
|
-
config.chars
|
10
|
+
config.chars = %w(2 3 4 5 6 7 9 A C D E F G H J K L M N P Q R S T U X Y Z)
|
12
11
|
|
13
12
|
# Length
|
14
|
-
config.length
|
13
|
+
config.length = 6
|
15
14
|
|
16
15
|
# Image
|
17
16
|
config.image_height = 40
|
18
|
-
config.image_width
|
17
|
+
config.image_width = 140
|
19
18
|
|
20
19
|
# configure generator
|
21
20
|
config.generator :default do |generator|
|
22
|
-
|
23
21
|
# Font
|
24
|
-
generator.font_size
|
25
|
-
generator.font_fill_color
|
26
|
-
generator.font_stroke_color
|
27
|
-
generator.font_stroke
|
28
|
-
generator.font_family
|
22
|
+
generator.font_size = 24
|
23
|
+
generator.font_fill_color = '#333333'
|
24
|
+
generator.font_stroke_color = '#000000'
|
25
|
+
generator.font_stroke = 0
|
26
|
+
generator.font_family = File.expand_path('../../resources/afont.ttf', __FILE__)
|
29
27
|
|
30
|
-
generator.image_background_color =
|
28
|
+
generator.image_background_color = '#FFFFFF'
|
31
29
|
|
32
30
|
# Wave
|
33
|
-
generator.wave
|
34
|
-
generator.wave_length
|
35
|
-
generator.wave_amplitude
|
31
|
+
generator.wave = true
|
32
|
+
generator.wave_length = (60..100)
|
33
|
+
generator.wave_amplitude = (3..5)
|
36
34
|
|
37
35
|
# Sketch
|
38
|
-
generator.sketch
|
39
|
-
generator.sketch_radius
|
40
|
-
generator.sketch_sigma
|
36
|
+
generator.sketch = true
|
37
|
+
generator.sketch_radius = 3
|
38
|
+
generator.sketch_sigma = 1
|
41
39
|
|
42
40
|
# Implode
|
43
|
-
generator.implode
|
41
|
+
generator.implode = 0.1
|
44
42
|
|
45
43
|
# Blur
|
46
|
-
generator.blur
|
47
|
-
generator.blur_radius
|
48
|
-
generator.blur_sigma
|
44
|
+
generator.blur = true
|
45
|
+
generator.blur_radius = 1
|
46
|
+
generator.blur_sigma = 2
|
49
47
|
end
|
50
48
|
end
|
51
49
|
|
52
|
-
it
|
50
|
+
it 'sould not cache' do
|
53
51
|
EasyCaptcha.cache?.should be_false
|
54
52
|
end
|
55
53
|
|
56
|
-
it
|
54
|
+
it 'should have default generator' do
|
57
55
|
EasyCaptcha.generator.should be_an(EasyCaptcha::Generator::Default)
|
58
56
|
end
|
59
57
|
|
@@ -61,56 +59,56 @@ describe EasyCaptcha do
|
|
61
59
|
before do
|
62
60
|
EasyCaptcha.setup do |config|
|
63
61
|
# Length
|
64
|
-
config.length
|
62
|
+
config.length = 6
|
65
63
|
|
66
64
|
# Image
|
67
|
-
config.image_height
|
68
|
-
config.image_width
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
65
|
+
config.image_height = 40
|
66
|
+
config.image_width = 140
|
67
|
+
|
68
|
+
config.generator :default do |generator|
|
69
|
+
# Font
|
70
|
+
generator.font_size = 24
|
71
|
+
generator.font_fill_color = '#333333'
|
72
|
+
generator.font_stroke_color = '#000000'
|
73
|
+
generator.font_stroke = 0
|
74
|
+
generator.font_family = File.expand_path('../../resources/afont.ttf', __FILE__)
|
75
|
+
|
76
|
+
generator.image_background_color = '#FFFFFF'
|
77
|
+
|
78
|
+
# Wave
|
79
|
+
generator.wave = true
|
80
|
+
generator.wave_length = (60..100)
|
81
|
+
generator.wave_amplitude = (3..5)
|
82
|
+
|
83
|
+
# Sketch
|
84
|
+
generator.sketch = true
|
85
|
+
generator.sketch_radius = 3
|
86
|
+
generator.sketch_sigma = 1
|
87
|
+
|
88
|
+
# Implode
|
89
|
+
generator.implode = 0.1
|
90
|
+
|
91
|
+
# Blur
|
92
|
+
generator.blur = true
|
93
|
+
generator.blur_radius = 1
|
94
|
+
generator.blur_sigma = 2
|
95
|
+
end
|
96
96
|
end
|
97
97
|
end
|
98
98
|
|
99
|
-
it
|
99
|
+
it 'get config' do
|
100
100
|
[
|
101
|
-
|
102
|
-
|
103
|
-
|
101
|
+
:font_size, :font_fill_color, :font_family, :font_stroke, :font_stroke_color,
|
102
|
+
:image_background_color, :sketch, :sketch_radius, :sketch_sigma, :wave,
|
103
|
+
:wave_length, :wave_amplitude, :implode, :blur, :blur_radius, :blur_sigma
|
104
104
|
].each do |method|
|
105
|
-
EasyCaptcha.send(
|
105
|
+
EasyCaptcha.generator.send(method).should_not be_nil
|
106
106
|
end
|
107
107
|
end
|
108
108
|
|
109
|
-
it
|
110
|
-
|
109
|
+
it 'method_missing should call normal on non depracations' do
|
110
|
+
-> { EasyCaptcha.send('a_missing_method') }.should raise_error
|
111
111
|
end
|
112
112
|
end
|
113
|
-
|
114
113
|
end
|
115
|
-
|
116
114
|
end
|
data/spec/espeak_spec.rb
CHANGED
@@ -2,23 +2,22 @@
|
|
2
2
|
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
|
3
3
|
|
4
4
|
describe EasyCaptcha::Espeak do
|
5
|
-
context
|
5
|
+
context 'check default values' do
|
6
6
|
subject { EasyCaptcha::Espeak.new }
|
7
7
|
|
8
|
-
its(:amplitude) { (80..120).
|
9
|
-
its(:pitch) { (30..70).
|
8
|
+
its(:amplitude) { (80..120).should include(subject.amplitude) }
|
9
|
+
its(:pitch) { (30..70).should include(subject.pitch) }
|
10
10
|
its(:gap) { should eq 80 }
|
11
11
|
its(:voice) { should be_nil }
|
12
|
-
|
13
12
|
end
|
14
13
|
|
15
|
-
context
|
14
|
+
context 'check config: voices' do
|
16
15
|
let(:voices) { ['german', 'german+m1'] }
|
17
16
|
subject do
|
18
17
|
EasyCaptcha::Espeak.new do |config|
|
19
18
|
config.voice = voices
|
20
19
|
end
|
21
20
|
end
|
22
|
-
|
21
|
+
it { voices.should include(subject.voice) }
|
23
22
|
end
|
24
23
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -5,13 +5,8 @@ begin
|
|
5
5
|
SimpleCov.start 'rails'
|
6
6
|
rescue LoadError
|
7
7
|
end
|
8
|
-
require 'rspec'
|
9
8
|
require 'easy_captcha'
|
10
9
|
|
11
10
|
# Requires supporting files with custom matchers and macros, etc,
|
12
11
|
# in ./support/ and its subdirectories.
|
13
12
|
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
14
|
-
|
15
|
-
RSpec.configure do |config|
|
16
|
-
|
17
|
-
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: easy_captcha
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marco Scholl
|
@@ -15,84 +15,84 @@ dependencies:
|
|
15
15
|
name: rails
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- -
|
18
|
+
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: 3.0.0
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- -
|
25
|
+
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: 3.0.0
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: bundler
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- -
|
32
|
+
- - ">="
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: 1.1.0
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- -
|
39
|
+
- - ">="
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: 1.1.0
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: simplecov
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
|
-
- -
|
46
|
+
- - ">="
|
47
47
|
- !ruby/object:Gem::Version
|
48
48
|
version: 0.3.8
|
49
49
|
type: :runtime
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
|
-
- -
|
53
|
+
- - ">="
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: 0.3.8
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: rspec-rails
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
|
-
- -
|
60
|
+
- - ">="
|
61
61
|
- !ruby/object:Gem::Version
|
62
62
|
version: 2.8.1
|
63
63
|
type: :runtime
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
|
-
- -
|
67
|
+
- - ">="
|
68
68
|
- !ruby/object:Gem::Version
|
69
69
|
version: 2.8.1
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
71
|
name: yard
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
|
-
- -
|
74
|
+
- - ">="
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: 0.7.0
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
|
-
- -
|
81
|
+
- - ">="
|
82
82
|
- !ruby/object:Gem::Version
|
83
83
|
version: 0.7.0
|
84
84
|
- !ruby/object:Gem::Dependency
|
85
85
|
name: rmagick
|
86
86
|
requirement: !ruby/object:Gem::Requirement
|
87
87
|
requirements:
|
88
|
-
- -
|
88
|
+
- - ">="
|
89
89
|
- !ruby/object:Gem::Version
|
90
90
|
version: 2.13.1
|
91
91
|
type: :runtime
|
92
92
|
prerelease: false
|
93
93
|
version_requirements: !ruby/object:Gem::Requirement
|
94
94
|
requirements:
|
95
|
-
- -
|
95
|
+
- - ">="
|
96
96
|
- !ruby/object:Gem::Version
|
97
97
|
version: 2.13.1
|
98
98
|
description: Captcha-Plugin for Rails
|
@@ -103,8 +103,8 @@ extra_rdoc_files:
|
|
103
103
|
- LICENSE.txt
|
104
104
|
- README.rdoc
|
105
105
|
files:
|
106
|
-
- .gitignore
|
107
|
-
- .travis.yml
|
106
|
+
- ".gitignore"
|
107
|
+
- ".travis.yml"
|
108
108
|
- Gemfile
|
109
109
|
- Gemfile.lock
|
110
110
|
- LICENSE.txt
|
@@ -114,7 +114,7 @@ files:
|
|
114
114
|
- init.rb
|
115
115
|
- lib/easy_captcha.rb
|
116
116
|
- lib/easy_captcha/captcha.rb
|
117
|
-
- lib/easy_captcha/
|
117
|
+
- lib/easy_captcha/captcha_controller.rb
|
118
118
|
- lib/easy_captcha/controller_helpers.rb
|
119
119
|
- lib/easy_captcha/espeak.rb
|
120
120
|
- lib/easy_captcha/generator.rb
|
@@ -141,17 +141,17 @@ require_paths:
|
|
141
141
|
- lib
|
142
142
|
required_ruby_version: !ruby/object:Gem::Requirement
|
143
143
|
requirements:
|
144
|
-
- -
|
144
|
+
- - ">="
|
145
145
|
- !ruby/object:Gem::Version
|
146
146
|
version: '0'
|
147
147
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
148
148
|
requirements:
|
149
|
-
- -
|
149
|
+
- - ">="
|
150
150
|
- !ruby/object:Gem::Version
|
151
151
|
version: '0'
|
152
152
|
requirements: []
|
153
153
|
rubyforge_project:
|
154
|
-
rubygems_version: 2.
|
154
|
+
rubygems_version: 2.4.2
|
155
155
|
signing_key:
|
156
156
|
specification_version: 4
|
157
157
|
summary: Captcha-Plugin for Rails
|