htk 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/Htk/apis.rb +1 -6
- data/lib/Htk/utils.rb +5 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37e3dab788054a77fa2e660d8c332cb192d1056123c6484a4e1a3e29473b5521
|
4
|
+
data.tar.gz: b7c1ddac5b97e5fb3fa10f4042b482dc4fa419472c4218f6ead167cd4b957ffa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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:
|
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.
|
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.
|