tmsapi 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +86 -0
- data/.project +17 -0
- data/.rspec +2 -0
- data/.travis.yml +11 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +94 -0
- data/Rakefile +14 -0
- data/Readme.md +62 -0
- data/lib/tmsapi/api.rb +61 -0
- data/lib/tmsapi/middleware/custom_logger.rb +70 -0
- data/lib/tmsapi/model/airing.rb +24 -0
- data/lib/tmsapi/model/award.rb +14 -0
- data/lib/tmsapi/model/base.rb +9 -0
- data/lib/tmsapi/model/caption.rb +8 -0
- data/lib/tmsapi/model/episode.rb +11 -0
- data/lib/tmsapi/model/event.rb +10 -0
- data/lib/tmsapi/model/image.rb +16 -0
- data/lib/tmsapi/model/lineup.rb +12 -0
- data/lib/tmsapi/model/movie.rb +16 -0
- data/lib/tmsapi/model/person.rb +12 -0
- data/lib/tmsapi/model/program.rb +36 -0
- data/lib/tmsapi/model/quality_rating.rb +8 -0
- data/lib/tmsapi/model/rating.rb +8 -0
- data/lib/tmsapi/model/recommendation.rb +9 -0
- data/lib/tmsapi/model/showtime.rb +13 -0
- data/lib/tmsapi/model/sport_event.rb +11 -0
- data/lib/tmsapi/model/station.rb +19 -0
- data/lib/tmsapi/model/station_airings.rb +14 -0
- data/lib/tmsapi/model/team.rb +9 -0
- data/lib/tmsapi/model/theatre.rb +8 -0
- data/lib/tmsapi/model.rb +26 -0
- data/lib/tmsapi/resource/base.rb +20 -0
- data/lib/tmsapi/resource/lineups.rb +58 -0
- data/lib/tmsapi/resource/movies.rb +21 -0
- data/lib/tmsapi/resource/movies_theatres.rb +37 -0
- data/lib/tmsapi/resource/movies_tv.rb +41 -0
- data/lib/tmsapi/resource/programs.rb +103 -0
- data/lib/tmsapi/resource/series.rb +45 -0
- data/lib/tmsapi/resource/sports.rb +35 -0
- data/lib/tmsapi/resource/stations.rb +47 -0
- data/lib/tmsapi/resource.rb +13 -0
- data/lib/tmsapi/version.rb +3 -0
- data/lib/tmsapi.rb +10 -0
- data/spec/api_spec.rb +354 -0
- data/spec/factories.rb +56 -0
- data/spec/model/program_spec.rb +33 -0
- data/spec/spec_helper.rb +45 -0
- data/spec/support/vcr.rb +20 -0
- data/spec/tms_api_spec.rb +7 -0
- data/spec/vcr/cassettes/TMSAPI_API/_lineups/_airings/should_tell_me_whats_airing.yml +37649 -0
- data/spec/vcr/cassettes/TMSAPI_API/_lineups/_channels/should_list_some_channels.yml +2623 -0
- data/spec/vcr/cassettes/TMSAPI_API/_lineups/_details/should_tell_me_about_the_lineup.yml +67 -0
- data/spec/vcr/cassettes/TMSAPI_API/_lineups/_find/should_find_local_lineups.yml +103 -0
- data/spec/vcr/cassettes/TMSAPI_API/_lineups/_stations/should_list_some_channels.yml +2623 -0
- data/spec/vcr/cassettes/TMSAPI_API/_movies/_theatres/_showings/should_get_movie_showings.yml +460 -0
- data/spec/vcr/cassettes/TMSAPI_API/_movies/_tv/_airings/should_tell_me_what_movies_are_on_tv.yml +6722 -0
- data/spec/vcr/cassettes/TMSAPI_API/_movies/_tv/_versions/should_tell_me_about_that_movie.yml +1366 -0
- data/spec/vcr/cassettes/TMSAPI_API/_programs/_advance_planner/should_list_holiday_events.yml +1951 -0
- data/spec/vcr/cassettes/TMSAPI_API/_programs/_airings/should_find_airings.yml +85 -0
- data/spec/vcr/cassettes/TMSAPI_API/_programs/_details/should_be_filled_with_program_information.yml +117 -0
- data/spec/vcr/cassettes/TMSAPI_API/_programs/_genres/should_return_all_genres.yml +131 -0
- data/spec/vcr/cassettes/TMSAPI_API/_programs/_images/should_return_images.yml +225 -0
- data/spec/vcr/cassettes/TMSAPI_API/_programs/_new_past_week/should_have_programs.yml +2238 -0
- data/spec/vcr/cassettes/TMSAPI_API/_programs/_new_shows/should_find_new_shows.yml +1105 -0
- data/spec/vcr/cassettes/TMSAPI_API/_programs/_search/should_find_4_programs.yml +152 -0
- data/spec/vcr/cassettes/TMSAPI_API/_series/_airings/should_list_airings.yml +341 -0
- data/spec/vcr/cassettes/TMSAPI_API/_series/_details/should_find_the_series.yml +272 -0
- data/spec/vcr/cassettes/TMSAPI_API/_series/_episodes/should_return_episodes.yml +3492 -0
- data/spec/vcr/cassettes/TMSAPI_API/_stations/_airings/should_list_airings.yml +123 -0
- data/spec/vcr/cassettes/TMSAPI_API/_stations/_details/should_get_station_details.yml +67 -0
- data/tmsapi.gemspec +42 -0
- metadata +296 -0
@@ -0,0 +1,123 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://data.tmsapi.com/v1/stations/10359/airings?api_key=api_key_YYYYYYYYYYYYYYYYYYYYY&startDateTime=2013-12-21T18%3A30Z
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- tmsapi rubygem v0.0.1
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 200
|
15
|
+
message:
|
16
|
+
headers:
|
17
|
+
!binary "eC1tYXNoZXJ5LXJlc3BvbmRlcg==":
|
18
|
+
- !binary |-
|
19
|
+
cHJvZC1qLXdvcmtlci1sYXgtMDMubWFzaGVyeS5jb20=
|
20
|
+
!binary "YWNjZXB0LXJhbmdlcw==":
|
21
|
+
- !binary |-
|
22
|
+
Ynl0ZXM=
|
23
|
+
!binary "YWNjZXNzLWNvbnRyb2wtYWxsb3ctaGVhZGVycw==":
|
24
|
+
- !binary |-
|
25
|
+
b3JpZ2luLCBjb250ZW50LXR5cGUsIGFjY2VwdA==
|
26
|
+
!binary "YWNjZXNzLWNvbnRyb2wtYWxsb3ctbWV0aG9kcw==":
|
27
|
+
- !binary |-
|
28
|
+
R0VULCBQT1NULCBPUFRJT05T
|
29
|
+
!binary "YWNjZXNzLWNvbnRyb2wtYWxsb3ctb3JpZ2lu":
|
30
|
+
- !binary |-
|
31
|
+
Kg==
|
32
|
+
!binary "YWNjZXNzLWNvbnRyb2wtY29udGVudC10eXBl":
|
33
|
+
- !binary |-
|
34
|
+
Ki8q
|
35
|
+
!binary "YWNjZXNzLWNvbnRyb2wtbWF4LWFnZQ==":
|
36
|
+
- !binary |-
|
37
|
+
ODY0MDA=
|
38
|
+
!binary "YWdl":
|
39
|
+
- !binary |-
|
40
|
+
MA==
|
41
|
+
!binary "Y29udGVudC10eXBl":
|
42
|
+
- !binary |-
|
43
|
+
YXBwbGljYXRpb24vanNvbjtjaGFyc2V0PSJVVEYtOCI=
|
44
|
+
!binary "ZGF0ZQ==":
|
45
|
+
- !binary |-
|
46
|
+
U2F0LCAyMSBEZWMgMjAxMyAxOToyMjozNiBHTVQ=
|
47
|
+
!binary "c2VydmVy":
|
48
|
+
- !binary |-
|
49
|
+
SmV0dHkoNi4xLjI0KQ==
|
50
|
+
!binary "dmlh":
|
51
|
+
- !binary |-
|
52
|
+
MS4xIHZhcm5pc2g=
|
53
|
+
!binary "eC12YXJuaXNo":
|
54
|
+
- !binary |-
|
55
|
+
MTEzMjkzNjY0MQ==
|
56
|
+
!binary "Y29ubmVjdGlvbg==":
|
57
|
+
- !binary |-
|
58
|
+
Y2xvc2U=
|
59
|
+
body:
|
60
|
+
encoding: ASCII-8BIT
|
61
|
+
string: !binary |-
|
62
|
+
W3sic3RhcnRUaW1lIjoiMjAxMy0xMi0yMVQxODowMFoiLCJlbmRUaW1lIjoi
|
63
|
+
MjAxMy0xMi0yMVQxOTowMFoiLCJkdXJhdGlvbiI6NjAsInN0YXRpb24iOnsi
|
64
|
+
cHJlZmVycmVkSW1hZ2UiOnsidXJpIjoiaHR0cDovL2RlbW8udG1zaW1nLmNv
|
65
|
+
bS9zb3VyY2VzL2dlbmVyaWMvZ2VuZXJpY19zb3VyY2VzX2gzLnBuZyJ9LCJj
|
66
|
+
YWxsU2lnbiI6IktFWUUiLCJzdGF0aW9uSWQiOiIxMDM1OSJ9LCJzdGF0aW9u
|
67
|
+
SWQiOiIxMDM1OSIsInByb2dyYW0iOnsidG1zSWQiOiJ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YW1lRGF0ZSI6IjIwMTMtMTItMjEi
|
114
|
+
LCJwcmVmZXJyZWRJbWFnZSI6eyJ1cmkiOiJodHRwOi8vZGVtby50bXNpbWcu
|
115
|
+
Y29tL2Fzc2V0cy9wMTkxMjYwX2JfdjVfYWEuanBnIiwiaGVpZ2h0IjoiMzYw
|
116
|
+
Iiwid2lkdGgiOiIyNDAiLCJwcmltYXJ5IjoidHJ1ZSIsImNhdGVnb3J5Ijoi
|
117
|
+
QmFubmVyLUwzIiwidGllciI6IlNwb3J0In0sInRlYW1zIjpbeyJuYW1lIjoi
|
118
|
+
TWljaGlnYW4gU3RhdGUiLCJ0ZWFtQnJhbmRJZCI6IjY1MSJ9LHsibmFtZSI6
|
119
|
+
IlRleGFzIiwiaXNIb21lIjp0cnVlLCJ0ZWFtQnJhbmRJZCI6Ijc1OCJ9XSwi
|
120
|
+
ZW50aXR5VHlwZSI6IlNwb3J0cyJ9fV0=
|
121
|
+
http_version:
|
122
|
+
recorded_at: Sat, 21 Dec 2013 19:22:36 GMT
|
123
|
+
recorded_with: VCR 2.8.0
|
@@ -0,0 +1,67 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://data.tmsapi.com/v1/stations/10359?api_key=api_key_YYYYYYYYYYYYYYYYYYYYY
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- tmsapi rubygem v0.0.1
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 200
|
15
|
+
message:
|
16
|
+
headers:
|
17
|
+
!binary "eC1tYXNoZXJ5LXJlc3BvbmRlcg==":
|
18
|
+
- !binary |-
|
19
|
+
cHJvZC1qLXdvcmtlci1sYXgtMDIubWFzaGVyeS5jb20=
|
20
|
+
!binary "YWNjZXB0LXJhbmdlcw==":
|
21
|
+
- !binary |-
|
22
|
+
Ynl0ZXM=
|
23
|
+
!binary "YWNjZXNzLWNvbnRyb2wtYWxsb3ctaGVhZGVycw==":
|
24
|
+
- !binary |-
|
25
|
+
b3JpZ2luLCBjb250ZW50LXR5cGUsIGFjY2VwdA==
|
26
|
+
!binary "YWNjZXNzLWNvbnRyb2wtYWxsb3ctbWV0aG9kcw==":
|
27
|
+
- !binary |-
|
28
|
+
R0VULCBQT1NULCBPUFRJT05T
|
29
|
+
!binary "YWNjZXNzLWNvbnRyb2wtYWxsb3ctb3JpZ2lu":
|
30
|
+
- !binary |-
|
31
|
+
Kg==
|
32
|
+
!binary "YWNjZXNzLWNvbnRyb2wtY29udGVudC10eXBl":
|
33
|
+
- !binary |-
|
34
|
+
Ki8q
|
35
|
+
!binary "YWNjZXNzLWNvbnRyb2wtbWF4LWFnZQ==":
|
36
|
+
- !binary |-
|
37
|
+
ODY0MDA=
|
38
|
+
!binary "YWdl":
|
39
|
+
- !binary |-
|
40
|
+
MA==
|
41
|
+
!binary "Y29udGVudC10eXBl":
|
42
|
+
- !binary |-
|
43
|
+
YXBwbGljYXRpb24vanNvbjtjaGFyc2V0PSJVVEYtOCI=
|
44
|
+
!binary "ZGF0ZQ==":
|
45
|
+
- !binary |-
|
46
|
+
U2F0LCAyMSBEZWMgMjAxMyAxOToxNjowNiBHTVQ=
|
47
|
+
!binary "c2VydmVy":
|
48
|
+
- !binary |-
|
49
|
+
SmV0dHkoNi4xLjI0KQ==
|
50
|
+
!binary "dmlh":
|
51
|
+
- !binary |-
|
52
|
+
MS4xIHZhcm5pc2g=
|
53
|
+
!binary "eC12YXJuaXNo":
|
54
|
+
- !binary |-
|
55
|
+
MjAxNjc1ODgyNw==
|
56
|
+
!binary "Y29ubmVjdGlvbg==":
|
57
|
+
- !binary |-
|
58
|
+
Y2xvc2U=
|
59
|
+
body:
|
60
|
+
encoding: ASCII-8BIT
|
61
|
+
string: !binary |-
|
62
|
+
W3sic3RhdGlvbklkIjoiMTAzNTkiLCJuYW1lIjoiS0VZRSIsImNhbGxTaWdu
|
63
|
+
IjoiS0VZRSIsInR5cGUiOiJGdWxsIFBvd2VyIEJyb2FkY2FzdCIsImJjYXN0
|
64
|
+
TGFuZ3MiOlsiZW4iXSwiZWRMYW5ncyI6WyJlbiJdfV0=
|
65
|
+
http_version:
|
66
|
+
recorded_at: Sat, 21 Dec 2013 19:16:06 GMT
|
67
|
+
recorded_with: VCR 2.8.0
|
data/tmsapi.gemspec
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'tmsapi/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |gem|
|
7
|
+
gem.name = 'tmsapi'
|
8
|
+
gem.version = TMSAPI::VERSION
|
9
|
+
gem.authors = ['Justin DiPierro']
|
10
|
+
gem.email = ['dipierroj@gmail.com']
|
11
|
+
gem.description = %q{A Ruby gem for the TMS API}
|
12
|
+
gem.summary = %q{This gem wraps the TMS API documented at https://developer.tmsapi.com}
|
13
|
+
gem.homepage = 'https://github.com/jdipierro/tmsapi'
|
14
|
+
gem.license = 'MIT'
|
15
|
+
|
16
|
+
gem.files = `git ls-files`.split("\n")
|
17
|
+
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
18
|
+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
19
|
+
gem.require_paths = ['lib']
|
20
|
+
|
21
|
+
if RUBY_PLATFORM == 'java'
|
22
|
+
gem.add_runtime_dependency 'jruby-openssl'
|
23
|
+
end
|
24
|
+
|
25
|
+
gem.add_dependency 'faraday', '~> 0.8.7'
|
26
|
+
gem.add_dependency 'faraday_middleware', '~> 0.9.0'
|
27
|
+
gem.add_dependency 'json', '~> 1.8.1'
|
28
|
+
gem.add_dependency 'rash', '~> 0.4.0'
|
29
|
+
gem.add_dependency 'virtus', '~> 1.0.1'
|
30
|
+
|
31
|
+
gem.add_development_dependency 'rspec', '~> 2.0'
|
32
|
+
|
33
|
+
if RUBY_PLATFORM =~ /darwin/i
|
34
|
+
gem.add_development_dependency 'rb-fsevent', '~> 0.9.3'
|
35
|
+
end
|
36
|
+
|
37
|
+
gem.add_development_dependency 'vcr', '~> 2.4'
|
38
|
+
gem.add_development_dependency 'fakeweb', '~> 1.3.0'
|
39
|
+
gem.add_development_dependency 'rake', '~> 10.1.0'
|
40
|
+
gem.add_development_dependency 'coveralls', '~> 0.7.0'
|
41
|
+
gem.add_development_dependency 'factory_girl', '~> 4.0'
|
42
|
+
end
|
metadata
ADDED
@@ -0,0 +1,296 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: tmsapi
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Justin DiPierro
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-12-23 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: faraday
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.8.7
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.8.7
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: faraday_middleware
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.9.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.9.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: json
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ~>
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 1.8.1
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 1.8.1
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rash
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.4.0
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ~>
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.4.0
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: virtus
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ~>
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 1.0.1
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ~>
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 1.0.1
|
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.0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ~>
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '2.0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: vcr
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ~>
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '2.4'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ~>
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '2.4'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: fakeweb
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ~>
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 1.3.0
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ~>
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 1.3.0
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: rake
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ~>
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 10.1.0
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ~>
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 10.1.0
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: coveralls
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ~>
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: 0.7.0
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ~>
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: 0.7.0
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: factory_girl
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ~>
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '4.0'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ~>
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '4.0'
|
167
|
+
description: A Ruby gem for the TMS API
|
168
|
+
email:
|
169
|
+
- dipierroj@gmail.com
|
170
|
+
executables: []
|
171
|
+
extensions: []
|
172
|
+
extra_rdoc_files: []
|
173
|
+
files:
|
174
|
+
- .gitignore
|
175
|
+
- .project
|
176
|
+
- .rspec
|
177
|
+
- .travis.yml
|
178
|
+
- Gemfile
|
179
|
+
- Gemfile.lock
|
180
|
+
- Rakefile
|
181
|
+
- Readme.md
|
182
|
+
- lib/tmsapi.rb
|
183
|
+
- lib/tmsapi/api.rb
|
184
|
+
- lib/tmsapi/middleware/custom_logger.rb
|
185
|
+
- lib/tmsapi/model.rb
|
186
|
+
- lib/tmsapi/model/airing.rb
|
187
|
+
- lib/tmsapi/model/award.rb
|
188
|
+
- lib/tmsapi/model/base.rb
|
189
|
+
- lib/tmsapi/model/caption.rb
|
190
|
+
- lib/tmsapi/model/episode.rb
|
191
|
+
- lib/tmsapi/model/event.rb
|
192
|
+
- lib/tmsapi/model/image.rb
|
193
|
+
- lib/tmsapi/model/lineup.rb
|
194
|
+
- lib/tmsapi/model/movie.rb
|
195
|
+
- lib/tmsapi/model/person.rb
|
196
|
+
- lib/tmsapi/model/program.rb
|
197
|
+
- lib/tmsapi/model/quality_rating.rb
|
198
|
+
- lib/tmsapi/model/rating.rb
|
199
|
+
- lib/tmsapi/model/recommendation.rb
|
200
|
+
- lib/tmsapi/model/showtime.rb
|
201
|
+
- lib/tmsapi/model/sport_event.rb
|
202
|
+
- lib/tmsapi/model/station.rb
|
203
|
+
- lib/tmsapi/model/station_airings.rb
|
204
|
+
- lib/tmsapi/model/team.rb
|
205
|
+
- lib/tmsapi/model/theatre.rb
|
206
|
+
- lib/tmsapi/resource.rb
|
207
|
+
- lib/tmsapi/resource/base.rb
|
208
|
+
- lib/tmsapi/resource/lineups.rb
|
209
|
+
- lib/tmsapi/resource/movies.rb
|
210
|
+
- lib/tmsapi/resource/movies_theatres.rb
|
211
|
+
- lib/tmsapi/resource/movies_tv.rb
|
212
|
+
- lib/tmsapi/resource/programs.rb
|
213
|
+
- lib/tmsapi/resource/series.rb
|
214
|
+
- lib/tmsapi/resource/sports.rb
|
215
|
+
- lib/tmsapi/resource/stations.rb
|
216
|
+
- lib/tmsapi/version.rb
|
217
|
+
- spec/api_spec.rb
|
218
|
+
- spec/factories.rb
|
219
|
+
- spec/model/program_spec.rb
|
220
|
+
- spec/spec_helper.rb
|
221
|
+
- spec/support/vcr.rb
|
222
|
+
- spec/tms_api_spec.rb
|
223
|
+
- spec/vcr/cassettes/TMSAPI_API/_lineups/_airings/should_tell_me_whats_airing.yml
|
224
|
+
- spec/vcr/cassettes/TMSAPI_API/_lineups/_channels/should_list_some_channels.yml
|
225
|
+
- spec/vcr/cassettes/TMSAPI_API/_lineups/_details/should_tell_me_about_the_lineup.yml
|
226
|
+
- spec/vcr/cassettes/TMSAPI_API/_lineups/_find/should_find_local_lineups.yml
|
227
|
+
- spec/vcr/cassettes/TMSAPI_API/_lineups/_stations/should_list_some_channels.yml
|
228
|
+
- spec/vcr/cassettes/TMSAPI_API/_movies/_theatres/_showings/should_get_movie_showings.yml
|
229
|
+
- spec/vcr/cassettes/TMSAPI_API/_movies/_tv/_airings/should_tell_me_what_movies_are_on_tv.yml
|
230
|
+
- spec/vcr/cassettes/TMSAPI_API/_movies/_tv/_versions/should_tell_me_about_that_movie.yml
|
231
|
+
- spec/vcr/cassettes/TMSAPI_API/_programs/_advance_planner/should_list_holiday_events.yml
|
232
|
+
- spec/vcr/cassettes/TMSAPI_API/_programs/_airings/should_find_airings.yml
|
233
|
+
- spec/vcr/cassettes/TMSAPI_API/_programs/_details/should_be_filled_with_program_information.yml
|
234
|
+
- spec/vcr/cassettes/TMSAPI_API/_programs/_genres/should_return_all_genres.yml
|
235
|
+
- spec/vcr/cassettes/TMSAPI_API/_programs/_images/should_return_images.yml
|
236
|
+
- spec/vcr/cassettes/TMSAPI_API/_programs/_new_past_week/should_have_programs.yml
|
237
|
+
- spec/vcr/cassettes/TMSAPI_API/_programs/_new_shows/should_find_new_shows.yml
|
238
|
+
- spec/vcr/cassettes/TMSAPI_API/_programs/_search/should_find_4_programs.yml
|
239
|
+
- spec/vcr/cassettes/TMSAPI_API/_series/_airings/should_list_airings.yml
|
240
|
+
- spec/vcr/cassettes/TMSAPI_API/_series/_details/should_find_the_series.yml
|
241
|
+
- spec/vcr/cassettes/TMSAPI_API/_series/_episodes/should_return_episodes.yml
|
242
|
+
- spec/vcr/cassettes/TMSAPI_API/_stations/_airings/should_list_airings.yml
|
243
|
+
- spec/vcr/cassettes/TMSAPI_API/_stations/_details/should_get_station_details.yml
|
244
|
+
- tmsapi.gemspec
|
245
|
+
homepage: https://github.com/jdipierro/tmsapi
|
246
|
+
licenses:
|
247
|
+
- MIT
|
248
|
+
metadata: {}
|
249
|
+
post_install_message:
|
250
|
+
rdoc_options: []
|
251
|
+
require_paths:
|
252
|
+
- lib
|
253
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
254
|
+
requirements:
|
255
|
+
- - '>='
|
256
|
+
- !ruby/object:Gem::Version
|
257
|
+
version: '0'
|
258
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
259
|
+
requirements:
|
260
|
+
- - '>='
|
261
|
+
- !ruby/object:Gem::Version
|
262
|
+
version: '0'
|
263
|
+
requirements: []
|
264
|
+
rubyforge_project:
|
265
|
+
rubygems_version: 2.0.14
|
266
|
+
signing_key:
|
267
|
+
specification_version: 4
|
268
|
+
summary: This gem wraps the TMS API documented at https://developer.tmsapi.com
|
269
|
+
test_files:
|
270
|
+
- spec/api_spec.rb
|
271
|
+
- spec/factories.rb
|
272
|
+
- spec/model/program_spec.rb
|
273
|
+
- spec/spec_helper.rb
|
274
|
+
- spec/support/vcr.rb
|
275
|
+
- spec/tms_api_spec.rb
|
276
|
+
- spec/vcr/cassettes/TMSAPI_API/_lineups/_airings/should_tell_me_whats_airing.yml
|
277
|
+
- spec/vcr/cassettes/TMSAPI_API/_lineups/_channels/should_list_some_channels.yml
|
278
|
+
- spec/vcr/cassettes/TMSAPI_API/_lineups/_details/should_tell_me_about_the_lineup.yml
|
279
|
+
- spec/vcr/cassettes/TMSAPI_API/_lineups/_find/should_find_local_lineups.yml
|
280
|
+
- spec/vcr/cassettes/TMSAPI_API/_lineups/_stations/should_list_some_channels.yml
|
281
|
+
- spec/vcr/cassettes/TMSAPI_API/_movies/_theatres/_showings/should_get_movie_showings.yml
|
282
|
+
- spec/vcr/cassettes/TMSAPI_API/_movies/_tv/_airings/should_tell_me_what_movies_are_on_tv.yml
|
283
|
+
- spec/vcr/cassettes/TMSAPI_API/_movies/_tv/_versions/should_tell_me_about_that_movie.yml
|
284
|
+
- spec/vcr/cassettes/TMSAPI_API/_programs/_advance_planner/should_list_holiday_events.yml
|
285
|
+
- spec/vcr/cassettes/TMSAPI_API/_programs/_airings/should_find_airings.yml
|
286
|
+
- spec/vcr/cassettes/TMSAPI_API/_programs/_details/should_be_filled_with_program_information.yml
|
287
|
+
- spec/vcr/cassettes/TMSAPI_API/_programs/_genres/should_return_all_genres.yml
|
288
|
+
- spec/vcr/cassettes/TMSAPI_API/_programs/_images/should_return_images.yml
|
289
|
+
- spec/vcr/cassettes/TMSAPI_API/_programs/_new_past_week/should_have_programs.yml
|
290
|
+
- spec/vcr/cassettes/TMSAPI_API/_programs/_new_shows/should_find_new_shows.yml
|
291
|
+
- spec/vcr/cassettes/TMSAPI_API/_programs/_search/should_find_4_programs.yml
|
292
|
+
- spec/vcr/cassettes/TMSAPI_API/_series/_airings/should_list_airings.yml
|
293
|
+
- spec/vcr/cassettes/TMSAPI_API/_series/_details/should_find_the_series.yml
|
294
|
+
- spec/vcr/cassettes/TMSAPI_API/_series/_episodes/should_return_episodes.yml
|
295
|
+
- spec/vcr/cassettes/TMSAPI_API/_stations/_airings/should_list_airings.yml
|
296
|
+
- spec/vcr/cassettes/TMSAPI_API/_stations/_details/should_get_station_details.yml
|