rucaptcha 2.4.0 → 2.5.0

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
  SHA256:
3
- metadata.gz: dedcdb1109660abdd7154eba8afa5aa4b22a1ce0093b61d018b30de0c7c00367
4
- data.tar.gz: af218e451a34fd7a11a934c2a6d84f62a8c03342d87c9e7e4dc1534c79a2e07d
3
+ metadata.gz: 5a58f20f1ef6086b65e9757fe604e55139a56f44176e4ea46894b8710665d9b5
4
+ data.tar.gz: 9442b66aa703b5d1837cb573188f77bd24f15b175be88fc6d6bc8409134de186
5
5
  SHA512:
6
- metadata.gz: d29ad3b367a5dd326a9a3eb390a11b3dbcaf557d2520f68b7a244df3029e13e4ae878ea097ccde98ebcf3e7990402d679fde3082c3bf34b9d266d39f228d9174
7
- data.tar.gz: 0b10c69dbe3f77210f4fa450f3fc9c86721d26a6656980660de3051193e9a8617c5d6b38d747fa35196bf768ecbb24db37dc5fd369cd6d364ff9f853710c7a76
6
+ metadata.gz: '0830fbcb86e8a03ab8eda20bcb1256daf86a4c6c57627c56899b7f17c7e8eb7144d2ac434e2e2b6301e7b9767445fe1a9611a752bd3836039b454fbabe9d81c8'
7
+ data.tar.gz: f9e747a5adfc9388cb6c45d23088c6f374e45a0fd5d621d1b0dc0f35c3fb08469dc641ceb120a9068cb2aee7a738e22e18d81b61861c196d22f1e80a374d488b
@@ -1,3 +1,9 @@
1
+ 2.5.0
2
+ -------
3
+
4
+ - Support click captcha image to refresh new one by default.
5
+ - Use simple tag helper generate captcha img html, for avoid asset_host (#73).
6
+
1
7
  2.4.0
2
8
  -------
3
9
 
@@ -1,3 +1,3 @@
1
1
  module RuCaptcha
2
- VERSION = '2.4.0'
2
+ VERSION = '2.5.0'
3
3
  end
@@ -13,7 +13,9 @@ module RuCaptcha
13
13
 
14
14
  def rucaptcha_image_tag(opts = {})
15
15
  opts[:class] = opts[:class] || 'rucaptcha-image'
16
- image_tag(ru_captcha.root_path, opts)
16
+ opts[:src] = ru_captcha.root_path
17
+ opts[:onclick] = "this.src = '#{ru_captcha.root_path}?t=' + Date.now();"
18
+ tag(:img, opts)
17
19
  end
18
20
  end
19
21
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rucaptcha
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Lee
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-22 00:00:00.000000000 Z
11
+ date: 2019-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties