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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b7cf846d19a9dba5468c21b861abeac0f2eddb90
4
- data.tar.gz: ba374012eb9a91e66db755986d55716b4d8bf2b4
3
+ metadata.gz: 77f95bc71b67250c673c83f14a2bfe1d40e65866
4
+ data.tar.gz: f1dfeefd75b3d5276875a3ad7821b52a7d27d046
5
5
  SHA512:
6
- metadata.gz: cc3ddde58c65c630c7edf1e0bdfba09e1ad3072d2f81bb212f3c04d0dcecf85d49905a0565d515c03d135de82dfec7270bd816f9a17ae1d6aba782032e2e2bb5
7
- data.tar.gz: 3ea318931845cf4e3787c1428cc991a253326080deba40d2b03c869dec56c62131930f12d4426d76b2613ad5e8dffb95119d964bbb73cb19abe2327f56461c48
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
- # PART ONE
135
+ ##########
136
+ # PART ONE
136
137
 
137
- welcome
138
- instructions
138
+ welcome
139
+ instructions
139
140
 
141
+ ##########
142
+ # PART TWO
140
143
 
141
- ##########
142
- # PART TWO
144
+ # get a search term
145
+ ask
143
146
 
144
- # get a search term
145
- input = ask
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
@@ -1,3 +1,3 @@
1
1
  module Whatsa
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: whatsa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Keegan Leitz