tiny_rl 2.0.0 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/tiny_rl.rb +4 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2ff77bc53d01edfc80ddab66a55e6cca3333bb943199b8e707796fb950423bed
4
- data.tar.gz: 0cee04760a9250243b7bcb715d437d958fa8d9ff0deb8d5df169d5972c05c695
3
+ metadata.gz: 9d9dfba7e07aff49aacdce244cf39bc54f87afb03ab40823ee5e7aa56863f80a
4
+ data.tar.gz: fb9a2e33e35858d05da57d5976ab2db87644b694c67ca35df8240b959f0e0580
5
5
  SHA512:
6
- metadata.gz: 37640f7aeaa30e0f65f082a50501d6a6b6f1f538f2c20424e18d5c6eeeb4ebab33a1414aaa743272dd4363c59b8ce3774c37f01e9cdd2adf9596719305fc84d2
7
- data.tar.gz: f52bad20a8ec1c15438d8c66a649ab4d6b1faa522d4f3b853d4228e09206d36267f3cf1d88b91d8fdb353b5a513d5cc67c7a77aab0fc67fac2f2c9739e63a27f
6
+ metadata.gz: 6b823cdb7a65a0e35a15ef298a383346809a4d443b6132b4221f21c025cdfbd797a95982fabe89a3761d8b601d7cdb120f011c38b783ad0cab09b22033fb8a8c
7
+ data.tar.gz: 80e43f6a8e144cdadf44f3a660960cbb7876c74259d07652dc838de1e8d32ca790684fa8809b1a44b734fa4ac5c69f0bdbaa49dc97acf71121b1ca8a952b152f
data/lib/tiny_rl.rb CHANGED
@@ -32,6 +32,10 @@ class TinyRl
32
32
  MONTH = DAY * 30
33
33
  YEAR = DAY * 365
34
34
 
35
+ attr_reader :limit,
36
+ :per,
37
+ :strategy
38
+
35
39
  # rate: number of requests per unit time
36
40
  # per: unit of time (one of SECOND, MINUTE, etc.)
37
41
  # you can pass any integer in as the `per' parameter and it will be
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tiny_rl
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Lunt