picturehouse_uk 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. data/.gitignore +17 -0
  2. data/.travis.yml +4 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE.txt +22 -0
  5. data/README.md +64 -0
  6. data/Rakefile +20 -0
  7. data/lib/picturehouse_uk.rb +16 -0
  8. data/lib/picturehouse_uk/cinema.rb +129 -0
  9. data/lib/picturehouse_uk/film.rb +52 -0
  10. data/lib/picturehouse_uk/internal/film_with_screenings_parser.rb +48 -0
  11. data/lib/picturehouse_uk/screening.rb +33 -0
  12. data/lib/picturehouse_uk/version.rb +3 -0
  13. data/picturehouse_uk.gemspec +29 -0
  14. data/test/fixtures/dukes-at-komedia-cinema.html +7148 -0
  15. data/test/fixtures/film_node/blue-jasmine-done.html +53 -0
  16. data/test/fixtures/film_node/blue-jasmine-future.html +55 -0
  17. data/test/fixtures/film_node/bolshoi-spartacus.html +26 -0
  18. data/test/fixtures/film_node/captain-phillips-with-silver-screen-and-subtitles.html +103 -0
  19. data/test/fixtures/film_node/fifth-estate-with-big-scream.html +73 -0
  20. data/test/fixtures/film_node/london-film-festival-with-toddler-time.html +46 -0
  21. data/test/fixtures/film_node/met-encore-rusalka-as-live.html +26 -0
  22. data/test/fixtures/film_node/nt-encore-hamlet.html +26 -0
  23. data/test/fixtures/film_node/planes-with-kids-club.html +77 -0
  24. data/test/fixtures/film_node/royal-opera-house-don-quixote.html +26 -0
  25. data/test/fixtures/film_node/rsc-encore-richard-ii.html +28 -0
  26. data/test/fixtures/film_node/rsc-live-richard-ii.html +41 -0
  27. data/test/fixtures/film_node/rsc-live-the-two-gentlemen-of-verona-zero-cert.html +19 -0
  28. data/test/fixtures/picturehouses-homepage.html +1454 -0
  29. data/test/lib/picturehouse_uk/cinema_test.rb +129 -0
  30. data/test/lib/picturehouse_uk/film_test.rb +92 -0
  31. data/test/lib/picturehouse_uk/internal/film_with_screenings_parser_test.rb +185 -0
  32. data/test/lib/picturehouse_uk/screening_test.rb +32 -0
  33. data/test/lib/picturehouse_uk/version_test.rb +7 -0
  34. data/test/test_helper.rb +6 -0
  35. metadata +213 -0
@@ -0,0 +1,6 @@
1
+ require 'minitest/autorun'
2
+ require 'minitest/pride'
3
+
4
+ require 'webmock/minitest'
5
+
6
+ require File.expand_path('../../lib/picturehouse_uk.rb', __FILE__)
metadata ADDED
@@ -0,0 +1,213 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: picturehouse_uk
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Andy Croll
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-10-21 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: bundler
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: '1.3'
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: '1.3'
30
+ - !ruby/object:Gem::Dependency
31
+ name: rake
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: webmock
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: httparty
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :runtime
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ - !ruby/object:Gem::Dependency
79
+ name: nokogiri
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ type: :runtime
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ - !ruby/object:Gem::Dependency
95
+ name: tzinfo
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ! '>='
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ type: :runtime
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ - !ruby/object:Gem::Dependency
111
+ name: tzinfo-data
112
+ requirement: !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ! '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ! '>='
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ description: An API to pull movie information from the picturehouse.co.uk website
127
+ email:
128
+ - andy@goodscary.com
129
+ executables: []
130
+ extensions: []
131
+ extra_rdoc_files: []
132
+ files:
133
+ - .gitignore
134
+ - .travis.yml
135
+ - Gemfile
136
+ - LICENSE.txt
137
+ - README.md
138
+ - Rakefile
139
+ - lib/picturehouse_uk.rb
140
+ - lib/picturehouse_uk/cinema.rb
141
+ - lib/picturehouse_uk/film.rb
142
+ - lib/picturehouse_uk/internal/film_with_screenings_parser.rb
143
+ - lib/picturehouse_uk/screening.rb
144
+ - lib/picturehouse_uk/version.rb
145
+ - picturehouse_uk.gemspec
146
+ - test/fixtures/dukes-at-komedia-cinema.html
147
+ - test/fixtures/film_node/blue-jasmine-done.html
148
+ - test/fixtures/film_node/blue-jasmine-future.html
149
+ - test/fixtures/film_node/bolshoi-spartacus.html
150
+ - test/fixtures/film_node/captain-phillips-with-silver-screen-and-subtitles.html
151
+ - test/fixtures/film_node/fifth-estate-with-big-scream.html
152
+ - test/fixtures/film_node/london-film-festival-with-toddler-time.html
153
+ - test/fixtures/film_node/met-encore-rusalka-as-live.html
154
+ - test/fixtures/film_node/nt-encore-hamlet.html
155
+ - test/fixtures/film_node/planes-with-kids-club.html
156
+ - test/fixtures/film_node/royal-opera-house-don-quixote.html
157
+ - test/fixtures/film_node/rsc-encore-richard-ii.html
158
+ - test/fixtures/film_node/rsc-live-richard-ii.html
159
+ - test/fixtures/film_node/rsc-live-the-two-gentlemen-of-verona-zero-cert.html
160
+ - test/fixtures/picturehouses-homepage.html
161
+ - test/lib/picturehouse_uk/cinema_test.rb
162
+ - test/lib/picturehouse_uk/film_test.rb
163
+ - test/lib/picturehouse_uk/internal/film_with_screenings_parser_test.rb
164
+ - test/lib/picturehouse_uk/screening_test.rb
165
+ - test/lib/picturehouse_uk/version_test.rb
166
+ - test/test_helper.rb
167
+ homepage: ''
168
+ licenses:
169
+ - MIT
170
+ post_install_message:
171
+ rdoc_options: []
172
+ require_paths:
173
+ - lib
174
+ required_ruby_version: !ruby/object:Gem::Requirement
175
+ none: false
176
+ requirements:
177
+ - - ! '>='
178
+ - !ruby/object:Gem::Version
179
+ version: '0'
180
+ required_rubygems_version: !ruby/object:Gem::Requirement
181
+ none: false
182
+ requirements:
183
+ - - ! '>='
184
+ - !ruby/object:Gem::Version
185
+ version: '0'
186
+ requirements: []
187
+ rubyforge_project:
188
+ rubygems_version: 1.8.23
189
+ signing_key:
190
+ specification_version: 3
191
+ summary: It's a scraper, but a nice one
192
+ test_files:
193
+ - test/fixtures/dukes-at-komedia-cinema.html
194
+ - test/fixtures/film_node/blue-jasmine-done.html
195
+ - test/fixtures/film_node/blue-jasmine-future.html
196
+ - test/fixtures/film_node/bolshoi-spartacus.html
197
+ - test/fixtures/film_node/captain-phillips-with-silver-screen-and-subtitles.html
198
+ - test/fixtures/film_node/fifth-estate-with-big-scream.html
199
+ - test/fixtures/film_node/london-film-festival-with-toddler-time.html
200
+ - test/fixtures/film_node/met-encore-rusalka-as-live.html
201
+ - test/fixtures/film_node/nt-encore-hamlet.html
202
+ - test/fixtures/film_node/planes-with-kids-club.html
203
+ - test/fixtures/film_node/royal-opera-house-don-quixote.html
204
+ - test/fixtures/film_node/rsc-encore-richard-ii.html
205
+ - test/fixtures/film_node/rsc-live-richard-ii.html
206
+ - test/fixtures/film_node/rsc-live-the-two-gentlemen-of-verona-zero-cert.html
207
+ - test/fixtures/picturehouses-homepage.html
208
+ - test/lib/picturehouse_uk/cinema_test.rb
209
+ - test/lib/picturehouse_uk/film_test.rb
210
+ - test/lib/picturehouse_uk/internal/film_with_screenings_parser_test.rb
211
+ - test/lib/picturehouse_uk/screening_test.rb
212
+ - test/lib/picturehouse_uk/version_test.rb
213
+ - test/test_helper.rb