whatsa 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 77f95bc71b67250c673c83f14a2bfe1d40e65866
4
- data.tar.gz: f1dfeefd75b3d5276875a3ad7821b52a7d27d046
3
+ metadata.gz: c9a031ab5af24f1c17e81101c923a18ae6f20cbd
4
+ data.tar.gz: 27b3df47c466e1f1556696d9de0e3d9c4ab2f885
5
5
  SHA512:
6
- metadata.gz: 0e6b41631e46a51c5f11ea7191d24cdb2a2d13ba3875612efaacd635e4a3369a27899d4e28ff51953d3d00ee27109955e7882f104930bb8081bb788790c8b84f
7
- data.tar.gz: 5ec8d22ead965ac71851d9e7e5f7a80ac5788dfa6e91a884f6216b04f38e4f11078c5dad5a83f9538009ed34f6570f7f96dafd7635c502dbc10481bc34c095b5
6
+ metadata.gz: be8aacec5b546f3a06a1261df9505bf7421d8c27a21caa566dfb364a86d1bc359cc99dd8eb61d2cda5cc48eaec3983524986a090abf28474c7148de468411d8c
7
+ data.tar.gz: 6c79213b7ec2ea27fef3d437b08001237bb0a5e6baffd30ea3a3002098c92f44eaa9a537d4a3d64c8c1ba2811f207bebcb1224b75109659e18d483d44d0fb032
data/README.md CHANGED
@@ -44,6 +44,14 @@ If you would like to select a category of information about the topic, type `oth
44
44
 
45
45
  If you'd like to search for something else, type `new`.
46
46
 
47
+ If you wanna be slick, you can provide your search terms right from the command line:
48
+
49
+ ```
50
+ userloser@lappytoppy:~$ whatsa club sandwich
51
+ ```
52
+
53
+ That'll return the article for Club Sandwich, the same way it would have, had you done it the longer way above. However, it won't give you the warm welcome and instructions that a newbie might find valuable right off the bat, so keep that in mind. Using the `help` command still works, though, so _you'll be okay_.
54
+
47
55
  ## Contributing
48
56
 
49
57
  Bug reports and pull requests for this project are welcome at its [GitHub page](https://github.com/kjleitz/Whatsa). If you choose to contribute, please adhere to the [Ruby Community Conduct Guideline](https://www.ruby-lang.org/en/conduct/) so I don't have to go around breaking necks, running out of bubblegum, etc.
data/lib/whatsa/cli.rb CHANGED
@@ -142,13 +142,13 @@ class Whatsa::CLI
142
142
  # PART TWO
143
143
 
144
144
  # get a search term
145
- ask
145
+ input = ask
146
146
 
147
147
  else
148
148
  input = ARGV.join(" ")
149
149
  ARGV.clear
150
150
  end
151
-
151
+
152
152
  scraper = Whatsa::Scraper.new(input)
153
153
 
154
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.1"
2
+ VERSION = "0.3.2"
3
3
  end
data/whatsa.gemspec CHANGED
@@ -25,7 +25,7 @@ If you're not super satisfied with that bit of information (and you need to know
25
25
 
26
26
  spec.add_development_dependency "bundler", "~> 1.13"
27
27
  spec.add_development_dependency "rake", "~> 10.0"
28
- spec.add_development_dependency "nokogiri"
28
+ spec.add_development_dependency "nokogiri", "~> 1.6.8"
29
29
  spec.add_development_dependency "pry"
30
30
 
31
31
  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.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Keegan Leitz
@@ -42,16 +42,16 @@ dependencies:
42
42
  name: nokogiri
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: 1.6.8
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: 1.6.8
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: pry
57
57
  requirement: !ruby/object:Gem::Requirement