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

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: fd7d85f663d4d6add56fd9fe551664f7964c42aeb529631db0f877178981525c
4
- data.tar.gz: cea8fa959b4752a1d111168dece80611fe679619c785b4df97e83ad0dd525158
3
+ metadata.gz: b3341ed0c4d97f6ab74e316827050ccaed3ab5553f652382fb05e19726299fd6
4
+ data.tar.gz: 80b6072bb80c6d16408610fd95ef27b44bf4c6b6d43ead6fa18c744a64c64912
5
5
  SHA512:
6
- metadata.gz: e8fc0ab7ea4481a5468deec39731c82700680614f9d2571f6b68480843ed8eaa79081e1748cbfadeb405b6d8d1bf0771387170b5ed06f5cea6000f861767f346
7
- data.tar.gz: c310d5cd190ea3437aa5a17acd464212a2bc2d24018dec05617ab9d57b910fa190964d5052e64e9bad682d72767fc25f8cd80deffb17daadc5be591956f4698e
6
+ metadata.gz: 6857a3556271ae2e2898f48665e0b68e28b53b51e2f9b51083434cb3b04c7a97f1da0b333b66b2b36da2f4915fb598d2f3c77fa9561e72bc9299957f8dfedadc
7
+ data.tar.gz: c20c38a3831ccc9373073411a57fd34f405753876cc9b3f3cef989371c33facf04c9c713294c6c5b75e2a521bd6565e91510d8ae30a509728516d150b8369a2f
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-musl
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