coming_soon 0.2.4 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ea469cd447cb42b3998c402c8296ee91e958abaa
4
- data.tar.gz: 97d05b9354ca123d4e099e7b3a78d89d423d0dee
3
+ metadata.gz: 604305adcaced9bcc6b8e032891a5f559278c8a4
4
+ data.tar.gz: 80d9cd8e88840c30f272703f5bda912034cc8fa9
5
5
  SHA512:
6
- metadata.gz: e6005db0c253ad04df37492bfec2476ac9f0bae56a88cd5c8645434e8d7b57b3c2a249829b30e8b6f56740b0830c2cfe37fa5b0d51684f432f6b1a5bb097ff4e
7
- data.tar.gz: f7f9347a6a996c2f48b6cbf1ff850e5ba20dfc856f60512d1dbd9bfd30b587163a3c259e59ef836db285176412675450fbd26f0a3877300faee06b6ef22f9fff
6
+ metadata.gz: b49457dfdfd5e3f3368ccd611fdb13b3d0dc532574bc73dad6924bfc185f5183e32637c587eeb5ba1c6cf4855e5bb415a4af38b148d6402ba6fdc4c217b5e461
7
+ data.tar.gz: 9b6347e5814e553d38859f09751fe181c0ebe696d5570978e86bd4f9a2eb19d0be712c51015e10186c4be62f717eaecebfcae5e8bc4d1b67acd4bb3a53ca99a9
@@ -17,7 +17,7 @@ class ComingSoon::CLI
17
17
 
18
18
  @movies = ComingSoon::Movie.movies
19
19
 
20
- @movies.each.with_index(1) do |movie, i|
20
+ @movies.each.with_index(1) do |movie, i| # set the first index to 1 and use the index number for the movie number
21
21
  puts "#{i}. #{movie.name} - #{movie.start_date}"
22
22
  end
23
23
  end
@@ -29,7 +29,7 @@ class ComingSoon::CLI
29
29
  puts ' **********************'
30
30
  puts ''
31
31
 
32
- @movies.each.with_index(1) do |movie, i|
32
+ @movies.each.with_index(1) do |movie, i| # set the first index to 1 and use the index number for the movie number
33
33
  puts "#{i}. #{movie.name} - #{movie.start_date}"
34
34
  end
35
35
  end
@@ -21,7 +21,7 @@ class ComingSoon::Movie
21
21
  @movies = []
22
22
  count = 1
23
23
 
24
- movie_list.each do |movie|
24
+ movie_list.each do |movie|
25
25
  @soon = self.new
26
26
  @soon.name = movie.css("a.visual-title").text.strip
27
27
  @soon.start_date = movie.css("span").text
@@ -55,7 +55,8 @@ class ComingSoon::Movie
55
55
  # present and any text is available, use the text for the synopsis
56
56
  @soon.synopsis = @doc_synop1.css("span#SynopsisTextLabel").text
57
57
  else
58
- # scrape the synopsis using the HTTP 'plotsummary' url
58
+ # Scrape the synopsis using the HTTP 'plotsummary' url
59
+ # This is also executed after an HTTP to HTTPS redirect failed
59
60
  synop_url = @soon.url.sub(/movieoverview/, 'plotsummary')
60
61
  doc_synop2 = Nokogiri::HTML(open(synop_url))
61
62
  @soon.synopsis = doc_synop2.css("p.subpage-descriptive-content").text
@@ -1,4 +1,4 @@
1
1
 
2
2
  module ComingSoon
3
- VERSION = "0.2.4"
3
+ VERSION = "0.2.5"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coming_soon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Terry Blue
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-02 00:00:00.000000000 Z
11
+ date: 2017-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake