mlb_headlines 0.1.3 → 0.2.0

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: 73f0f4ca3eaf9588a5b472e081c6f927d2ed5a93
4
- data.tar.gz: 281fc73d3d314e61317c3fee982a91f006997d15
3
+ metadata.gz: 3b32c020c759c51f8f76de48830130e38f763149
4
+ data.tar.gz: f075fa5c298b99b7deed91f2d0e0adf0b0a12858
5
5
  SHA512:
6
- metadata.gz: da092623eaae39633537ccd941281995ff0ef211dceba8ffcb00c2494965e17c5266cc0f93faf4cf55b134f73a0422ae6dd15b8b8a5af6bbb0f4b5e2141e8bc5
7
- data.tar.gz: 2a4155e14206c56a0a41774c6923cefddf92a31ddcd4ee07db23bba8ec4fa0e95ed089a9e113264fd074d620785795ad06386135ac61128a2c1c5b12d228c2e4
6
+ metadata.gz: b607435bbda6832c0660dd9a62092afc789cd8285efdb6afe3c0fbc1c68d47cace4259788bf87bf7e024b1023917d191c5f53260785919e40b489934973b32d3
7
+ data.tar.gz: 8c616422dc355620cd16e1aa404dc592a031f94e628c554c2641734bff340d3d33537de6f309bf4b84f25a30c649cdf50aa5e4550188aedb6f93a88504efa3ef
@@ -24,7 +24,7 @@ class MlbHeadlines::CLI
24
24
  puts "Which headline would you like more information on? Enter the number:"
25
25
  puts ""
26
26
  puts "Enter list to see the list again."
27
- #puts "Enter refresh to refresh the list"
27
+ puts "Enter refresh to refresh the list"
28
28
  puts "Enter exit to end the program."
29
29
  puts ""
30
30
  input = gets.strip
@@ -33,10 +33,10 @@ class MlbHeadlines::CLI
33
33
  elsif input.to_i.between?(1,10) == true
34
34
  intro
35
35
  puts MlbHeadlines::Headline.all[input.to_i-1].article
36
- # elsif input == "refresh"
37
- # MlbHeadlines::Headline.destroy
38
- # MlbHeadlines::Headline.all
39
- # list
36
+ elsif input == "refresh"
37
+ MlbHeadlines::Headline.destroy
38
+ MlbHeadlines::Headline.all
39
+ list
40
40
  elsif input == "exit"
41
41
  sleep 1
42
42
  puts "Goodbye, enjoy today's games!"
@@ -12,8 +12,9 @@ class MlbHeadlines::Headline
12
12
  @@all ||= MlbHeadlines::Scraper.scrape
13
13
  end
14
14
 
15
+
15
16
  def self.destroy
16
- @@all.clear
17
+ @@all = nil
17
18
  end
18
19
 
19
20
  end
@@ -1,3 +1,3 @@
1
1
  module MlbHeadlines
2
- VERSION = "0.1.3"
2
+ VERSION = "0.2.0"
3
3
  end
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mlb_headlines
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jaclyn Ciringione
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-07-06 00:00:00.000000000 Z
11
+ date: 2016-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -103,6 +103,7 @@ files:
103
103
  - lib/mlb_headlines/headline.rb
104
104
  - lib/mlb_headlines/scraper.rb
105
105
  - lib/mlb_headlines/version.rb
106
+ - mlb_headlines-0.1.3.gem
106
107
  - mlb_headlines.gemspec
107
108
  homepage: https://github.com/jbok4/mlb-headlines/
108
109
  licenses: