rucaptcha 3.2.1 → 3.2.3
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 +4 -4
- data/README.md +3 -0
- data/ext/rucaptcha/Cargo.toml +3 -3
- data/ext/rucaptcha/src/lib.rs +1 -1
- data/lib/rucaptcha/configuration.rb +2 -0
- data/lib/rucaptcha/engine.rb +1 -1
- data/lib/rucaptcha/version.rb +1 -1
- data/lib/rucaptcha.rb +1 -0
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca95f22ebfb12cb9a94f72376e05a5ad8c5868116b5726a8a736a7b7c3a1bbeb
|
4
|
+
data.tar.gz: 740380e1f7a8280b39b68081e802f1ca68cdbb85eb12d2c4ca84a2779fa9c860
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a8861540a855b130b8f816eda52d3b5017877695ea00e28ec457391bce7d9bc7a18f85e75d15b541231e30c0f38dec69aef19eb5a0e00664054886f3490dda7
|
7
|
+
data.tar.gz: 185255d41f551db3b7d44934c0ab254c91336251e45107c596fbbe240ee9498a5e689550aead4abebf290afd6bb86a5b2dc49db4f7eeb4a73dfe7b984e99484d
|
data/README.md
CHANGED
data/ext/rucaptcha/Cargo.toml
CHANGED
data/ext/rucaptcha/src/lib.rs
CHANGED
@@ -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",
|
26
|
+
let class = define_class("RuCaptchaCore", magnus::class::object())?;
|
27
27
|
class.define_singleton_method("create", function!(create, 5))?;
|
28
28
|
|
29
29
|
Ok(())
|
data/lib/rucaptcha/engine.rb
CHANGED
@@ -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 =>
|
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
|
data/lib/rucaptcha/version.rb
CHANGED
data/lib/rucaptcha.rb
CHANGED
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.
|
4
|
+
version: 3.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Lee
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -24,20 +24,21 @@ 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
|
30
31
|
requirements:
|
31
32
|
- - ">="
|
32
33
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.9.
|
34
|
+
version: 0.9.86
|
34
35
|
type: :runtime
|
35
36
|
prerelease: false
|
36
37
|
version_requirements: !ruby/object:Gem::Requirement
|
37
38
|
requirements:
|
38
39
|
- - ">="
|
39
40
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.9.
|
41
|
+
version: 0.9.86
|
41
42
|
description:
|
42
43
|
email: huacnlee@gmail.com
|
43
44
|
executables: []
|
@@ -81,14 +82,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
81
82
|
requirements:
|
82
83
|
- - ">="
|
83
84
|
- !ruby/object:Gem::Version
|
84
|
-
version:
|
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.
|
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.
|