nicoquery 0.0.2.1 → 0.0.2.2

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: 427918cbd4c9b78730b7c4026378deeb71ab19e4
4
- data.tar.gz: b10b60f83aa98e0fba52df8be1231329d8e527de
3
+ metadata.gz: 62217f7ab3b8f8446ee64574f91c1bbe3470c5a4
4
+ data.tar.gz: bd857cf743b1a6c7a6190bb7a256d8dec2e984d3
5
5
  SHA512:
6
- metadata.gz: 5e0fab59bedd493d3cfe46228dc8d1ab73d663087fc66c1330e80e3cc5628a6129a2f187f8e900690ab63ddd4bafd63e84b0b15d72b166baa736899c50fade5b
7
- data.tar.gz: f5becd0dfce3ddbd4d589287749b5e1f1afa3aa20af4046e094470ec005b1aae05864bea048c7d86ea918906aa780bc8c7eb1e702bc1b7231fd37e91ff342576
6
+ metadata.gz: bb75d8c56236cec6442e48bd9be056d40bd4dc3918d65b77f2ae4163515c71aeac035cc1528bb2277645fb5855dd7fbd69a4781746fc6a292bf1f3019f5fa3ca
7
+ data.tar.gz: 84bdec5d7a754cc745c879dd085d34899037ca5c0e82d576f1a4d80327f8aea47fa63d1938fb464093386df9a112e5365c8c120d79e16fa71bc70768c82a459b
@@ -0,0 +1,5 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="Encoding" useUTFGuessing="true" native2AsciiForPropertiesFiles="false" />
4
+ </project>
5
+
data/.idea/misc.xml ADDED
@@ -0,0 +1,5 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectRootManager" version="2" project-jdk-name="rbenv: 2.0.0-p247" project-jdk-type="RUBY_SDK" />
4
+ </project>
5
+
data/.idea/modules.xml ADDED
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/nicoquery.iml" filepath="$PROJECT_DIR$/.idea/nicoquery.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
9
+
@@ -0,0 +1,45 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="RUBY_MODULE" version="4">
3
+ <component name="FacetManager">
4
+ <facet type="gem" name="Gem">
5
+ <configuration>
6
+ <option name="GEM_APP_ROOT_PATH" value="$MODULE_DIR$" />
7
+ <option name="GEM_APP_TEST_PATH" value="" />
8
+ <option name="GEM_APP_LIB_PATH" value="$MODULE_DIR$/lib" />
9
+ </configuration>
10
+ </facet>
11
+ </component>
12
+ <component name="NewModuleRootManager">
13
+ <content url="file://$MODULE_DIR$">
14
+ <sourceFolder url="file://$MODULE_DIR$/spec" isTestSource="true" />
15
+ </content>
16
+ <orderEntry type="inheritedJdk" />
17
+ <orderEntry type="sourceFolder" forTests="false" />
18
+ <orderEntry type="library" scope="PROVIDED" name="activesupport (v4.0.0, rbenv: 2.0.0-p247) [gem]" level="application" />
19
+ <orderEntry type="library" scope="PROVIDED" name="atomic (v1.1.12, rbenv: 2.0.0-p247) [gem]" level="application" />
20
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v1.3.5, rbenv: 2.0.0-p247) [gem]" level="application" />
21
+ <orderEntry type="library" scope="PROVIDED" name="coderay (v1.0.9, rbenv: 2.0.0-p247) [gem]" level="application" />
22
+ <orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.2.4, rbenv: 2.0.0-p247) [gem]" level="application" />
23
+ <orderEntry type="library" scope="PROVIDED" name="i18n (v0.6.4, rbenv: 2.0.0-p247) [gem]" level="application" />
24
+ <orderEntry type="library" scope="PROVIDED" name="method_source (v0.8.2, rbenv: 2.0.0-p247) [gem]" level="application" />
25
+ <orderEntry type="library" scope="PROVIDED" name="mime-types (v1.23, rbenv: 2.0.0-p247) [gem]" level="application" />
26
+ <orderEntry type="library" scope="PROVIDED" name="mini_portile (v0.5.1, rbenv: 2.0.0-p247) [gem]" level="application" />
27
+ <orderEntry type="library" scope="PROVIDED" name="minitest (v4.7.5, rbenv: 2.0.0-p247) [gem]" level="application" />
28
+ <orderEntry type="library" scope="PROVIDED" name="multi_json (v1.7.8, rbenv: 2.0.0-p247) [gem]" level="application" />
29
+ <orderEntry type="library" scope="PROVIDED" name="nicoapi (v0.0.4.1, rbenv: 2.0.0-p247) [gem]" level="application" />
30
+ <orderEntry type="library" scope="PROVIDED" name="nokogiri (v1.6.0, rbenv: 2.0.0-p247) [gem]" level="application" />
31
+ <orderEntry type="library" scope="PROVIDED" name="nori (v2.3.0, rbenv: 2.0.0-p247) [gem]" level="application" />
32
+ <orderEntry type="library" scope="PROVIDED" name="pry (v0.9.12.2, rbenv: 2.0.0-p247) [gem]" level="application" />
33
+ <orderEntry type="library" scope="PROVIDED" name="rake (v10.1.0, rbenv: 2.0.0-p247) [gem]" level="application" />
34
+ <orderEntry type="library" scope="PROVIDED" name="rest-client (v1.6.7, rbenv: 2.0.0-p247) [gem]" level="application" />
35
+ <orderEntry type="library" scope="PROVIDED" name="rspec (v2.14.1, rbenv: 2.0.0-p247) [gem]" level="application" />
36
+ <orderEntry type="library" scope="PROVIDED" name="rspec-core (v2.14.4, rbenv: 2.0.0-p247) [gem]" level="application" />
37
+ <orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v2.14.0, rbenv: 2.0.0-p247) [gem]" level="application" />
38
+ <orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v2.14.2, rbenv: 2.0.0-p247) [gem]" level="application" />
39
+ <orderEntry type="library" scope="PROVIDED" name="slop (v3.4.6, rbenv: 2.0.0-p247) [gem]" level="application" />
40
+ <orderEntry type="library" scope="PROVIDED" name="thread_safe (v0.1.2, rbenv: 2.0.0-p247) [gem]" level="application" />
41
+ <orderEntry type="library" scope="PROVIDED" name="tzinfo (v0.3.37, rbenv: 2.0.0-p247) [gem]" level="application" />
42
+ <orderEntry type="library" scope="PROVIDED" name="watchr (v0.7, rbenv: 2.0.0-p247) [gem]" level="application" />
43
+ </component>
44
+ </module>
45
+
@@ -0,0 +1,5 @@
1
+ <component name="DependencyValidationManager">
2
+ <state>
3
+ <option name="SKIP_IMPORT_STATEMENTS" value="false" />
4
+ </state>
5
+ </component>
data/.idea/vcs.xml ADDED
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
+ </component>
6
+ </project>
7
+
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nicoquery (0.0.2.1)
4
+ nicoquery (0.0.2.2)
5
5
  activesupport (~> 4.0.0)
6
6
  i18n
7
7
  nicoapi
@@ -10,8 +10,14 @@ module NicoQuery
10
10
  parsed_xml = parser.parse xml
11
11
  entire = parsed_xml['rss']['channel']
12
12
 
13
- @meta = Meta.new entire, title_prefix
14
- @items = entire['item'].map { |item| Item.new item }
13
+ @meta = Meta.new entire, title_prefix # noriは子要素が複数の場合は配列に変換するが、1つの場合には配列にしない。
14
+ # しかし、MylistRSSはitemsが配列であること前提にしているので、item要素が
15
+ # 1つだけの場合にも配列に変換する。
16
+ if entire['item'].is_a? Array
17
+ @items = entire['item'].map { |item| Item.new item }
18
+ else
19
+ @items = [ Item.new(entire['item']) ]
20
+ end
15
21
  end
16
22
 
17
23
  def title_prefix
@@ -1,3 +1,3 @@
1
1
  module NicoQuery
2
- VERSION = "0.0.2.1"
2
+ VERSION = "0.0.2.2"
3
3
  end
@@ -3,7 +3,7 @@ require 'nicoquery/api/tag_search_rss'
3
3
 
4
4
  describe "tag_search" do
5
5
  before do
6
- @instance = NicoQuery::Api::TagSearch.new tag: 'ゆっくり実況プレイ',
6
+ @instance = NicoQuery::Api::TagSearchRss.new tag: 'ゆっくり実況プレイ',
7
7
  sort: :published_at,
8
8
  order: :asc,
9
9
  page: 1
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nicoquery
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2.1
4
+ version: 0.0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masami Yonehara
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-20 00:00:00.000000000 Z
11
+ date: 2013-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -172,6 +172,12 @@ extensions: []
172
172
  extra_rdoc_files: []
173
173
  files:
174
174
  - .gitignore
175
+ - .idea/encodings.xml
176
+ - .idea/misc.xml
177
+ - .idea/modules.xml
178
+ - .idea/nicoquery.iml
179
+ - .idea/scopes/scope_settings.xml
180
+ - .idea/vcs.xml
175
181
  - .ruby-version
176
182
  - .travis.yml
177
183
  - Gemfile