glebtv-simple_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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9980ac127acdff80390c9b27a4c7518fb8fab80e
|
4
|
+
data.tar.gz: 75a6753b24bfc28f4a1612d8a07d9d6b41cfca15
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79f2de83c13aac4426ac6ad591bbb8d996d02918ed9e4822a3d5f7bb479942451bbe7ea63b463b47667fb4711eabd2abc5b2617d0e95a67a8dc159782fa46f2c
|
7
|
+
data.tar.gz: 5e6e4a71e87acc14f835695cea9b04e333d3a96f9efba51a5c10e8572beda5b32a4ce62b07c414b49bc51d9ddf088291daf7a47da8231f05ea51d7c4140847bd
|
@@ -6,17 +6,20 @@ class SimpleCaptchaGenerator < Rails::Generators::Base
|
|
6
6
|
def self.source_root
|
7
7
|
@source_root ||= File.expand_path(File.join(File.dirname(__FILE__), 'templates/'))
|
8
8
|
end
|
9
|
-
|
9
|
+
|
10
10
|
def create_partial
|
11
11
|
template "partial.erb", File.join('app/views', 'simple_captcha', "_simple_captcha.erb")
|
12
12
|
end
|
13
13
|
|
14
14
|
unless defined?(Mongoid)
|
15
|
+
|
15
16
|
def self.next_migration_number(dirname)
|
16
17
|
Time.now.strftime("%Y%m%d%H%M%S")
|
17
18
|
end
|
18
|
-
|
19
|
+
|
20
|
+
def create_captcha_migration
|
19
21
|
migration_template "migration.rb", File.join('db/migrate', "create_simple_captcha_data.rb")
|
20
22
|
end
|
23
|
+
|
21
24
|
end
|
22
25
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: glebtv-simple_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
|
- GlebTv
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-09-
|
11
|
+
date: 2014-09-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|