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 +4 -4
- data/lib/mlb_headlines/cli.rb +5 -5
- data/lib/mlb_headlines/headline.rb +2 -1
- data/lib/mlb_headlines/version.rb +1 -1
- data/mlb_headlines-0.1.3.gem +0 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b32c020c759c51f8f76de48830130e38f763149
|
4
|
+
data.tar.gz: f075fa5c298b99b7deed91f2d0e0adf0b0a12858
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b607435bbda6832c0660dd9a62092afc789cd8285efdb6afe3c0fbc1c68d47cace4259788bf87bf7e024b1023917d191c5f53260785919e40b489934973b32d3
|
7
|
+
data.tar.gz: 8c616422dc355620cd16e1aa404dc592a031f94e628c554c2641734bff340d3d33537de6f309bf4b84f25a30c649cdf50aa5e4550188aedb6f93a88504efa3ef
|
data/lib/mlb_headlines/cli.rb
CHANGED
@@ -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
|
-
|
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
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
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!"
|
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.
|
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-
|
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:
|