rucaptcha 3.2.1-arm64-darwin → 3.2.3-arm64-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: 51237fa388355746358f8992a9cdf362e84250f6e009cac013a6208be553a544
4
- data.tar.gz: 1abfc000608912a27530a4dfed9650801171828c2ba1d7527b70aab89bcf40cb
3
+ metadata.gz: 2b25deb4912e08f7dd2912122aa07cbba428a3ccb1e4e8a4ea4183abbea33a01
4
+ data.tar.gz: e42b3ef086de1ba68188ee56b76c3604d0d49022de3c37f398c683dccc31e867
5
5
  SHA512:
6
- metadata.gz: 52ea15a7f3d83d7dd5549af8c90a2e959b18d7acf21488cfa2fb2e363c0bea3b192659f391d90d40c2dc59abd17986a5a116d2bdf0afca187cd7986218f0e0d7
7
- data.tar.gz: bc987d407376d54d2e6ef4815e2f040ba6b22aac32733d8371384bbeaf81f49fdcec65b6c8be144f6ae10e8b117920d09951202dd6252ca0f596b7cff8de5b7d
6
+ metadata.gz: 1614ba15e362ac5845d9b8ca8d86971837cccc38de19529d7c755947cf92e873e705dcf7c8d4de4aae6380c5b2abe5648b5aff28283dc6976452b8ae578d242a
7
+ data.tar.gz: ab760c3d193058a26b6450204eea186bd84177779b96d7cc2f65702b54ccbeb41edf5806299f21e4b31044dccf1804d5a7f604beb03ef23e1703908695bcad0b
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
 
@@ -7,8 +7,8 @@ version = "3.0.0"
7
7
  crate-type = ["cdylib"]
8
8
 
9
9
  [dependencies]
10
- image = "0.24.4"
11
- imageproc = "0.23.0"
12
- magnus = "0.4"
10
+ image = "0.24"
11
+ imageproc = "0.23"
12
+ magnus = "0.6"
13
13
  rand = "0.8.5"
14
14
  rusttype = "0.9.2"
@@ -23,7 +23,7 @@ pub fn create(
23
23
 
24
24
  #[magnus::init]
25
25
  fn init() -> Result<(), Error> {
26
- let class = define_class("RuCaptchaCore", Default::default())?;
26
+ let class = define_class("RuCaptchaCore", magnus::class::object())?;
27
27
  class.define_singleton_method("create", function!(create, 5))?;
28
28
 
29
29
  Ok(())
Binary file
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.3"
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.3
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: 2024-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -31,14 +31,14 @@ dependencies:
31
31
  requirements:
32
32
  - - ">="
33
33
  - !ruby/object:Gem::Version
34
- version: 0.9.18
34
+ version: 0.9.86
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - ">="
40
40
  - !ruby/object:Gem::Version
41
- version: 0.9.18
41
+ version: 0.9.86
42
42
  description:
43
43
  email: huacnlee@gmail.com
44
44
  executables: []
@@ -64,6 +64,7 @@ files:
64
64
  - lib/rucaptcha.rb
65
65
  - lib/rucaptcha/3.1/rucaptcha.bundle
66
66
  - lib/rucaptcha/3.2/rucaptcha.bundle
67
+ - lib/rucaptcha/3.3/rucaptcha.bundle
67
68
  - lib/rucaptcha/cache.rb
68
69
  - lib/rucaptcha/configuration.rb
69
70
  - lib/rucaptcha/controller_helpers.rb
@@ -86,7 +87,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
86
87
  version: '3.1'
87
88
  - - "<"
88
89
  - !ruby/object:Gem::Version
89
- version: 3.3.dev
90
+ version: 3.4.dev
90
91
  required_rubygems_version: !ruby/object:Gem::Requirement
91
92
  requirements:
92
93
  - - ">="