zyxt 0.0.2 → 0.1.0
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/bin/zyxt +4 -0
- data/lib/request.rb +12 -0
- data/lib/request_client.rb +17 -0
- metadata +6 -3
- data/lib/zyxt.rb +0 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 320306442c71c10654d357a9b229c497c083a641b5c463633e8b09b756924383
|
4
|
+
data.tar.gz: 871988e406362eb4d5959d338e8086288cce5130e06589f3ed4fbf3eae6986c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9345332e7f924babb4bdf7fddc7085ddde46269f74362e383ef5a447c3f79835537721321d4c321c995a1f3b4ecb6b86a5461014357b5499dd86864386b91e5
|
7
|
+
data.tar.gz: a8bd1b9c6ed1249bf6551c19f4955978297ab347bdb7fc8f07ca8af3e2e98f18b659b49f3bbc6a73307aac27de3c533cdbd82b4399e437f3afee8e3e5762cc3a
|
data/bin/zyxt
ADDED
data/lib/request.rb
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
require "thor"
|
2
|
+
require_relative "./request"
|
3
|
+
|
4
|
+
module RequestClient
|
5
|
+
class Zyxt < Thor
|
6
|
+
def self.exit_on_failure?
|
7
|
+
true
|
8
|
+
end
|
9
|
+
|
10
|
+
desc "get URL", "execute get request to URL"
|
11
|
+
def get(url)
|
12
|
+
Request::Http.send_request("get", url)
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
RequestClient::Zyxt.start(ARGV)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zyxt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rafael Matsumoto
|
@@ -12,11 +12,14 @@ date: 2020-08-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
13
13
|
description: REST Client developed for academic reasons
|
14
14
|
email: rafaelmatsumoto43@gmail.com
|
15
|
-
executables:
|
15
|
+
executables:
|
16
|
+
- zyxt
|
16
17
|
extensions: []
|
17
18
|
extra_rdoc_files: []
|
18
19
|
files:
|
19
|
-
-
|
20
|
+
- bin/zyxt
|
21
|
+
- lib/request.rb
|
22
|
+
- lib/request_client.rb
|
20
23
|
homepage: https://rubygems.org/gems/zyxt
|
21
24
|
licenses:
|
22
25
|
- MIT
|