instrument_all_the_things 1.1.1 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -1
  3. data/CHANGELOG.md +3 -0
  4. data/Gemfile.lock +45 -38
  5. data/lib/instrument_all_the_things/testing/stat_tracker.rb +4 -4
  6. data/lib/instrument_all_the_things/version.rb +1 -1
  7. data/lib/instrument_all_the_things.rb +2 -4
  8. data/vendor/cache/ast-2.4.2.gem +0 -0
  9. data/vendor/cache/benchmark-ips-2.9.1.gem +0 -0
  10. data/vendor/cache/coderay-1.1.3.gem +0 -0
  11. data/vendor/cache/ddtrace-0.52.0.gem +0 -0
  12. data/vendor/cache/diff-lcs-1.4.4.gem +0 -0
  13. data/vendor/cache/docile-1.4.0.gem +0 -0
  14. data/vendor/cache/dogstatsd-ruby-5.2.0.gem +0 -0
  15. data/vendor/cache/ffi-1.15.4.gem +0 -0
  16. data/vendor/cache/method_source-1.0.0.gem +0 -0
  17. data/vendor/cache/msgpack-1.4.2.gem +0 -0
  18. data/vendor/cache/parallel-1.21.0.gem +0 -0
  19. data/vendor/cache/parser-3.0.2.0.gem +0 -0
  20. data/vendor/cache/pry-0.14.1.gem +0 -0
  21. data/vendor/cache/regexp_parser-2.1.1.gem +0 -0
  22. data/vendor/cache/rexml-3.2.5.gem +0 -0
  23. data/vendor/cache/rspec-3.10.0.gem +0 -0
  24. data/vendor/cache/rspec-core-3.10.1.gem +0 -0
  25. data/vendor/cache/rspec-expectations-3.10.1.gem +0 -0
  26. data/vendor/cache/rspec-mocks-3.10.2.gem +0 -0
  27. data/vendor/cache/rspec-support-3.10.2.gem +0 -0
  28. data/vendor/cache/rubocop-1.21.0.gem +0 -0
  29. data/vendor/cache/rubocop-ast-1.11.0.gem +0 -0
  30. data/vendor/cache/ruby-progressbar-1.11.0.gem +0 -0
  31. data/vendor/cache/simplecov-0.21.2.gem +0 -0
  32. data/vendor/cache/simplecov-html-0.12.3.gem +0 -0
  33. data/vendor/cache/simplecov_json_formatter-0.1.3.gem +0 -0
  34. data/vendor/cache/unicode-display_width-2.1.0.gem +0 -0
  35. metadata +34 -30
  36. data/vendor/cache/ast-2.4.0.gem +0 -0
  37. data/vendor/cache/benchmark-ips-2.7.2.gem +0 -0
  38. data/vendor/cache/coderay-1.1.2.gem +0 -0
  39. data/vendor/cache/ddtrace-0.34.2.gem +0 -0
  40. data/vendor/cache/diff-lcs-1.3.gem +0 -0
  41. data/vendor/cache/docile-1.3.2.gem +0 -0
  42. data/vendor/cache/dogstatsd-ruby-4.7.0.gem +0 -0
  43. data/vendor/cache/jaro_winkler-1.5.4.gem +0 -0
  44. data/vendor/cache/method_source-0.9.2.gem +0 -0
  45. data/vendor/cache/msgpack-1.3.3.gem +0 -0
  46. data/vendor/cache/parallel-1.19.1.gem +0 -0
  47. data/vendor/cache/parser-2.7.0.2.gem +0 -0
  48. data/vendor/cache/pry-0.12.2.gem +0 -0
  49. data/vendor/cache/rexml-3.2.4.gem +0 -0
  50. data/vendor/cache/rspec-3.9.0.gem +0 -0
  51. data/vendor/cache/rspec-core-3.9.1.gem +0 -0
  52. data/vendor/cache/rspec-expectations-3.9.0.gem +0 -0
  53. data/vendor/cache/rspec-mocks-3.9.1.gem +0 -0
  54. data/vendor/cache/rspec-support-3.9.2.gem +0 -0
  55. data/vendor/cache/rubocop-0.80.0.gem +0 -0
  56. data/vendor/cache/ruby-progressbar-1.10.1.gem +0 -0
  57. data/vendor/cache/simplecov-0.18.1.gem +0 -0
  58. data/vendor/cache/simplecov-html-0.11.0.gem +0 -0
  59. data/vendor/cache/unicode-display_width-1.6.1.gem +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cec4e44eca4faaa307a125d4bf90f55059ab93ba947fd2febb6f3b7cde27aee7
4
- data.tar.gz: 849f7d9a971efc7329c8d4b998770935c7b4d0a91f53c6e27a447a5a1828dbc6
3
+ metadata.gz: f94f90a7539a296a29d43cac30fe9766addbe951afd9d1b6334457e167ae9941
4
+ data.tar.gz: 91827ee4e9ffb1da8eda1f630f322fa1d20e5ef7183d41352ce8f505405491a4
5
5
  SHA512:
6
- metadata.gz: 67cd0dd88165297532c4c88eabca252d3302c51c67d38f6a4de75761936945dc5021b9b145897a39d0da02899501a1d893314fdfabba3a10129fbd5164cd1315
7
- data.tar.gz: 66309b014384610db04fccc8171b94c261bad0ada11f4014fe44a010e7e13fed444219b07d8e1345de6b2f95ce179944e12d5a042cd335cf90b177a8eb1a482b
6
+ metadata.gz: 50a2eeba0febe1f181402c216b42ad8ef91e976cc77acfc107acf78c57eab990cf4e250c16a94de934a23039a88b930c96dd370a59e980a0ccece378eff42f8d
7
+ data.tar.gz: a18c47fd122cfc81c950aae89c8595013e451d361dfadeaf1aed56d7768d08835241d59d35b094ee340c75e51adfc7e8e1fcb7459ee75192bda5b66960b8e2bf
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.6.1
1
+ 3.0.2
data/CHANGELOG.md ADDED
@@ -0,0 +1,3 @@
1
+ # 1.2.0
2
+
3
+ Remove unneeded kwargs option to support Ruby 3.0
data/Gemfile.lock CHANGED
@@ -8,53 +8,60 @@ PATH
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- ast (2.4.0)
12
- benchmark-ips (2.7.2)
13
- coderay (1.1.2)
14
- ddtrace (0.34.2)
11
+ ast (2.4.2)
12
+ benchmark-ips (2.9.1)
13
+ coderay (1.1.3)
14
+ ddtrace (0.52.0)
15
+ ffi (~> 1.0)
15
16
  msgpack
16
- diff-lcs (1.3)
17
- docile (1.3.2)
18
- dogstatsd-ruby (4.7.0)
19
- jaro_winkler (1.5.4)
20
- method_source (0.9.2)
21
- msgpack (1.3.3)
22
- parallel (1.19.1)
23
- parser (2.7.0.2)
24
- ast (~> 2.4.0)
25
- pry (0.12.2)
26
- coderay (~> 1.1.0)
27
- method_source (~> 0.9.0)
17
+ diff-lcs (1.4.4)
18
+ docile (1.4.0)
19
+ dogstatsd-ruby (5.2.0)
20
+ ffi (1.15.4)
21
+ method_source (1.0.0)
22
+ msgpack (1.4.2)
23
+ parallel (1.21.0)
24
+ parser (3.0.2.0)
25
+ ast (~> 2.4.1)
26
+ pry (0.14.1)
27
+ coderay (~> 1.1)
28
+ method_source (~> 1.0)
28
29
  rainbow (3.0.0)
29
30
  rake (10.5.0)
30
- rexml (3.2.4)
31
- rspec (3.9.0)
32
- rspec-core (~> 3.9.0)
33
- rspec-expectations (~> 3.9.0)
34
- rspec-mocks (~> 3.9.0)
35
- rspec-core (3.9.1)
36
- rspec-support (~> 3.9.1)
37
- rspec-expectations (3.9.0)
31
+ regexp_parser (2.1.1)
32
+ rexml (3.2.5)
33
+ rspec (3.10.0)
34
+ rspec-core (~> 3.10.0)
35
+ rspec-expectations (~> 3.10.0)
36
+ rspec-mocks (~> 3.10.0)
37
+ rspec-core (3.10.1)
38
+ rspec-support (~> 3.10.0)
39
+ rspec-expectations (3.10.1)
38
40
  diff-lcs (>= 1.2.0, < 2.0)
39
- rspec-support (~> 3.9.0)
40
- rspec-mocks (3.9.1)
41
+ rspec-support (~> 3.10.0)
42
+ rspec-mocks (3.10.2)
41
43
  diff-lcs (>= 1.2.0, < 2.0)
42
- rspec-support (~> 3.9.0)
43
- rspec-support (3.9.2)
44
- rubocop (0.80.0)
45
- jaro_winkler (~> 1.5.1)
44
+ rspec-support (~> 3.10.0)
45
+ rspec-support (3.10.2)
46
+ rubocop (1.21.0)
46
47
  parallel (~> 1.10)
47
- parser (>= 2.7.0.1)
48
+ parser (>= 3.0.0.0)
48
49
  rainbow (>= 2.2.2, < 4.0)
50
+ regexp_parser (>= 1.8, < 3.0)
49
51
  rexml
52
+ rubocop-ast (>= 1.9.1, < 2.0)
50
53
  ruby-progressbar (~> 1.7)
51
- unicode-display_width (>= 1.4.0, < 1.7)
52
- ruby-progressbar (1.10.1)
53
- simplecov (0.18.1)
54
+ unicode-display_width (>= 1.4.0, < 3.0)
55
+ rubocop-ast (1.11.0)
56
+ parser (>= 3.0.1.1)
57
+ ruby-progressbar (1.11.0)
58
+ simplecov (0.21.2)
54
59
  docile (~> 1.1)
55
- simplecov-html (~> 0.11.0)
56
- simplecov-html (0.11.0)
57
- unicode-display_width (1.6.1)
60
+ simplecov-html (~> 0.11)
61
+ simplecov_json_formatter (~> 0.1)
62
+ simplecov-html (0.12.3)
63
+ simplecov_json_formatter (0.1.3)
64
+ unicode-display_width (2.1.0)
58
65
 
59
66
  PLATFORMS
60
67
  ruby
@@ -71,4 +78,4 @@ DEPENDENCIES
71
78
  simplecov
72
79
 
73
80
  BUNDLED WITH
74
- 2.1.4
81
+ 2.2.22
@@ -15,14 +15,14 @@ module InstrumentAllTheThings
15
15
  time
16
16
  timing
17
17
  ].each do |meth|
18
- define_method(meth) do |*args, **kwargs, &blk|
18
+ define_method(meth) do |*args, &blk|
19
+ opts = args.last.is_a?(Hash) ? args.last : {}
19
20
  @emitted_values[meth][args[0]] << {
20
21
  args: args[1..-1],
21
- tags: kwargs.fetch(:tags, []),
22
- kwargs: kwargs,
22
+ tags: opts.fetch(:tags, []),
23
23
  }
24
24
 
25
- super(*args, **kwargs, &blk)
25
+ super(*args, &blk)
26
26
  end
27
27
  end
28
28
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module InstrumentAllTheThings
4
- VERSION = '1.1.1'
4
+ VERSION = '1.2.0'
5
5
  end
@@ -28,8 +28,6 @@ module InstrumentAllTheThings
28
28
  end
29
29
 
30
30
  def stat_reporter
31
- return @stat_reporter if defined?(@stat_reporter)
32
-
33
31
  @stat_reporter ||= Clients::StatReporter::DataDog.new(
34
32
  ENV.fetch('DATADOG_HOST', 'localhost'),
35
33
  ENV.fetch('DATADOG_PORT', 8125),
@@ -54,10 +52,10 @@ module InstrumentAllTheThings
54
52
  timing
55
53
  time
56
54
  ].each do |method_name|
57
- define_method(method_name) do |*args, **kwargs, &blk|
55
+ define_method(method_name) do |*args, &blk|
58
56
  return unless stat_reporter
59
57
 
60
- stat_reporter.public_send(method_name, *args, **kwargs, &blk)
58
+ stat_reporter.public_send(method_name, *args, &blk)
61
59
  end
62
60
  end
63
61
  end
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: instrument_all_the_things
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Malinconico
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-04-20 00:00:00.000000000 Z
11
+ date: 2021-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ddtrace
@@ -149,6 +149,7 @@ files:
149
149
  - ".rubocop.yml"
150
150
  - ".ruby-version"
151
151
  - ".travis.yml"
152
+ - CHANGELOG.md
152
153
  - Gemfile
153
154
  - Gemfile.lock
154
155
  - README.md
@@ -173,39 +174,42 @@ files:
173
174
  - lib/instrument_all_the_things/testing/trace_tracker.rb
174
175
  - lib/instrument_all_the_things/version.rb
175
176
  - logo.jpg
176
- - vendor/cache/ast-2.4.0.gem
177
- - vendor/cache/benchmark-ips-2.7.2.gem
178
- - vendor/cache/coderay-1.1.2.gem
179
- - vendor/cache/ddtrace-0.34.2.gem
180
- - vendor/cache/diff-lcs-1.3.gem
181
- - vendor/cache/docile-1.3.2.gem
182
- - vendor/cache/dogstatsd-ruby-4.7.0.gem
183
- - vendor/cache/jaro_winkler-1.5.4.gem
184
- - vendor/cache/method_source-0.9.2.gem
185
- - vendor/cache/msgpack-1.3.3.gem
186
- - vendor/cache/parallel-1.19.1.gem
187
- - vendor/cache/parser-2.7.0.2.gem
188
- - vendor/cache/pry-0.12.2.gem
177
+ - vendor/cache/ast-2.4.2.gem
178
+ - vendor/cache/benchmark-ips-2.9.1.gem
179
+ - vendor/cache/coderay-1.1.3.gem
180
+ - vendor/cache/ddtrace-0.52.0.gem
181
+ - vendor/cache/diff-lcs-1.4.4.gem
182
+ - vendor/cache/docile-1.4.0.gem
183
+ - vendor/cache/dogstatsd-ruby-5.2.0.gem
184
+ - vendor/cache/ffi-1.15.4.gem
185
+ - vendor/cache/method_source-1.0.0.gem
186
+ - vendor/cache/msgpack-1.4.2.gem
187
+ - vendor/cache/parallel-1.21.0.gem
188
+ - vendor/cache/parser-3.0.2.0.gem
189
+ - vendor/cache/pry-0.14.1.gem
189
190
  - vendor/cache/rainbow-3.0.0.gem
190
191
  - vendor/cache/rake-10.5.0.gem
191
- - vendor/cache/rexml-3.2.4.gem
192
- - vendor/cache/rspec-3.9.0.gem
193
- - vendor/cache/rspec-core-3.9.1.gem
194
- - vendor/cache/rspec-expectations-3.9.0.gem
195
- - vendor/cache/rspec-mocks-3.9.1.gem
196
- - vendor/cache/rspec-support-3.9.2.gem
197
- - vendor/cache/rubocop-0.80.0.gem
198
- - vendor/cache/ruby-progressbar-1.10.1.gem
199
- - vendor/cache/simplecov-0.18.1.gem
200
- - vendor/cache/simplecov-html-0.11.0.gem
201
- - vendor/cache/unicode-display_width-1.6.1.gem
192
+ - vendor/cache/regexp_parser-2.1.1.gem
193
+ - vendor/cache/rexml-3.2.5.gem
194
+ - vendor/cache/rspec-3.10.0.gem
195
+ - vendor/cache/rspec-core-3.10.1.gem
196
+ - vendor/cache/rspec-expectations-3.10.1.gem
197
+ - vendor/cache/rspec-mocks-3.10.2.gem
198
+ - vendor/cache/rspec-support-3.10.2.gem
199
+ - vendor/cache/rubocop-1.21.0.gem
200
+ - vendor/cache/rubocop-ast-1.11.0.gem
201
+ - vendor/cache/ruby-progressbar-1.11.0.gem
202
+ - vendor/cache/simplecov-0.21.2.gem
203
+ - vendor/cache/simplecov-html-0.12.3.gem
204
+ - vendor/cache/simplecov_json_formatter-0.1.3.gem
205
+ - vendor/cache/unicode-display_width-2.1.0.gem
202
206
  homepage: https://github.com/GetTerminus/instrument-all-the-things
203
207
  licenses: []
204
208
  metadata:
205
209
  allowed_push_host: https://www.rubygems.org
206
210
  homepage_uri: https://github.com/GetTerminus/instrument-all-the-things
207
211
  source_code_uri: https://github.com/GetTerminus/instrument-all-the-things
208
- post_install_message:
212
+ post_install_message:
209
213
  rdoc_options: []
210
214
  require_paths:
211
215
  - lib
@@ -220,8 +224,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
220
224
  - !ruby/object:Gem::Version
221
225
  version: '0'
222
226
  requirements: []
223
- rubygems_version: 3.0.6
224
- signing_key:
227
+ rubygems_version: 3.2.22
228
+ signing_key:
225
229
  specification_version: 4
226
230
  summary: Make instrumentation with DataDog easy peasy
227
231
  test_files: []
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file