memo_tomato 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +4 -0
- data/Gemfile +4 -0
- data/README.md +32 -0
- data/Rakefile +1 -0
- data/lib/memo_tomato/actor.rb +6 -0
- data/lib/memo_tomato/client.rb +45 -0
- data/lib/memo_tomato/director.rb +5 -0
- data/lib/memo_tomato/genre.rb +5 -0
- data/lib/memo_tomato/movie.rb +17 -0
- data/lib/memo_tomato/node.rb +12 -0
- data/lib/memo_tomato/parser/base.rb +50 -0
- data/lib/memo_tomato/parser/movie_info.rb +13 -0
- data/lib/memo_tomato/parser/search_movie.rb +15 -0
- data/lib/memo_tomato/parser/similar_movies.rb +14 -0
- data/lib/memo_tomato/parser/upcoming_movies.rb +14 -0
- data/lib/memo_tomato/parser.rb +6 -0
- data/lib/memo_tomato/version.rb +3 -0
- data/lib/memo_tomato.rb +16 -0
- data/memo_tomato.gemspec +30 -0
- data/spec/helpers/webmock_helper.rb +73 -0
- data/spec/memo_tomato/client_spec.rb +19 -0
- data/spec/memo_tomato/parser/movie_info_spec.rb +15 -0
- data/spec/memo_tomato/parser/search_movie_spec.rb +18 -0
- data/spec/memo_tomato/parser/similar_movies_spec.rb +13 -0
- data/spec/memo_tomato/parser/upcoming_movies_spec.rb +13 -0
- data/spec/mock_json/lists/movies/upcoming.json +788 -0
- data/spec/mock_json/movies/770672122/similar.json +375 -0
- data/spec/mock_json/movies/770672122.json +65 -0
- data/spec/mock_json/movies.json +1797 -0
- data/spec/spec_helper.rb +15 -0
- metadata +168 -0
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
2
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
3
|
+
|
4
|
+
|
5
|
+
require 'rspec'
|
6
|
+
require 'pry'
|
7
|
+
require 'timecop'
|
8
|
+
require 'memo_tomato'
|
9
|
+
require 'helpers/webmock_helper'
|
10
|
+
|
11
|
+
RSpec.configure do |config|
|
12
|
+
config.before(:each) do
|
13
|
+
Timecop.return
|
14
|
+
end
|
15
|
+
end
|
metadata
ADDED
@@ -0,0 +1,168 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: memo_tomato
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Todor Grudev
|
9
|
+
- Alex Ganov
|
10
|
+
autorequire:
|
11
|
+
bindir: bin
|
12
|
+
cert_chain: []
|
13
|
+
date: 2012-03-08 00:00:00.000000000 +02:00
|
14
|
+
default_executable:
|
15
|
+
dependencies:
|
16
|
+
- !ruby/object:Gem::Dependency
|
17
|
+
name: multi_json
|
18
|
+
requirement: &83055000 !ruby/object:Gem::Requirement
|
19
|
+
none: false
|
20
|
+
requirements:
|
21
|
+
- - ~>
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: '1.0'
|
24
|
+
type: :runtime
|
25
|
+
prerelease: false
|
26
|
+
version_requirements: *83055000
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: httpclient
|
29
|
+
requirement: &83054750 !ruby/object:Gem::Requirement
|
30
|
+
none: false
|
31
|
+
requirements:
|
32
|
+
- - ! '>='
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: 2.2.0.2
|
35
|
+
type: :runtime
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: *83054750
|
38
|
+
- !ruby/object:Gem::Dependency
|
39
|
+
name: hashie
|
40
|
+
requirement: &83054520 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 1.1.0
|
46
|
+
type: :runtime
|
47
|
+
prerelease: false
|
48
|
+
version_requirements: *83054520
|
49
|
+
- !ruby/object:Gem::Dependency
|
50
|
+
name: pry
|
51
|
+
requirement: &83054290 !ruby/object:Gem::Requirement
|
52
|
+
none: false
|
53
|
+
requirements:
|
54
|
+
- - ! '>='
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: 0.9.8.4
|
57
|
+
type: :development
|
58
|
+
prerelease: false
|
59
|
+
version_requirements: *83054290
|
60
|
+
- !ruby/object:Gem::Dependency
|
61
|
+
name: rake
|
62
|
+
requirement: &83054060 !ruby/object:Gem::Requirement
|
63
|
+
none: false
|
64
|
+
requirements:
|
65
|
+
- - ! '>='
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: 0.8.7
|
68
|
+
type: :development
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: *83054060
|
71
|
+
- !ruby/object:Gem::Dependency
|
72
|
+
name: rspec
|
73
|
+
requirement: &83053830 !ruby/object:Gem::Requirement
|
74
|
+
none: false
|
75
|
+
requirements:
|
76
|
+
- - ! '>='
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: '2'
|
79
|
+
type: :development
|
80
|
+
prerelease: false
|
81
|
+
version_requirements: *83053830
|
82
|
+
- !ruby/object:Gem::Dependency
|
83
|
+
name: webmock
|
84
|
+
requirement: &83053600 !ruby/object:Gem::Requirement
|
85
|
+
none: false
|
86
|
+
requirements:
|
87
|
+
- - ! '>='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 1.6.2
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: *83053600
|
93
|
+
- !ruby/object:Gem::Dependency
|
94
|
+
name: timecop
|
95
|
+
requirement: &83053370 !ruby/object:Gem::Requirement
|
96
|
+
none: false
|
97
|
+
requirements:
|
98
|
+
- - ! '>='
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
version: 0.3.5
|
101
|
+
type: :development
|
102
|
+
prerelease: false
|
103
|
+
version_requirements: *83053370
|
104
|
+
description: https://github.com/appsbakery/memo_tomato
|
105
|
+
email:
|
106
|
+
- tagrudev@gmail.com
|
107
|
+
- aganov@gmail.com
|
108
|
+
executables: []
|
109
|
+
extensions: []
|
110
|
+
extra_rdoc_files: []
|
111
|
+
files:
|
112
|
+
- .gitignore
|
113
|
+
- Gemfile
|
114
|
+
- README.md
|
115
|
+
- Rakefile
|
116
|
+
- lib/memo_tomato.rb
|
117
|
+
- lib/memo_tomato/actor.rb
|
118
|
+
- lib/memo_tomato/client.rb
|
119
|
+
- lib/memo_tomato/director.rb
|
120
|
+
- lib/memo_tomato/genre.rb
|
121
|
+
- lib/memo_tomato/movie.rb
|
122
|
+
- lib/memo_tomato/node.rb
|
123
|
+
- lib/memo_tomato/parser.rb
|
124
|
+
- lib/memo_tomato/parser/base.rb
|
125
|
+
- lib/memo_tomato/parser/movie_info.rb
|
126
|
+
- lib/memo_tomato/parser/search_movie.rb
|
127
|
+
- lib/memo_tomato/parser/similar_movies.rb
|
128
|
+
- lib/memo_tomato/parser/upcoming_movies.rb
|
129
|
+
- lib/memo_tomato/version.rb
|
130
|
+
- memo_tomato.gemspec
|
131
|
+
- spec/helpers/webmock_helper.rb
|
132
|
+
- spec/memo_tomato/client_spec.rb
|
133
|
+
- spec/memo_tomato/parser/movie_info_spec.rb
|
134
|
+
- spec/memo_tomato/parser/search_movie_spec.rb
|
135
|
+
- spec/memo_tomato/parser/similar_movies_spec.rb
|
136
|
+
- spec/memo_tomato/parser/upcoming_movies_spec.rb
|
137
|
+
- spec/mock_json/lists/movies/upcoming.json
|
138
|
+
- spec/mock_json/movies.json
|
139
|
+
- spec/mock_json/movies/770672122.json
|
140
|
+
- spec/mock_json/movies/770672122/similar.json
|
141
|
+
- spec/spec_helper.rb
|
142
|
+
has_rdoc: true
|
143
|
+
homepage: http://www.appsbakery.eu
|
144
|
+
licenses: []
|
145
|
+
post_install_message:
|
146
|
+
rdoc_options: []
|
147
|
+
require_paths:
|
148
|
+
- lib
|
149
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
150
|
+
none: false
|
151
|
+
requirements:
|
152
|
+
- - ! '>='
|
153
|
+
- !ruby/object:Gem::Version
|
154
|
+
version: '0'
|
155
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
156
|
+
none: false
|
157
|
+
requirements:
|
158
|
+
- - ! '>='
|
159
|
+
- !ruby/object:Gem::Version
|
160
|
+
version: '0'
|
161
|
+
requirements: []
|
162
|
+
rubyforge_project: memo_tomato
|
163
|
+
rubygems_version: 1.6.2
|
164
|
+
signing_key:
|
165
|
+
specification_version: 3
|
166
|
+
summary: Memo Tomato is an api wrapper for the http://api.rottentomatoes.com/ The
|
167
|
+
gem is created to fulfil the needs of the project http://watchmemo.com
|
168
|
+
test_files: []
|