rucaptcha 2.0.0 → 2.0.1

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: 3d77f76c426739b1dff568c242d92e8aab993894
4
- data.tar.gz: ce46de282f893b397a26c82bd7071090a2e9a405
3
+ metadata.gz: 15f0630f65c56c2c3917cc9f7d4f5f66c77a5432
4
+ data.tar.gz: 3b09aeb3dc733ccff720442f19b4223d6920235f
5
5
  SHA512:
6
- metadata.gz: a0f3f2fb8b5055f82019568aad37d8d927fb5dfc8c68325ec437f9c5d2746b826cb0e42b0868e5088f4e93bcab2e48c6a58ff6ce7aeae5364417436a42019690
7
- data.tar.gz: fcef86bd39c1facaa06fc399947298477ba8924ede6091e6351379293b8d22db6be792706a4c79e07f4358febcea078bd8eacacb28928fa87127926be1f685ff
6
+ metadata.gz: f3fd6b818c4338a7096f5b5e8db2ad84fa2d54a3ad8739fe363cb230078a1d18a89383a0ea6a5f8e7f00d33c869e981fb5dbfb434a6be5ade19796a12b462aa5
7
+ data.tar.gz: f64425173ea27360a4c6acb2e0b2f6b023bab568cf45474cc5966368d703af1202ec842ef0f3b50abded6f6b2e2b7842a4b7e1ab0dad7242ad8d184abd0822f7
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ 2.0.1
2
+ -----
3
+
4
+ - Fix `/rucaptcha` path issue when `config.action_controller.asset_host` has setup with CDN url.
5
+
1
6
  2.0.0
2
7
  -----
3
8
 
data/README.md CHANGED
@@ -32,14 +32,16 @@ Create `config/initializers/rucaptcha.rb`
32
32
  ```rb
33
33
  RuCaptcha.configure do
34
34
  # Color style, default: :colorful, allows: [:colorful, :black_white]
35
- # self.style = :colorful
35
+  # self.style = :colorful
36
36
  # Custom captcha code expire time if you need, default: 2 minutes
37
37
  # self.expires_in = 120
38
- # [Requirement]
38
+  # [Requirement/重要]
39
39
  # Store Captcha code where, this config more like Rails config.cache_store
40
- # default: Rails application config.cache_store
40
+ # default: Read config info from `Rails.application.config.cache_store`
41
41
  # But RuCaptcha requirements cache_store not in [:null_store, :memory_store, :file_store]
42
- self.cache_store = :mem_cache_store
42
+  # 默认:会从 Rails 配置的 cache_store 里面读取相同的配置信息,用于存储验证码字符
43
+  # 但如果是 [:null_store, :memory_store, :file_store] 之类的,你可以通过下面的配置项单独给 RuCaptcha 配置 cache_store
44
+  self.cache_store = :mem_cache_store
43
45
  end
44
46
  ```
45
47
 
@@ -1,3 +1,3 @@
1
1
  module RuCaptcha
2
- VERSION = '2.0.0'
2
+ VERSION = '2.0.1'
3
3
  end
@@ -13,7 +13,7 @@ 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
+ image_tag(ru_captcha.root_url, opts)
17
17
  end
18
18
  end
19
19
  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.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Lee
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-22 00:00:00.000000000 Z
11
+ date: 2017-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -87,6 +87,6 @@ rubyforge_project:
87
87
  rubygems_version: 2.5.2
88
88
  signing_key:
89
89
  specification_version: 4
90
- summary: This is a Captcha gem for Rails Application. It run ImageMagick command to
91
- draw Captcha image.
90
+ summary: This is a Captcha gem for Rails Applications. It drawing captcha image with
91
+ C code so it no dependencies.
92
92
  test_files: []