fandango 2.0.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/Gemfile.lock +13 -9
- data/README.md +2 -2
- data/lib/fandango/api/movies_near.rb +1 -1
- data/lib/fandango/api/theater_showtimes.rb +1 -1
- data/lib/fandango/theater.rb +1 -1
- data/lib/fandango/version.rb +1 -1
- data/spec/api/theater_showtimes.spec.rb +1 -1
- data/spec/support/vcr_cassettes/movies_near_me_73142.yml +1 -1
- data/spec/support/vcr_cassettes/theater_showtimes_amcquailspringsmall24.yml +1 -1
- data/spec/support/vcr_cassettes/theater_showtimes_amcquailspringsmall24_tomorrow.yml +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 76fe84e7c8af76fb5e4e73053ccd908ed746c14e
|
4
|
+
data.tar.gz: ee7ee8db3d67e02b84d0a5a33d667e7d411efff8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cca235f6dc7a0a306880adce55c5c44488fe223c1afdfa140f1d011840dded0d027a89648ee5f65ce9954628efcc1993bf3c0a53ebf3cdca91d5c8835e88bf61
|
7
|
+
data.tar.gz: 9c3b21fa634d33c2a923b557e061705a83febd529cde00ae8e739b92956e727a11b5f636b4787ca2d85cb03dfecb9399faa073fecedec2ab9bc19a4f89aff37f
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby-2.
|
1
|
+
ruby-2.4.0
|
data/Gemfile.lock
CHANGED
@@ -1,26 +1,30 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
fandango (2.
|
4
|
+
fandango (2.1.0)
|
5
5
|
nokogiri (~> 1.0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: http://rubygems.org/
|
9
9
|
specs:
|
10
|
-
addressable (2.
|
10
|
+
addressable (2.5.1)
|
11
|
+
public_suffix (~> 2.0, >= 2.0.2)
|
11
12
|
awesome_print (1.7.0)
|
12
13
|
crack (0.4.3)
|
13
14
|
safe_yaml (~> 1.0.0)
|
14
|
-
|
15
|
+
hashdiff (0.3.4)
|
16
|
+
mini_portile2 (2.2.0)
|
15
17
|
minitest (5.9.0)
|
16
|
-
nokogiri (1.
|
17
|
-
mini_portile2 (~> 2.
|
18
|
-
|
18
|
+
nokogiri (1.8.0)
|
19
|
+
mini_portile2 (~> 2.2.0)
|
20
|
+
public_suffix (2.0.5)
|
21
|
+
rake (12.0.0)
|
19
22
|
safe_yaml (1.0.4)
|
20
23
|
vcr (3.0.3)
|
21
|
-
webmock (
|
22
|
-
addressable (>= 2.
|
24
|
+
webmock (3.0.1)
|
25
|
+
addressable (>= 2.3.6)
|
23
26
|
crack (>= 0.3.2)
|
27
|
+
hashdiff
|
24
28
|
|
25
29
|
PLATFORMS
|
26
30
|
ruby
|
@@ -34,4 +38,4 @@ DEPENDENCIES
|
|
34
38
|
webmock
|
35
39
|
|
36
40
|
BUNDLED WITH
|
37
|
-
1.
|
41
|
+
1.15.3
|
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Fetch theaters near postal code and movies on sale at each.
|
4
4
|
|
5
|
-
Uses Fandango's RSS moviesnearme feed. E.g.
|
5
|
+
Uses Fandango's RSS moviesnearme feed. E.g. https://www.fandango.com/rss/moviesnearme_10023.rss
|
6
6
|
|
7
7
|
## Usage
|
8
8
|
|
@@ -15,7 +15,7 @@ theaters_and_movies = Fandango.movies_near(73142)
|
|
15
15
|
:id => "aaktw",
|
16
16
|
:address => "2501 West Memorial Oklahoma City, OK 73134",
|
17
17
|
:postal_code => "73134",
|
18
|
-
:showtimes_link => "
|
18
|
+
:showtimes_link => "https://www.fandango.com/amcquailspringsmall24_aaktw/theaterpage?wssaffid=11836&wssac=123",
|
19
19
|
:movies => [
|
20
20
|
[ 0] {
|
21
21
|
:title => "Abraham Lincoln: Vampire Hunter",
|
@@ -13,7 +13,7 @@ module Fandango
|
|
13
13
|
|
14
14
|
def request(postal_code)
|
15
15
|
cleaned_postal_code = postal_code.to_s.gsub(' ', '')
|
16
|
-
url_for_postal_code = "
|
16
|
+
url_for_postal_code = "https://www.fandango.com/rss/moviesnearme_#{cleaned_postal_code}.rss"
|
17
17
|
open(url_for_postal_code)
|
18
18
|
end
|
19
19
|
|
data/lib/fandango/theater.rb
CHANGED
@@ -29,7 +29,7 @@ module Fandango
|
|
29
29
|
item_node.at_css('title').content.strip
|
30
30
|
end
|
31
31
|
|
32
|
-
# E.g. 'aaicu' in
|
32
|
+
# E.g. 'aaicu' in https://www.fandango.com/northpark7_aaicu/theaterpage
|
33
33
|
def parse_id(item_node)
|
34
34
|
item_node.
|
35
35
|
at_css('link').
|
data/lib/fandango/version.rb
CHANGED
@@ -9,7 +9,7 @@ module Fandango
|
|
9
9
|
|
10
10
|
it 'requests and parses showtimes for given URL into Movies with Showtimes' do
|
11
11
|
VCR.use_cassette 'theater_showtimes_amcquailspringsmall24' do
|
12
|
-
url = '
|
12
|
+
url = 'https://www.fandango.com/amcquailspringsmall24_aaktw/theaterpage?wssaffid=11836&wssac=123'
|
13
13
|
|
14
14
|
movies = Fandango.theater_showtimes(url)
|
15
15
|
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri:
|
5
|
+
uri: https://www.fandango.com/amcquailspringsmall24_aaktw/theaterpage?wssac=123&wssaffid=11836
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fandango
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jared Ning
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-08-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -141,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
141
141
|
version: '0'
|
142
142
|
requirements: []
|
143
143
|
rubyforge_project: fandango
|
144
|
-
rubygems_version: 2.
|
144
|
+
rubygems_version: 2.6.8
|
145
145
|
signing_key:
|
146
146
|
specification_version: 4
|
147
147
|
summary: Fandango API
|