yt 0.4.2 → 0.4.3

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: 12497c7eae18dd07b7eb7e1705247a7a5967dbfe
4
- data.tar.gz: 2227ad4c629ed930fd4a6c3933d769492e1ab976
3
+ metadata.gz: 792b1982fc7726054176fd18b68d1f4332fc379a
4
+ data.tar.gz: 9a3c08e7031706139819c04284dbb3af3239e81a
5
5
  SHA512:
6
- metadata.gz: d0d13853322c80ae552827897d3878af7d7d9138c945d13bbf7a0e6e6ec3d398a5119dd5a4831c7ba646dc9d0bd6ad513c045793f38b47a29654ea2eb5aacb9c
7
- data.tar.gz: b2eb5dea13cbf4044eaf99735e932243b60b5a310c7bd8066c202230ba2ba387b7b08276a14880f2be9291b1d0a6f3eef1212e52b503f13c830bd2d5e7a32ae0
6
+ metadata.gz: 53765396c8d2efe89f8a1b7339b0517460f3377d7acad07d2da1c8a9816d199b9e322f40cef728d44539f97a7d460e81646cfacd75648d037a35d460fd7f61a7
7
+ data.tar.gz: 11fbd96bde1318bc5ba4e72afb9f6b99ae633a8f4b854835269c5a884ce94552f24a87c30ebed68ecacc382a819f33d07ff2f8b07558ea5747d6596dbc4a9b5c
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- yt (0.4.2)
4
+ yt (0.4.3)
5
5
  activesupport
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -276,7 +276,7 @@ To install on your system, run
276
276
 
277
277
  To use inside a bundled Ruby project, add this line to the Gemfile:
278
278
 
279
- gem 'yt', '~> 0.4.2'
279
+ gem 'yt', '~> 0.4.3'
280
280
 
281
281
  Since the gem follows [Semantic Versioning](http://semver.org),
282
282
  indicating the full version in your Gemfile (~> *major*.*minor*.*patch*)
@@ -37,7 +37,8 @@ module Yt
37
37
  # wait some time before requesting it again.
38
38
  #
39
39
  def throttle(seconds = 9)
40
- wait = [(@last_changed_at ||= Time.now) - Time.now + seconds, 0].max
40
+ @last_changed_at ||= Time.now - seconds
41
+ wait = [@last_changed_at - Time.now + seconds, 0].max
41
42
  sleep wait
42
43
  @last_changed_at = Time.now
43
44
  end
@@ -1,3 +1,3 @@
1
1
  module Yt
2
- VERSION = '0.4.2'
2
+ VERSION = '0.4.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Claudio Baccigalupo