memo_rage 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +5 -0
- data/.rspec +1 -0
- data/Gemfile +4 -0
- data/README.md +26 -0
- data/Rakefile +1 -0
- data/lib/memo_rage/client.rb +40 -0
- data/lib/memo_rage/episode.rb +13 -0
- data/lib/memo_rage/node.rb +12 -0
- data/lib/memo_rage/parser/base.rb +21 -0
- data/lib/memo_rage/parser/episode_list.rb +44 -0
- data/lib/memo_rage/parser/show_info.rb +36 -0
- data/lib/memo_rage/parser/show_search.rb +26 -0
- data/lib/memo_rage/parser.rb +4 -0
- data/lib/memo_rage/show.rb +24 -0
- data/lib/memo_rage/version.rb +3 -0
- data/lib/memo_rage.rb +13 -0
- data/memo_rage.gemspec +26 -0
- data/spec/helpers/webmock_helper.rb +73 -0
- data/spec/memo_rage/client_spec.rb +20 -0
- data/spec/memo_rage/parser/episode_list_spec.rb +13 -0
- data/spec/memo_rage/parser/show_info_spec.rb +29 -0
- data/spec/memo_rage/parser/show_search_spec.rb +13 -0
- data/spec/mock_xml/episode_list.xml +1417 -0
- data/spec/mock_xml/show_info.xml +43 -0
- data/spec/mock_xml/show_search.xml +27 -0
- data/spec/spec_helper.rb +14 -0
- metadata +142 -0
@@ -0,0 +1,43 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" ?>
|
2
|
+
<Showinfo>
|
3
|
+
<showid>2930</showid>
|
4
|
+
<showname>Buffy the Vampire Slayer</showname>
|
5
|
+
<showlink>http://www.tvrage.com/Buffy_The_Vampire_Slayer</showlink>
|
6
|
+
<seasons>7</seasons>
|
7
|
+
<image>http://images.tvrage.com/shows/3/2930.jpg</image>
|
8
|
+
<started>1997</started>
|
9
|
+
<startdate>Mar/10/1997</startdate>
|
10
|
+
<ended>May/20/2003</ended>
|
11
|
+
<origin_country>US</origin_country>
|
12
|
+
<status>Canceled/Ended</status>
|
13
|
+
<classification>Scripted</classification>
|
14
|
+
<genres>
|
15
|
+
<genre>Action</genre>
|
16
|
+
<genre>Adventure</genre>
|
17
|
+
<genre>Comedy</genre>
|
18
|
+
<genre>Drama</genre>
|
19
|
+
<genre>Mystery</genre>
|
20
|
+
<genre>Sci-Fi</genre>
|
21
|
+
</genres>
|
22
|
+
<runtime>60</runtime>
|
23
|
+
<network country="US">UPN</network>
|
24
|
+
<airtime>20:00</airtime>
|
25
|
+
<airday>Tuesday</airday>
|
26
|
+
<timezone>GMT-5 +DST</timezone>
|
27
|
+
<akas>
|
28
|
+
<aka country="SE">Buffy & vampyrerna</aka>
|
29
|
+
<aka country="DE">Buffy - Im Bann der Dämonen</aka>
|
30
|
+
<aka country="NO">Buffy - Vampyrenes skrekk</aka>
|
31
|
+
<aka country="HU">Buffy a vámpírok réme</aka>
|
32
|
+
<aka country="FR">Buffy Contre les Vampires</aka>
|
33
|
+
<aka country="IT">Buffy l'Ammazza Vampiri</aka>
|
34
|
+
<aka country="PL">Buffy postrach wampirów</aka>
|
35
|
+
<aka country="BR">Buffy, a Caça-Vampiros</aka>
|
36
|
+
<aka country="PT">Buffy, a Caçadora de Vampiros</aka>
|
37
|
+
<aka country="ES">Buffy, Cazavampiros</aka>
|
38
|
+
<aka country="HR">Buffy, ubojica vampira</aka>
|
39
|
+
<aka country="FI">Buffy, vampyyrintappaja</aka>
|
40
|
+
<aka country="EE">Vampiiritapja Buffy</aka>
|
41
|
+
<aka country="IS">Vampírubaninn Buffy</aka>
|
42
|
+
</akas>
|
43
|
+
</Showinfo>
|
@@ -0,0 +1,27 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" ?>
|
2
|
+
<Results>
|
3
|
+
<show>
|
4
|
+
<showid>2930</showid>
|
5
|
+
<name>Buffy the Vampire Slayer</name>
|
6
|
+
<link>http://www.tvrage.com/Buffy_The_Vampire_Slayer</link>
|
7
|
+
<country>US</country>
|
8
|
+
<started>1997</started>
|
9
|
+
<ended>2003</ended>
|
10
|
+
<seasons>7</seasons>
|
11
|
+
<status>Canceled/Ended</status>
|
12
|
+
<classification>Scripted</classification>
|
13
|
+
<genres><genre>Action</genre><genre>Adventure</genre><genre>Comedy</genre><genre>Drama</genre><genre>Mystery</genre><genre>Sci-Fi</genre></genres>
|
14
|
+
</show>
|
15
|
+
<show>
|
16
|
+
<showid>2931</showid>
|
17
|
+
<name>Buffy the Animated Series</name>
|
18
|
+
<link>http://www.tvrage.com/Buffy_the_Animated_Series</link>
|
19
|
+
<country>US</country>
|
20
|
+
<started>2002</started>
|
21
|
+
<ended>0</ended>
|
22
|
+
<seasons>1</seasons>
|
23
|
+
<status>Pilot Rejected</status>
|
24
|
+
<classification>Animation</classification>
|
25
|
+
<genres><genre>Animation General</genre><genre>Action</genre><genre>Adventure</genre><genre>Horror/Supernatural</genre></genres>
|
26
|
+
</show>
|
27
|
+
</Results>
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
2
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
3
|
+
|
4
|
+
|
5
|
+
require 'rspec'
|
6
|
+
require 'timecop'
|
7
|
+
require 'memo_rage'
|
8
|
+
require 'helpers/webmock_helper'
|
9
|
+
|
10
|
+
RSpec.configure do |config|
|
11
|
+
config.before(:each) do
|
12
|
+
Timecop.return
|
13
|
+
end
|
14
|
+
end
|
metadata
ADDED
@@ -0,0 +1,142 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: memo_rage
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Alex Ganov
|
9
|
+
- Todor Grudev
|
10
|
+
autorequire:
|
11
|
+
bindir: bin
|
12
|
+
cert_chain: []
|
13
|
+
date: 2012-03-01 00:00:00.000000000 +02:00
|
14
|
+
default_executable:
|
15
|
+
dependencies:
|
16
|
+
- !ruby/object:Gem::Dependency
|
17
|
+
name: httpclient
|
18
|
+
requirement: &74295010 !ruby/object:Gem::Requirement
|
19
|
+
none: false
|
20
|
+
requirements:
|
21
|
+
- - ! '>='
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 2.2.0.2
|
24
|
+
type: :runtime
|
25
|
+
prerelease: false
|
26
|
+
version_requirements: *74295010
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: hashie
|
29
|
+
requirement: &74294750 !ruby/object:Gem::Requirement
|
30
|
+
none: false
|
31
|
+
requirements:
|
32
|
+
- - ! '>='
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: 1.1.0
|
35
|
+
type: :runtime
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: *74294750
|
38
|
+
- !ruby/object:Gem::Dependency
|
39
|
+
name: rake
|
40
|
+
requirement: &74294500 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 0.8.7
|
46
|
+
type: :development
|
47
|
+
prerelease: false
|
48
|
+
version_requirements: *74294500
|
49
|
+
- !ruby/object:Gem::Dependency
|
50
|
+
name: rspec
|
51
|
+
requirement: &74294230 !ruby/object:Gem::Requirement
|
52
|
+
none: false
|
53
|
+
requirements:
|
54
|
+
- - ! '>='
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '2'
|
57
|
+
type: :development
|
58
|
+
prerelease: false
|
59
|
+
version_requirements: *74294230
|
60
|
+
- !ruby/object:Gem::Dependency
|
61
|
+
name: webmock
|
62
|
+
requirement: &74293980 !ruby/object:Gem::Requirement
|
63
|
+
none: false
|
64
|
+
requirements:
|
65
|
+
- - ! '>='
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: 1.6.2
|
68
|
+
type: :development
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: *74293980
|
71
|
+
- !ruby/object:Gem::Dependency
|
72
|
+
name: timecop
|
73
|
+
requirement: &74293740 !ruby/object:Gem::Requirement
|
74
|
+
none: false
|
75
|
+
requirements:
|
76
|
+
- - ! '>='
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: 0.3.5
|
79
|
+
type: :development
|
80
|
+
prerelease: false
|
81
|
+
version_requirements: *74293740
|
82
|
+
description: Find more information at https://github.com/appsbakery/memo_rage
|
83
|
+
email:
|
84
|
+
- aganov@gmail.com
|
85
|
+
- tagrudev@gmail.com
|
86
|
+
executables: []
|
87
|
+
extensions: []
|
88
|
+
extra_rdoc_files: []
|
89
|
+
files:
|
90
|
+
- .gitignore
|
91
|
+
- .rspec
|
92
|
+
- Gemfile
|
93
|
+
- README.md
|
94
|
+
- Rakefile
|
95
|
+
- lib/memo_rage.rb
|
96
|
+
- lib/memo_rage/client.rb
|
97
|
+
- lib/memo_rage/episode.rb
|
98
|
+
- lib/memo_rage/node.rb
|
99
|
+
- lib/memo_rage/parser.rb
|
100
|
+
- lib/memo_rage/parser/base.rb
|
101
|
+
- lib/memo_rage/parser/episode_list.rb
|
102
|
+
- lib/memo_rage/parser/show_info.rb
|
103
|
+
- lib/memo_rage/parser/show_search.rb
|
104
|
+
- lib/memo_rage/show.rb
|
105
|
+
- lib/memo_rage/version.rb
|
106
|
+
- memo_rage.gemspec
|
107
|
+
- spec/helpers/webmock_helper.rb
|
108
|
+
- spec/memo_rage/client_spec.rb
|
109
|
+
- spec/memo_rage/parser/episode_list_spec.rb
|
110
|
+
- spec/memo_rage/parser/show_info_spec.rb
|
111
|
+
- spec/memo_rage/parser/show_search_spec.rb
|
112
|
+
- spec/mock_xml/episode_list.xml
|
113
|
+
- spec/mock_xml/show_info.xml
|
114
|
+
- spec/mock_xml/show_search.xml
|
115
|
+
- spec/spec_helper.rb
|
116
|
+
has_rdoc: true
|
117
|
+
homepage: ''
|
118
|
+
licenses: []
|
119
|
+
post_install_message:
|
120
|
+
rdoc_options: []
|
121
|
+
require_paths:
|
122
|
+
- lib
|
123
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
124
|
+
none: false
|
125
|
+
requirements:
|
126
|
+
- - ! '>='
|
127
|
+
- !ruby/object:Gem::Version
|
128
|
+
version: '0'
|
129
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
130
|
+
none: false
|
131
|
+
requirements:
|
132
|
+
- - ! '>='
|
133
|
+
- !ruby/object:Gem::Version
|
134
|
+
version: '0'
|
135
|
+
requirements: []
|
136
|
+
rubyforge_project: memo_rage
|
137
|
+
rubygems_version: 1.6.2
|
138
|
+
signing_key:
|
139
|
+
specification_version: 3
|
140
|
+
summary: Memo rage is an api wrapper for the http://services.tvrage.com/ The gem is
|
141
|
+
created to fulfil the needs of the project http://watchmemo.com
|
142
|
+
test_files: []
|