raygun-apm 0.0.5-x86-linux → 0.0.6-x86-linux

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: af0bce6f95af25776d4f7ae6dcfe4499a337e04e3de8477d172d11ce5039ab4e
4
- data.tar.gz: e505b6a5a99d115f5510c717c2da28a4b6954814a50d36dc260dd546b9a919e8
3
+ metadata.gz: 824c26a0431ce321b2ea52dd943a2258b6ff8b246a46e716f2ab5c294323b9b1
4
+ data.tar.gz: 761d6f51d4626cfaa5362169a96f0faf628951e17c66df89b22e19105c6663f6
5
5
  SHA512:
6
- metadata.gz: 4ae2c5df357968de91423b3b6ece28ab09118d9ff95752da0fd0a8423ed45ee7fea7ef23272a3ab3a82836a42e23747cdc250a36fdb9443dc69e25222e183322
7
- data.tar.gz: 8f678a39e43e00f05ca7eb16ed4a0b969e1de51146a724236626fa6337d05dee32fd0968f018ae1b18094caf39e665436dbde5bc93c0267c3def0116e940318a
6
+ metadata.gz: 9933d0d96da5f3330ffac724117f8c00d5fc1dea11c1d8a4ccbaeca9396767b00ba8255a333b5d3d3b08d1817f65a7f913b577cc259d5250bbc90f1fde616da6
7
+ data.tar.gz: 71039947481ef2ba3cdb2d05b73cfeaf4d3d2395286615fa538db2599bad82ba0feb8e48a65b0c2609d98dc024afd7269c80d5fc7a0337b8b06c9df1f4eea7e8
data/Gemfile.lock CHANGED
@@ -1,13 +1,13 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- raygun-apm (0.0.5)
4
+ raygun-apm (0.0.6)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
9
  benchmark_driver (0.14.17)
10
- debase-ruby_core_source (0.10.6)
10
+ debase-ruby_core_source (0.10.7)
11
11
  irb (1.0.0)
12
12
  minitest (5.11.3)
13
13
  rake (12.3.3)
@@ -22,7 +22,7 @@ PLATFORMS
22
22
  DEPENDENCIES
23
23
  benchmark_driver (~> 0.14.17)
24
24
  bundler (~> 1.16)
25
- debase-ruby_core_source (~> 0.10.6)
25
+ debase-ruby_core_source (~> 0.10.7)
26
26
  irb
27
27
  minitest (~> 5.0)
28
28
  rake (~> 12.0)
@@ -31,4 +31,4 @@ DEPENDENCIES
31
31
  raygun-apm!
32
32
 
33
33
  BUNDLED WITH
34
- 1.17.2
34
+ 1.17.3
data/README.rdoc CHANGED
@@ -13,6 +13,16 @@ Distributed as a precompiled native gem.
13
13
 
14
14
  {Contact us}[https://raygun.com/about/contact] to support other platforms.
15
15
 
16
+ == Supported Ruby versions
17
+
18
+ The profiler only supports CRuby, also known as Matz's Ruby Interpreter (MRI).
19
+
20
+ * 2.5.x
21
+ * 2.6.x
22
+ * 2.7.x (Preview release, still officially unreleased, but supported)
23
+
24
+ {Contact us}[https://raygun.com/about/contact] to support other Ruby versions.
25
+
16
26
  == Agent Setup
17
27
 
18
28
  The Profiler needs to be able to access the Raygun Agent over UDP.
@@ -25,7 +35,7 @@ To launch Raygun Agent using docker
25
35
 
26
36
  == Profiler Setup
27
37
 
28
- Include the gem your Gemfile
38
+ Include the gem in your Gemfile
29
39
 
30
40
  gem 'raygun-apm'
31
41
 
Binary file
File without changes
data/lib/raygun/apm.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require "raygun/apm/version"
2
2
  begin
3
3
  RUBY_VERSION =~ /(\d+\.\d+)/
4
- require "raygun#{$1}/raygun_extension"
4
+ require "raygun#{$1}/raygun_ext"
5
5
  rescue LoadError
6
6
  require "raygun/raygun_ext"
7
7
  end
@@ -131,64 +131,16 @@ module Raygun
131
131
  ZeroDivisionError
132
132
  }
133
133
 
134
- # from https://api.rubyonrails.org/ , to automate
135
- DEFAULT_RAILS = %w{
136
- #<Class:
137
- #<Module:
138
- #<ActiveRecord:
139
- #<ActiveModel:
140
- Benchmark
141
- BigDecimal
142
- Concurrent
143
- Date
144
- DateAndTime
145
- DateTime
146
- Delegator
147
- Digest
148
- ERB
149
- SecureRandom
150
- URI
151
- AbstractController
152
- ActionCable
153
- ActionController
154
- ActionDispatch
155
- ActionMailbox
156
- ActionMailer
157
- ActionText
158
- ActionView
159
- ActiveJob
160
- ActiveModel
161
- ActiveRecord
162
- ActiveStorage
163
- ActiveSupport
164
- Arel
165
- Mail
166
- Mime
167
- Rails
168
- Rack
169
- I18n
170
- Bootsnap
171
- Sprockets
172
- Turbolinks
173
- Pathname
174
- MonitorMixin
175
- Logger
176
- Sprockets
177
- ActionDispatch
178
- ActiveSupport
179
- ActionView
180
- ApplicationHelper
181
- SQLite3
182
- Mysql2
183
- Erubi
184
- ApplicationController
185
- }
134
+ def self.extend_with(list)
135
+ self.extended_blacklist << list
136
+ end
137
+
138
+ def self.extended_blacklist
139
+ @@extended_blacklist ||= []
140
+ end
141
+
186
142
  def self.resolve_entries
187
- if Gem.loaded_specs.has_key?('rails')
188
- DEFAULT_RUBY + DEFAULT_RAILS
189
- else
190
- DEFAULT_RUBY
191
- end
143
+ DEFAULT_RUBY + self.extended_blacklist.flatten
192
144
  end
193
145
  end
194
146
  end
@@ -23,7 +23,7 @@ module Raygun
23
23
  end
24
24
  end
25
25
 
26
- def self.config_var(attr, opts={})
26
+ def self.config_var(attr, opts={}, &blk)
27
27
  define_method attr.downcase do
28
28
  val = if x = env[attr]
29
29
  if opts[:as] == Integer
@@ -36,6 +36,7 @@ module Raygun
36
36
  else
37
37
  opts[:default]
38
38
  end
39
+ blk ? blk.call(val) : val
39
40
  end
40
41
  end
41
42
 
@@ -55,7 +56,14 @@ module Raygun
55
56
 
56
57
  ## ruby specific extras
57
58
  config_var 'PROTON_RB_TRACE_BLOCKS', as: :boolean, default: false
58
- config_var 'PROTON_EMIT_ARGUMENTS', as: :boolean, default: false
59
+ config_var 'PROTON_EMIT_ARGUMENTS', as: :boolean, default: false do |val|
60
+ if val && RUBY_VERSION < "2.6"
61
+ warn("Emitting function arguments only supported on Ruby versions > 2.6, disabling")
62
+ false
63
+ else
64
+ val
65
+ end
66
+ end
59
67
 
60
68
  def udp_host
61
69
  if proton_use_multicast == 'True'
@@ -1,5 +1,5 @@
1
1
  module Raygun
2
2
  module Apm
3
- VERSION = "0.0.5"
3
+ VERSION = "0.0.6"
4
4
  end
5
5
  end
data/raygun-apm.gemspec CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
19
19
  spec.require_paths = ["lib", "ext"]
20
20
 
21
- if RUBY_PLATFORM =~ /darwin/ && !ENV['RAYGUN_GEM_CROSS_COMPILING']
21
+ if RUBY_PLATFORM =~ /darwin/ && !ENV['GEM_CROSS_COMPILING']
22
22
  spec.files << 'lib/raygun/raygun_ext.bundle'
23
23
  spec.platform = 'universal-darwin'
24
24
  else
@@ -26,9 +26,9 @@ Gem::Specification.new do |spec|
26
26
  end
27
27
 
28
28
  spec.extensions = ["ext/raygun/extconf.rb"]
29
- spec.required_ruby_version = '>= 2.4.0'
29
+ spec.required_ruby_version = '>= 2.5.0'
30
30
 
31
- spec.add_development_dependency "debase-ruby_core_source", "~> 0.10.6"
31
+ spec.add_development_dependency "debase-ruby_core_source", "~> 0.10.7"
32
32
  spec.add_development_dependency "bundler", "~> 1.16"
33
33
  spec.add_development_dependency "rake", "~> 12.0"
34
34
  spec.add_development_dependency "minitest", "~> 5.0"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raygun-apm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: x86-linux
6
6
  authors:
7
7
  - Erkki Eilonen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-11-05 00:00:00.000000000 Z
11
+ date: 2019-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: debase-ruby_core_source
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.10.6
19
+ version: 0.10.7
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.10.6
26
+ version: 0.10.7
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -121,6 +121,8 @@ files:
121
121
  - bin/console
122
122
  - bin/setup
123
123
  - ext/raygun/extconf.rb
124
+ - lib/raygun/2.5/raygun_ext.so
125
+ - lib/raygun/2.6/raygun_ext.so
124
126
  - lib/raygun/apm.rb
125
127
  - lib/raygun/apm/blacklist.rb
126
128
  - lib/raygun/apm/config.rb
@@ -128,7 +130,6 @@ files:
128
130
  - lib/raygun/apm/middleware.rb
129
131
  - lib/raygun/apm/tracer.rb
130
132
  - lib/raygun/apm/version.rb
131
- - lib/raygun/raygun_ext.so
132
133
  - raygun-apm.gemspec
133
134
  homepage:
134
135
  licenses: []
@@ -142,7 +143,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
142
143
  requirements:
143
144
  - - ">="
144
145
  - !ruby/object:Gem::Version
145
- version: '2.6'
146
+ version: '2.5'
146
147
  - - "<"
147
148
  - !ruby/object:Gem::Version
148
149
  version: 2.7.dev