limiter-ruby 0.1.5 → 0.1.6

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: 718993a35bb1f7a95a16d2a6a17af233d9d0909fc070895172c80e5afbfbb7d0
4
- data.tar.gz: '026853b283dddcd996539c3d255250e25ee4871e4cccf8ac424707ffac18ea77'
3
+ metadata.gz: 485bbca55de62c9f4f26acd63a54be1ac0f4f98fab77ad9a6611be7b04913d6b
4
+ data.tar.gz: b6e3974fb4233c543dba8642d2cb53744b3786a46dff6bbc9371ed7e6d432b33
5
5
  SHA512:
6
- metadata.gz: a45d10cd11eb9500f9dc7fb77f379e509d49d1f91bd59ffe0f0bba698b88fba2f3a9edf57a1e5020ffa803032cf7d436d3bf166768c3e79fa8a65ae4a0159ca9
7
- data.tar.gz: 9c3d29e2a42422b4bc02767e7c7f3248f462bab8d228fee536732481e5a737081a8aa99e512f37a199031ec2fbd139f904f05bdc6a5c4fbb84c0bd208ba211e9
6
+ metadata.gz: f0ce5be7e224522c5bd6c1a8402422bc705ee87d0f500d5f6447326f28713c7d3ba0929683f1a1447dfca43ce1ff55c3e1dd7ee73f521f9746517be2200759f7
7
+ data.tar.gz: 2e174243e3fbf40de0f7b4f726ffd3523ead0defe09275abf18dabb35e6eba984f86530d39d8d4461cb052283210170ad6353750d5c8a3c7b466ca437fe23307
@@ -23,6 +23,8 @@ module Limiter
23
23
 
24
24
  def formatted_period
25
25
  case @period
26
+ when 1..59
27
+ (@period).to_s + "s"
26
28
  when 60..3599
27
29
  (@period / 60).to_s + "m"
28
30
  when 3600..86_399
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Limiter
4
- VERSION = "0.1.5"
4
+ VERSION = "0.1.6"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: limiter-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bilal Budhani
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-05-16 00:00:00.000000000 Z
11
+ date: 2024-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http