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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 852bc1a00a4783ec4b36469fe7db37179dd6201c
4
- data.tar.gz: 3c9bd3977acc1d8e629bfbf84c6bc258d138b214
3
+ metadata.gz: 76fe84e7c8af76fb5e4e73053ccd908ed746c14e
4
+ data.tar.gz: ee7ee8db3d67e02b84d0a5a33d667e7d411efff8
5
5
  SHA512:
6
- metadata.gz: a3ae6deafd0527b381e036167ff321277d8f86d4eed21fbe719ae30d2334819934e396ad0f8a2fb212a66a61457ed883a6a675d22e2b0b6c8e5db34a76d652e3
7
- data.tar.gz: 9d6d73995bec4a0221385b667c65115e0e5cf99716f9894ea02428eb7c157d8156230bdfdda86ceca268aa9315ce2272e449d4afb6840ebc734b29058269ff20
6
+ metadata.gz: cca235f6dc7a0a306880adce55c5c44488fe223c1afdfa140f1d011840dded0d027a89648ee5f65ce9954628efcc1993bf3c0a53ebf3cdca91d5c8835e88bf61
7
+ data.tar.gz: 9c3b21fa634d33c2a923b557e061705a83febd529cde00ae8e739b92956e727a11b5f636b4787ca2d85cb03dfecb9399faa073fecedec2ab9bc19a4f89aff37f
@@ -1 +1 @@
1
- ruby-2.3.1
1
+ ruby-2.4.0
@@ -1,26 +1,30 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fandango (2.0.0)
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.4.0)
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
- mini_portile2 (2.1.0)
15
+ hashdiff (0.3.4)
16
+ mini_portile2 (2.2.0)
15
17
  minitest (5.9.0)
16
- nokogiri (1.6.8.1)
17
- mini_portile2 (~> 2.1.0)
18
- rake (11.2.2)
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 (1.9.3)
22
- addressable (>= 2.2.7)
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.13.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. http://www.fandango.com/rss/moviesnearme_10023.rss
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 => "http://www.fandango.com/amcquailspringsmall24_aaktw/theaterpage?wssaffid=11836&wssac=123",
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 = "http://www.fandango.com/rss/moviesnearme_#{cleaned_postal_code}.rss"
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
 
@@ -1,7 +1,7 @@
1
1
  module Fandango
2
2
  module TheaterShowtimes
3
3
 
4
- BASE_URL = 'http://www.fandango.com/theater_%{theater_id}/theaterpage?date=%{date}'
4
+ BASE_URL = 'https://www.fandango.com/theater_%{theater_id}/theaterpage?date=%{date}'
5
5
 
6
6
  module_function
7
7
 
@@ -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 http://www.fandango.com/northpark7_aaicu/theaterpage
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').
@@ -1,3 +1,3 @@
1
1
  module Fandango
2
- VERSION = "2.0.0"
2
+ VERSION = "2.1.0"
3
3
  end
@@ -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 = 'http://www.fandango.com/amcquailspringsmall24_aaktw/theaterpage?wssaffid=11836&wssac=123'
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: http://www.fandango.com/rss/moviesnearme_73142.rss
5
+ uri: https://www.fandango.com/rss/moviesnearme_73142.rss
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://www.fandango.com/amcquailspringsmall24_aaktw/theaterpage?wssac=123&wssaffid=11836
5
+ uri: https://www.fandango.com/amcquailspringsmall24_aaktw/theaterpage?wssac=123&wssaffid=11836
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://www.fandango.com/theater_aaktw/theaterpage?date=2017-01-05
5
+ uri: https://www.fandango.com/theater_aaktw/theaterpage?date=2017-01-05
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.0.0
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-01-05 00:00:00.000000000 Z
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.5.1
144
+ rubygems_version: 2.6.8
145
145
  signing_key:
146
146
  specification_version: 4
147
147
  summary: Fandango API