ghtk 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dff685accc07bacdf2bb1c08e5df3d7efc9b3ac9e1a27f33ce5d53f7c54c9fd8
4
- data.tar.gz: 1cf9cfa5e2f0c4c61de79c2c8a1ffdb367e9353326b67e33adcc7eb55a3bef72
3
+ metadata.gz: a14b2ff87da9ee694ebc7b03aaf07fdc1c38da12f0ed3380db025a23c950eedc
4
+ data.tar.gz: 6d4739b162112562d394b21440a5fbd0344d396b5a6e680c9995ea816ed9446a
5
5
  SHA512:
6
- metadata.gz: cad10824bdaa792206024e76c8cd8a4d67b79e1998e418d1812bfefbbdf4086ba75bfbb10f5f30882dbbabb52b1652843f87c70d0d7d156c2149492e88ebc957
7
- data.tar.gz: cfd44d8ae1de7bed387858066ba5656b5c9609ffb8f166e3f2803f6fb7ebd6882e87986cb78559cfaa8c55da025c2001f4bad6136a3893e9d14563eeb7d8de8c
6
+ metadata.gz: abfce6b6bfd62f709cd61560f9d70541bd6be022c1a3fabd1d6097cf7683cb07dde3224e2828273f029ff9cbfa3d037dc8fb49b0671014f7af3618b0361db72b
7
+ data.tar.gz: 42eee5f21a022f8bd165d4ec51e8b4660c7c93cc6c882359e02220734939a23329f281b02a36bd85e84b3fab139a2847227b075f777d038d5a30933fdf255bc1
data/lib/ghtk/request.rb CHANGED
@@ -1,9 +1,11 @@
1
+ require "http"
2
+
1
3
  module Ghtk
2
4
  class Request
3
5
 
4
6
  def self.post(endpoint, params={})
5
7
  full_endpoint = "#{Ghtk.setup.domain}#{endpoint}?ver=#{Ghtk.setup.version}"
6
- response = Http.headers(
8
+ response = HTTP.headers(
7
9
  content_type: 'application/json',
8
10
  token: Ghtk.setup.access_token,
9
11
  ).post(full_endpoint, json: params)
@@ -15,7 +17,7 @@ module Ghtk
15
17
 
16
18
  def self.get(endpoint, params={})
17
19
  full_endpoint = "#{Ghtk.setup.domain}#{endpoint}?ver=#{Ghtk.setup.version}"
18
- response = Http.headers(
20
+ response = HTTP.headers(
19
21
  content_type: 'aplication/json',
20
22
  token: Ghtk.setup.access_token,
21
23
  ).get(full_endpoint, params: params)
data/lib/ghtk/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ghtk
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
3
3
  end
data/lib/ghtk.rb CHANGED
@@ -1,4 +1,3 @@
1
- require "http"
2
1
  require "ghtk/support/hash"
3
2
  require "ghtk/version"
4
3
  require "ghtk/error"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ghtk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - KhoaRB
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-12-02 00:00:00.000000000 Z
11
+ date: 2023-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http
@@ -101,7 +101,7 @@ licenses:
101
101
  - MIT
102
102
  metadata:
103
103
  homepage_uri: https://github.com/ThanhKhoaIT/ghtk
104
- post_install_message:
104
+ post_install_message:
105
105
  rdoc_options: []
106
106
  require_paths:
107
107
  - lib
@@ -116,8 +116,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  requirements: []
119
- rubygems_version: 3.0.3
120
- signing_key:
119
+ rubygems_version: 3.2.3
120
+ signing_key:
121
121
  specification_version: 4
122
122
  summary: GHTK API Caller
123
123
  test_files: []