dalli_captcha 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +20 -20
- data/README.md +129 -127
- data/Rakefile +40 -40
- data/app/assets/javascripts/dalli_captcha/application.js +15 -15
- data/app/assets/stylesheets/dalli_captcha/application.css +13 -13
- data/app/controllers/dalli_captcha/application_controller.rb +4 -4
- data/app/controllers/dalli_captcha/captcha_controller.rb +13 -13
- data/app/helpers/dalli_captcha/application_helper.rb +4 -4
- data/app/views/layouts/dalli_captcha/application.html.erb +14 -14
- data/config/routes.rb +3 -3
- data/lib/dalli_captcha.rb +120 -120
- data/lib/dalli_captcha/controller.rb +14 -14
- data/lib/dalli_captcha/engine.rb +5 -5
- data/lib/dalli_captcha/image.rb +94 -94
- data/lib/dalli_captcha/key_handler.rb +41 -41
- data/lib/dalli_captcha/model.rb +45 -45
- data/lib/dalli_captcha/version.rb +3 -3
- data/lib/generators/install_generator.rb +21 -21
- data/lib/generators/templates/README +29 -29
- data/lib/generators/templates/dalli_captcha.rb +73 -73
- data/lib/tasks/dalli_captcha_tasks.rake +4 -4
- data/test/dalli_captcha_test.rb +7 -7
- data/test/dummy/README.rdoc +261 -261
- data/test/dummy/Rakefile +7 -7
- data/test/dummy/app/assets/javascripts/application.js +15 -15
- data/test/dummy/app/assets/stylesheets/application.css +13 -13
- data/test/dummy/app/controllers/application_controller.rb +3 -3
- data/test/dummy/app/helpers/application_helper.rb +2 -2
- data/test/dummy/app/views/layouts/application.html.erb +14 -14
- data/test/dummy/config.ru +4 -4
- data/test/dummy/config/application.rb +64 -64
- data/test/dummy/config/boot.rb +9 -9
- data/test/dummy/config/database.yml +25 -25
- data/test/dummy/config/environment.rb +5 -5
- data/test/dummy/config/environments/development.rb +37 -37
- data/test/dummy/config/environments/production.rb +67 -67
- data/test/dummy/config/environments/test.rb +37 -37
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -7
- data/test/dummy/config/initializers/inflections.rb +15 -15
- data/test/dummy/config/initializers/mime_types.rb +5 -5
- data/test/dummy/config/initializers/secret_token.rb +7 -7
- data/test/dummy/config/initializers/session_store.rb +8 -8
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -14
- data/test/dummy/config/locales/en.yml +5 -5
- data/test/dummy/config/routes.rb +4 -4
- data/test/dummy/log/development.log +95 -0
- data/test/dummy/public/404.html +26 -26
- data/test/dummy/public/422.html +26 -26
- data/test/dummy/public/500.html +25 -25
- data/test/dummy/script/rails +6 -6
- data/test/integration/navigation_test.rb +10 -10
- data/test/test_helper.rb +15 -15
- metadata +55 -54
data/test/dummy/script/rails
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
-
|
4
|
-
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
-
require File.expand_path('../../config/boot', __FILE__)
|
6
|
-
require 'rails/commands'
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
+
|
4
|
+
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
+
require File.expand_path('../../config/boot', __FILE__)
|
6
|
+
require 'rails/commands'
|
@@ -1,10 +1,10 @@
|
|
1
|
-
require 'test_helper'
|
2
|
-
|
3
|
-
class NavigationTest < ActionDispatch::IntegrationTest
|
4
|
-
fixtures :all
|
5
|
-
|
6
|
-
# test "the truth" do
|
7
|
-
# assert true
|
8
|
-
# end
|
9
|
-
end
|
10
|
-
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class NavigationTest < ActionDispatch::IntegrationTest
|
4
|
+
fixtures :all
|
5
|
+
|
6
|
+
# test "the truth" do
|
7
|
+
# assert true
|
8
|
+
# end
|
9
|
+
end
|
10
|
+
|
data/test/test_helper.rb
CHANGED
@@ -1,15 +1,15 @@
|
|
1
|
-
# Configure Rails Environment
|
2
|
-
ENV["RAILS_ENV"] = "test"
|
3
|
-
|
4
|
-
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
5
|
-
require "rails/test_help"
|
6
|
-
|
7
|
-
Rails.backtrace_cleaner.remove_silencers!
|
8
|
-
|
9
|
-
# Load support files
|
10
|
-
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
11
|
-
|
12
|
-
# Load fixtures from the engine
|
13
|
-
if ActiveSupport::TestCase.method_defined?(:fixture_path=)
|
14
|
-
ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
|
15
|
-
end
|
1
|
+
# Configure Rails Environment
|
2
|
+
ENV["RAILS_ENV"] = "test"
|
3
|
+
|
4
|
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
5
|
+
require "rails/test_help"
|
6
|
+
|
7
|
+
Rails.backtrace_cleaner.remove_silencers!
|
8
|
+
|
9
|
+
# Load support files
|
10
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
11
|
+
|
12
|
+
# Load fixtures from the engine
|
13
|
+
if ActiveSupport::TestCase.method_defined?(:fixture_path=)
|
14
|
+
ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
|
15
|
+
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dalli_captcha
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- javy_liu
|
@@ -15,8 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2013-
|
19
|
-
default_executable:
|
18
|
+
date: 2013-12-17 00:00:00 Z
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|
22
21
|
name: rails
|
@@ -73,58 +72,58 @@ extra_rdoc_files: []
|
|
73
72
|
|
74
73
|
files:
|
75
74
|
- app/views/layouts/dalli_captcha/application.html.erb
|
76
|
-
- app/assets/javascripts/dalli_captcha/application.js
|
77
|
-
- app/assets/stylesheets/dalli_captcha/application.css
|
78
|
-
- app/controllers/dalli_captcha/captcha_controller.rb
|
79
75
|
- app/controllers/dalli_captcha/application_controller.rb
|
76
|
+
- app/controllers/dalli_captcha/captcha_controller.rb
|
77
|
+
- app/assets/stylesheets/dalli_captcha/application.css
|
78
|
+
- app/assets/javascripts/dalli_captcha/application.js
|
80
79
|
- app/helpers/dalli_captcha/application_helper.rb
|
81
80
|
- config/routes.rb
|
82
|
-
- lib/dalli_captcha.rb
|
83
|
-
- lib/generators/templates/README
|
84
81
|
- lib/generators/templates/dalli_captcha.rb
|
82
|
+
- lib/generators/templates/README
|
85
83
|
- lib/generators/install_generator.rb
|
84
|
+
- lib/tasks/dalli_captcha_tasks.rake
|
85
|
+
- lib/dalli_captcha/controller.rb
|
86
86
|
- lib/dalli_captcha/model.rb
|
87
|
-
- lib/dalli_captcha/engine.rb
|
88
|
-
- lib/dalli_captcha/key_handler.rb
|
89
87
|
- lib/dalli_captcha/image.rb
|
90
88
|
- lib/dalli_captcha/version.rb
|
91
|
-
- lib/dalli_captcha/
|
92
|
-
- lib/
|
89
|
+
- lib/dalli_captcha/key_handler.rb
|
90
|
+
- lib/dalli_captcha/engine.rb
|
91
|
+
- lib/dalli_captcha.rb
|
93
92
|
- MIT-LICENSE
|
94
93
|
- Rakefile
|
95
94
|
- README.md
|
96
|
-
- test/
|
95
|
+
- test/dalli_captcha_test.rb
|
96
|
+
- test/dummy/public/422.html
|
97
|
+
- test/dummy/public/500.html
|
98
|
+
- test/dummy/public/favicon.ico
|
99
|
+
- test/dummy/public/404.html
|
100
|
+
- test/dummy/log/development.log
|
97
101
|
- test/dummy/app/views/layouts/application.html.erb
|
98
|
-
- test/dummy/app/assets/javascripts/application.js
|
99
|
-
- test/dummy/app/assets/stylesheets/application.css
|
100
102
|
- test/dummy/app/controllers/application_controller.rb
|
103
|
+
- test/dummy/app/assets/stylesheets/application.css
|
104
|
+
- test/dummy/app/assets/javascripts/application.js
|
101
105
|
- test/dummy/app/helpers/application_helper.rb
|
102
|
-
- test/dummy/public/favicon.ico
|
103
|
-
- test/dummy/public/404.html
|
104
|
-
- test/dummy/public/422.html
|
105
|
-
- test/dummy/public/500.html
|
106
|
-
- test/dummy/README.rdoc
|
107
106
|
- test/dummy/Rakefile
|
108
|
-
- test/dummy/
|
107
|
+
- test/dummy/README.rdoc
|
108
|
+
- test/dummy/script/rails
|
109
|
+
- test/dummy/config/routes.rb
|
110
|
+
- test/dummy/config/database.yml
|
111
|
+
- test/dummy/config/application.rb
|
109
112
|
- test/dummy/config/environments/test.rb
|
110
113
|
- test/dummy/config/environments/production.rb
|
111
|
-
- test/dummy/config/
|
112
|
-
- test/dummy/config/
|
113
|
-
- test/dummy/config/initializers/secret_token.rb
|
114
|
-
- test/dummy/config/initializers/mime_types.rb
|
114
|
+
- test/dummy/config/environments/development.rb
|
115
|
+
- test/dummy/config/boot.rb
|
115
116
|
- test/dummy/config/initializers/session_store.rb
|
117
|
+
- test/dummy/config/initializers/mime_types.rb
|
118
|
+
- test/dummy/config/initializers/secret_token.rb
|
119
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
116
120
|
- test/dummy/config/initializers/backtrace_silencers.rb
|
117
|
-
- test/dummy/config/
|
118
|
-
- test/dummy/config/routes.rb
|
121
|
+
- test/dummy/config/initializers/inflections.rb
|
119
122
|
- test/dummy/config/environment.rb
|
120
|
-
- test/dummy/config/boot.rb
|
121
|
-
- test/dummy/config/database.yml
|
122
123
|
- test/dummy/config/locales/en.yml
|
123
|
-
- test/dummy/script/rails
|
124
124
|
- test/dummy/config.ru
|
125
|
-
- test/
|
125
|
+
- test/test_helper.rb
|
126
126
|
- test/integration/navigation_test.rb
|
127
|
-
has_rdoc: true
|
128
127
|
homepage: https://github.com/javyliu/dalli_captcha
|
129
128
|
licenses: []
|
130
129
|
|
@@ -154,39 +153,41 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
154
153
|
requirements: []
|
155
154
|
|
156
155
|
rubyforge_project:
|
157
|
-
rubygems_version: 1.
|
156
|
+
rubygems_version: 1.8.24
|
158
157
|
signing_key:
|
159
158
|
specification_version: 3
|
160
159
|
summary: generate captcha by dalli
|
161
160
|
test_files:
|
162
|
-
- test/
|
161
|
+
- test/dalli_captcha_test.rb
|
162
|
+
- test/dummy/public/422.html
|
163
|
+
- test/dummy/public/500.html
|
164
|
+
- test/dummy/public/favicon.ico
|
165
|
+
- test/dummy/public/404.html
|
166
|
+
- test/dummy/log/development.log
|
163
167
|
- test/dummy/app/views/layouts/application.html.erb
|
164
|
-
- test/dummy/app/assets/javascripts/application.js
|
165
|
-
- test/dummy/app/assets/stylesheets/application.css
|
166
168
|
- test/dummy/app/controllers/application_controller.rb
|
169
|
+
- test/dummy/app/assets/stylesheets/application.css
|
170
|
+
- test/dummy/app/assets/javascripts/application.js
|
167
171
|
- test/dummy/app/helpers/application_helper.rb
|
168
|
-
- test/dummy/public/favicon.ico
|
169
|
-
- test/dummy/public/404.html
|
170
|
-
- test/dummy/public/422.html
|
171
|
-
- test/dummy/public/500.html
|
172
|
-
- test/dummy/README.rdoc
|
173
172
|
- test/dummy/Rakefile
|
174
|
-
- test/dummy/
|
173
|
+
- test/dummy/README.rdoc
|
174
|
+
- test/dummy/script/rails
|
175
|
+
- test/dummy/config/routes.rb
|
176
|
+
- test/dummy/config/database.yml
|
177
|
+
- test/dummy/config/application.rb
|
175
178
|
- test/dummy/config/environments/test.rb
|
176
179
|
- test/dummy/config/environments/production.rb
|
177
|
-
- test/dummy/config/
|
178
|
-
- test/dummy/config/
|
179
|
-
- test/dummy/config/initializers/secret_token.rb
|
180
|
-
- test/dummy/config/initializers/mime_types.rb
|
180
|
+
- test/dummy/config/environments/development.rb
|
181
|
+
- test/dummy/config/boot.rb
|
181
182
|
- test/dummy/config/initializers/session_store.rb
|
183
|
+
- test/dummy/config/initializers/mime_types.rb
|
184
|
+
- test/dummy/config/initializers/secret_token.rb
|
185
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
182
186
|
- test/dummy/config/initializers/backtrace_silencers.rb
|
183
|
-
- test/dummy/config/
|
184
|
-
- test/dummy/config/routes.rb
|
187
|
+
- test/dummy/config/initializers/inflections.rb
|
185
188
|
- test/dummy/config/environment.rb
|
186
|
-
- test/dummy/config/boot.rb
|
187
|
-
- test/dummy/config/database.yml
|
188
189
|
- test/dummy/config/locales/en.yml
|
189
|
-
- test/dummy/script/rails
|
190
190
|
- test/dummy/config.ru
|
191
|
-
- test/
|
191
|
+
- test/test_helper.rb
|
192
192
|
- test/integration/navigation_test.rb
|
193
|
+
has_rdoc:
|