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 +4 -4
- data/.idea/encodings.xml +5 -0
- data/.idea/misc.xml +5 -0
- data/.idea/modules.xml +9 -0
- data/.idea/nicoquery.iml +45 -0
- data/.idea/scopes/scope_settings.xml +5 -0
- data/.idea/vcs.xml +7 -0
- data/Gemfile.lock +1 -1
- data/lib/nicoquery/object_mapper/mylist_rss.rb +8 -2
- data/lib/nicoquery/version.rb +1 -1
- data/spec/api/tag_search_spec.rb +1 -1
- metadata +8 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62217f7ab3b8f8446ee64574f91c1bbe3470c5a4
|
4
|
+
data.tar.gz: bd857cf743b1a6c7a6190bb7a256d8dec2e984d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb75d8c56236cec6442e48bd9be056d40bd4dc3918d65b77f2ae4163515c71aeac035cc1528bb2277645fb5855dd7fbd69a4781746fc6a292bf1f3019f5fa3ca
|
7
|
+
data.tar.gz: 84bdec5d7a754cc745c879dd085d34899037ca5c0e82d576f1a4d80327f8aea47fa63d1938fb464093386df9a112e5365c8c120d79e16fa71bc70768c82a459b
|
data/.idea/encodings.xml
ADDED
data/.idea/misc.xml
ADDED
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
|
+
|
data/.idea/nicoquery.iml
ADDED
@@ -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
|
+
|
data/.idea/vcs.xml
ADDED
data/Gemfile.lock
CHANGED
@@ -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
|
-
|
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
|
data/lib/nicoquery/version.rb
CHANGED
data/spec/api/tag_search_spec.rb
CHANGED
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.
|
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-
|
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
|