rare 0.1.0 → 0.1.1

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
  SHA1:
3
- metadata.gz: f044f03406077df891070c59a3695ae6f36a7343
4
- data.tar.gz: 67ecb50ae4c082243d7ddb6865e65a6f65b2e7df
3
+ metadata.gz: 6fcdfd178d96d7e310054b1c83fd0fc6b87c1d5e
4
+ data.tar.gz: 4708e7dccc786ed24942bb6aea26c58dd171fbf8
5
5
  SHA512:
6
- metadata.gz: b8ad1bb18d943618337fc7857e9cc24d503c9ffa8b43464629e456cdfbb7a6a9998326c9901d903d50f172a9cbcfdeb4df97012c3a6a75a61e7c91722fb905fb
7
- data.tar.gz: ca8308150ae2be8dca6e3c9f017f0b9341dc9c47441ee724e6d565edd283be85506aa8f12742d74b87b83305781e42278ac8fd7aa427566dd13108f796b1ca49
6
+ metadata.gz: b2ed07f4133b7b2e41c83dc0b1581a9d1f4fef13ee12dd3cbc671e8c179cee6ee10debcc4970fb2a75b043a9009b0a63a7bc0d9746783ff77903c7eb57500136
7
+ data.tar.gz: 521c78c705b6ac049fd6abfbf50d1561a632fe47a746072211da7a8cdc7c700d5e32d4686aa8cc87d68eba3ee12df580343f2e676d345447184d018449e2a4a9
@@ -7,7 +7,9 @@ module Rare
7
7
  end
8
8
 
9
9
  def throttle(rpm:, key: 'default')
10
- sleep sleep_interval until allowed?(seconds(rpm), key)
10
+ if rpm.to_f > 0
11
+ sleep sleep_interval until allowed?(seconds(rpm), key)
12
+ end
11
13
 
12
14
  yield if block_given?
13
15
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Rare
3
- VERSION = '0.1.0'
3
+ VERSION = '0.1.1'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rare
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rustam Sharshenov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-01-02 00:00:00.000000000 Z
11
+ date: 2017-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler