glebtv-simple_captcha 0.6.5 → 0.6.7

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: 9980ac127acdff80390c9b27a4c7518fb8fab80e
4
- data.tar.gz: 75a6753b24bfc28f4a1612d8a07d9d6b41cfca15
3
+ metadata.gz: 51f918db5a2e85b3420d2e8e894d4955287d6614
4
+ data.tar.gz: cab23a9929ddf2eb87144466c979f595c99b0953
5
5
  SHA512:
6
- metadata.gz: 79f2de83c13aac4426ac6ad591bbb8d996d02918ed9e4822a3d5f7bb479942451bbe7ea63b463b47667fb4711eabd2abc5b2617d0e95a67a8dc159782fa46f2c
7
- data.tar.gz: 5e6e4a71e87acc14f835695cea9b04e333d3a96f9efba51a5c10e8572beda5b32a4ce62b07c414b49bc51d9ddf088291daf7a47da8231f05ea51d7c4140847bd
6
+ metadata.gz: 0a606223a9803296d8b246464cc48bd0354b32bd8248dbea69311b9415c5d9b6f883fdf28c89623ece09f66ead2e98281b4a50e5cab4b21b141a0e4b013c03d5
7
+ data.tar.gz: 3430a30edbb9c1f37537eced825ba976aead0c8fcb66fdd1c7b04a011ba6b5216669faacf6c0cc9d16cb0dd89b2d6089af2835d648537d3937db0ec1b4360eb9
@@ -9,14 +9,14 @@ module SimpleCaptcha
9
9
 
10
10
  module ClassMethods
11
11
  # Example:
12
- # <% form_for :post, :url => posts_path do |form| %>
13
- # ...
14
- # <%= form.simple_captcha :label => "Enter numbers.." %>
15
- # <% end %>
16
- #
17
- def simple_captcha(options = {})
18
- options.update :object => @object_name
19
- show_simple_captcha(objectify_options(options))
12
+ # <% form_for :post, :url => posts_path do |form| %>
13
+ # ...
14
+ # <%= form.simple_captcha :label => "Enter numbers.." %>
15
+ # <% end %>
16
+ #
17
+ def simple_captcha(options = {})
18
+ options.update :object => @object_name
19
+ show_simple_captcha(objectify_options(options))
20
20
  end
21
21
 
22
22
  private
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module SimpleCaptcha
4
- VERSION = "0.6.5".freeze
4
+ VERSION = "0.6.7".freeze
5
5
  end
@@ -62,7 +62,7 @@ module SimpleCaptcha #:nodoc
62
62
  defaults[:time] = options[:time] || Time.now.to_i
63
63
 
64
64
  query = defaults.collect{ |key, value| "#{key}=#{value}" }.join('&')
65
- url = "/simple_captcha?code=#{sc_key}&#{query}"
65
+ url = "/simple_captcha?code=#{sc_key}&amp;#{query}"
66
66
 
67
67
  "<img src='#{url}' alt='captcha' />".html_safe
68
68
  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.5
4
+ version: 0.6.7
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-19 00:00:00.000000000 Z
11
+ date: 2014-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport