animenewsnetwork 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 485242bb38a628015fa70c792bf057490beaeb8b
4
+ data.tar.gz: c95fb34e388eca3cbf19c50ca04c716dd51130a8
5
+ SHA512:
6
+ metadata.gz: 5901394da31967f9223b752cf339da821c792742c4273a2f2fcd3ce151176cbef08f98c536a5b1a087e259a1cbae8aa352bc69c0e040d5c7c2d05be9aa2e7de7
7
+ data.tar.gz: 8f6ef18be8eed9b75f96793dd135a26f0bc8dd849c9d178ec3c2a1913074279100e0c3307d9dc636bbea9447e69773bc109f4c7c48c044d29a3836686bff997a
@@ -0,0 +1,20 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
18
+ vendor/bundle/
19
+ bin/
20
+ .*.swp
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ -cfs
@@ -0,0 +1 @@
1
+ 2.0.0-p195
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in animenewsnetwork.gemspec
4
+ gemspec
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 Ryosuke IWANAGA
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,29 @@
1
+ # Animenewsnetwork
2
+
3
+ TODO: Write a gem description
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'animenewsnetwork'
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install animenewsnetwork
18
+
19
+ ## Usage
20
+
21
+ TODO: Write usage instructions here
22
+
23
+ ## Contributing
24
+
25
+ 1. Fork it
26
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
27
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
28
+ 4. Push to the branch (`git push origin my-new-feature`)
29
+ 5. Create new Pull Request
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+
3
+ task :default => [:spec]
4
+ begin
5
+ require 'rspec/core/rake_task'
6
+ RSpec::Core::RakeTask.new(:spec) do |spec|
7
+ spec.rspec_opts = %w[-r ./spec/spec_helper.rb]
8
+ end
9
+ rescue LoadError => e
10
+ end
@@ -0,0 +1,31 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'animenewsnetwork/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "animenewsnetwork"
8
+ spec.version = AnimeNewsNetwork::VERSION
9
+ spec.authors = ["Ryosuke IWANAGA"]
10
+ spec.email = ["riywo.jp@gmail.com"]
11
+ spec.description = %q{AnimeNewsNetwork API}
12
+ spec.summary = %q{AnimeNewsNetwork API}
13
+ spec.homepage = ""
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files`.split($/)
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.required_ruby_version = ">= 2.0.0"
22
+
23
+ spec.add_dependency "nokogiri"
24
+ spec.add_dependency "addressable"
25
+
26
+ spec.add_development_dependency "bundler", "~> 1.3"
27
+ spec.add_development_dependency "rake"
28
+ spec.add_development_dependency "rspec"
29
+ spec.add_development_dependency "webmock"
30
+ spec.add_development_dependency "pry"
31
+ end
@@ -0,0 +1,6 @@
1
+ require "animenewsnetwork/version"
2
+ require "animenewsnetwork/encyclopedia"
3
+
4
+ module AnimeNewsNetwork
5
+ # Your code goes here...
6
+ end
@@ -0,0 +1,39 @@
1
+ require 'open-uri'
2
+ require 'nokogiri'
3
+ require 'addressable/uri'
4
+
5
+ class AnimeNewsNetwork::Encyclopedia
6
+ def initialize(url: 'http://cdn.animenewsnetwork.com/encyclopedia')
7
+ @url = url.freeze
8
+ end
9
+
10
+ def get_reports(id: nil, type: nil)
11
+ raise ArgumentError if id.nil?
12
+ raise ArgumentError if type.nil?
13
+
14
+ path = '/reports.xml';
15
+ query = {
16
+ id: id,
17
+ type: type,
18
+ }
19
+ Nokogiri::XML(get(path, query))
20
+ end
21
+
22
+ def get_details(id: nil, type: nil)
23
+ raise ArgumentError if id.nil?
24
+ raise ArgumentError if type.nil?
25
+
26
+ path = '/api.xml';
27
+ query = { type => id }
28
+ Nokogiri::XML(get(path, query))
29
+ end
30
+
31
+ private
32
+
33
+ def get(path = '', query = {})
34
+ uri = Addressable::URI.parse(@url)
35
+ uri.path += path
36
+ uri.query_values = query
37
+ return open(uri)
38
+ end
39
+ end
@@ -0,0 +1,3 @@
1
+ module AnimeNewsNetwork
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,6 @@
1
+ describe AnimeNewsNetwork do
2
+ describe "VERSION" do
3
+ subject { AnimeNewsNetwork::VERSION }
4
+ it { should be_a String }
5
+ end
6
+ end
@@ -0,0 +1,118 @@
1
+ <ann><anime id="4658" gid="1097470093" type="TV" name="Jinki:Extend" precision="TV" generated-on="2013-05-27T05:58:19Z">
2
+ <info gid="1693214504" type="Picture" src="http://cdn.animenewsnetwork.com/thumbnails/fit200x200/encyc/A4658-7.jpg" width="178" height="200"><img src="http://cdn.animenewsnetwork.com/thumbnails/fit200x200/encyc/A4658-7.jpg" width="178" height="200"/></info>
3
+ <info gid="2849059477" type="Main title" lang="JA">Jinki:Extend</info>
4
+ <info gid="2660569749" type="Alternative title" lang="RU">Боевые роботы Дзинки</info>
5
+ <info gid="1675008096" type="Alternative title" lang="JA">ジンキ・エクステンド</info>
6
+ <info gid="2445949786" type="Genres">drama</info>
7
+ <info gid="1267102403" type="Genres">science fiction</info>
8
+ <info gid="1769392376" type="Themes">mecha</info>
9
+ <info gid="936033876" type="Themes">military</info>
10
+ <info gid="1078550493" type="Themes">moe</info>
11
+ <info gid="2421355715" type="Themes">real robot</info>
12
+ <info gid="2605299806" type="Objectionable content">TA</info>
13
+ <info gid="3324519232" type="Plot Summary">Aoba is a young girl who loves to build models of robots. She lived alone with her grandmother until her grandmother passes away. Shortly after she is kidnapped and brought to a secret base where she discovers a huge robot. The piloted robots fight against Ancient-Jinki in The Grand Savanna, but the true meaning behind the fights is hidden. Aoba works hard at the base so one day she can pilot one of the robots and discover these secrets.</info>
14
+ <info gid="2642397968" type="Number of episodes">12</info>
15
+ <info gid="3079748225" type="Vintage">2005-01-05 to 2005-03-23</info>
16
+ <info gid="2071198001" type="Opening Theme">&quot;FLY AWAY&quot; by unicorn table</info>
17
+ <info gid="3833528025" type="Ending Theme">&quot;未来とゆう名の答え (&lt;i&gt;Mirai to yuu na no kotae&lt;/i&gt;)&quot; by angela</info>
18
+ <info gid="3603908636" type="Official website" lang="EN" href="http://www25.advfilms.com/titles/extend/index_content.html">ADV - Jinki : Extend Offical Site (English)</info>
19
+ <info gid="2344820708" type="Official website" lang="JA" href="http://www.tv-asahi.co.jp/jinki/">TV Asahi's Official &quot;Jinki: Extend&quot; Website</info>
20
+ <info gid="1291886456" type="Official website" lang="JA" href="http://www.jinki.info">ジンキ・エクステンド</info>
21
+ <episode num="1">
22
+ <title gid="3095466740" lang="EN">The Battlefield the Girl Saw</title></episode>
23
+ <episode num="2">
24
+ <title gid="1019682570" lang="EN">The Trail of Tears</title></episode>
25
+ <episode num="3">
26
+ <title gid="2879327918" lang="EN">Quality and Quantity</title></episode>
27
+ <episode num="4">
28
+ <title gid="1042118304" lang="EN">Encounter</title></episode>
29
+ <episode num="5">
30
+ <title gid="1323093475" lang="EN">Foes and Friends</title></episode>
31
+ <episode num="6">
32
+ <title gid="3023688674" lang="EN">The Black Operator</title></episode>
33
+ <episode num="7">
34
+ <title gid="2322922310" lang="EN">Fulfilled Ambition</title></episode>
35
+ <episode num="8">
36
+ <title gid="1400916808" lang="EN">The Silver-winged Visitor</title></episode>
37
+ <episode num="9">
38
+ <title gid="2204235069" lang="EN">The Game's Winner</title></episode>
39
+ <episode num="10">
40
+ <title gid="2038411104" lang="EN">Red and Black</title></episode>
41
+ <episode num="11">
42
+ <title gid="250690944" lang="EN">Family</title></episode>
43
+ <episode num="12">
44
+ <title gid="1897449103" lang="EN">Blue and Red</title></episode>
45
+ <episode num="13">
46
+ <title gid="1997989660" lang="EN">And Then</title></episode>
47
+ <review href="http://www.animenewsnetwork.com/review/jinki-extend/dvd-3">Jinki:Extend DVD 3</review>
48
+ <review href="http://www.animenewsnetwork.com/review/jinki-extend/dvd-2">Jinki:Extend DVD 2</review>
49
+ <review href="http://www.animenewsnetwork.com/review/jinki-extend-1">Jinki:Extend 1</review>
50
+ <release date="2009-09-08" href="http://www.animenewsnetwork.com/encyclopedia/releases.php?id=14829">Jinki: Extend - Complete Series (DVD)</release>
51
+ <release date="2010-10-05" href="http://www.animenewsnetwork.com/encyclopedia/releases.php?id=17679">Jinki:Extend - The Complete Series [S.A.V.E. Edition] (DVD)</release>
52
+ <release date="2006-09-05" href="http://www.animenewsnetwork.com/encyclopedia/releases.php?id=7626">Jinki:Extend (DVD 1)</release>
53
+ <release date="2006-11-07" href="http://www.animenewsnetwork.com/encyclopedia/releases.php?id=7552">Jinki:Extend (DVD 2)</release>
54
+ <release date="2007-01-02" href="http://www.animenewsnetwork.com/encyclopedia/releases.php?id=7874">Jinki:Extend (DVD 3)</release>
55
+ <release date="2008-01-01" href="http://www.animenewsnetwork.com/encyclopedia/releases.php?id=10390">Jinki:Extend - Complete Collection (DVD 1-3)</release>
56
+ <news datetime="2007-08-10T15:58:20Z" href="http://www.animenewsnetwork.com/news/2007-08-10/unicorn-table-to-perform-at-new-york-anime-festival">Unicorn Table to Perform at New York Anime Festival</news>
57
+ <news datetime="2007-09-13T13:15:35Z" href="http://www.animenewsnetwork.com/news/2007-09-13/uk's-propeller-tv-expands-anime-network-to-daily-block">UK's Propeller TV Expands Anime Network to Daily Block</news>
58
+ <news datetime="2007-09-18T13:43:40Z" href="http://www.animenewsnetwork.com/news/2007-09-18/virginia's-akiba-fest-ball-hosts-salia-psychic-lover">Virginia's Akiba Fest Ball Hosts Salia, Psychic Lover</news>
59
+ <news datetime="2008-01-22T18:55:16Z" href="http://www.animenewsnetwork.com/news/2008-01-22/adv-films-uk-switches-from-us-run-office-to-uk-partner">ADV Films UK Switches from US-Run Office to UK Partner</news>
60
+ <news datetime="2008-01-30T19:45:30Z" href="http://www.animenewsnetwork.com/news/2008-01-30/adv-films-removes-titles-from-website-update">ADV Films Removes Titles from Website - Update</news>
61
+ <news datetime="2008-02-20T01:34:59Z" href="http://www.animenewsnetwork.com/news/2008-02-19/unicorn-table-to-play-at-western-new-york-tora-con">Unicorn Table to Play at Western New York's Tora-Con</news>
62
+ <news datetime="2008-06-11T17:57:28Z" href="http://www.animenewsnetwork.com/news/2008-06-11/shonen-gangan-details-gainax-shikabane-hime-aka-anime">&lt;cite&gt;Shonen Gangan&lt;/cite&gt; Details Gainax's &lt;cite&gt;Shikabane Hime: Aka&lt;/cite&gt; Anime</news>
63
+ <news datetime="2008-07-04T13:01:00Z" href="http://www.animenewsnetwork.com/news/2008-07-04/funimation-picks-up-over-30-former-ad-vision-titles">Funimation Picks Up Over 30 Former AD Vision Titles</news>
64
+ <news datetime="2008-10-22T22:25:26Z" href="http://www.animenewsnetwork.com/news/2008-10-22/sojitz-dissolution-of-arm-to-not-affect-funimation">Sojitz's Dissolution of ARM to Not Affect FUNimation</news>
65
+ <news datetime="2010-02-09T20:38:08Z" href="http://www.animenewsnetwork.com/news/2010-02-09/dubbed-strike-witches-wallflower-halo-clip-posted">Dubbed &lt;cite&gt;Strike Witches, Wallflower, Halo&lt;/cite&gt; Clip Posted</news>
66
+ <news datetime="2010-02-18T03:16:26Z" href="http://www.animenewsnetwork.com/news/2010-02-17/crunchyroll-funimation-stream-shinkai-works-moeyo-ken">Crunchyroll, Funimation Stream Shinkai Works, &lt;cite&gt;Moeyo Ken&lt;/cite&gt;</news>
67
+ <news datetime="2010-03-04T12:00:00Z" href="http://www.animenewsnetwork.com/news/2010-03-04/shattered-angels-gunslinger-girl-ova-more-streamed">&lt;cite&gt;Shattered Angels, Gunslinger Girl&lt;/cite&gt; OVA, More Streamed</news>
68
+ <news datetime="2010-10-05T14:07:52Z" href="http://www.animenewsnetwork.com/news/2010-10-05/north-american-anime-manga-releases-october-3-9">North American Anime, Manga Releases, October 3-9</news>
69
+ <news datetime="2011-02-23T22:38:44Z" href="http://www.animenewsnetwork.com/news/2011-02-23/unicorn-table-singers-to-perform-at-ayacon-warwick">Unicorn Table singers to perform at Ayacon, Warwick</news>
70
+ <news datetime="2011-06-18T03:57:00Z" href="http://www.animenewsnetwork.com/news/2011-06-17/north-american-stream-list/june-10-17">North American Stream List: June 10-17</news>
71
+ <news datetime="2012-01-30T22:00:00Z" href="http://www.animenewsnetwork.com/news/2012-01-30/adv-court-documents-reveal-amounts-paid-for-29-anime-titles">ADV Court Documents Reveal Amounts Paid for 29 Anime Titles</news>
72
+ <staff gid="1560974500"><task>Director</task><person id="3610">Masahiko Murata</person></staff>
73
+ <staff gid="714854657"><task>Music</task><person id="140">Kenji Kawai</person></staff>
74
+ <staff gid="1082163268"><task>Original Manga</task><person id="27743">Sirou Tunasima</person></staff>
75
+ <staff gid="2230005074"><task>Character Design</task><person id="15209">Naoto Hosoda</person></staff>
76
+ <staff gid="1938405310"><task>Art Director</task><person id="7353">Naoko Kosakabe</person></staff>
77
+ <staff gid="1701314492"><task>Animation Director</task><person id="4240">Masami Obari</person></staff>
78
+ <staff gid="3250390369"><task>Animation Director</task><person id="66640">Hiroki Mutaguchi</person></staff>
79
+ <staff gid="3076790874"><task>Mechanical design</task><person id="17992">Katsuyuki Tamura</person></staff>
80
+ <staff gid="2676225977"><task>Sound Director</task><person id="424">Kazuhiro Wakabayashi</person></staff>
81
+ <staff gid="1843996024"><task>Director of Photography</task><person id="7454">Yasuhisa Kondo</person></staff>
82
+ <staff gid="3311864319"><task>Producer</task><person id="46074">Hedwig Schleck</person></staff>
83
+ <staff gid="841413005"><task>Producer</task><person id="48371">Makoto Takigasaki</person></staff>
84
+ <staff gid="2405542094"><task>Producer</task><person id="55498">Shigeru Tateishi</person></staff>
85
+ <cast gid="2661476283" lang="EN"><role>Mel J</role><person id="1062">Christine Auten</person></cast>
86
+ <cast gid="2408482882" lang="EN"><role>Ryohei Ogawara</role><person id="1064">Jason Douglas</person></cast>
87
+ <cast gid="3934354050" lang="EN"><role>Shizuka Tsuzaki</role><person id="2074">Monica Rial</person></cast>
88
+ <cast gid="2680047095" lang="EN"><role>Hiroshi Kawamoto</role><person id="2517">Chris Patton</person></cast>
89
+ <cast gid="2380683277" lang="EN"><role>Genta Ogawara</role><person id="2525">John Swasey</person></cast>
90
+ <cast gid="1654830201" lang="EN"><role>Elnie Tachibana</role><person id="3516">Cynthia Martinez</person></cast>
91
+ <cast gid="3853972106" lang="EN"><role>Shiva</role><person id="3660">Kira Vincent-Davis</person></cast>
92
+ <cast gid="1910080947" lang="EN"><role>Minami Kosaka</role><person id="4919">Shelley Calene-Black</person></cast>
93
+ <cast gid="3531999063" lang="EN"><role>Akao Hiiragi</role><person id="7798">Jessica Boone</person></cast>
94
+ <cast gid="2391728390" lang="EN"><role>Rui Kosaka</role><person id="12493">Luci Christian</person></cast>
95
+ <cast gid="1409390351" lang="EN"><role>Satsuki Kawamoto</role><person id="13929">Allison Sumrall</person></cast>
96
+ <cast gid="3131068072" lang="EN"><role>Hideo Koyatani</role><person id="14187">Nomed Kaerf</person></cast>
97
+ <cast gid="2876815189" lang="EN"><role>Yasuyuki Nishihara</role><person id="37623">Blake Shepard</person></cast>
98
+ <cast gid="1384221282" lang="EN"><role>Aoba Tsuzaki</role><person id="44595">Brittney Karbowski</person></cast>
99
+ <cast gid="1792866004" lang="JA"><role>Shizuka Tsuzaki</role><person id="278">Satsuki Yukino</person></cast>
100
+ <cast gid="2156350370" lang="JA"><role>Genta Ogawara</role><person id="458">Rokuro Naya</person></cast>
101
+ <cast gid="3448852547" lang="JA"><role>Rui Kōsaka</role><person id="524">Yukari Tamura</person></cast>
102
+ <cast gid="1756973665" lang="JA"><role>Elnie Tachibana</role><person id="526">Tomoko Kawakami</person></cast>
103
+ <cast gid="1626578526" lang="JA"><role>Aoba Tsuzaki</role><person id="912">Fumiko Orikasa</person></cast>
104
+ <cast gid="1410696507" lang="JA"><role>Minami Kōsaka</role><person id="1588">Yoshino Takamori</person></cast>
105
+ <cast gid="3084421961" lang="JA"><role>Ryouhei Ogawara</role><person id="7629">Takuma Takewaka</person></cast>
106
+ <cast gid="3270154068" lang="JA"><role>Mel J Vanette</role><person id="9961">Junko Minagawa</person></cast>
107
+ <cast gid="3151376498" lang="JA"><role>Satsuki Kawamoto</role><person id="13321">Ai Nonaka</person></cast>
108
+ <cast gid="2690394696" lang="JA"><role>Akao Hiiragi</role><person id="37191">Yuuna Inamura</person></cast>
109
+ <cast gid="1216199898" lang="TL"><role>Genta Ogawara</role><person id="38935">Louie Paraboles</person></cast>
110
+ <cast gid="3162120279" lang="TL"><role>Ryouhei Ogawara</role><person id="38935">Louie Paraboles</person></cast>
111
+ <cast gid="1449215999" lang="TL"><role>Aoba Tsuzaki</role><person id="39024">Grace Cornel</person></cast>
112
+ <cast gid="2741462152" lang="TL"><role>Minami Kosaka</role><person id="39024">Grace Cornel</person></cast>
113
+ <cast gid="867204356" lang="TL"><role>Akao Hiiragi</role><person id="39656">Sherwin Revestir</person></cast>
114
+ <cast gid="533292258" lang="TL"><role>Shizuka Tsuzaki</role><person id="39656">Sherwin Revestir</person></cast>
115
+ <cast gid="2304322786" lang="TL"><role>Rui Kosaka</role><person id="42183">Justeen Niebres</person></cast>
116
+ <cast gid="1655325149" lang="TL"><role>Shiva</role><person id="42183">Justeen Niebres</person></cast>
117
+ <credit gid="2489952245"><task>Animation Production</task><company id="8883">feel.</company></credit>
118
+ <credit gid="2207693755"><task>Production</task><company id="8883">feel.</company></credit></anime></ann>
@@ -0,0 +1,101 @@
1
+ <report skipped="0" listed="100"><args><type>anime</type><name></name><search></search></args>
2
+ <item><id>15347</id><gid>1743357399</gid><type>TV</type><name>Outbreak Company</name><precision>TV</precision></item>
3
+ <item><id>15346</id><gid>1880713222</gid><type>movie</type><name>Wizard of Oz</name><precision>movie</precision><vintage>1982</vintage></item>
4
+ <item><id>15345</id><gid>1104664578</gid><type>OAV</type><name>Mobile Suit Gundam AGE Memory of Eden</name><precision>OAV</precision><vintage>2013-07-26</vintage></item>
5
+ <item><id>15344</id><gid>2266808185</gid><type>TV</type><name>BlazBlue Alter Memory</name><precision>TV</precision><vintage>2013-10</vintage></item>
6
+ <item><id>15339</id><gid>1643593889</gid><type>TV</type><name>Kitakubu Katsudō Kiroku</name><precision>TV</precision><vintage>2013-07</vintage></item>
7
+ <item><id>15337</id><gid>3032870016</gid><type>TV</type><name>Ace of Diamond</name><precision>TV</precision><vintage>2013-10</vintage></item>
8
+ <item><id>15336</id><gid>2475366211</gid><type>TV</type><name>Kill la Kill</name><precision>TV</precision></item>
9
+ <item><id>15335</id><gid>3988984331</gid><type>TV</type><name>Maken-Ki! Two</name><precision>TV</precision></item>
10
+ <item><id>15334</id><gid>1459553801</gid><type>TV</type><name>World God Only Knows: Goddesses Arc</name><precision>TV</precision><vintage>2013-07</vintage></item>
11
+ <item><id>15333</id><gid>2917454474</gid><type>movie</type><name>Buddha 2: Tezuka Osamu no Buddha ~Owarinaki Tabi~</name><precision>movie</precision><vintage>2014-02</vintage></item>
12
+ <item><id>15331</id><gid>2431672958</gid><type>TV</type><name>Inazuma Eleven GO Galaxy</name><precision>TV</precision><vintage>2013-05-08</vintage></item>
13
+ <item><id>15327</id><gid>2010126973</gid><type>OAV</type><name>Panty &amp; Stocking in Sanitarybox</name><precision>OAV</precision><vintage>2011-04-28</vintage></item>
14
+ <item><id>15325</id><gid>2414191195</gid><type>special</type><name>Visitor</name><precision>special</precision><vintage>1998-11-07</vintage></item>
15
+ <item><id>15324</id><gid>3234688477</gid><type>OAV</type><name>Gurren Lagann Parallel Works 2</name><precision>OAV</precision></item>
16
+ <item><id>15323</id><gid>3476789740</gid><type>OAV</type><name>Gurren Lagann Parallel Works</name><precision>OAV</precision></item>
17
+ <item><id>15322</id><gid>1726879319</gid><type>OAV</type><name>Aesop Dōwa</name><precision>OAV</precision><vintage>1993-11-21</vintage></item>
18
+ <item><id>15321</id><gid>2072166212</gid><type>OAV</type><name>Be-yond</name><precision>OAV</precision><vintage>2001-05-25</vintage></item>
19
+ <item><id>15320</id><gid>2285117752</gid><type>OAV</type><name>Coffee Samurai</name><precision>OAV</precision></item>
20
+ <item><id>15319</id><gid>1688438839</gid><type>OAV</type><name>Lupin Sansei: Lupin Ikka Seizoroi</name><precision>OAV</precision><vintage>2012-03-28</vintage></item>
21
+ <item><id>15317</id><gid>4211100586</gid><type>OAV</type><name>Wake in Garakuta Town</name><precision>OAV</precision><vintage>2006-07-01</vintage></item>
22
+ <item><id>15314</id><gid>2127754523</gid><type>OAV</type><name>D.C.I.F. Da Capo If</name><precision>OAV</precision><vintage>2008-12-25</vintage></item>
23
+ <item><id>15306</id><gid>2506978220</gid><type>OAV</type><name>Super Street Fighter IV</name><precision>OAV</precision></item>
24
+ <item><id>15305</id><gid>1319128679</gid><type>special</type><name>Sonic: Night of the Werehog</name><precision>special</precision></item>
25
+ <item><id>15304</id><gid>309709719</gid><type>special</type><name>Street Fighter II: Yomigaeru Fujiwara-kyō - Toki o Kaketa Fighter-tachi</name><precision>special</precision><vintage>1995-03-29</vintage></item>
26
+ <item><id>15297</id><gid>1864180041</gid><type>OAV</type><name>Transformers: Robot Masters</name><precision>OAV</precision><vintage>2004</vintage></item>
27
+ <item><id>15295</id><gid>1885071781</gid><type>TV</type><name>Senyū. Dai 2 Ki</name><precision>TV</precision><vintage>2013-07</vintage></item>
28
+ <item><id>15294</id><gid>2414032306</gid><type>movie</type><name>Un-Go episode:0 Inga-ron</name><precision>movie</precision><vintage>2011-11-19</vintage></item>
29
+ <item><id>15293</id><gid>1034070855</gid><type>movie</type><name>Superflat First Love</name><precision>movie</precision></item>
30
+ <item><id>15291</id><gid>1658126146</gid><type>TV</type><name>Free!</name><precision>TV</precision><vintage>2013-07</vintage></item>
31
+ <item><id>15290</id><gid>3978989353</gid><type>TV</type><name>Gifū Dōdō!! Kanetsugu to Keiji</name><precision>TV</precision><vintage>2013-07-02</vintage></item>
32
+ <item><id>15288</id><gid>1129967029</gid><type>TV</type><name>Genshiken: Second Season</name><precision>TV</precision><vintage>2013-07-06</vintage></item>
33
+ <item><id>15287</id><gid>1079643581</gid><type>TV</type><name>Yozakura Quartet ~Hana no Uta~</name><precision>TV</precision></item>
34
+ <item><id>15286</id><gid>2394144021</gid><type>OAV</type><name>Papa no Iu Koto o Kikinasai!</name><precision>OAV</precision><vintage>2013-06-25</vintage></item>
35
+ <item><id>15285</id><gid>1448868493</gid><type>TV</type><name>Infinite Stratos 2</name><precision>TV</precision></item>
36
+ <item><id>15284</id><gid>1241777404</gid><type>movie</type><name>Lupin III vs. Detective Conan The Movie</name><precision>movie</precision><vintage>2013-12</vintage></item>
37
+ <item><id>15283</id><gid>2633044429</gid><type>TV</type><name>Gingitsune</name><precision>TV</precision></item>
38
+ <item><id>15281</id><gid>2471951488</gid><type>TV</type><name>Duel Masters Victory V3</name><precision>TV</precision><vintage>2013-04-06</vintage></item>
39
+ <item><id>15280</id><gid>3927926821</gid><type>TV</type><name>Gatchaman Crowds</name><precision>TV</precision><vintage>2013-07</vintage></item>
40
+ <item><id>15279</id><gid>3623944637</gid><type>OAV</type><name>Yozakura Quartet ~Tsuki ni Naku~</name><precision>OAV</precision><vintage>2013-09-09</vintage></item>
41
+ <item><id>15278</id><gid>1976731581</gid><type>ONA</type><name>Heisei Policemen!!</name><precision>ONA</precision><vintage>2013-04-11</vintage></item>
42
+ <item><id>15276</id><gid>3726879418</gid><type>TV</type><name>Miyakawa-ke no Kūfuku</name><precision>TV</precision><vintage>2013-04-29</vintage></item>
43
+ <item><id>15275</id><gid>794400734</gid><type>TV</type><name>Bakujū Gasshin Ziguru Hazeru</name><precision>TV</precision><vintage>2013-04-06</vintage></item>
44
+ <item><id>15274</id><gid>3738301894</gid><type>TV</type><name>White Album 2</name><precision>TV</precision><vintage>2013-10</vintage></item>
45
+ <item><id>15272</id><gid>2210137400</gid><type>TV</type><name>Train Heroes</name><precision>TV</precision><vintage>2013-04-02</vintage></item>
46
+ <item><id>15269</id><gid>2926448960</gid><type>omnibus</type><name>Higurashi no Naku Koro ni</name><precision>omnibus</precision></item>
47
+ <item><id>15268</id><gid>430293221</gid><type>OAV</type><name>Higurashi no Naku Koro ni Kaku ~Outbreak~</name><precision>OAV</precision><vintage>2013</vintage></item>
48
+ <item><id>15267</id><gid>247393581</gid><type>TV</type><name>New Attacker You!</name><precision>TV</precision></item>
49
+ <item><id>15266</id><gid>2066488483</gid><type>OAV</type><name>Tenkōsei</name><precision>OAV</precision><vintage>1996-03-08</vintage></item>
50
+ <item><id>15265</id><gid>3043007751</gid><type>special</type><name>Franny &amp; Melanie</name><precision>special</precision><vintage>2009-02-01</vintage></item>
51
+ <item><id>15264</id><gid>3170474008</gid><type>TV</type><name>Sakuran Boy DT</name><precision>TV</precision><vintage>2009-01-14</vintage></item>
52
+ <item><id>15263</id><gid>2050518385</gid><type>special</type><name>Pikachu Tanken Club</name><precision>special</precision><vintage>2007-08-01 to 2007-08-29</vintage></item>
53
+ <item><id>15262</id><gid>2698686930</gid><type>OAV</type><name>My Honny is College School Gal</name><precision>OAV</precision><vintage>2001-12-21</vintage></item>
54
+ <item><id>15261</id><gid>734228674</gid><type>movie</type><name>Kachi Kachi Yama</name><precision>movie</precision><vintage>1965</vintage></item>
55
+ <item><id>15260</id><gid>4114356115</gid><type>movie</type><name>Kiss Kiss Kiss</name><precision>movie</precision><vintage>1964</vintage></item>
56
+ <item><id>15259</id><gid>1440422481</gid><type>movie</type><name>Anthology No. 1</name><precision>movie</precision><vintage>1964</vintage></item>
57
+ <item><id>15258</id><gid>1203336309</gid><type>OAV</type><name>Tengai Makyō: Ziria Oboro-hen</name><precision>OAV</precision><vintage>1990-07-27</vintage></item>
58
+ <item><id>15257</id><gid>1791608291</gid><type>OAV</type><name>FLAG Director's Edition</name><precision>OAV</precision><vintage>2007-08-08</vintage></item>
59
+ <item><id>15256</id><gid>2115463486</gid><type>OAV</type><name>Telepathist Ai-Q Saiko</name><precision>OAV</precision><vintage>1985-04-25</vintage></item>
60
+ <item><id>15255</id><gid>1528308742</gid><type>OAV</type><name>Super Dimension Century Orguss: Memorial</name><precision>OAV</precision><vintage>1985-03-28</vintage></item>
61
+ <item><id>15254</id><gid>1875603126</gid><type>ONA</type><name>Everlasting Heart</name><precision>ONA</precision></item>
62
+ <item><id>15250</id><gid>3304512547</gid><type>OAV</type><name>Sukeban Shōkai Cutie Lemon</name><precision>OAV</precision><vintage>1984-12-22 to 1988-07</vintage></item>
63
+ <item><id>15249</id><gid>2346645762</gid><type>movie</type><name>Kara no Kyoukai: Mirai Fukuin</name><precision>movie</precision></item>
64
+ <item><id>15248</id><gid>2249856481</gid><type>TV</type><name>Pupa</name><precision>TV</precision></item>
65
+ <item><id>15246</id><gid>783928763</gid><type>OAV</type><name>To Love-Ru -Trouble- Darkness</name><precision>OAV 2</precision><vintage>2013-08-19</vintage></item>
66
+ <item><id>15245</id><gid>2682062341</gid><type>TV</type><name>Fate/kaleid liner Prisma Illya</name><precision>TV</precision><vintage>2013-07</vintage></item>
67
+ <item><id>15244</id><gid>2934485498</gid><type>special</type><name>Aoi Hitomi no Onna no Ko no Ohanashi</name><precision>special</precision><vintage>2009-08-13</vintage></item>
68
+ <item><id>15243</id><gid>3109450291</gid><type>OAV</type><name>Kira Kira 5th Anniversary Live Anime Kick Start Generation</name><precision>OAV</precision><vintage>2013-03-27</vintage></item>
69
+ <item><id>15242</id><gid>3562054772</gid><type>TV</type><name>Recorder and Randsell Mi</name><precision>TV</precision><vintage>2013-07</vintage></item>
70
+ <item><id>15241</id><gid>1189189023</gid><type>TV</type><name>Servant × Service</name><precision>TV</precision><vintage>2013-07-04</vintage></item>
71
+ <item><id>15239</id><gid>1167614776</gid><type>OAV</type><name>Angel</name><precision>OAV</precision><vintage>1990-08-25</vintage></item>
72
+ <item><id>15236</id><gid>2786369702</gid><type>OAV</type><name>Dinozone</name><precision>OAV</precision><vintage>1998-11-27</vintage></item>
73
+ <item><id>15234</id><gid>1478013187</gid><type>ONA</type><name>Hoshi ni Negai o: Cold Body + Warm Heart</name><precision>ONA</precision></item>
74
+ <item><id>15233</id><gid>1650870870</gid><type>omnibus</type><name>Hoshi ni Negai o</name><precision>omnibus</precision></item>
75
+ <item><id>15232</id><gid>811245631</gid><type>ONA</type><name>Hoshi ni Negai o: Fantastic Cat</name><precision>ONA</precision></item>
76
+ <item><id>15229</id><gid>1055572829</gid><type>special</type><name>One Piece 3D Gekisō! Trap Coaster</name><precision>special</precision><vintage>2011-12-01 to 2012-02-27</vintage></item>
77
+ <item><id>15228</id><gid>3178021765</gid><type>TV</type><name>Senki Zesshō Symphogear G</name><precision>TV</precision><vintage>2013-07-04</vintage></item>
78
+ <item><id>15227</id><gid>2255858405</gid><type>special</type><name>One Piece: Glorious Island</name><precision>special</precision><vintage>2012-12-23</vintage></item>
79
+ <item><id>15226</id><gid>1837897613</gid><type>TV</type><name>Freezing Vibration</name><precision>TV</precision></item>
80
+ <item><id>15225</id><gid>2030570330</gid><type>special</type><name>InuYasha: Kuroi Tessaiga</name><precision>special</precision><vintage>2008-07-30</vintage></item>
81
+ <item><id>15224</id><gid>677794277</gid><type>OAV</type><name>One Piece: Strong World Episode 0</name><precision>OAV</precision><vintage>2010-04</vintage></item>
82
+ <item><id>15223</id><gid>2729340541</gid><type>TV</type><name>Gintama'</name><precision>TV 2012</precision><vintage>2012-10-04 to 2013-03-28</vintage></item>
83
+ <item><id>15220</id><gid>2363437152</gid><type>special</type><name>Death Note Relight 2 - L's Successors</name><precision>special</precision><vintage>2008-08-22</vintage></item>
84
+ <item><id>15218</id><gid>3782905660</gid><type>OAV</type><name>Suki Desu Suzuki-kun!!</name><precision>OAV</precision><vintage>2009-12-18</vintage></item>
85
+ <item><id>15217</id><gid>1982890513</gid><type>OAV</type><name>Guilty Crown: Lost Christmas</name><precision>OAV</precision><vintage>2012-07-26</vintage></item>
86
+ <item><id>15216</id><gid>1412459571</gid><type>movie</type><name>Glass no Kamen Desu ga Onna Spy no Koi! Murasaki no Bara wa Kiken na Kaori!?</name><precision>movie</precision><vintage>2013-06-22</vintage></item>
87
+ <item><id>15215</id><gid>769229227</gid><type>movie</type><name>Baka Mukashi Banashi Gekijōban ~Jijii Wars~</name><precision>movie</precision><vintage>2013-05-18</vintage></item>
88
+ <item><id>15214</id><gid>2179575499</gid><type>OAV</type><name>Accel World</name><precision>OAV</precision></item>
89
+ <item><id>15213</id><gid>2674182474</gid><type>movie</type><name>Pica-don</name><precision>movie</precision><vintage>1978</vintage></item>
90
+ <item><id>15211</id><gid>3381546129</gid><type>movie</type><name>Magical Girl Lyrical Nanoha The Movie 3rd: Reflection</name><precision>movie</precision></item>
91
+ <item><id>15210</id><gid>908223506</gid><type>OAV</type><name>Rance: Sabaku no Guardian</name><precision>OAV</precision><vintage>1993-12-25</vintage></item>
92
+ <item><id>15209</id><gid>2062736735</gid><type>TV</type><name>Line Town</name><precision>TV</precision><vintage>2013-04-03</vintage></item>
93
+ <item><id>15208</id><gid>2111340868</gid><type>movie</type><name>Hōkago no Pleiades</name><precision>movie</precision></item>
94
+ <item><id>15207</id><gid>3477190006</gid><type>TV</type><name>Tokyo Ravens</name><precision>TV</precision></item>
95
+ <item><id>15206</id><gid>1193612222</gid><type>TV</type><name>Tanken Driland - 1000-nen no Mahō -</name><precision>TV</precision><vintage>2013-04-06</vintage></item>
96
+ <item><id>15205</id><gid>2601394837</gid><type>TV</type><name>Uchōten Kazoku</name><precision>TV</precision><vintage>2013-07</vintage></item>
97
+ <item><id>15204</id><gid>2189324413</gid><type>TV</type><name>High School DxD New</name><precision>TV</precision><vintage>2013-07</vintage></item>
98
+ <item><id>15203</id><gid>3502022280</gid><type>TV</type><name>Baku Tech! Bakugan Gachi</name><precision>TV</precision><vintage>2013-04-06</vintage></item>
99
+ <item><id>15202</id><gid>2027828447</gid><type>OAV</type><name>Iron Man: Rise of Technovore</name><precision>OAV</precision><vintage>2013-04-16</vintage></item>
100
+ <item><id>15201</id><gid>2116574248</gid><type>TV</type><name>Otona Joshi no Anime Time</name><precision>TV 2</precision><vintage>2013-03-10 to 2013-03-24</vintage></item>
101
+ <item><id>15200</id><gid>2072347462</gid><type>OAV</type><name>Mikosuri Han-Gekijō</name><precision>OAV</precision><vintage>2013-03-21</vintage></item></report>
@@ -0,0 +1 @@
1
+ require 'animenewsnetwork'
@@ -0,0 +1,27 @@
1
+ require 'webmock/rspec'
2
+
3
+ describe AnimeNewsNetwork::Encyclopedia do
4
+ before do
5
+ reports_xml = File.new(File.expand_path('../../resources/reports_xml_id_155_type_anime', __FILE__))
6
+ stub_http_request(:get, "cdn.animenewsnetwork.com/encyclopedia/reports.xml")
7
+ .with(query: { id: 155, type: "anime" })
8
+ .to_return(body: reports_xml)
9
+
10
+ api_xml = File.new(File.expand_path('../../resources/api_xml_anime_4658', __FILE__))
11
+ stub_http_request(:get, "cdn.animenewsnetwork.com/encyclopedia/api.xml")
12
+ .with(query: { anime: 4658 })
13
+ .to_return(body: api_xml)
14
+ end
15
+
16
+ let(:ann) { AnimeNewsNetwork::Encyclopedia.new }
17
+
18
+ describe "GET reports" do
19
+ subject { ann.get_reports(id: 155, type: 'anime') }
20
+ it { should be_a Nokogiri::XML::Document }
21
+ end
22
+
23
+ describe "GET details" do
24
+ subject { ann.get_details(id: 4658, type: 'anime') }
25
+ it { should be_a Nokogiri::XML::Document }
26
+ end
27
+ end
metadata ADDED
@@ -0,0 +1,163 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: animenewsnetwork
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Ryosuke IWANAGA
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-05-27 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: nokogiri
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: addressable
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: '1.3'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: '1.3'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '>='
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: webmock
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - '>='
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - '>='
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: pry
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - '>='
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - '>='
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ description: AnimeNewsNetwork API
112
+ email:
113
+ - riywo.jp@gmail.com
114
+ executables: []
115
+ extensions: []
116
+ extra_rdoc_files: []
117
+ files:
118
+ - .gitignore
119
+ - .rspec
120
+ - .ruby-version
121
+ - Gemfile
122
+ - LICENSE.txt
123
+ - README.md
124
+ - Rakefile
125
+ - animenewsnetwork.gemspec
126
+ - lib/animenewsnetwork.rb
127
+ - lib/animenewsnetwork/encyclopedia.rb
128
+ - lib/animenewsnetwork/version.rb
129
+ - spec/animenewsnetwork_spec.rb
130
+ - spec/resources/api_xml_anime_4658
131
+ - spec/resources/reports_xml_id_155_type_anime
132
+ - spec/spec_helper.rb
133
+ - spec/unit/encyclopedia_spec.rb
134
+ homepage: ''
135
+ licenses:
136
+ - MIT
137
+ metadata: {}
138
+ post_install_message:
139
+ rdoc_options: []
140
+ require_paths:
141
+ - lib
142
+ required_ruby_version: !ruby/object:Gem::Requirement
143
+ requirements:
144
+ - - '>='
145
+ - !ruby/object:Gem::Version
146
+ version: 2.0.0
147
+ required_rubygems_version: !ruby/object:Gem::Requirement
148
+ requirements:
149
+ - - '>='
150
+ - !ruby/object:Gem::Version
151
+ version: '0'
152
+ requirements: []
153
+ rubyforge_project:
154
+ rubygems_version: 2.0.2
155
+ signing_key:
156
+ specification_version: 4
157
+ summary: AnimeNewsNetwork API
158
+ test_files:
159
+ - spec/animenewsnetwork_spec.rb
160
+ - spec/resources/api_xml_anime_4658
161
+ - spec/resources/reports_xml_id_155_type_anime
162
+ - spec/spec_helper.rb
163
+ - spec/unit/encyclopedia_spec.rb