appsignal 3.0.16-java → 3.0.20-java

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +0 -3
  3. data/.semaphore/semaphore.yml +512 -103
  4. data/CHANGELOG.md +37 -0
  5. data/appsignal.gemspec +0 -2
  6. data/build_matrix.yml +44 -16
  7. data/ext/agent.yml +25 -25
  8. data/ext/base.rb +3 -2
  9. data/gemfiles/rails-6.1.gemfile +7 -0
  10. data/gemfiles/rails-7.0.gemfile +7 -0
  11. data/lib/appsignal/cli/diagnose/utils.rb +0 -14
  12. data/lib/appsignal/cli/diagnose.rb +4 -4
  13. data/lib/appsignal/config.rb +65 -20
  14. data/lib/appsignal/event_formatter/sequel/sql_formatter.rb +24 -0
  15. data/lib/appsignal/integrations/sidekiq.rb +5 -1
  16. data/lib/appsignal/system.rb +0 -4
  17. data/lib/appsignal/transaction.rb +2 -2
  18. data/lib/appsignal/version.rb +1 -1
  19. data/lib/appsignal.rb +4 -10
  20. data/spec/lib/appsignal/cli/diagnose_spec.rb +11 -11
  21. data/spec/lib/appsignal/config_spec.rb +208 -10
  22. data/spec/lib/appsignal/event_formatter/active_record/sql_formatter_spec.rb +2 -2
  23. data/spec/lib/appsignal/event_formatter/sequel/sql_formatter_spec.rb +30 -0
  24. data/spec/lib/appsignal/event_formatter_spec.rb +2 -2
  25. data/spec/lib/appsignal/hooks/activejob_spec.rb +17 -6
  26. data/spec/lib/appsignal/hooks/sequel_spec.rb +1 -1
  27. data/spec/lib/appsignal/integrations/padrino_spec.rb +8 -2
  28. data/spec/lib/appsignal/integrations/sidekiq_spec.rb +23 -5
  29. data/spec/lib/appsignal/transaction_spec.rb +2 -2
  30. data/spec/lib/appsignal/utils/data_spec.rb +0 -2
  31. data/spec/lib/appsignal/utils/json_spec.rb +0 -2
  32. data/spec/lib/appsignal_spec.rb +2 -3
  33. data/spec/support/helpers/activejob_helpers.rb +27 -0
  34. data/spec/support/helpers/dependency_helper.rb +13 -1
  35. metadata +10 -3
@@ -9,8 +9,12 @@ module DependencyHelper
9
9
  ruby_version.segments.take(2) == [2, 0]
10
10
  end
11
11
 
12
+ def ruby_3_1_or_newer?
13
+ ruby_version >= Gem::Version.new("3.1.0")
14
+ end
15
+
12
16
  def running_jruby?
13
- defined?(RUBY_ENGINE) && RUBY_ENGINE == "jruby"
17
+ Appsignal::System.jruby?
14
18
  end
15
19
 
16
20
  def rails_present?
@@ -21,6 +25,14 @@ module DependencyHelper
21
25
  rails_present? && rails_version >= Gem::Version.new("6.0.0")
22
26
  end
23
27
 
28
+ def rails6_1_present?
29
+ rails_present? && rails_version >= Gem::Version.new("6.1.0")
30
+ end
31
+
32
+ def rails7_present?
33
+ rails_present? && rails_version >= Gem::Version.new("7.0.0")
34
+ end
35
+
24
36
  def rails_version
25
37
  Gem.loaded_specs["rails"].version
26
38
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appsignal
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.16
4
+ version: 3.0.20
5
5
  platform: java
6
6
  authors:
7
7
  - Robert Beekman
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-12-08 00:00:00.000000000 Z
13
+ date: 2022-01-17 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rack
@@ -185,6 +185,8 @@ files:
185
185
  - gemfiles/rails-5.1.gemfile
186
186
  - gemfiles/rails-5.2.gemfile
187
187
  - gemfiles/rails-6.0.gemfile
188
+ - gemfiles/rails-6.1.gemfile
189
+ - gemfiles/rails-7.0.gemfile
188
190
  - gemfiles/resque-1.gemfile
189
191
  - gemfiles/resque-2.gemfile
190
192
  - gemfiles/sequel-435.gemfile
@@ -212,6 +214,7 @@ files:
212
214
  - lib/appsignal/event_formatter/faraday/request_formatter.rb
213
215
  - lib/appsignal/event_formatter/mongo_ruby_driver/query_formatter.rb
214
216
  - lib/appsignal/event_formatter/moped/query_formatter.rb
217
+ - lib/appsignal/event_formatter/sequel/sql_formatter.rb
215
218
  - lib/appsignal/extension.rb
216
219
  - lib/appsignal/extension/jruby.rb
217
220
  - lib/appsignal/garbage_collection_profiler.rb
@@ -310,6 +313,7 @@ files:
310
313
  - spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
311
314
  - spec/lib/appsignal/event_formatter/mongo_ruby_driver/query_formatter_spec.rb
312
315
  - spec/lib/appsignal/event_formatter/moped/query_formatter_spec.rb
316
+ - spec/lib/appsignal/event_formatter/sequel/sql_formatter_spec.rb
313
317
  - spec/lib/appsignal/event_formatter_spec.rb
314
318
  - spec/lib/appsignal/extension/jruby_spec.rb
315
319
  - spec/lib/appsignal/extension_install_failure_spec.rb
@@ -381,6 +385,7 @@ files:
381
385
  - spec/support/fixtures/projects/valid/log/.gitkeep
382
386
  - spec/support/fixtures/uploaded_file.txt
383
387
  - spec/support/helpers/action_mailer_helpers.rb
388
+ - spec/support/helpers/activejob_helpers.rb
384
389
  - spec/support/helpers/api_request_helper.rb
385
390
  - spec/support/helpers/cli_helpers.rb
386
391
  - spec/support/helpers/config_helpers.rb
@@ -435,7 +440,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
435
440
  - !ruby/object:Gem::Version
436
441
  version: '0'
437
442
  requirements: []
438
- rubygems_version: 3.2.32
443
+ rubygems_version: 3.3.4
439
444
  signing_key:
440
445
  specification_version: 4
441
446
  summary: Logs performance and exception data from your app to appsignal.com
@@ -461,6 +466,7 @@ test_files:
461
466
  - spec/lib/appsignal/event_formatter/faraday/request_formatter_spec.rb
462
467
  - spec/lib/appsignal/event_formatter/mongo_ruby_driver/query_formatter_spec.rb
463
468
  - spec/lib/appsignal/event_formatter/moped/query_formatter_spec.rb
469
+ - spec/lib/appsignal/event_formatter/sequel/sql_formatter_spec.rb
464
470
  - spec/lib/appsignal/event_formatter_spec.rb
465
471
  - spec/lib/appsignal/extension/jruby_spec.rb
466
472
  - spec/lib/appsignal/extension_install_failure_spec.rb
@@ -532,6 +538,7 @@ test_files:
532
538
  - spec/support/fixtures/projects/valid/log/.gitkeep
533
539
  - spec/support/fixtures/uploaded_file.txt
534
540
  - spec/support/helpers/action_mailer_helpers.rb
541
+ - spec/support/helpers/activejob_helpers.rb
535
542
  - spec/support/helpers/api_request_helper.rb
536
543
  - spec/support/helpers/cli_helpers.rb
537
544
  - spec/support/helpers/config_helpers.rb