rate-limit 0.2.1 → 0.3.0

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: 11a836041207b190f37ebc39fc5f3dad8f550fee8193c4a1bb7a0ec1add638f1
4
- data.tar.gz: a213f8f17a0630f7a8f4d43ec8c7072e4f0f1ecbc015723aa06aeb1ea802883d
3
+ metadata.gz: 154d386572bd5be061f5b366b97e668ad70078b3748ca85e31a08edf2eabc4ca
4
+ data.tar.gz: 4ff16eb9e838b9a33405cd477102fd0f3d52a0fe4047ba6ddd0028e4da44ad1c
5
5
  SHA512:
6
- metadata.gz: 77dd6eefc19f5af422efd9f1d31db21a0697c0325cf6d39bc02798112fef5706604c6ee15418df49ef75ee7f6801dcd576f6a8ebfaa306c01defaf7f378f8017
7
- data.tar.gz: 5580d905fcbf812e925ea22a4b203043ee12d68996cbe4bb0589cbd74ecaf85a04cb2d6ea1a37cf3f23b5861e0bae76f921269de3fe24ce5dcfc405325b74bea
6
+ metadata.gz: b7b20463849dcc18251a7f98705465d8999670efb1861b8b59ef98140c1d60368d931b3b2723637cf1fc28f117d5b5b8474869638f6815063e3d9e9e66ccb3be
7
+ data.tar.gz: 37f15e0ef706b7740a5795ca171ea94e8591d37ec5a6923fbf92e19f08ab1b65fb1ec435d106e7c5b6cf711afcc7a407f84eba3c014536bc6d494c616111a193
@@ -13,8 +13,7 @@ module RateLimit
13
13
  class << self
14
14
  def raw_limits
15
15
  {
16
- RateLimit.config.default_threshold => \
17
- RateLimit.config.default_interval
16
+ RateLimit.config.default_threshold => RateLimit.config.default_interval
18
17
  }
19
18
  end
20
19
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RateLimit
4
- VERSION = '0.2.1'
4
+ VERSION = '0.3.0'
5
5
  end
data/lib/rate_limit.rb CHANGED
@@ -1,6 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'active_support/core_ext/module'
3
+ require 'active_support'
4
+ require 'active_support/core_ext'
5
+
4
6
  require_relative 'rate_limit/configurable'
5
7
  require_relative 'rate_limit/result'
6
8
  require_relative 'rate_limit/cache'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rate-limit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mohamed Motaweh
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-11-09 00:00:00.000000000 Z
11
+ date: 2024-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -17,9 +17,9 @@ dependencies:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '5.2'
20
- - - "<="
20
+ - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: 7.0.4
22
+ version: '7.2'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -27,9 +27,9 @@ dependencies:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
29
  version: '5.2'
30
- - - "<="
30
+ - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: 7.0.4
32
+ version: '7.2'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: redis
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -98,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
98
  - !ruby/object:Gem::Version
99
99
  version: '0'
100
100
  requirements: []
101
- rubygems_version: 3.2.3
101
+ rubygems_version: 3.4.1
102
102
  signing_key:
103
103
  specification_version: 4
104
104
  summary: A Rate Limiting Gem