yt-core 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/yt/core/version.rb +1 -1
- data/lib/yt/resource.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2faf158ad48511fe585519deb4cd053f41bd2ffe
|
4
|
+
data.tar.gz: 3bb7780ffa69dedefc4094be10a43af205c868b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3445d6fa3b8836a51dfb02a25399780d58e705101c609a07be0d4fa94b9be0acbef06b320af917cc69d42dc8224275217da5700643f3b6b0c66d9f2e0077e4c
|
7
|
+
data.tar.gz: 99bb22df52a1a9895f40b6e52b8f4ae956b0bf556887acbbb42e4324cdf7487351db7ecb177e16b40564d7293080da1e5d27b6585160e6bafa2cfcf3f45d7907
|
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.1.2 - 2017-04-06
|
10
|
+
|
11
|
+
* [BUGFIX] Fix cases like `channel.select(:snippet).view_count` where attribute does not belong to any selected part.
|
12
|
+
|
9
13
|
## 0.1.1 - 2017-04-04
|
10
14
|
|
11
15
|
* [ENHANCEMENT] Add :defaults to `has_attribute`
|
data/lib/yt/core/version.rb
CHANGED
data/lib/yt/resource.rb
CHANGED
@@ -6,7 +6,7 @@ module Yt
|
|
6
6
|
# @option data [String] :id The unique ID of a YouTube resource.
|
7
7
|
def initialize(data = {})
|
8
8
|
@data = data
|
9
|
-
@selected_data_parts =
|
9
|
+
@selected_data_parts = []
|
10
10
|
end
|
11
11
|
|
12
12
|
# @return [String] the resource’s unique ID.
|
@@ -65,7 +65,7 @@ module Yt
|
|
65
65
|
fetch resources_path, resource_params(options)
|
66
66
|
end
|
67
67
|
|
68
|
-
parts = @selected_data_parts
|
68
|
+
parts = (@selected_data_parts + [required_part]).uniq
|
69
69
|
if (resource = resources.select(*parts).first)
|
70
70
|
parts.each{|part| @data[part] = resource.data[part]}
|
71
71
|
@data[required_part]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yt-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Claudio Baccigalupo
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-04-
|
11
|
+
date: 2017-04-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: yt-support
|