simple_captcha2 0.2.2 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generators/simple_captcha_generator.rb +4 -4
- data/lib/simple_captcha/version.rb +1 -1
- metadata +1 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0401ddefd37ff7c64933e59e0e566eaee4e08a1c
|
4
|
+
data.tar.gz: b99fdd1ed6cfe0ec1c7a3be92350088519eb7ffa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ae6e1789366fa57acf8b79ce513b89a9ccd5883758f4c13744added5ed67ec5a26277f53b20c595619b9ea010a04710f8b652146e5fafd9e950e3e5775802ac
|
7
|
+
data.tar.gz: 4621447431ab5dfef36657bbcbe682287470c7cfdb1e039401d8377bae871446a7e7c716111a6eb5a5f758c0787508aa93a6f11f0436c59a2c0fc0a3d5b919de
|
@@ -2,7 +2,7 @@ require 'rails/generators'
|
|
2
2
|
|
3
3
|
class SimpleCaptchaGenerator < Rails::Generators::Base
|
4
4
|
include Rails::Generators::Migration
|
5
|
-
|
5
|
+
|
6
6
|
def self.source_root
|
7
7
|
@source_root ||= File.expand_path(File.join(File.dirname(__FILE__), 'templates/'))
|
8
8
|
end
|
@@ -10,12 +10,12 @@ class SimpleCaptchaGenerator < Rails::Generators::Base
|
|
10
10
|
def self.next_migration_number(dirname)
|
11
11
|
Time.now.strftime("%Y%m%d%H%M%S")
|
12
12
|
end
|
13
|
-
|
13
|
+
|
14
14
|
def create_partial
|
15
15
|
template "partial.erb", File.join('app/views', 'simple_captcha', "_simple_captcha.erb")
|
16
16
|
end
|
17
|
-
|
18
|
-
def
|
17
|
+
|
18
|
+
def create_captcha_migration
|
19
19
|
migration_template "migration.rb", File.join('db/migrate', "create_simple_captcha_data.rb")
|
20
20
|
end
|
21
21
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_captcha2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pavlo Galeta
|
@@ -17,9 +17,6 @@ dependencies:
|
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
19
|
- - ">="
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: '3.1'
|
22
|
-
- - "<"
|
23
20
|
- !ruby/object:Gem::Version
|
24
21
|
version: '4.1'
|
25
22
|
type: :runtime
|
@@ -27,9 +24,6 @@ dependencies:
|
|
27
24
|
version_requirements: !ruby/object:Gem::Requirement
|
28
25
|
requirements:
|
29
26
|
- - ">="
|
30
|
-
- !ruby/object:Gem::Version
|
31
|
-
version: '3.1'
|
32
|
-
- - "<"
|
33
27
|
- !ruby/object:Gem::Version
|
34
28
|
version: '4.1'
|
35
29
|
- !ruby/object:Gem::Dependency
|