whatsa 0.3.0 → 0.3.1
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/whatsa/cli.rb +14 -8
- data/lib/whatsa/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 77f95bc71b67250c673c83f14a2bfe1d40e65866
|
|
4
|
+
data.tar.gz: f1dfeefd75b3d5276875a3ad7821b52a7d27d046
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0e6b41631e46a51c5f11ea7191d24cdb2a2d13ba3875612efaacd635e4a3369a27899d4e28ff51953d3d00ee27109955e7882f104930bb8081bb788790c8b84f
|
|
7
|
+
data.tar.gz: 5ec8d22ead965ac71851d9e7e5f7a80ac5788dfa6e91a884f6216b04f38e4f11078c5dad5a83f9538009ed34f6570f7f96dafd7635c502dbc10481bc34c095b5
|
data/lib/whatsa/cli.rb
CHANGED
|
@@ -130,19 +130,25 @@ class Whatsa::CLI
|
|
|
130
130
|
# and loop as long as they wish to select different
|
|
131
131
|
# sections
|
|
132
132
|
|
|
133
|
+
if ARGV.empty?
|
|
133
134
|
|
|
134
|
-
|
|
135
|
-
|
|
135
|
+
##########
|
|
136
|
+
# PART ONE
|
|
136
137
|
|
|
137
|
-
|
|
138
|
-
|
|
138
|
+
welcome
|
|
139
|
+
instructions
|
|
139
140
|
|
|
141
|
+
##########
|
|
142
|
+
# PART TWO
|
|
140
143
|
|
|
141
|
-
|
|
142
|
-
|
|
144
|
+
# get a search term
|
|
145
|
+
ask
|
|
143
146
|
|
|
144
|
-
|
|
145
|
-
|
|
147
|
+
else
|
|
148
|
+
input = ARGV.join(" ")
|
|
149
|
+
ARGV.clear
|
|
150
|
+
end
|
|
151
|
+
|
|
146
152
|
scraper = Whatsa::Scraper.new(input)
|
|
147
153
|
|
|
148
154
|
# get an article from the search, or restart the loop if it can't be found
|
data/lib/whatsa/version.rb
CHANGED