whatsa 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +13 -5
- data/lib/whatsa/version.rb +1 -1
- data/whatsa-0.1.0.gem +0 -0
- data/whatsa.gemspec +3 -1
- metadata +6 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 608132ba535e0e8e0ebf1d146fdea5b6ff0d9173
|
4
|
+
data.tar.gz: 11016f597da1921bb1ec3c9d217d2dd13a754ffb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c85a8553e7798537b2a993d63d47f43b64fb4e0b5efe3267b8586bdacc61c91f097ba9cb595038fc024f571c2a3db6fcb85937527463765af244681aa755ad0e
|
7
|
+
data.tar.gz: aa19bad67993021334f0e78253b3bb25465c015f680c5667f4117ec938f0f06f272081d9052e1425b434b8d5385f9fa895956a69628eb3471de3ea2fa65883cb
|
data/README.md
CHANGED
@@ -16,9 +16,21 @@ Simple?
|
|
16
16
|
|
17
17
|
Simple!
|
18
18
|
|
19
|
+
## Installing Whatsa
|
20
|
+
|
21
|
+
```
|
22
|
+
userloser@lappytoppy:~$ gem install whatsa
|
23
|
+
```
|
24
|
+
|
25
|
+
Simple as pie.
|
26
|
+
|
19
27
|
## Using Whatsa
|
20
28
|
|
21
|
-
|
29
|
+
```
|
30
|
+
userloser@lappytoppy:~$ whatsa
|
31
|
+
```
|
32
|
+
|
33
|
+
After you run this command, Whatsa will ask you what you'd like to learn about, and you can enter a word or phrase.
|
22
34
|
|
23
35
|
If your search term could mean multiple things, it will let you know, and you can select a choice by its name or number.
|
24
36
|
|
@@ -28,10 +40,6 @@ If you would like to select a category of information about the topic, type `oth
|
|
28
40
|
|
29
41
|
If you'd like to search for something else, type `new`.
|
30
42
|
|
31
|
-
## Dependencies
|
32
|
-
|
33
|
-
Requires Ruby 2.3.3 (doesn't seem to work with 2.0, at least, so see what you can get away with), the `nokogiri` gem, bundler (if you're planning on installing it the easy way), and `pry` (although it's really only in the gemspec for dev purposes).
|
34
|
-
|
35
43
|
## Contributing
|
36
44
|
|
37
45
|
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/version.rb
CHANGED
data/whatsa-0.1.0.gem
ADDED
Binary file
|
data/whatsa.gemspec
CHANGED
@@ -10,7 +10,9 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = ["kjleitz@gmail.com"]
|
11
11
|
|
12
12
|
spec.summary = %q{What is that? Okay, okay, I don't need a lecture... just gimme the short 'n sweet!}
|
13
|
-
spec.description = %q{Whatsa is a CLI app that allows you to search a
|
13
|
+
spec.description = %q{Whatsa is a CLI app that allows you to search a word or phrase and receive a quick summary about that subject. It searches your query on Wikipedia and finds the page you're most likely looking for. If you've been somewhat vague, or your search term could refer to multiple things, it will ask you to select from a disambiguation of topics. Usually, however, your term will go straight to an article. Whatsa then gives you the first paragraph of that article (usually a surprisingly decent summary).
|
14
|
+
|
15
|
+
If you're not super satisfied with that bit of information (and you need to know a little more) you can type `more` to get a better picture of that subject. If you're _still_ not satisfied, and you want to know something _specific_ about the thing you've searched, type `other`, and it will list the categories of information Wikipedia knows about the subject (its "History", "Early Life", "Uses", etc.). You can select one of those sections, if you'd like, and it will give you the first paragraph of that section, too (which you can extend similarly with another `more` command). You can make a new query with `new`, ask for help at any time with `help`, or exit the application with `exit`.}
|
14
16
|
spec.homepage = "https://github.com/kjleitz/whatsa"
|
15
17
|
spec.license = "MIT"
|
16
18
|
|
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.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Keegan Leitz
|
@@ -52,13 +52,10 @@ dependencies:
|
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
|
-
description:
|
56
|
-
a quick summary about that subject. It searches your
|
57
|
-
|
58
|
-
of that
|
59
|
-
etc.). You can select one of those sections, if you'd like, and it will give you
|
60
|
-
the first paragraph of that section, too. If that's not enough for you, you can
|
61
|
-
ask for more, and it will show you the full section.
|
55
|
+
description: |-
|
56
|
+
Whatsa is a CLI app that allows you to search a word or phrase and receive a quick summary about that subject. It searches your query on Wikipedia and finds the page you're most likely looking for. If you've been somewhat vague, or your search term could refer to multiple things, it will ask you to select from a disambiguation of topics. Usually, however, your term will go straight to an article. Whatsa then gives you the first paragraph of that article (usually a surprisingly decent summary).
|
57
|
+
|
58
|
+
If you're not super satisfied with that bit of information (and you need to know a little more) you can type `more` to get a better picture of that subject. If you're _still_ not satisfied, and you want to know something _specific_ about the thing you've searched, type `other`, and it will list the categories of information Wikipedia knows about the subject (its "History", "Early Life", "Uses", etc.). You can select one of those sections, if you'd like, and it will give you the first paragraph of that section, too (which you can extend similarly with another `more` command). You can make a new query with `new`, ask for help at any time with `help`, or exit the application with `exit`.
|
62
59
|
email:
|
63
60
|
- kjleitz@gmail.com
|
64
61
|
executables: []
|
@@ -81,6 +78,7 @@ files:
|
|
81
78
|
- lib/whatsa/scraper.rb
|
82
79
|
- lib/whatsa/section.rb
|
83
80
|
- lib/whatsa/version.rb
|
81
|
+
- whatsa-0.1.0.gem
|
84
82
|
- whatsa.gemspec
|
85
83
|
homepage: https://github.com/kjleitz/whatsa
|
86
84
|
licenses:
|