yt 0.25.4 → 0.25.5

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: b97dd069350cac3eb417bd71f95e954002f18e95
4
- data.tar.gz: 967cb4ed7350c7b451097d25e021e2b1deaa0543
3
+ metadata.gz: 50ce20802b231f960b7dbfd04ff5ee5783921fb7
4
+ data.tar.gz: c51ce48786243feb765a256a76292e44b88b69a5
5
5
  SHA512:
6
- metadata.gz: 573902e507215412b8fd4481ed9446a84cb6f57fe068f0e41ea9c52b7136c35a7da06b6ca2f48e4a5ba962b3715d63ac0d361dd93079fd45b410d105ed23f015
7
- data.tar.gz: 09c85fe37c9cdec1b9d9037f0cd60b05135544db9e8a125e11769f652889ab42899184bff45607b38434f7a98b408701c859cb7eed745d5fb845beef91063973
6
+ metadata.gz: 9dee78a67ae1f95c649dfc4ca5db80e5a015d4e2aeb9d1be6ece9360bb1990677f20ed3cd7a295516af8d2ba72d1c308e90a6b9f80025cab7ffcfc3a7a31c81f
7
+ data.tar.gz: e3a2e50ceb3c87f3c3eda04e2c984219f52be32bd33c4cc01caeaab6e4363c3bf8cec1617b37a4891ac13cd6cb7ccff4be0265d8b522a3a8cb897172397085c0
data/CHANGELOG.md CHANGED
@@ -6,6 +6,10 @@ For more information about changelogs, check
6
6
  [Keep a Changelog](http://keepachangelog.com) and
7
7
  [Vandamme](http://tech-angels.github.io/vandamme).
8
8
 
9
+ ## 0.25.5 - 2015-08-12
10
+
11
+ * [BUGIX] Correctly parse the YouTube response when requesting a refresh token with the wrong credentials.
12
+
9
13
  ## 0.25.4 - 2015-07-27
10
14
 
11
15
  * [FEATURE] Add `channel.related_playlist` and `account.related_playlists` to access "Liked Videos", "Uploads", etc.
data/README.md CHANGED
@@ -41,7 +41,7 @@ To install on your system, run
41
41
 
42
42
  To use inside a bundled Ruby project, add this line to the Gemfile:
43
43
 
44
- gem 'yt', '~> 0.25.4'
44
+ gem 'yt', '~> 0.25.5'
45
45
 
46
46
  Since the gem follows [Semantic Versioning](http://semver.org),
47
47
  indicating the full version in your Gemfile (~> *major*.*minor*.*patch*)
@@ -20,7 +20,10 @@ module Yt
20
20
  end
21
21
 
22
22
  def reasons
23
- kind.fetch('errors', []).map{|e| e['reason']}
23
+ case kind
24
+ when Hash then kind.fetch('errors', []).map{|e| e['reason']}
25
+ else kind
26
+ end
24
27
  end
25
28
 
26
29
  private
data/lib/yt/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Yt
2
- VERSION = '0.25.4'
2
+ VERSION = '0.25.5'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.25.4
4
+ version: 0.25.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Claudio Baccigalupo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-27 00:00:00.000000000 Z
11
+ date: 2015-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport