trakt_api 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +19 -0
  3. data/.travis.yml +4 -0
  4. data/Gemfile +4 -0
  5. data/LICENSE.txt +22 -0
  6. data/README.md +252 -0
  7. data/Rakefile +1 -0
  8. data/lib/generators/templates/trakt_api.rb +5 -0
  9. data/lib/generators/trakt_api/install_generator.rb +12 -0
  10. data/lib/trakt_api.rb +22 -0
  11. data/lib/trakt_api/account.rb +16 -0
  12. data/lib/trakt_api/activity.rb +109 -0
  13. data/lib/trakt_api/base.rb +93 -0
  14. data/lib/trakt_api/calendar.rb +17 -0
  15. data/lib/trakt_api/client.rb +74 -0
  16. data/lib/trakt_api/comment.rb +16 -0
  17. data/lib/trakt_api/configuration.rb +7 -0
  18. data/lib/trakt_api/genres.rb +11 -0
  19. data/lib/trakt_api/lists.rb +26 -0
  20. data/lib/trakt_api/movie.rb +86 -0
  21. data/lib/trakt_api/movies.rb +11 -0
  22. data/lib/trakt_api/network.rb +26 -0
  23. data/lib/trakt_api/rate.rb +31 -0
  24. data/lib/trakt_api/recommendations.rb +21 -0
  25. data/lib/trakt_api/search.rb +26 -0
  26. data/lib/trakt_api/server.rb +6 -0
  27. data/lib/trakt_api/show.rb +152 -0
  28. data/lib/trakt_api/shows.rb +11 -0
  29. data/lib/trakt_api/user.rb +124 -0
  30. data/lib/trakt_api/version.rb +3 -0
  31. data/spec/integration_spec_helper.rb +3 -0
  32. data/spec/integrations/account_spec.rb +19 -0
  33. data/spec/integrations/calendar_spec.rb +31 -0
  34. data/spec/integrations/client_spec.rb +173 -0
  35. data/spec/integrations/genres_spec.rb +19 -0
  36. data/spec/integrations/movies_spec.rb +25 -0
  37. data/spec/integrations/network_spec.rb +37 -0
  38. data/spec/integrations/search_spec.rb +37 -0
  39. data/spec/integrations/server_spec.rb +13 -0
  40. data/spec/integrations/shows_spec.rb +25 -0
  41. data/spec/integrations/support/trakt_api.rb.example +5 -0
  42. data/spec/spec_helper.rb +43 -0
  43. data/spec/trakt_api/account_spec.rb +56 -0
  44. data/spec/trakt_api/activity_spec.rb +297 -0
  45. data/spec/trakt_api/base_spec.rb +147 -0
  46. data/spec/trakt_api/calendar_spec.rb +48 -0
  47. data/spec/trakt_api/client_spec.rb +101 -0
  48. data/spec/trakt_api/comment_spec.rb +69 -0
  49. data/spec/trakt_api/genres_spec.rb +24 -0
  50. data/spec/trakt_api/lists_spec.rb +111 -0
  51. data/spec/trakt_api/movie_spec.rb +333 -0
  52. data/spec/trakt_api/movies_spec.rb +38 -0
  53. data/spec/trakt_api/network_spec.rb +105 -0
  54. data/spec/trakt_api/rate_spec.rb +132 -0
  55. data/spec/trakt_api/recommendations_spec.rb +90 -0
  56. data/spec/trakt_api/search_spec.rb +81 -0
  57. data/spec/trakt_api/server_spec.rb +15 -0
  58. data/spec/trakt_api/show_spec.rb +588 -0
  59. data/spec/trakt_api/shows_spec.rb +38 -0
  60. data/spec/trakt_api/user_spec.rb +561 -0
  61. data/trakt_api.gemspec +29 -0
  62. metadata +232 -0
@@ -0,0 +1,29 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'trakt_api/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'trakt_api'
8
+ spec.version = TraktApi::VERSION
9
+ spec.authors = ['Krzysztof Wawer']
10
+ spec.email = ['krzysztof.wawer@gmail.com']
11
+ spec.description = %q{Ruby client for trakt.tv API}
12
+ spec.summary = %q{Ruby client for trakt.tv API}
13
+ spec.homepage = %q{http://github.com/wafcio/trakt_api}
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_runtime_dependency 'confiture', '>= 0.1.4'
22
+ spec.add_runtime_dependency 'httparty', '>= 0.12.0'
23
+ spec.add_runtime_dependency 'string_to_sha1', '>= 1.0.0'
24
+
25
+ spec.add_development_dependency 'bundler', '~> 1.3'
26
+ spec.add_development_dependency 'rake'
27
+ spec.add_development_dependency 'rspec', '>= 2.14.1'
28
+ spec.add_development_dependency 'coveralls', '>= 0.7'
29
+ end
metadata ADDED
@@ -0,0 +1,232 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: trakt_api
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: ruby
6
+ authors:
7
+ - Krzysztof Wawer
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-12-16 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: confiture
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: 0.1.4
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: 0.1.4
27
+ - !ruby/object:Gem::Dependency
28
+ name: httparty
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: 0.12.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.12.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: string_to_sha1
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '>='
46
+ - !ruby/object:Gem::Version
47
+ version: 1.0.0
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: 1.0.0
55
+ - !ruby/object:Gem::Dependency
56
+ name: bundler
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '1.3'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: '1.3'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
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: rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - '>='
88
+ - !ruby/object:Gem::Version
89
+ version: 2.14.1
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - '>='
95
+ - !ruby/object:Gem::Version
96
+ version: 2.14.1
97
+ - !ruby/object:Gem::Dependency
98
+ name: coveralls
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - '>='
102
+ - !ruby/object:Gem::Version
103
+ version: '0.7'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - '>='
109
+ - !ruby/object:Gem::Version
110
+ version: '0.7'
111
+ description: Ruby client for trakt.tv API
112
+ email:
113
+ - krzysztof.wawer@gmail.com
114
+ executables: []
115
+ extensions: []
116
+ extra_rdoc_files: []
117
+ files:
118
+ - .gitignore
119
+ - .travis.yml
120
+ - Gemfile
121
+ - LICENSE.txt
122
+ - README.md
123
+ - Rakefile
124
+ - lib/generators/templates/trakt_api.rb
125
+ - lib/generators/trakt_api/install_generator.rb
126
+ - lib/trakt_api.rb
127
+ - lib/trakt_api/account.rb
128
+ - lib/trakt_api/activity.rb
129
+ - lib/trakt_api/base.rb
130
+ - lib/trakt_api/calendar.rb
131
+ - lib/trakt_api/client.rb
132
+ - lib/trakt_api/comment.rb
133
+ - lib/trakt_api/configuration.rb
134
+ - lib/trakt_api/genres.rb
135
+ - lib/trakt_api/lists.rb
136
+ - lib/trakt_api/movie.rb
137
+ - lib/trakt_api/movies.rb
138
+ - lib/trakt_api/network.rb
139
+ - lib/trakt_api/rate.rb
140
+ - lib/trakt_api/recommendations.rb
141
+ - lib/trakt_api/search.rb
142
+ - lib/trakt_api/server.rb
143
+ - lib/trakt_api/show.rb
144
+ - lib/trakt_api/shows.rb
145
+ - lib/trakt_api/user.rb
146
+ - lib/trakt_api/version.rb
147
+ - spec/integration_spec_helper.rb
148
+ - spec/integrations/account_spec.rb
149
+ - spec/integrations/calendar_spec.rb
150
+ - spec/integrations/client_spec.rb
151
+ - spec/integrations/genres_spec.rb
152
+ - spec/integrations/movies_spec.rb
153
+ - spec/integrations/network_spec.rb
154
+ - spec/integrations/search_spec.rb
155
+ - spec/integrations/server_spec.rb
156
+ - spec/integrations/shows_spec.rb
157
+ - spec/integrations/support/trakt_api.rb.example
158
+ - spec/spec_helper.rb
159
+ - spec/trakt_api/account_spec.rb
160
+ - spec/trakt_api/activity_spec.rb
161
+ - spec/trakt_api/base_spec.rb
162
+ - spec/trakt_api/calendar_spec.rb
163
+ - spec/trakt_api/client_spec.rb
164
+ - spec/trakt_api/comment_spec.rb
165
+ - spec/trakt_api/genres_spec.rb
166
+ - spec/trakt_api/lists_spec.rb
167
+ - spec/trakt_api/movie_spec.rb
168
+ - spec/trakt_api/movies_spec.rb
169
+ - spec/trakt_api/network_spec.rb
170
+ - spec/trakt_api/rate_spec.rb
171
+ - spec/trakt_api/recommendations_spec.rb
172
+ - spec/trakt_api/search_spec.rb
173
+ - spec/trakt_api/server_spec.rb
174
+ - spec/trakt_api/show_spec.rb
175
+ - spec/trakt_api/shows_spec.rb
176
+ - spec/trakt_api/user_spec.rb
177
+ - trakt_api.gemspec
178
+ homepage: http://github.com/wafcio/trakt_api
179
+ licenses:
180
+ - MIT
181
+ metadata: {}
182
+ post_install_message:
183
+ rdoc_options: []
184
+ require_paths:
185
+ - lib
186
+ required_ruby_version: !ruby/object:Gem::Requirement
187
+ requirements:
188
+ - - '>='
189
+ - !ruby/object:Gem::Version
190
+ version: '0'
191
+ required_rubygems_version: !ruby/object:Gem::Requirement
192
+ requirements:
193
+ - - '>='
194
+ - !ruby/object:Gem::Version
195
+ version: '0'
196
+ requirements: []
197
+ rubyforge_project:
198
+ rubygems_version: 2.0.0
199
+ signing_key:
200
+ specification_version: 4
201
+ summary: Ruby client for trakt.tv API
202
+ test_files:
203
+ - spec/integration_spec_helper.rb
204
+ - spec/integrations/account_spec.rb
205
+ - spec/integrations/calendar_spec.rb
206
+ - spec/integrations/client_spec.rb
207
+ - spec/integrations/genres_spec.rb
208
+ - spec/integrations/movies_spec.rb
209
+ - spec/integrations/network_spec.rb
210
+ - spec/integrations/search_spec.rb
211
+ - spec/integrations/server_spec.rb
212
+ - spec/integrations/shows_spec.rb
213
+ - spec/integrations/support/trakt_api.rb.example
214
+ - spec/spec_helper.rb
215
+ - spec/trakt_api/account_spec.rb
216
+ - spec/trakt_api/activity_spec.rb
217
+ - spec/trakt_api/base_spec.rb
218
+ - spec/trakt_api/calendar_spec.rb
219
+ - spec/trakt_api/client_spec.rb
220
+ - spec/trakt_api/comment_spec.rb
221
+ - spec/trakt_api/genres_spec.rb
222
+ - spec/trakt_api/lists_spec.rb
223
+ - spec/trakt_api/movie_spec.rb
224
+ - spec/trakt_api/movies_spec.rb
225
+ - spec/trakt_api/network_spec.rb
226
+ - spec/trakt_api/rate_spec.rb
227
+ - spec/trakt_api/recommendations_spec.rb
228
+ - spec/trakt_api/search_spec.rb
229
+ - spec/trakt_api/server_spec.rb
230
+ - spec/trakt_api/show_spec.rb
231
+ - spec/trakt_api/shows_spec.rb
232
+ - spec/trakt_api/user_spec.rb