rucaptcha 3.2.1-aarch64-linux → 3.2.2-aarch64-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: 07dc437c4f78d43993d6a88b1ccefbc22a9e7e9bfbb8c1ccf72f521da3137c3e
4
- data.tar.gz: 334852e0a0eb3fa484b8fbf3066588ff4314a93da63723368e599df60b5a1df4
3
+ metadata.gz: 29ed42582e9a236c464d5e4704997b7cbe651af4f3d775ab84778fbba8590e84
4
+ data.tar.gz: 1595d58857150b8ab6c6df16c877434af6074ff8b10985f7437903f1b48d3a21
5
5
  SHA512:
6
- metadata.gz: f94eb6c8add90193cdee9ef058d77f736c385037c8d50fea3136272cffdd7e0f40db7a22d061643fbc0a09f9e30dff184a6a9278e044aa09bf25f37bf9f7b321
7
- data.tar.gz: a06c3c0ea866868048bec68294de35f6682fec110d53093d4d5240b5705a3c65f4c5ac8881737c0152e68ae08694db7d8fd970b4b525093bb3ff18ac43759e1d
6
+ metadata.gz: a8be780aa01aff1b9dac6d2d1f676f4f3933a78d76a77f4831981278a2604d1b9beef9c445edb6e616fd48c3aa005bb5d446e1530881aca6c3abd72061040eaf
7
+ data.tar.gz: dc1b62f56cd021532882d7196a9d925e818533a5f73573cf935ad4dd632f0677da6b3aebb722b456943bb0db30441bdce9beb49e35bc181e7c817e27aef7d95b
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: aarch64-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