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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e0a584ad5fad8adff895300be682e57b4a3be907768573cd36b6684b5a9b432d
4
- data.tar.gz: f1e0ea2f40435ee71e18c8edd9f5bf7d99142eb10ee627e558286381266cb5d5
3
+ metadata.gz: 848af4abfb74a324bd9d2821fe79d656b46fe0f08921acc487740cec855ce456
4
+ data.tar.gz: 70df5c5622b9a69de02fe38eea125a2c0889939e2d481d73df46df2cb0b95c5d
5
5
  SHA512:
6
- metadata.gz: 877c928234f6dbcec643c979bcd025e57338c1bfc312ba73839bdaec21d95a9adcae97e65d8a1a2df720cba937c075b4d4dfca51e908088758a8705f69133f63
7
- data.tar.gz: f7ba2874f0d0b61fa053b7149b71164b49f9987f407d2ca141547be409fcd970a0242c134d44043e31df6e7871e1499fb24efdb45fe27bddb42e92c446b9f55f
6
+ metadata.gz: 13f0c8bf67f7035e7b8c307dd788d936012145a8d7223e281058c38c00343d6da1012f65bc9102bf4bfc0d2668a32b23e8cf1dc18931b638695d9232825f34e7
7
+ data.tar.gz: ccfb1dcf0d6e305c240106b0d5e4ccca536b681e0349267d538506bd34b98ec6e6ac81f780d54b38d176ee0be6a48004943f4e71d96442777fd0b1886b22ccc8
data/README.md CHANGED
@@ -1,28 +1,47 @@
1
+ ![Googem](https://i.imgur.com/OccWajD.jpg)
2
+
1
3
  # Googem
2
4
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/googem`. To experiment with that code, run `bin/console` for an interactive prompt.
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
- TODO: Delete this and the text above, and describe your gem
8
+ Rubygems: [Available on the Rubygems.org](https://rubygems.org/gems/googem)
6
9
 
7
- ## Installation
10
+ ## System required
8
11
 
9
- Add this line to your application's Gemfile:
12
+ - Ruby 2.x
10
13
 
11
- ```ruby
12
- gem 'googem'
13
- ```
14
+ ## Installation
14
15
 
15
- And then execute:
16
+ Ruby environment by RVM
16
17
 
17
- $ bundle
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
- Or install it yourself as:
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
- TODO: Write usage instructions here
44
+ ![Demo commandline](https://i.imgur.com/iVlawLz.png)
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/[USERNAME]/googem/blob/master/CODE_OF_CONDUCT.md).
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}&title=#{keywords}&page=#{options[:page]}&pagesize=#{options[:size]}", headers:{ "Accept" => "application/json" }
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|
@@ -1,3 +1,3 @@
1
1
  module Googem
2
- VERSION = "1.1.1"
2
+ VERSION = "1.2.1"
3
3
  end
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.1.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