htk 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/Htk/apis.rb +1 -6
  3. data/lib/Htk/utils.rb +5 -0
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: da21995ad81e76241e6523499be438eb48fcf53f6b145e1fdea0fe77c31c3b13
4
- data.tar.gz: bcb41707b5b44145d32c557de4802795c35a32632f32eeeb502135039abe257c
3
+ metadata.gz: 37e3dab788054a77fa2e660d8c332cb192d1056123c6484a4e1a3e29473b5521
4
+ data.tar.gz: b7c1ddac5b97e5fb3fa10f4042b482dc4fa419472c4218f6ead167cd4b957ffa
5
5
  SHA512:
6
- metadata.gz: 6012b7a982e1413c79fbf40aabe160719887c7dbb3f30e6753696e233b738b31ad9487f00b0566a146a8e2bb3f4f7addb5d3b4c28cf58fef11fe931b398b0cf2
7
- data.tar.gz: aaedb6f33778ec0f977b60ad817dda51b7392429c10b4fa17e7a144cde58fa50351e8ff16871d3a1b7b3b16482eb60f8880408ddd5aec026d9cd4a300f4e233e
6
+ metadata.gz: 485c80370a48b5a98ec7aff509828f75ac99f68748a68575f86fe46e388ee02e116e9ad9fff82639c0897610c548c124b20fd80138b6d443d8b4a4ef8d02c528
7
+ data.tar.gz: 1d441d13c9b22d2fee8f5f65bd0633f79b13900b202c0fa08c9d6b87f7590e5cb2fb3587b36200d02df12e23d6f5bb426232c87088b73611cbfeb6c8b9b86751
data/lib/Htk/apis.rb CHANGED
@@ -12,14 +12,9 @@ module Htk
12
12
 
13
13
  def connection(&block)
14
14
  Faraday.new(url) do |faraday|
15
- faraday.use ::Middleware::Mode
16
- faraday.use ::Middleware::AuthParams
17
- faraday.use ::Middleware::UseCanary
18
- faraday.use ::Middleware::Timeout
19
- faraday.use ::Middleware::RequestUuid
20
15
  faraday.use ::Faraday::Request::Multipart
21
16
  faraday.use ::Faraday::Request::UrlEncoded
22
- faraday.use ::Faraday::Adapter::NetHttp
17
+ faraday.adapter ::Faraday::Adapter::NetHttp
23
18
 
24
19
  block.call(faraday) if block_given?
25
20
  end
data/lib/Htk/utils.rb CHANGED
@@ -33,6 +33,7 @@ module Htk
33
33
  'text' => text,
34
34
  }.to_json
35
35
  end
36
+ response.status
36
37
  end
37
38
 
38
39
  ##
@@ -65,6 +66,10 @@ module Htk
65
66
  data = obj.to_json
66
67
  fdebug(JSON.pretty_generate(data), file_path)
67
68
  end
69
+
70
+ alias_method :sdb, :slack_debug
71
+ alias_method :fdb, :fdebug
72
+ alias_method :fdb_json, :fdebug_json
68
73
  end
69
74
 
70
75
  Utils = Base.new
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: htk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hacktoolkit
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-10-19 00:00:00.000000000 Z
13
+ date: 2024-03-19 00:00:00.000000000 Z
14
14
  dependencies: []
15
15
  description: A set of convenience utils and debuggers for Ruby.
16
16
  email: hello@hacktoolkit.com
@@ -39,7 +39,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  requirements: []
42
- rubygems_version: 3.0.3
42
+ rubygems_version: 3.3.7
43
43
  signing_key:
44
44
  specification_version: 4
45
45
  summary: A set of convenience utils for Ruby.