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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 551fceab0b13540d8e87fa99e5ef72f4d98f38ec
4
- data.tar.gz: 2d206bc95ab49a75022be258c301c0cba1fa5b31
3
+ metadata.gz: 562a498e207c749c1d054b6914178dd2235921a3
4
+ data.tar.gz: a47deba7f5ec62fa299d0a3489c9c5b4a1b56551
5
5
  SHA512:
6
- metadata.gz: 5ff691c9cc7c99862457c6880c0df4536a7ee5c330b21e2d7933f6cc7d0a2bb4a8181bed4998fee7f051d746112fed21bef1461ae22dfc9ea5f03f6c81af9eea
7
- data.tar.gz: 45f39371bc9119ead3ac08ef65b9827cc51b7cff4c6a9d49a9e93e5876e9af6167609d0c614933f94916f4f1e28cb534cd9b220edb9792a42dad6475f4333944
6
+ metadata.gz: 2e458f9fc86516a133c151fa37324de2a3253d9be775756cf7cd83c060d78a8c59c799bf597e741dc5af9c714bc0ae61c4d26e2f5d241a1cfec4ba8335546c94
7
+ data.tar.gz: 7282ba6d0dd85c69ebd7eac1d42aaaff8ae54f74738a7ab340f36f5abd92e24540c812bb9ad46454ed2b5f421c1b42b5b896e55db4c45d1a7e6f6ef6854444e2
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nicoquery (0.1.8.7)
4
+ nicoquery (0.1.8.8)
5
5
  activesupport (~> 4.0.0)
6
6
  i18n
7
7
  nicoapi
@@ -93,10 +93,15 @@ module NicoQuery
93
93
  end
94
94
 
95
95
  def tags
96
- tag_hash = @hash['tags']['tag_info'].instance_of? Array
97
- tag_hash = [ @hash['tags']['tag_info'] ] unless tag_hash.instance_of? Array
96
+ tag_obj = @hash['tags']['tag_info']
98
97
 
99
- tag_hash.each_with_object([]) do |tag, array|
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
@@ -1,3 +1,3 @@
1
1
  module NicoQuery
2
- VERSION = "0.1.8.7"
2
+ VERSION = "0.1.8.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nicoquery
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8.7
4
+ version: 0.1.8.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masami Yonehara