throttling 0.4.0 → 0.4.1
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
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +53 -45
- data/certs/kpumuk.pem +21 -0
- data/lib/throttling/indifferent_access.rb +2 -2
- data/lib/throttling/version.rb +1 -1
- data/throttling.gemspec +5 -4
- data.tar.gz.sig +0 -0
- metadata +29 -17
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3ed71179ebb7b627ce788a1ced69b28bba67f9d983614724390a95d6df97f2d1
|
|
4
|
+
data.tar.gz: cafd2ed60cf1758b5527d40d864aa8892d638631a9a95e977161227f34328eb0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3d98584e62d6d179e4f358946f7d4f179e56df6c4a30e338e0bcd8b65a59a2ff9d0cccc9ca392306f3412dab4b5c94d7b64225c949fd31626d8ba45ac8181455
|
|
7
|
+
data.tar.gz: 7bd43a024a5bfca1a9dcf4d05cf70a255233dd87382b9229f63d04c5ab06c081cd83a8d20b5be0586b5fb42d8293387ff3e41cbb03c8f137be6246fe946c2c11
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.4.1 (September 19, 2025)
|
|
4
|
+
|
|
5
|
+
- Multiple rexml fixes ([6](https://github.com/kpumuk/throttling/pull/6), [7](https://github.com/kpumuk/throttling/pull/7), [8](https://github.com/kpumuk/throttling/pull/8), [9](https://github.com/kpumuk/throttling/pull/9), [11](https://github.com/kpumuk/throttling/pull/11/))
|
|
6
|
+
- Use GitHub actions to build, sign and publish the gem ([11](https://github.com/kpumuk/throttling/pull/11/))
|
|
7
|
+
|
|
3
8
|
## 0.4.0 (July 6, 2023)
|
|
4
9
|
|
|
5
10
|
- Bump minimum Ruby requirement to 2.7.0
|
data/Gemfile.lock
CHANGED
|
@@ -1,67 +1,75 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
throttling (0.4.
|
|
4
|
+
throttling (0.4.1)
|
|
5
|
+
logger
|
|
5
6
|
|
|
6
7
|
GEM
|
|
7
8
|
remote: https://rubygems.org/
|
|
8
9
|
specs:
|
|
9
|
-
ast (2.4.
|
|
10
|
-
diff-lcs (1.
|
|
11
|
-
json (2.
|
|
12
|
-
language_server-protocol (3.17.0.
|
|
13
|
-
lint_roller (1.
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
ast (2.4.3)
|
|
11
|
+
diff-lcs (1.6.2)
|
|
12
|
+
json (2.15.0)
|
|
13
|
+
language_server-protocol (3.17.0.5)
|
|
14
|
+
lint_roller (1.1.0)
|
|
15
|
+
logger (1.7.0)
|
|
16
|
+
parallel (1.27.0)
|
|
17
|
+
parser (3.3.9.0)
|
|
16
18
|
ast (~> 2.4.1)
|
|
17
19
|
racc
|
|
18
|
-
|
|
20
|
+
prism (1.5.1)
|
|
21
|
+
racc (1.8.1)
|
|
19
22
|
rainbow (3.1.1)
|
|
20
|
-
rake (13.0
|
|
21
|
-
regexp_parser (2.
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
rspec-
|
|
25
|
-
rspec-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
rspec-expectations (3.12.3)
|
|
23
|
+
rake (13.3.0)
|
|
24
|
+
regexp_parser (2.11.3)
|
|
25
|
+
rspec (3.13.1)
|
|
26
|
+
rspec-core (~> 3.13.0)
|
|
27
|
+
rspec-expectations (~> 3.13.0)
|
|
28
|
+
rspec-mocks (~> 3.13.0)
|
|
29
|
+
rspec-core (3.13.5)
|
|
30
|
+
rspec-support (~> 3.13.0)
|
|
31
|
+
rspec-expectations (3.13.5)
|
|
30
32
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
31
|
-
rspec-support (~> 3.
|
|
32
|
-
rspec-mocks (3.
|
|
33
|
+
rspec-support (~> 3.13.0)
|
|
34
|
+
rspec-mocks (3.13.5)
|
|
33
35
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
34
|
-
rspec-support (~> 3.
|
|
35
|
-
rspec-support (3.
|
|
36
|
-
rubocop (1.
|
|
36
|
+
rspec-support (~> 3.13.0)
|
|
37
|
+
rspec-support (3.13.6)
|
|
38
|
+
rubocop (1.80.2)
|
|
37
39
|
json (~> 2.3)
|
|
40
|
+
language_server-protocol (~> 3.17.0.2)
|
|
41
|
+
lint_roller (~> 1.1.0)
|
|
38
42
|
parallel (~> 1.10)
|
|
39
|
-
parser (>= 3.
|
|
43
|
+
parser (>= 3.3.0.2)
|
|
40
44
|
rainbow (>= 2.2.2, < 4.0)
|
|
41
|
-
regexp_parser (>=
|
|
42
|
-
|
|
43
|
-
rubocop-ast (>= 1.28.0, < 2.0)
|
|
45
|
+
regexp_parser (>= 2.9.3, < 3.0)
|
|
46
|
+
rubocop-ast (>= 1.46.0, < 2.0)
|
|
44
47
|
ruby-progressbar (~> 1.7)
|
|
45
|
-
unicode-display_width (>= 2.4.0, <
|
|
46
|
-
rubocop-ast (1.
|
|
47
|
-
parser (>= 3.
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
unicode-display_width (>= 2.4.0, < 4.0)
|
|
49
|
+
rubocop-ast (1.47.1)
|
|
50
|
+
parser (>= 3.3.7.2)
|
|
51
|
+
prism (~> 1.4)
|
|
52
|
+
rubocop-performance (1.25.0)
|
|
53
|
+
lint_roller (~> 1.1)
|
|
54
|
+
rubocop (>= 1.75.0, < 2.0)
|
|
55
|
+
rubocop-ast (>= 1.38.0, < 2.0)
|
|
51
56
|
ruby-progressbar (1.13.0)
|
|
52
|
-
standard (1.
|
|
57
|
+
standard (1.51.1)
|
|
53
58
|
language_server-protocol (~> 3.17.0.2)
|
|
54
59
|
lint_roller (~> 1.0)
|
|
55
|
-
rubocop (~> 1.
|
|
60
|
+
rubocop (~> 1.80.2)
|
|
56
61
|
standard-custom (~> 1.0.0)
|
|
57
|
-
standard-performance (~> 1.
|
|
58
|
-
standard-custom (1.0.
|
|
59
|
-
lint_roller (~> 1.0)
|
|
60
|
-
standard-performance (1.1.0)
|
|
62
|
+
standard-performance (~> 1.8)
|
|
63
|
+
standard-custom (1.0.2)
|
|
61
64
|
lint_roller (~> 1.0)
|
|
62
|
-
rubocop
|
|
63
|
-
|
|
64
|
-
|
|
65
|
+
rubocop (~> 1.50)
|
|
66
|
+
standard-performance (1.8.0)
|
|
67
|
+
lint_roller (~> 1.1)
|
|
68
|
+
rubocop-performance (~> 1.25.0)
|
|
69
|
+
timecop (0.9.10)
|
|
70
|
+
unicode-display_width (3.2.0)
|
|
71
|
+
unicode-emoji (~> 4.1)
|
|
72
|
+
unicode-emoji (4.1.0)
|
|
65
73
|
|
|
66
74
|
PLATFORMS
|
|
67
75
|
arm64-darwin
|
|
@@ -71,8 +79,8 @@ PLATFORMS
|
|
|
71
79
|
|
|
72
80
|
DEPENDENCIES
|
|
73
81
|
rake (~> 13.0)
|
|
74
|
-
rspec (~> 3.
|
|
75
|
-
standard (~> 1.
|
|
82
|
+
rspec (~> 3.13.0)
|
|
83
|
+
standard (~> 1.51.0)
|
|
76
84
|
throttling!
|
|
77
85
|
timecop (~> 0.9.6)
|
|
78
86
|
|
data/certs/kpumuk.pem
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
-----BEGIN CERTIFICATE-----
|
|
2
|
+
MIIDcDCCAligAwIBAgIBATANBgkqhkiG9w0BAQsFADA/MQ8wDQYDVQQDDAZrcHVt
|
|
3
|
+
dWsxFjAUBgoJkiaJk/IsZAEZFgZ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NQidYSSPJ5OvcAGSfxTHJsFseHjrBK
|
|
18
|
+
9hdoXZgqc4a5defxoOZFD9Im9AUwFqwR8njCBST6FbCGmHIYNHj2hxbwrU/1I2Kg
|
|
19
|
+
pPzkBOwQl2p1ykAEUe7cwoqJcO+1rPeTHjudNqhOfc3VnMA8A7uXOkTtYNVhvApn
|
|
20
|
+
oW4hE/8SnZkQm8jzdi0iX9nWxo8=
|
|
21
|
+
-----END CERTIFICATE-----
|
|
@@ -15,7 +15,7 @@ module Throttling
|
|
|
15
15
|
super()
|
|
16
16
|
update(constructor)
|
|
17
17
|
else
|
|
18
|
-
super
|
|
18
|
+
super
|
|
19
19
|
end
|
|
20
20
|
end
|
|
21
21
|
|
|
@@ -101,7 +101,7 @@ module Throttling
|
|
|
101
101
|
# Performs the opposite of merge, with the keys and values from the first hash taking precedence over the second.
|
|
102
102
|
# This overloaded definition prevents returning a regular hash, if reverse_merge is called on a HashWithDifferentAccess.
|
|
103
103
|
def reverse_merge(other_hash)
|
|
104
|
-
super
|
|
104
|
+
super(other_hash.with_indifferent_access)
|
|
105
105
|
end
|
|
106
106
|
|
|
107
107
|
# Removes a specified key from the hash.
|
data/lib/throttling/version.rb
CHANGED
data/throttling.gemspec
CHANGED
|
@@ -19,13 +19,14 @@ Gem::Specification.new do |spec|
|
|
|
19
19
|
spec.require_paths = ["lib"]
|
|
20
20
|
|
|
21
21
|
spec.add_development_dependency "rake", "~> 13.0"
|
|
22
|
-
spec.add_development_dependency "rspec", "~> 3.
|
|
22
|
+
spec.add_development_dependency "rspec", "~> 3.13.0"
|
|
23
23
|
spec.add_development_dependency "timecop", "~> 0.9.6"
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
spec.add_development_dependency "standard", "~> 1.51.0"
|
|
25
|
+
|
|
26
|
+
spec.add_runtime_dependency "logger"
|
|
26
27
|
|
|
27
28
|
spec.cert_chain = ["certs/kpumuk.pem"]
|
|
28
|
-
spec.signing_key = File.expand_path("~/.
|
|
29
|
+
spec.signing_key = File.expand_path("~/.gem/gem-private_key.pem") if $PROGRAM_NAME.end_with?("gem")
|
|
29
30
|
|
|
30
31
|
spec.metadata = {
|
|
31
32
|
"bug_tracker_uri" => "https://github.com/kpumuk/throttling/issues/",
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: throttling
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dmytro Shteflyuk
|
|
8
8
|
- Oleksiy Kovyrin
|
|
9
|
-
autorequire:
|
|
10
9
|
bindir: exe
|
|
11
10
|
cert_chain:
|
|
12
11
|
- |
|
|
13
12
|
-----BEGIN CERTIFICATE-----
|
|
14
13
|
MIIDcDCCAligAwIBAgIBATANBgkqhkiG9w0BAQsFADA/MQ8wDQYDVQQDDAZrcHVt
|
|
15
14
|
dWsxFjAUBgoJkiaJk/IsZAEZFgZrcHVtdWsxFDASBgoJkiaJk/IsZAEZFgRpbmZv
|
|
16
|
-
|
|
15
|
+
MB4XDTI1MDkyOTE1MDM1M1oXDTI2MDkyOTE1MDM1M1owPzEPMA0GA1UEAwwGa3B1
|
|
17
16
|
bXVrMRYwFAYKCZImiZPyLGQBGRYGa3B1bXVrMRQwEgYKCZImiZPyLGQBGRYEaW5m
|
|
18
17
|
bzCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALw2YroZc+IT+rs8NuPu
|
|
19
18
|
c13DelrxrpAgPEu1zuRb3l7WaHRNWA4TyS8Z6Aa1G2O+FdUZNMW1n7IwP/QMJ9Mz
|
|
@@ -24,14 +23,14 @@ cert_chain:
|
|
|
24
23
|
/1sCAwEAAaN3MHUwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0OBBYEFPa4
|
|
25
24
|
VFc1YOlV1u/7EGTwMCAk8YE9MB0GA1UdEQQWMBSBEmtwdW11a0BrcHVtdWsuaW5m
|
|
26
25
|
bzAdBgNVHRIEFjAUgRJrcHVtdWtAa3B1bXVrLmluZm8wDQYJKoZIhvcNAQELBQAD
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
26
|
+
ggEBAFz/6+efHFEomTCA8V/eMpzaMkbj04cTmFxm28KiUO1F4vgbSIBx0bsMoJkH
|
|
27
|
+
KI956sPVVJMykwOdDUhRWBrHOVTBCGdkYWdb38KQKfwtkdGd8b/Afrxs5GuPME9r
|
|
28
|
+
TdfDc1aXCAPdLCajhpmuzfa1g8/W7ORdxwNQidYSSPJ5OvcAGSfxTHJsFseHjrBK
|
|
29
|
+
9hdoXZgqc4a5defxoOZFD9Im9AUwFqwR8njCBST6FbCGmHIYNHj2hxbwrU/1I2Kg
|
|
30
|
+
pPzkBOwQl2p1ykAEUe7cwoqJcO+1rPeTHjudNqhOfc3VnMA8A7uXOkTtYNVhvApn
|
|
31
|
+
oW4hE/8SnZkQm8jzdi0iX9nWxo8=
|
|
33
32
|
-----END CERTIFICATE-----
|
|
34
|
-
date:
|
|
33
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
35
34
|
dependencies:
|
|
36
35
|
- !ruby/object:Gem::Dependency
|
|
37
36
|
name: rake
|
|
@@ -53,14 +52,14 @@ dependencies:
|
|
|
53
52
|
requirements:
|
|
54
53
|
- - "~>"
|
|
55
54
|
- !ruby/object:Gem::Version
|
|
56
|
-
version: 3.
|
|
55
|
+
version: 3.13.0
|
|
57
56
|
type: :development
|
|
58
57
|
prerelease: false
|
|
59
58
|
version_requirements: !ruby/object:Gem::Requirement
|
|
60
59
|
requirements:
|
|
61
60
|
- - "~>"
|
|
62
61
|
- !ruby/object:Gem::Version
|
|
63
|
-
version: 3.
|
|
62
|
+
version: 3.13.0
|
|
64
63
|
- !ruby/object:Gem::Dependency
|
|
65
64
|
name: timecop
|
|
66
65
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -81,14 +80,28 @@ dependencies:
|
|
|
81
80
|
requirements:
|
|
82
81
|
- - "~>"
|
|
83
82
|
- !ruby/object:Gem::Version
|
|
84
|
-
version: 1.
|
|
83
|
+
version: 1.51.0
|
|
85
84
|
type: :development
|
|
86
85
|
prerelease: false
|
|
87
86
|
version_requirements: !ruby/object:Gem::Requirement
|
|
88
87
|
requirements:
|
|
89
88
|
- - "~>"
|
|
90
89
|
- !ruby/object:Gem::Version
|
|
91
|
-
version: 1.
|
|
90
|
+
version: 1.51.0
|
|
91
|
+
- !ruby/object:Gem::Dependency
|
|
92
|
+
name: logger
|
|
93
|
+
requirement: !ruby/object:Gem::Requirement
|
|
94
|
+
requirements:
|
|
95
|
+
- - ">="
|
|
96
|
+
- !ruby/object:Gem::Version
|
|
97
|
+
version: '0'
|
|
98
|
+
type: :runtime
|
|
99
|
+
prerelease: false
|
|
100
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
101
|
+
requirements:
|
|
102
|
+
- - ">="
|
|
103
|
+
- !ruby/object:Gem::Version
|
|
104
|
+
version: '0'
|
|
92
105
|
description: Throttling gem provides basic, but very powerful way to throttle various
|
|
93
106
|
user actions in your application
|
|
94
107
|
email:
|
|
@@ -103,6 +116,7 @@ files:
|
|
|
103
116
|
- LICENSE
|
|
104
117
|
- README.md
|
|
105
118
|
- Rakefile
|
|
119
|
+
- certs/kpumuk.pem
|
|
106
120
|
- lib/throttling.rb
|
|
107
121
|
- lib/throttling/base.rb
|
|
108
122
|
- lib/throttling/indifferent_access.rb
|
|
@@ -118,7 +132,6 @@ metadata:
|
|
|
118
132
|
homepage_uri: https://github.com/kpumuk/throttling/
|
|
119
133
|
source_code_uri: https://github.com/kpumuk/throttling/
|
|
120
134
|
rubygems_mfa_required: 'true'
|
|
121
|
-
post_install_message:
|
|
122
135
|
rdoc_options: []
|
|
123
136
|
require_paths:
|
|
124
137
|
- lib
|
|
@@ -133,8 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
133
146
|
- !ruby/object:Gem::Version
|
|
134
147
|
version: '0'
|
|
135
148
|
requirements: []
|
|
136
|
-
rubygems_version: 3.
|
|
137
|
-
signing_key:
|
|
149
|
+
rubygems_version: 3.6.9
|
|
138
150
|
specification_version: 4
|
|
139
151
|
summary: Easy throttling for Ruby applications
|
|
140
152
|
test_files: []
|
metadata.gz.sig
CHANGED
|
Binary file
|