traktr 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +18 -0
- data/.rspec +2 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +29 -0
- data/Rakefile +1 -0
- data/lib/traktr/account.rb +23 -0
- data/lib/traktr/authentication.rb +29 -0
- data/lib/traktr/movie.rb +128 -0
- data/lib/traktr/search.rb +55 -0
- data/lib/traktr/show/episode.rb +112 -0
- data/lib/traktr/show/season.rb +36 -0
- data/lib/traktr/show.rb +134 -0
- data/lib/traktr/user/calendar.rb +18 -0
- data/lib/traktr/user/library/movies.rb +37 -0
- data/lib/traktr/user/library/shows.rb +37 -0
- data/lib/traktr/user/library.rb +11 -0
- data/lib/traktr/user/network.rb +35 -0
- data/lib/traktr/user/progress.rb +26 -0
- data/lib/traktr/user/ratings.rb +35 -0
- data/lib/traktr/user/watchlist.rb +35 -0
- data/lib/traktr/user.rb +51 -0
- data/lib/traktr/version.rb +3 -0
- data/lib/traktr.rb +18 -0
- data/spec/account_spec.rb +65 -0
- data/spec/movie_spec.rb +181 -0
- data/spec/search_spec.rb +62 -0
- data/spec/show_episode_spec.rb +179 -0
- data/spec/show_season_spec.rb +77 -0
- data/spec/show_spec.rb +221 -0
- data/spec/spec_helper.rb +24 -0
- data/traktr.gemspec +28 -0
- metadata +167 -0
@@ -0,0 +1,179 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Traktr::Show::Episode do
|
4
|
+
context 'GET methods' do
|
5
|
+
before :all do
|
6
|
+
@show = 'the-walking-dead'
|
7
|
+
@season = 1
|
8
|
+
@episode = 1
|
9
|
+
end
|
10
|
+
|
11
|
+
after :all do
|
12
|
+
@show = nil
|
13
|
+
@season = nil
|
14
|
+
@episode = nil
|
15
|
+
end
|
16
|
+
|
17
|
+
context 'with valid api_key' do
|
18
|
+
before :all do
|
19
|
+
Traktr.api_key = API_KEY
|
20
|
+
end
|
21
|
+
|
22
|
+
after :all do
|
23
|
+
Traktr.api_key = ''
|
24
|
+
end
|
25
|
+
|
26
|
+
it '#comments' do
|
27
|
+
comments = Traktr::Show::Episode.comments(@show, @season, @episode)
|
28
|
+
expect(comments.size).to be > 0
|
29
|
+
end
|
30
|
+
|
31
|
+
it '#summary' do
|
32
|
+
summary = Traktr::Show::Episode.summary(@show, @season, @episode)
|
33
|
+
expect(summary.show.imdb_id).to eql('tt1520211')
|
34
|
+
end
|
35
|
+
|
36
|
+
it '#watchingnow' do
|
37
|
+
watchingnow = Traktr::Show::Episode.watchingnow(@show, @season, @episode)
|
38
|
+
expect(watchingnow.size).to be >= 0
|
39
|
+
end
|
40
|
+
|
41
|
+
end
|
42
|
+
|
43
|
+
context 'without valid api_key' do
|
44
|
+
it '#comments' do
|
45
|
+
expect { comments = Traktr::Show::Episode.comments(@show, @season, @episode) }.to raise_error(Traktr::ResponseError)
|
46
|
+
end
|
47
|
+
|
48
|
+
it '#summary' do
|
49
|
+
expect { summary = Traktr::Show::Episode.summary(@show, @season, @episode) }.to raise_error(Traktr::ResponseError)
|
50
|
+
end
|
51
|
+
|
52
|
+
it '#watchingnow' do
|
53
|
+
expect { watchingnow = Traktr::Show::Episode.watchingnow(@show, @season, @episode) }.to raise_error(Traktr::ResponseError)
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
context 'POST methods' do
|
59
|
+
before :all do
|
60
|
+
Traktr.api_key = API_KEY
|
61
|
+
@show = Traktr::Show.summary('the-walking-dead')
|
62
|
+
@episodes = Traktr::Show.season('the-walking-dead', 1)
|
63
|
+
Traktr.api_key = ''
|
64
|
+
end
|
65
|
+
|
66
|
+
after :all do
|
67
|
+
@show = nil
|
68
|
+
@episodes = nil
|
69
|
+
end
|
70
|
+
|
71
|
+
context 'with valid api_key and auth credentials' do
|
72
|
+
before :all do
|
73
|
+
Traktr.api_key = API_KEY
|
74
|
+
Traktr.username = USERNAME
|
75
|
+
Traktr.password = PASSWORD
|
76
|
+
end
|
77
|
+
|
78
|
+
after :all do
|
79
|
+
Traktr.api_key = ''
|
80
|
+
Traktr.username = ''
|
81
|
+
Traktr.password = ''
|
82
|
+
end
|
83
|
+
|
84
|
+
it '#library' do
|
85
|
+
expect(Traktr::Show::Episode.library(@show, @episodes).status).to eql('success')
|
86
|
+
end
|
87
|
+
|
88
|
+
it '#unlibrary' do
|
89
|
+
expect(Traktr::Show::Episode.unlibrary(@show, @episodes).status).to eql('success')
|
90
|
+
end
|
91
|
+
|
92
|
+
it '#watchlist' do
|
93
|
+
expect(Traktr::Show::Episode.watchlist(@show, @episodes).status).to eql('success')
|
94
|
+
end
|
95
|
+
|
96
|
+
it '#unwatchlist' do
|
97
|
+
expect(Traktr::Show::Episode.unwatchlist(@show, @episodes).status).to eql('success')
|
98
|
+
end
|
99
|
+
|
100
|
+
it '#seen' do
|
101
|
+
expect(Traktr::Show::Episode.seen(@show, @episodes).status).to eql('success')
|
102
|
+
end
|
103
|
+
|
104
|
+
it '#unseen' do
|
105
|
+
expect(Traktr::Show::Episode.unseen(@show, @episodes).status).to eql('success')
|
106
|
+
end
|
107
|
+
end
|
108
|
+
|
109
|
+
context 'without valid api_key' do
|
110
|
+
before :all do
|
111
|
+
Traktr.username = USERNAME
|
112
|
+
Traktr.password = PASSWORD
|
113
|
+
end
|
114
|
+
|
115
|
+
after :all do
|
116
|
+
Traktr.username = ''
|
117
|
+
Traktr.password = ''
|
118
|
+
end
|
119
|
+
|
120
|
+
it '#library' do
|
121
|
+
expect { comments = Traktr::Show::Episode.library(@show, @episodes) }.to raise_error(Traktr::ResponseError)
|
122
|
+
end
|
123
|
+
|
124
|
+
it '#unlibrary' do
|
125
|
+
expect { season = Traktr::Show::Episode.unlibrary(@show, @episodes) }.to raise_error(Traktr::ResponseError)
|
126
|
+
end
|
127
|
+
|
128
|
+
it '#watchlist' do
|
129
|
+
expect { seasons = Traktr::Show::Episode.watchlist(@show, @episodes) }.to raise_error(Traktr::ResponseError)
|
130
|
+
end
|
131
|
+
|
132
|
+
it '#unwatchlist' do
|
133
|
+
expect { seasons = Traktr::Show::Episode.unwatchlist(@show, @episodes) }.to raise_error(Traktr::ResponseError)
|
134
|
+
end
|
135
|
+
|
136
|
+
it '#seen' do
|
137
|
+
expect { summary = Traktr::Show::Episode.seen(@show, @episodes) }.to raise_error(Traktr::ResponseError)
|
138
|
+
end
|
139
|
+
|
140
|
+
it '#unseen' do
|
141
|
+
expect { summary = Traktr::Show::Episode.unseen(@show, @episodes) }.to raise_error(Traktr::ResponseError)
|
142
|
+
end
|
143
|
+
end
|
144
|
+
|
145
|
+
context 'without valid auth credentials' do
|
146
|
+
before :all do
|
147
|
+
Traktr.api_key = API_KEY
|
148
|
+
end
|
149
|
+
|
150
|
+
after :all do
|
151
|
+
Traktr.api_key = ''
|
152
|
+
end
|
153
|
+
|
154
|
+
it '#library' do
|
155
|
+
expect { comments = Traktr::Show::Episode.library(@show, @episodes) }.to raise_error(Traktr::ResponseError)
|
156
|
+
end
|
157
|
+
|
158
|
+
it '#unlibrary' do
|
159
|
+
expect { season = Traktr::Show::Episode.unlibrary(@show, @episodes) }.to raise_error(Traktr::ResponseError)
|
160
|
+
end
|
161
|
+
|
162
|
+
it '#watchlist' do
|
163
|
+
expect { seasons = Traktr::Show::Episode.watchlist(@show, @episodes) }.to raise_error(Traktr::ResponseError)
|
164
|
+
end
|
165
|
+
|
166
|
+
it '#unwatchlist' do
|
167
|
+
expect { seasons = Traktr::Show::Episode.unwatchlist(@show, @episodes) }.to raise_error(Traktr::ResponseError)
|
168
|
+
end
|
169
|
+
|
170
|
+
it '#seen' do
|
171
|
+
expect { summary = Traktr::Show::Episode.seen(@show, @episodes) }.to raise_error(Traktr::ResponseError)
|
172
|
+
end
|
173
|
+
|
174
|
+
it '#unseen' do
|
175
|
+
expect { summary = Traktr::Show::Episode.unseen(@show, @episodes) }.to raise_error(Traktr::ResponseError)
|
176
|
+
end
|
177
|
+
end
|
178
|
+
end
|
179
|
+
end
|
@@ -0,0 +1,77 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Traktr::Show::Season do
|
4
|
+
context 'POST methods' do
|
5
|
+
before :all do
|
6
|
+
Traktr.api_key = API_KEY
|
7
|
+
@show = Traktr::Show.summary('dexter')
|
8
|
+
@season = 1
|
9
|
+
Traktr.api_key = ''
|
10
|
+
end
|
11
|
+
|
12
|
+
after :all do
|
13
|
+
@show = nil
|
14
|
+
@season = nil
|
15
|
+
end
|
16
|
+
|
17
|
+
context 'with valid api_key and auth credentials' do
|
18
|
+
before :all do
|
19
|
+
Traktr.api_key = API_KEY
|
20
|
+
Traktr.username = USERNAME
|
21
|
+
Traktr.password = PASSWORD
|
22
|
+
end
|
23
|
+
|
24
|
+
after :all do
|
25
|
+
Traktr.api_key = ''
|
26
|
+
Traktr.username = ''
|
27
|
+
Traktr.password = ''
|
28
|
+
end
|
29
|
+
|
30
|
+
it '#library' do
|
31
|
+
expect(Traktr::Show::Season.library(@show, @season).status).to eql('success')
|
32
|
+
end
|
33
|
+
|
34
|
+
it '#seen' do
|
35
|
+
expect(Traktr::Show::Season.seen(@show, @season).status).to eql('success')
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
context 'without valid api_key' do
|
40
|
+
before :all do
|
41
|
+
Traktr.username = USERNAME
|
42
|
+
Traktr.password = PASSWORD
|
43
|
+
end
|
44
|
+
|
45
|
+
after :all do
|
46
|
+
Traktr.username = ''
|
47
|
+
Traktr.password = ''
|
48
|
+
end
|
49
|
+
|
50
|
+
it '#library' do
|
51
|
+
expect { comments = Traktr::Show::Season.library(@show, @season) }.to raise_error(Traktr::ResponseError)
|
52
|
+
end
|
53
|
+
|
54
|
+
it '#seen' do
|
55
|
+
expect { summary = Traktr::Show::Season.seen(@show, @season) }.to raise_error(Traktr::ResponseError)
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
context 'without valid auth credentials' do
|
60
|
+
before :all do
|
61
|
+
Traktr.api_key = API_KEY
|
62
|
+
end
|
63
|
+
|
64
|
+
after :all do
|
65
|
+
Traktr.api_key = ''
|
66
|
+
end
|
67
|
+
|
68
|
+
it '#library' do
|
69
|
+
expect { comments = Traktr::Show::Season.library(@show, @season) }.to raise_error(Traktr::ResponseError)
|
70
|
+
end
|
71
|
+
|
72
|
+
it '#seen' do
|
73
|
+
expect { summary = Traktr::Show::Season.seen(@show, @season) }.to raise_error(Traktr::ResponseError)
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
data/spec/show_spec.rb
ADDED
@@ -0,0 +1,221 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Traktr::Show do
|
4
|
+
context 'GET methods' do
|
5
|
+
context 'with valid api_key' do
|
6
|
+
before :all do
|
7
|
+
Traktr.api_key = API_KEY
|
8
|
+
end
|
9
|
+
|
10
|
+
after :all do
|
11
|
+
Traktr.api_key = ''
|
12
|
+
end
|
13
|
+
|
14
|
+
context 'with valid query' do
|
15
|
+
it '#comments' do
|
16
|
+
comments = Traktr::Show.comments('dexter')
|
17
|
+
expect(comments.size).to be > 0
|
18
|
+
end
|
19
|
+
|
20
|
+
it '#season' do
|
21
|
+
season = Traktr::Show.season('dexter', 1)
|
22
|
+
expect(season.size).to eql(12)
|
23
|
+
end
|
24
|
+
|
25
|
+
it '#seasons' do
|
26
|
+
seasons = Traktr::Show.seasons('dexter')
|
27
|
+
expect(seasons.size).to eql(9)
|
28
|
+
end
|
29
|
+
|
30
|
+
it '#summary' do
|
31
|
+
summary = Traktr::Show.summary('dexter')
|
32
|
+
expect(summary.imdb_id).to eql('tt0773262')
|
33
|
+
end
|
34
|
+
|
35
|
+
it '#summaries' do
|
36
|
+
summaries = Traktr::Show.summaries(['dexter', 'the-walking-dead'])
|
37
|
+
expect(summaries.size).to eql(2)
|
38
|
+
end
|
39
|
+
|
40
|
+
it '#watchingnow' do
|
41
|
+
watchingnow = Traktr::Show.watchingnow('dexter')
|
42
|
+
expect(watchingnow.size).to be >= 0
|
43
|
+
end
|
44
|
+
|
45
|
+
it '#related' do
|
46
|
+
related = Traktr::Show.related('dexter')
|
47
|
+
expect(related.size).to eql(10)
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
context 'with invalid query' do
|
52
|
+
it '#comments' do
|
53
|
+
expect { comments = Traktr::Show.comments('blah') }.to raise_error(Traktr::ResponseError)
|
54
|
+
end
|
55
|
+
|
56
|
+
it '#season' do
|
57
|
+
expect { season = Traktr::Show.season('blah', 1) }.to raise_error(Traktr::ResponseError)
|
58
|
+
end
|
59
|
+
|
60
|
+
it '#seasons' do
|
61
|
+
expect { seasons = Traktr::Show.seasons('blah') }.to raise_error(Traktr::ResponseError)
|
62
|
+
end
|
63
|
+
|
64
|
+
it '#summary' do
|
65
|
+
expect { summary = Traktr::Show.summary('blah') }.to raise_error(Traktr::ResponseError)
|
66
|
+
end
|
67
|
+
|
68
|
+
it '#summaries' do
|
69
|
+
expect { summaries = Traktr::Show.summaries(['blah', 'blah-blah']) }.to raise_error(Traktr::ResponseError)
|
70
|
+
end
|
71
|
+
|
72
|
+
it '#watchingnow' do
|
73
|
+
expect { watchingnow = Traktr::Show.watchingnow('blah') }.to raise_error(Traktr::ResponseError)
|
74
|
+
end
|
75
|
+
|
76
|
+
it '#related' do
|
77
|
+
expect { related = Traktr::Show.related('blah') }.to raise_error(Traktr::ResponseError)
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
end
|
82
|
+
|
83
|
+
context 'without valid api_key' do
|
84
|
+
it '#comments' do
|
85
|
+
expect { comments = Traktr::Show.comments('the-walking-dead') }.to raise_error(Traktr::ResponseError)
|
86
|
+
end
|
87
|
+
|
88
|
+
it '#season' do
|
89
|
+
expect { season = Traktr::Show.season('the-walking-dead', 1) }.to raise_error(Traktr::ResponseError)
|
90
|
+
end
|
91
|
+
|
92
|
+
it '#seasons' do
|
93
|
+
expect { seasons = Traktr::Show.seasons('the-walking-dead') }.to raise_error(Traktr::ResponseError)
|
94
|
+
end
|
95
|
+
|
96
|
+
it '#summary' do
|
97
|
+
expect { summary = Traktr::Show.summary('the-walking-dead') }.to raise_error(Traktr::ResponseError)
|
98
|
+
end
|
99
|
+
|
100
|
+
it '#summaries' do
|
101
|
+
expect { summaries = Traktr::Show.summaries(['the-walking-dead', 'dexter']) }.to raise_error(Traktr::ResponseError)
|
102
|
+
end
|
103
|
+
|
104
|
+
it '#watchingnow' do
|
105
|
+
expect { watchingnow = Traktr::Show.watchingnow('the-walking-dead') }.to raise_error(Traktr::ResponseError)
|
106
|
+
end
|
107
|
+
|
108
|
+
it '#related' do
|
109
|
+
expect { related = Traktr::Show.related('the-walking-dead') }.to raise_error(Traktr::ResponseError)
|
110
|
+
end
|
111
|
+
end
|
112
|
+
end
|
113
|
+
|
114
|
+
context 'POST methods' do
|
115
|
+
before :all do
|
116
|
+
Traktr.api_key = API_KEY
|
117
|
+
@show = Traktr::Show.summary('dexter')
|
118
|
+
Traktr.api_key = ''
|
119
|
+
end
|
120
|
+
|
121
|
+
after :all do
|
122
|
+
@show = nil
|
123
|
+
end
|
124
|
+
|
125
|
+
context 'with valid api_key and auth credentials' do
|
126
|
+
before :all do
|
127
|
+
Traktr.api_key = API_KEY
|
128
|
+
Traktr.username = USERNAME
|
129
|
+
Traktr.password = PASSWORD
|
130
|
+
end
|
131
|
+
|
132
|
+
after :all do
|
133
|
+
Traktr.api_key = ''
|
134
|
+
Traktr.username = ''
|
135
|
+
Traktr.password = ''
|
136
|
+
end
|
137
|
+
|
138
|
+
it '#library' do
|
139
|
+
expect(Traktr::Show.library(@show).status).to eql('success')
|
140
|
+
end
|
141
|
+
|
142
|
+
it '#unlibrary' do
|
143
|
+
expect(Traktr::Show.unlibrary(@show).status).to eql('success')
|
144
|
+
end
|
145
|
+
|
146
|
+
it '#watchlist' do
|
147
|
+
expect(Traktr::Show.watchlist(@show).status).to eql('success')
|
148
|
+
end
|
149
|
+
|
150
|
+
it '#unwatchlist' do
|
151
|
+
expect(Traktr::Show.unwatchlist(@show).status).to eql('success')
|
152
|
+
end
|
153
|
+
|
154
|
+
it '#seen' do
|
155
|
+
expect(Traktr::Show.seen(@show).status).to eql('success')
|
156
|
+
end
|
157
|
+
end
|
158
|
+
|
159
|
+
context 'without valid api_key' do
|
160
|
+
before :all do
|
161
|
+
Traktr.username = USERNAME
|
162
|
+
Traktr.password = PASSWORD
|
163
|
+
end
|
164
|
+
|
165
|
+
after :all do
|
166
|
+
Traktr.username = ''
|
167
|
+
Traktr.password = ''
|
168
|
+
end
|
169
|
+
|
170
|
+
it '#library' do
|
171
|
+
expect { comments = Traktr::Show.library(@show) }.to raise_error(Traktr::ResponseError)
|
172
|
+
end
|
173
|
+
|
174
|
+
it '#unlibrary' do
|
175
|
+
expect { season = Traktr::Show.unlibrary(@show) }.to raise_error(Traktr::ResponseError)
|
176
|
+
end
|
177
|
+
|
178
|
+
it '#watchlist' do
|
179
|
+
expect { seasons = Traktr::Show.watchlist(@show) }.to raise_error(Traktr::ResponseError)
|
180
|
+
end
|
181
|
+
|
182
|
+
it '#unwatchlist' do
|
183
|
+
expect { seasons = Traktr::Show.unwatchlist(@show) }.to raise_error(Traktr::ResponseError)
|
184
|
+
end
|
185
|
+
|
186
|
+
it '#seen' do
|
187
|
+
expect { summary = Traktr::Show.seen(@show) }.to raise_error(Traktr::ResponseError)
|
188
|
+
end
|
189
|
+
end
|
190
|
+
|
191
|
+
context 'without valid auth credentials' do
|
192
|
+
before :all do
|
193
|
+
Traktr.api_key = API_KEY
|
194
|
+
end
|
195
|
+
|
196
|
+
after :all do
|
197
|
+
Traktr.api_key = ''
|
198
|
+
end
|
199
|
+
|
200
|
+
it '#library' do
|
201
|
+
expect { comments = Traktr::Show.library(@show) }.to raise_error(Traktr::ResponseError)
|
202
|
+
end
|
203
|
+
|
204
|
+
it '#unlibrary' do
|
205
|
+
expect { season = Traktr::Show.unlibrary(@show) }.to raise_error(Traktr::ResponseError)
|
206
|
+
end
|
207
|
+
|
208
|
+
it '#watchlist' do
|
209
|
+
expect { seasons = Traktr::Show.watchlist(@show) }.to raise_error(Traktr::ResponseError)
|
210
|
+
end
|
211
|
+
|
212
|
+
it '#unwatchlist' do
|
213
|
+
expect { seasons = Traktr::Show.unwatchlist(@show) }.to raise_error(Traktr::ResponseError)
|
214
|
+
end
|
215
|
+
|
216
|
+
it '#seen' do
|
217
|
+
expect { summary = Traktr::Show.seen(@show) }.to raise_error(Traktr::ResponseError)
|
218
|
+
end
|
219
|
+
end
|
220
|
+
end
|
221
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
require 'simplecov'
|
2
|
+
SimpleCov.start do
|
3
|
+
root File.expand_path(File.join(File.dirname(__FILE__), ".."))
|
4
|
+
add_filter "/spec/"
|
5
|
+
end
|
6
|
+
|
7
|
+
require 'traktr'
|
8
|
+
|
9
|
+
API_KEY = 'ec39665f9e31eb8c00de2aec74c755bf'
|
10
|
+
USERNAME = 'test.joe.lanford'
|
11
|
+
PASSWORD = 'test1234'
|
12
|
+
|
13
|
+
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
14
|
+
RSpec.configure do |config|
|
15
|
+
config.treat_symbols_as_metadata_keys_with_true_values = true
|
16
|
+
config.run_all_when_everything_filtered = true
|
17
|
+
# config.filter_run :focus
|
18
|
+
|
19
|
+
# Run specs in random order to surface order dependencies. If you find an
|
20
|
+
# order dependency and want to debug it, you can fix the order by providing
|
21
|
+
# the seed, which is printed after each run.
|
22
|
+
# --seed 1234
|
23
|
+
config.order = 'random'
|
24
|
+
end
|
data/traktr.gemspec
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'traktr/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "traktr"
|
8
|
+
spec.version = Traktr::VERSION
|
9
|
+
spec.authors = ["Joe Lanford"]
|
10
|
+
spec.email = ["joe.lanford@gmail.com"]
|
11
|
+
spec.description = %q{Implementation of the track.tv REST API. See the documentation at http://trakt.tv/api-docs}
|
12
|
+
spec.summary = %q{Implementation of the track.tv REST API}
|
13
|
+
spec.homepage = "https://github.com/joelanford/traktr"
|
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.add_dependency "httparty", "= 0.11.0"
|
22
|
+
spec.add_dependency "mash"
|
23
|
+
|
24
|
+
spec.add_development_dependency "bundler", "~> 1.3"
|
25
|
+
spec.add_development_dependency "rake"
|
26
|
+
spec.add_development_dependency "rspec"
|
27
|
+
spec.add_development_dependency "simplecov"
|
28
|
+
end
|
metadata
ADDED
@@ -0,0 +1,167 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: traktr
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Joe Lanford
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-09-11 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: httparty
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.11.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.11.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: mash
|
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: simplecov
|
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
|
+
description: Implementation of the track.tv REST API. See the documentation at http://trakt.tv/api-docs
|
98
|
+
email:
|
99
|
+
- joe.lanford@gmail.com
|
100
|
+
executables: []
|
101
|
+
extensions: []
|
102
|
+
extra_rdoc_files: []
|
103
|
+
files:
|
104
|
+
- .gitignore
|
105
|
+
- .rspec
|
106
|
+
- Gemfile
|
107
|
+
- LICENSE.txt
|
108
|
+
- README.md
|
109
|
+
- Rakefile
|
110
|
+
- lib/traktr.rb
|
111
|
+
- lib/traktr/account.rb
|
112
|
+
- lib/traktr/authentication.rb
|
113
|
+
- lib/traktr/movie.rb
|
114
|
+
- lib/traktr/search.rb
|
115
|
+
- lib/traktr/show.rb
|
116
|
+
- lib/traktr/show/episode.rb
|
117
|
+
- lib/traktr/show/season.rb
|
118
|
+
- lib/traktr/user.rb
|
119
|
+
- lib/traktr/user/calendar.rb
|
120
|
+
- lib/traktr/user/library.rb
|
121
|
+
- lib/traktr/user/library/movies.rb
|
122
|
+
- lib/traktr/user/library/shows.rb
|
123
|
+
- lib/traktr/user/network.rb
|
124
|
+
- lib/traktr/user/progress.rb
|
125
|
+
- lib/traktr/user/ratings.rb
|
126
|
+
- lib/traktr/user/watchlist.rb
|
127
|
+
- lib/traktr/version.rb
|
128
|
+
- spec/account_spec.rb
|
129
|
+
- spec/movie_spec.rb
|
130
|
+
- spec/search_spec.rb
|
131
|
+
- spec/show_episode_spec.rb
|
132
|
+
- spec/show_season_spec.rb
|
133
|
+
- spec/show_spec.rb
|
134
|
+
- spec/spec_helper.rb
|
135
|
+
- traktr.gemspec
|
136
|
+
homepage: https://github.com/joelanford/traktr
|
137
|
+
licenses:
|
138
|
+
- MIT
|
139
|
+
metadata: {}
|
140
|
+
post_install_message:
|
141
|
+
rdoc_options: []
|
142
|
+
require_paths:
|
143
|
+
- lib
|
144
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
145
|
+
requirements:
|
146
|
+
- - '>='
|
147
|
+
- !ruby/object:Gem::Version
|
148
|
+
version: '0'
|
149
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
150
|
+
requirements:
|
151
|
+
- - '>='
|
152
|
+
- !ruby/object:Gem::Version
|
153
|
+
version: '0'
|
154
|
+
requirements: []
|
155
|
+
rubyforge_project:
|
156
|
+
rubygems_version: 2.1.1
|
157
|
+
signing_key:
|
158
|
+
specification_version: 4
|
159
|
+
summary: Implementation of the track.tv REST API
|
160
|
+
test_files:
|
161
|
+
- spec/account_spec.rb
|
162
|
+
- spec/movie_spec.rb
|
163
|
+
- spec/search_spec.rb
|
164
|
+
- spec/show_episode_spec.rb
|
165
|
+
- spec/show_season_spec.rb
|
166
|
+
- spec/show_spec.rb
|
167
|
+
- spec/spec_helper.rb
|