rucaptcha 3.2.1-aarch64-linux → 3.2.3-aarch64-linux

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: 07dc437c4f78d43993d6a88b1ccefbc22a9e7e9bfbb8c1ccf72f521da3137c3e
4
- data.tar.gz: 334852e0a0eb3fa484b8fbf3066588ff4314a93da63723368e599df60b5a1df4
3
+ metadata.gz: ae64922988cfd669df4bad6dc6d8c6c547f0bbed0398c88fd69b5543392550f7
4
+ data.tar.gz: 847852d89fba69328b0a3c789b73dfff3f884dbb52c1700c0a3329d054a841ed
5
5
  SHA512:
6
- metadata.gz: f94eb6c8add90193cdee9ef058d77f736c385037c8d50fea3136272cffdd7e0f40db7a22d061643fbc0a09f9e30dff184a6a9278e044aa09bf25f37bf9f7b321
7
- data.tar.gz: a06c3c0ea866868048bec68294de35f6682fec110d53093d4d5240b5705a3c65f4c5ac8881737c0152e68ae08694db7d8fd970b4b525093bb3ff18ac43759e1d
6
+ metadata.gz: 324633e8cfe2662de6f199c9d3ef730a6385006600fe6b6525cbb7647053aff1c5e577024c224317c1abf40ec4fa5eac717eb626a358679c92b7d0749b9637bc
7
+ data.tar.gz: 03b0419f5f255909058d0f9f5e99f8ca6257dd9ed40fa4418950554c70b7c085ee4bc29d310ca6d2c4dee718fdc31fc7fde8eca9169f57c90640c5c13740c27a
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: aarch64-linux
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.so
66
66
  - lib/rucaptcha/3.2/rucaptcha.so
67
+ - lib/rucaptcha/3.3/rucaptcha.so
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
  - - ">="