googem 1.1.1 → 1.2.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/README.md +31 -12
- data/googem-1.0.1.gem +0 -0
- data/googem-1.0.2.gem +0 -0
- data/googem-1.1.0.gem +0 -0
- data/googem-1.1.1.gem +0 -0
- data/lib/googem.rb +1 -1
- data/lib/googem/version.rb +1 -1
- metadata +5 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 848af4abfb74a324bd9d2821fe79d656b46fe0f08921acc487740cec855ce456
|
4
|
+
data.tar.gz: 70df5c5622b9a69de02fe38eea125a2c0889939e2d481d73df46df2cb0b95c5d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13f0c8bf67f7035e7b8c307dd788d936012145a8d7223e281058c38c00343d6da1012f65bc9102bf4bfc0d2668a32b23e8cf1dc18931b638695d9232825f34e7
|
7
|
+
data.tar.gz: ccfb1dcf0d6e305c240106b0d5e4ccca536b681e0349267d538506bd34b98ec6e6ac81f780d54b38d176ee0be6a48004943f4e71d96442777fd0b1886b22ccc8
|
data/README.md
CHANGED
@@ -1,28 +1,47 @@
|
|
1
|
+

|
2
|
+
|
1
3
|
# Googem
|
2
4
|
|
3
|
-
|
5
|
+
Use stackoverflow.com with commandline interface. No browsers, no graphic interface, only commandline.
|
6
|
+
If you want to use a computer professionally, this is the ruby gem for you. LIKE A HACKER.
|
4
7
|
|
5
|
-
|
8
|
+
Rubygems: [Available on the Rubygems.org](https://rubygems.org/gems/googem)
|
6
9
|
|
7
|
-
##
|
10
|
+
## System required
|
8
11
|
|
9
|
-
|
12
|
+
- Ruby 2.x
|
10
13
|
|
11
|
-
|
12
|
-
gem 'googem'
|
13
|
-
```
|
14
|
+
## Installation
|
14
15
|
|
15
|
-
|
16
|
+
Ruby environment by RVM
|
16
17
|
|
17
|
-
$
|
18
|
+
$ gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
|
19
|
+
$ \curl -sSL https://get.rvm.io | bash -s stable --ruby
|
18
20
|
|
19
|
-
|
21
|
+
Install ***Googem*** yourself as:
|
20
22
|
|
21
23
|
$ gem install googem
|
22
24
|
|
23
25
|
## Usage
|
26
|
+
- Basic command
|
27
|
+
|
28
|
+
```bash
|
29
|
+
$ googem -k "how to publish my ruby gem"
|
30
|
+
```
|
31
|
+
|
32
|
+
|
33
|
+
- Command and options `$ googem -k "text" -p 1 -s 10`
|
34
|
+
|
35
|
+
```bash
|
36
|
+
Usage: googem [options]
|
37
|
+
-v, --version Show googem version
|
38
|
+
-k, --keyword KEYWORDS Search by keyword "keywords", eg: $ googem -k "ruby"
|
39
|
+
-p, --page [page] Page number # option
|
40
|
+
-s, --size [size] Size per page # option
|
41
|
+
-h, --help Show list commands
|
42
|
+
```
|
24
43
|
|
25
|
-
|
44
|
+

|
26
45
|
|
27
46
|
## Development
|
28
47
|
|
@@ -40,4 +59,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
|
|
40
59
|
|
41
60
|
## Code of Conduct
|
42
61
|
|
43
|
-
Everyone interacting in the Googem project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/
|
62
|
+
Everyone interacting in the Googem project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/ohmygodvt95/googem/blob/master/CODE_OF_CONDUCT.md).
|
data/googem-1.0.1.gem
ADDED
Binary file
|
data/googem-1.0.2.gem
ADDED
Binary file
|
data/googem-1.1.0.gem
ADDED
Binary file
|
data/googem-1.1.1.gem
ADDED
Binary file
|
data/lib/googem.rb
CHANGED
@@ -16,7 +16,7 @@ module Googem
|
|
16
16
|
spinner = TTY::Spinner.new("[:spinner] Searching ...", format: :pulse_2)
|
17
17
|
prompt = TTY::Prompt.new
|
18
18
|
spinner.auto_spin
|
19
|
-
response = Unirest.get "#{BASE_URL}&
|
19
|
+
response = Unirest.get "#{BASE_URL}&q=#{keywords}&page=#{options[:page]}&pagesize=#{options[:size]}", headers:{ "Accept" => "application/json" }
|
20
20
|
document = JSON.parse response.raw_body
|
21
21
|
content = {}
|
22
22
|
document["items"].each_with_index do |i, index|
|
data/lib/googem/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: googem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ThienLV
|
@@ -143,6 +143,10 @@ files:
|
|
143
143
|
- bin/setup
|
144
144
|
- exe/googem
|
145
145
|
- googem-1.0.0.gem
|
146
|
+
- googem-1.0.1.gem
|
147
|
+
- googem-1.0.2.gem
|
148
|
+
- googem-1.1.0.gem
|
149
|
+
- googem-1.1.1.gem
|
146
150
|
- googem.gemspec
|
147
151
|
- lib/googem.rb
|
148
152
|
- lib/googem/cli.rb
|