raygun-apm 0.0.5-x86-mingw32 → 0.0.6-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 33acb70c124e4cd9f2053282b184527afb49e74e11da441ddaac72550a03e45d
4
- data.tar.gz: e9ff640809af3a68b95972304a1960a3597d9b325b887265627376070d275468
3
+ metadata.gz: 125febe24f46e9e616549a4b3178d7db1a610c2a24f8821885057ee44f914124
4
+ data.tar.gz: e00555c5fb852fc50af579d39df399ecb8ea253638b652b59402b7ba000d12e3
5
5
  SHA512:
6
- metadata.gz: 6d3c2ad1b6d9a418745ed86a3539ab6f2a32cd1f0b6c62c13101d2b2a894ab06db1c50bdeff195f79efc266a588a5daf7d2e7f822e03e96a75ca1bd864782da3
7
- data.tar.gz: 07cab7c7e435c4cfab1ef5d3050da30aec099ff57ca21f6c074bf39a3947110d7dccf617783b919927b577757ac4a4647667bc8a9e548acb33142fd3c0ab6e7f
6
+ metadata.gz: baab20e51d3f7c9cbd3551916d85bef57cfec406767408bc4f324a8f334769b62362c97712aac47a59a321830a62bfd3fba0bed71fea86ad5a712b02f0f92a37
7
+ data.tar.gz: 9529f807687568db6c86d0f231f74ece992962babc1ea29058b415c0f368f693a7c5a4b92f9ccebcebf9c7d2656d8148f2b74d0d92f41f29c036b12595af5164
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
@@ -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/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
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-mingw32
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