rucaptcha 3.2.1-x86_64-darwin → 3.2.2-x86_64-darwin

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: 2a1a13794617c31afe6ea7158f8f787073696736d575c1481348e9e924737f6b
4
- data.tar.gz: ce7f6ad01ba473d8408e2f1b5a50e181a720dab17ae6ffb45a6d2645b13d6abf
3
+ metadata.gz: 898e6caf92b4973984791950c1cd43d631bafe5a583764d4548b1d2eb55d0c56
4
+ data.tar.gz: '0258e74e793b73548de21ea8c5656a447d207169246bd962fc5edfd25dde81fd'
5
5
  SHA512:
6
- metadata.gz: 6a4cca70dfb333b9e80f1e85ddf2f04ba0df6fd93930c6523754046b3b697c06c767f9f40ccb61e283da1618fbefb0dc198eb77e4f3e36c556db2cf8268341b9
7
- data.tar.gz: 3f51f5d5bf53f115c9f96783e8f9dfcaee46bc408ce987f41a17d3f5547538a1af96b16d2c42a1173aa1314656779a60214aad2d6484a1e2b084f817849cd08d
6
+ metadata.gz: 1f5b05924369a6f5de341f023dc6d9d2efb61b12b21256d930b6038639c6848038c10a221c100cbcec189517ee054dab2cd07df2a6a46f2e2fbd76609d65e19a
7
+ data.tar.gz: cd0c2a3782639d272fe0e9db492d09afbdc20e5fa079060303f3ce7508e3a0adbffc7d3cdd86b4efbfa00a6696d687fc10ee73cc8b66cd22912175a912b0b94e
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-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