with_rate_limit 0.1.1 → 0.1.2

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
- SHA256:
3
- metadata.gz: c541ac17b6b67e2725db7961db8c48a269cc8dcd28ad1ecde8b99c41402b0d88
4
- data.tar.gz: a262916dc16088ac4301aa1c543d410ed672d465159b960afd5007c9203f7542
2
+ SHA1:
3
+ metadata.gz: 2bb74aee5ddb1c3db2cfc8f5abda2eb4c5f46cd9
4
+ data.tar.gz: 1fcf3723bbf3b0094ae09572db3c5e6a9fe3090f
5
5
  SHA512:
6
- metadata.gz: 930d0b7213492a1ab8d9abdafeefce5cecf6054209129f870aa56b5ad26ba1d572285e6f04add6284e9a5f7a572aba77810691b5e5c8b24f23e4f3643d6c3ded
7
- data.tar.gz: b8cf19113b5bb6641246194a25e409d2b8c607e6e119d6e802573c951a28fdd7c3f93568aa76faa3d1cc18671cb8cc2447880830b8371601a274e70b8f282ba8
6
+ metadata.gz: 07fabbd45d87a918fea1f9a43196da2b871cd6c2c034100757130c2ec4046ed11d5141f189832da04cb70ae0845e1cf6018ce0a94153de24824952bdaf62d749
7
+ data.tar.gz: a21c6935560a83f2e1abd0788c14c4eaad3a91b35e641362ef5f4cd56eab7929a4b51571fbf4f8bdcdd72d82adfdea95e1088d3ac376d60d4980c76298ed23f4
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- with_rate_limit (0.1.0)
4
+ with_rate_limit (0.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -30,7 +30,7 @@ module WithRateLimit
30
30
  elsif count_reset_delta > interval
31
31
  cache.set(cache_key, {last_interval_started_at: timestamp, operations_count: 1})
32
32
  else
33
- cache.set(cache_key, {last_interval_started_at: timestamp, operations_count: operations_count + 1})
33
+ cache.set(cache_key, {last_interval_started_at: last_interval_started_at, operations_count: operations_count + 1})
34
34
  end
35
35
 
36
36
  begin
@@ -1,3 +1,3 @@
1
1
  module WithRateLimit
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: with_rate_limit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aleksandr Terletskiy
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-09-12 00:00:00.000000000 Z
11
+ date: 2021-08-23 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Allows operations that are passed into `with_rate_limit` block to be
14
14
  rate limited
@@ -45,7 +45,7 @@ metadata:
45
45
  homepage_uri: https://github.com/aterletskiy/with-rate-limit
46
46
  source_code_uri: https://github.com/aterletskiy/with-rate-limit
47
47
  changelog_uri: https://github.com/aterletskiy/with_rate_limit/CHANGELOG.md
48
- post_install_message:
48
+ post_install_message:
49
49
  rdoc_options: []
50
50
  require_paths:
51
51
  - lib
@@ -60,8 +60,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  requirements: []
63
- rubygems_version: 3.1.4
64
- signing_key:
63
+ rubyforge_project:
64
+ rubygems_version: 2.4.8
65
+ signing_key:
65
66
  specification_version: 4
66
67
  summary: Rate limits operations that are passed in to block
67
68
  test_files: []