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: dc5999d4927a2512e4154dd7c9983768baba050d
4
- data.tar.gz: e9072c56cc945278f16b3db6ec69d6979332ebb2
3
+ metadata.gz: 9980ac127acdff80390c9b27a4c7518fb8fab80e
4
+ data.tar.gz: 75a6753b24bfc28f4a1612d8a07d9d6b41cfca15
5
5
  SHA512:
6
- metadata.gz: 4e3a21f902fc0a2a641e5359c07e1f8daa74c47b00835d7d21ac6f027bab94b2dd1c99db260451e63f83f364734bbc460aef71b6600bc835ab46de95a937cc19
7
- data.tar.gz: 6cf68012dca26c54158648e2b754abaaaaa3c30fd54070cfa920b5c995a93587eff17c3abc8b281e39d683c8a3380f6c56557099083cf367cb067ea8524df321
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
- def create_migration
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
@@ -31,7 +31,7 @@ module SimpleCaptcha
31
31
  else
32
32
  [500, {
33
33
  "Content-Type" => 'text/plain',
34
- }, "captcha error"]
34
+ }, ["captcha error"]]
35
35
  end
36
36
  end
37
37
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module SimpleCaptcha
4
- VERSION = "0.6.4".freeze
4
+ VERSION = "0.6.5".freeze
5
5
  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
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-17 00:00:00.000000000 Z
11
+ date: 2014-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport