dd_post_gauge 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/.rubocop.yml +5 -1
- data/CHANGELOG.md +5 -0
- data/Gemfile +2 -0
- data/Gemfile.lock +53 -36
- data/dd_post_gauge.gemspec +1 -1
- data/lib/dd_post_gauge/client.rb +2 -2
- data/lib/dd_post_gauge/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cedcd4e4d136befc6643d6050131d0225e12aae40719b6ef4e76c6801c331463
|
4
|
+
data.tar.gz: cb7fecb5827f3e531ac46334af08a254168e5a4549e2db7b1b5c644a5f130c58
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd62d0e67be54a443fb477cb2880faaff833e3769cc63d4e707bd0ca1c63b3a0e1eba8ce0598c6f25ead349f13e97baadff0a305851c69afb7b88d10bafffe57
|
7
|
+
data.tar.gz: c3e6db281a8b24139ac01a6c145695a671e7c44b434870fd5386a661560c053cabe487291c5ad78dcc2e6facc46d54279f599a408bcd7b4d6d531e9438ec8487
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
dd_post_gauge (0.
|
4
|
+
dd_post_gauge (0.2.0)
|
5
5
|
datadog_api_client
|
6
6
|
dotenv
|
7
7
|
thor
|
@@ -10,58 +10,73 @@ GEM
|
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
12
|
ast (2.4.2)
|
13
|
-
datadog_api_client (2.
|
13
|
+
datadog_api_client (2.21.0)
|
14
14
|
httparty (~> 0.20, >= 0.20.0)
|
15
|
+
uuidtools (~> 2.1.5, >= 2.1.5)
|
15
16
|
zeitwerk (~> 2.6, >= 2.6.0)
|
16
|
-
diff-lcs (1.5.
|
17
|
-
dotenv (
|
18
|
-
httparty (0.
|
19
|
-
|
17
|
+
diff-lcs (1.5.1)
|
18
|
+
dotenv (3.1.0)
|
19
|
+
httparty (0.21.0)
|
20
|
+
mini_mime (>= 1.0.0)
|
20
21
|
multi_xml (>= 0.5.2)
|
21
|
-
json (2.
|
22
|
-
|
23
|
-
|
24
|
-
mime-types-data (3.2022.0105)
|
22
|
+
json (2.7.1)
|
23
|
+
language_server-protocol (3.17.0.3)
|
24
|
+
mini_mime (1.1.5)
|
25
25
|
multi_xml (0.6.0)
|
26
|
-
parallel (1.
|
27
|
-
parser (3.
|
26
|
+
parallel (1.24.0)
|
27
|
+
parser (3.3.0.5)
|
28
28
|
ast (~> 2.4.1)
|
29
|
+
racc
|
30
|
+
racc (1.7.3)
|
29
31
|
rainbow (3.1.1)
|
30
|
-
rake (13.0
|
31
|
-
regexp_parser (2.
|
32
|
-
rexml (3.2.
|
33
|
-
rspec (3.
|
34
|
-
rspec-core (~> 3.
|
35
|
-
rspec-expectations (~> 3.
|
36
|
-
rspec-mocks (~> 3.
|
37
|
-
rspec-core (3.
|
38
|
-
rspec-support (~> 3.
|
39
|
-
rspec-expectations (3.
|
32
|
+
rake (13.1.0)
|
33
|
+
regexp_parser (2.9.0)
|
34
|
+
rexml (3.2.6)
|
35
|
+
rspec (3.13.0)
|
36
|
+
rspec-core (~> 3.13.0)
|
37
|
+
rspec-expectations (~> 3.13.0)
|
38
|
+
rspec-mocks (~> 3.13.0)
|
39
|
+
rspec-core (3.13.0)
|
40
|
+
rspec-support (~> 3.13.0)
|
41
|
+
rspec-expectations (3.13.0)
|
40
42
|
diff-lcs (>= 1.2.0, < 2.0)
|
41
|
-
rspec-support (~> 3.
|
42
|
-
rspec-mocks (3.
|
43
|
+
rspec-support (~> 3.13.0)
|
44
|
+
rspec-mocks (3.13.0)
|
43
45
|
diff-lcs (>= 1.2.0, < 2.0)
|
44
|
-
rspec-support (~> 3.
|
45
|
-
rspec-support (3.
|
46
|
-
rubocop (1.
|
46
|
+
rspec-support (~> 3.13.0)
|
47
|
+
rspec-support (3.13.1)
|
48
|
+
rubocop (1.62.1)
|
47
49
|
json (~> 2.3)
|
50
|
+
language_server-protocol (>= 3.17.0)
|
48
51
|
parallel (~> 1.10)
|
49
|
-
parser (>= 3.
|
52
|
+
parser (>= 3.3.0.2)
|
50
53
|
rainbow (>= 2.2.2, < 4.0)
|
51
54
|
regexp_parser (>= 1.8, < 3.0)
|
52
55
|
rexml (>= 3.2.5, < 4.0)
|
53
|
-
rubocop-ast (>= 1.
|
56
|
+
rubocop-ast (>= 1.31.1, < 2.0)
|
54
57
|
ruby-progressbar (~> 1.7)
|
55
|
-
unicode-display_width (>=
|
56
|
-
rubocop-ast (1.
|
57
|
-
parser (>= 3.
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
58
|
+
unicode-display_width (>= 2.4.0, < 3.0)
|
59
|
+
rubocop-ast (1.31.2)
|
60
|
+
parser (>= 3.3.0.4)
|
61
|
+
rubocop-capybara (2.20.0)
|
62
|
+
rubocop (~> 1.41)
|
63
|
+
rubocop-factory_bot (2.25.1)
|
64
|
+
rubocop (~> 1.41)
|
65
|
+
rubocop-rake (0.6.0)
|
66
|
+
rubocop (~> 1.0)
|
67
|
+
rubocop-rspec (2.27.1)
|
68
|
+
rubocop (~> 1.40)
|
69
|
+
rubocop-capybara (~> 2.17)
|
70
|
+
rubocop-factory_bot (~> 2.22)
|
71
|
+
ruby-progressbar (1.13.0)
|
72
|
+
thor (1.3.1)
|
73
|
+
unicode-display_width (2.5.0)
|
74
|
+
uuidtools (2.1.5)
|
75
|
+
zeitwerk (2.6.13)
|
62
76
|
|
63
77
|
PLATFORMS
|
64
78
|
arm64-darwin-21
|
79
|
+
arm64-darwin-23
|
65
80
|
x86_64-linux
|
66
81
|
|
67
82
|
DEPENDENCIES
|
@@ -69,6 +84,8 @@ DEPENDENCIES
|
|
69
84
|
rake (~> 13.0)
|
70
85
|
rspec (~> 3.0)
|
71
86
|
rubocop (~> 1.21)
|
87
|
+
rubocop-rake (~> 0.6.0)
|
88
|
+
rubocop-rspec (~> 2.27.1)
|
72
89
|
|
73
90
|
BUNDLED WITH
|
74
91
|
2.3.22
|
data/dd_post_gauge.gemspec
CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
|
|
12
12
|
spec.description = "Datadog post gauge by wrapping datadog api"
|
13
13
|
spec.homepage = "https://github.com/junara/dd_post_gauge"
|
14
14
|
spec.license = "MIT"
|
15
|
-
spec.required_ruby_version = ">=
|
15
|
+
spec.required_ruby_version = ">= 3.0.0"
|
16
16
|
|
17
17
|
spec.metadata["homepage_uri"] = spec.homepage
|
18
18
|
spec.metadata["source_code_uri"] = spec.homepage
|
data/lib/dd_post_gauge/client.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require "datadog_api_client"
|
4
|
-
require_relative "
|
4
|
+
require_relative "gauge_body"
|
5
5
|
|
6
6
|
module DdPostGauge
|
7
7
|
class Client
|
@@ -34,7 +34,7 @@ module DdPostGauge
|
|
34
34
|
|
35
35
|
private
|
36
36
|
|
37
|
-
# @param [Time] timestamp
|
37
|
+
# @param [Time, nil] timestamp
|
38
38
|
# @return [Integer]
|
39
39
|
def unix_timestamp(timestamp)
|
40
40
|
if timestamp
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dd_post_gauge
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- junara
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: datadog_api_client
|
@@ -102,14 +102,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
102
102
|
requirements:
|
103
103
|
- - ">="
|
104
104
|
- !ruby/object:Gem::Version
|
105
|
-
version:
|
105
|
+
version: 3.0.0
|
106
106
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
111
|
requirements: []
|
112
|
-
rubygems_version: 3.3
|
112
|
+
rubygems_version: 3.5.3
|
113
113
|
signing_key:
|
114
114
|
specification_version: 4
|
115
115
|
summary: Datadog post gauge
|