rucaptcha 3.2.1 → 3.2.2

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: 69d5732ca5d694b77dd457aa7dc5656c6178563a6e7a8d450fd6c48f1d0cd452
4
- data.tar.gz: 16bf1270d6fca00cc28aa3439ed3c3111e16285ee77ab6049ecb55a4e634fe18
3
+ metadata.gz: 24b491260133ee3083be422d876600c7c47ce86a12e03485e2010090b44d37d9
4
+ data.tar.gz: b7ff5de5927108b718557241b7fca6b328bf70ecb6950771827077ac86e7d153
5
5
  SHA512:
6
- metadata.gz: c0aaeef33d8ac21f4d60b921c474803a23459314dfc3cdccd6bc0c2ef256c337ad0141525ea46c744a395ac98596a2a7472099dcd4011089365edf3de7c5447a
7
- data.tar.gz: 6793030fe52099c1adc81635f40325e3d2a1788bccea85e9b9d65d837080311e916e526c43acdac8d851c7bca34180b1894469ad698a94807338c418aa6d9d18
6
+ metadata.gz: 5b8ae6b9c27ab362b7d6e182b3f393889a97d408cd1caf2043279f816698f21146bc8fc7796f45737a5a0bd67baadb1cbbb0dbd31a241d98a0654ed477cdadbe
7
+ data.tar.gz: 7c41293a8e7ce59da10b1d3f654c399361b276907e7ddce5640fc7077fa361f043c39690c9fcb4580bf28a2e8bd0c91f15561a0a911be591d16cd6db64994531
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
 
@@ -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: ruby
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
@@ -24,6 +24,7 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '3.2'
27
+ force_ruby_platform: false
27
28
  - !ruby/object:Gem::Dependency
28
29
  name: rb_sys
29
30
  requirement: !ruby/object:Gem::Requirement
@@ -81,14 +82,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
81
82
  requirements:
82
83
  - - ">="
83
84
  - !ruby/object:Gem::Version
84
- version: 2.7.0
85
+ version: 3.1.0
85
86
  required_rubygems_version: !ruby/object:Gem::Requirement
86
87
  requirements:
87
88
  - - ">="
88
89
  - !ruby/object:Gem::Version
89
90
  version: '0'
90
91
  requirements: []
91
- rubygems_version: 3.4.10
92
+ rubygems_version: 3.4.4
92
93
  signing_key:
93
94
  specification_version: 4
94
95
  summary: Captcha Gem for Rails, which generates captcha image by Rust.