rucaptcha 3.2.1-x86_64-linux → 3.2.2-x86_64-linux

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
  SHA256:
3
- metadata.gz: 443adfe7391c1c8062b96b0890fed2c8354353e6c04cfa1a507be9f5d49c9ffd
4
- data.tar.gz: 52f304701ae8050a9a6c138a9c7f001c9702cf01ad4a435aaff380424da01ebd
3
+ metadata.gz: b9929c47ee05d21aaa93af6c757c0d9026a018455682b1ea32abf93fe016fe2e
4
+ data.tar.gz: 810713f651e42cf7ae5fb03192327c3de8b70284fdddaa9469b2bc230d37dd97
5
5
  SHA512:
6
- metadata.gz: 8cfb2e03d406ed164f933798093378ad155a4d588b0a974e36eb8b358f337670a2e82d3ca13da4e9f2952d822000296c96383f91b5c513f84996bf6080fcebc3
7
- data.tar.gz: 3cf502b3cba9bb13096514e383571afadd5f2db6caf0d068c0f49cc00ce3da28b233352275250b6234e1210b40734c3356300d473d19f90f18bc39e77c05a9da
6
+ metadata.gz: c15d8a70f57136f75a83c61fb5596da152e02394d1640fa0f35279cabeec9cfc3ad5d97b326376eaed48076e984ab86b56827445017056add80c28bbccf0c137
7
+ data.tar.gz: ac734b427b500e44866363b09d60bbb2ccd2824b800bb9ceb59f3a4458ca726b26cac49b5f3b47f15902584abbb69f4f6c56120d1080f3fd0afb40c076ac3cbb
data/README.md CHANGED
@@ -61,6 +61,9 @@ RuCaptcha.configure do
61
61
 
62
62
  # Set the image format, default: png, allows: [jpeg, png, webp]
63
63
  # self.format = 'png'
64
+
65
+ # Custom mount path, default: '/rucaptcha'
66
+ # self.mount_path = '/rucaptcha'
64
67
  end
65
68
  ```
66
69
 
Binary file
Binary file
@@ -17,5 +17,7 @@ module RuCaptcha
17
17
  attr_accessor :format
18
18
  # skip_cache_store_check, default: false
19
19
  attr_accessor :skip_cache_store_check
20
+ # custom rucaptcha mount path, default: '/rucaptcha'
21
+ attr_accessor :mount_path
20
22
  end
21
23
  end
@@ -6,7 +6,7 @@ module RuCaptcha
6
6
  # https://github.com/rails/rails/blob/3-2-stable/actionpack/lib/action_dispatch/routing/route_set.rb#L268
7
7
  # `app.routes.prepend` start from Rails 3.2 - 5.0
8
8
  app.routes.prepend do
9
- mount RuCaptcha::Engine => "/rucaptcha"
9
+ mount RuCaptcha::Engine => RuCaptcha.config.mount_path
10
10
  end
11
11
 
12
12
  RuCaptcha.check_cache_store! unless RuCaptcha.config.skip_cache_store_check
@@ -1,3 +1,3 @@
1
1
  module RuCaptcha
2
- VERSION = "3.2.1"
2
+ VERSION = "3.2.2"
3
3
  end
data/lib/rucaptcha.rb CHANGED
@@ -31,6 +31,7 @@ module RuCaptcha
31
31
  @config.line = true
32
32
  @config.noise = true
33
33
  @config.format = "png"
34
+ @config.mount_path = "/rucaptcha"
34
35
 
35
36
  @config.cache_store = if Rails.application
36
37
  Rails.application.config.cache_store
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: 3.2.1
4
+ version: 3.2.2
5
5
  platform: x86_64-linux
6
6
  authors:
7
7
  - Jason Lee
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-09 00:00:00.000000000 Z
11
+ date: 2023-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties