nicoquery 0.1.8.7 → 0.1.8.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/nicoquery/object_mapper/video_array.rb +8 -3
- data/lib/nicoquery/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 562a498e207c749c1d054b6914178dd2235921a3
|
4
|
+
data.tar.gz: a47deba7f5ec62fa299d0a3489c9c5b4a1b56551
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e458f9fc86516a133c151fa37324de2a3253d9be775756cf7cd83c060d78a8c59c799bf597e741dc5af9c714bc0ae61c4d26e2f5d241a1cfec4ba8335546c94
|
7
|
+
data.tar.gz: 7282ba6d0dd85c69ebd7eac1d42aaaff8ae54f74738a7ab340f36f5abd92e24540c812bb9ad46454ed2b5f421c1b42b5b896e55db4c45d1a7e6f6ef6854444e2
|
data/Gemfile.lock
CHANGED
@@ -93,10 +93,15 @@ module NicoQuery
|
|
93
93
|
end
|
94
94
|
|
95
95
|
def tags
|
96
|
-
|
97
|
-
tag_hash = [ @hash['tags']['tag_info'] ] unless tag_hash.instance_of? Array
|
96
|
+
tag_obj = @hash['tags']['tag_info']
|
98
97
|
|
99
|
-
|
98
|
+
if tag_obj.instance_of? Array
|
99
|
+
tag_array = tag_obj
|
100
|
+
else
|
101
|
+
tag_array = [ tag_obj ]
|
102
|
+
end
|
103
|
+
|
104
|
+
tag_array.each_with_object([]) do |tag, array|
|
100
105
|
array << { text: tag['tag'] }
|
101
106
|
end
|
102
107
|
end
|
data/lib/nicoquery/version.rb
CHANGED