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 +4 -4
- data/README.md +8 -0
- data/lib/whatsa/cli.rb +2 -2
- data/lib/whatsa/version.rb +1 -1
- data/whatsa.gemspec +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c9a031ab5af24f1c17e81101c923a18ae6f20cbd
|
4
|
+
data.tar.gz: 27b3df47c466e1f1556696d9de0e3d9c4ab2f885
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/whatsa/version.rb
CHANGED
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.
|
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:
|
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:
|
54
|
+
version: 1.6.8
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: pry
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|