zero-captcha 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 658cd74afd71abe91c157709e3e60d704b6b0a82
4
- data.tar.gz: 86b3dde1bb84720f46d771dd78889975fe51d783
3
+ metadata.gz: 32ca6d981dce7e6d0d1aedb7b3ea4d334c1dcbce
4
+ data.tar.gz: 134f7fe4f76a173cb2f3c244e0ea6a1603dd3efd
5
5
  SHA512:
6
- metadata.gz: a738d76b1afc84c2dc7d514097cba36b60d5334e456c2c6f77f3fba7260c7a514bffec8083b0de82f4740409809c7434cc742c7b3a90235e55eaf33f35f225bc
7
- data.tar.gz: 155f6a022d20a148b9630a309f5b84324c21064d7867ceb7dd874fe346b793d08ddbfa8d2744ff7d8524e1940ba9bde08fce06963f36f8613381cdba2adfca1a
6
+ metadata.gz: 3972b53a08f9d071080b5d1cde2d1478fa913089b1210e9ec7ff22ffedab79244a5530e8d487b156a7ea04588e534ecfeb3d8d044d62c0097ec042d302bd8068
7
+ data.tar.gz: 00a5818fed16ac1c45865117ad333392dc51db689a078e9b65845a47ad14c8c07af7a0cafc75c566d05934746efeac272ded185bdf6bec88c20815ebfca2fcb0
@@ -2,9 +2,9 @@
2
2
  module ActionView
3
3
  module Helpers
4
4
  module FormTagHelper
5
- def form_tag_with_zero_captcha(url_for_options = {}, options = {}, *parameters_for_url, &block)
6
- zero_captcha = options.delete(:zero_captcha)
7
- html = form_tag_without_zero_captcha(url_for_options, options, *parameters_for_url, &block)
5
+ def form_tag_html_with_zero_captcha(options)
6
+ zero_captcha = options.delete(:zero_captcha) || options.delete('zero_captcha')
7
+ html = form_tag_html_without_zero_captcha(options)
8
8
  if zero_captcha
9
9
  captcha = "".respond_to?(:html_safe) ? zero_captcha_html.html_safe : zero_captcha
10
10
  if block_given?
@@ -15,7 +15,7 @@ module ActionView
15
15
  end
16
16
  html
17
17
  end
18
- alias_method_chain :form_tag, :zero_captcha
18
+ alias_method_chain :form_tag_html, :zero_captcha
19
19
 
20
20
  private
21
21
  def zero_captcha_html
@@ -30,4 +30,4 @@ module ActionView
30
30
  end
31
31
  end
32
32
  end
33
- end
33
+ end
@@ -1,7 +1,7 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  Gem::Specification.new do |s|
3
3
  s.name = %q{zero-captcha}
4
- s.version = "0.0.1"
4
+ s.version = "0.0.2"
5
5
 
6
6
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
7
7
  s.authors = ['lunaru']
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zero-captcha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - lunaru