rucaptcha 3.2.1-arm64-darwin → 3.2.2-arm64-darwin

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: 51237fa388355746358f8992a9cdf362e84250f6e009cac013a6208be553a544
4
- data.tar.gz: 1abfc000608912a27530a4dfed9650801171828c2ba1d7527b70aab89bcf40cb
3
+ metadata.gz: 1a94dd5cd56121d6e1d8388597478fb1141e8c591af560f3b66c0c812b6bba7a
4
+ data.tar.gz: 6f88a21e0bca580e3e8d3d1ebedc1a148fe973456abac58a97b10260d32182a3
5
5
  SHA512:
6
- metadata.gz: 52ea15a7f3d83d7dd5549af8c90a2e959b18d7acf21488cfa2fb2e363c0bea3b192659f391d90d40c2dc59abd17986a5a116d2bdf0afca187cd7986218f0e0d7
7
- data.tar.gz: bc987d407376d54d2e6ef4815e2f040ba6b22aac32733d8371384bbeaf81f49fdcec65b6c8be144f6ae10e8b117920d09951202dd6252ca0f596b7cff8de5b7d
6
+ metadata.gz: f5df097f1176ce3c64db9aea401d3fb25708b1abd2ecb44296776aca50e69bb5dfeb9baa505c16481c7bc3fb5d5286ddb029abe65b12ee817e72dd5c3796bf13
7
+ data.tar.gz: 84fe6e2ca59ca648d17409b12d491caf20924e1725b7cef3ff17aa25d334b433450e0659ba13d68474130ca2f3d9b089c14bd273a136cd2602bfced6c96d1f6b
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: arm64-darwin
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