appsignal 2.10.6 → 2.10.7
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/appsignal/hooks/net_http.rb +8 -13
- data/lib/appsignal/system.rb +0 -6
- data/lib/appsignal/version.rb +1 -1
- data/spec/lib/appsignal/system_spec.rb +0 -36
- metadata +2 -3
- data/lib/appsignal/integrations/net_http.rb +0 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e50a778f6ba1e9f4147ca4ce5b05b930131572ac4a427e94916d517fc25cc8cf
|
4
|
+
data.tar.gz: 750530a66bf499dd130a52987a7df7428ce55a0bb7d034fceb9603850ff4648d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50728b8fa3a9a4f24d9b662b4f69b2337f57367d2e0b373b45247123e2628c02bbcc1d9792f1ecab784a6e1e93bf95b20bb04ac6c38eb5dd78342eb4d0be6cab
|
7
|
+
data.tar.gz: 11ff3543333791541973623f246e015f8f186a8941a0260d5025e1e2201d9ab657ef78ada39ef3a7998f11258f423157743b726d3d4e62c94777977659b4853a
|
data/CHANGELOG.md
CHANGED
@@ -13,20 +13,15 @@ module Appsignal
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def install
|
16
|
-
|
17
|
-
|
18
|
-
Net::HTTP.send(:prepend, Appsignal::Integrations::NetHttpIntegration)
|
19
|
-
else
|
20
|
-
Net::HTTP.class_eval do
|
21
|
-
alias request_without_appsignal request
|
16
|
+
Net::HTTP.class_eval do
|
17
|
+
alias request_without_appsignal request
|
22
18
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
end
|
19
|
+
def request(request, body = nil, &block)
|
20
|
+
Appsignal.instrument(
|
21
|
+
"request.net_http",
|
22
|
+
"#{request.method} #{use_ssl? ? "https" : "http"}://#{request["host"] || address}"
|
23
|
+
) do
|
24
|
+
request_without_appsignal(request, body, &block)
|
30
25
|
end
|
31
26
|
end
|
32
27
|
end
|
data/lib/appsignal/system.rb
CHANGED
@@ -76,14 +76,8 @@ module Appsignal
|
|
76
76
|
ldd_version && ldd_version[0]
|
77
77
|
end
|
78
78
|
|
79
|
-
# @api private
|
80
79
|
def self.jruby?
|
81
80
|
RUBY_PLATFORM == "java"
|
82
81
|
end
|
83
|
-
|
84
|
-
# @api private
|
85
|
-
def self.ruby_2_or_up?
|
86
|
-
versionify(RUBY_VERSION) >= versionify("2.0")
|
87
|
-
end
|
88
82
|
end
|
89
83
|
end
|
data/lib/appsignal/version.rb
CHANGED
@@ -93,40 +93,4 @@ describe Appsignal::System do
|
|
93
93
|
end
|
94
94
|
end
|
95
95
|
end
|
96
|
-
|
97
|
-
describe ".ruby_2_or_up?" do
|
98
|
-
around do |example|
|
99
|
-
original_ruby_version = RUBY_VERSION
|
100
|
-
Object.send(:remove_const, "RUBY_VERSION")
|
101
|
-
Object.const_set("RUBY_VERSION", ruby_version)
|
102
|
-
example.run
|
103
|
-
Object.send(:remove_const, "RUBY_VERSION")
|
104
|
-
Object.const_set("RUBY_VERSION", original_ruby_version)
|
105
|
-
end
|
106
|
-
subject { described_class.ruby_2_or_up? }
|
107
|
-
|
108
|
-
context "when on Ruby 1.9" do
|
109
|
-
let(:ruby_version) { "1.9.3-p533" }
|
110
|
-
|
111
|
-
it "returns false" do
|
112
|
-
is_expected.to be(false)
|
113
|
-
end
|
114
|
-
end
|
115
|
-
|
116
|
-
context "when on Ruby 2.0" do
|
117
|
-
let(:ruby_version) { "2.0.0" }
|
118
|
-
|
119
|
-
it "returns true" do
|
120
|
-
is_expected.to be(true)
|
121
|
-
end
|
122
|
-
end
|
123
|
-
|
124
|
-
context "when on Ruby 2.x" do
|
125
|
-
let(:ruby_version) { "2.1.0" }
|
126
|
-
|
127
|
-
it "returns true" do
|
128
|
-
is_expected.to be(true)
|
129
|
-
end
|
130
|
-
end
|
131
|
-
end
|
132
96
|
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: 2.10.
|
4
|
+
version: 2.10.7
|
5
5
|
platform: ruby
|
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: 2020-
|
13
|
+
date: 2020-05-05 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rack
|
@@ -227,7 +227,6 @@ files:
|
|
227
227
|
- lib/appsignal/integrations/delayed_job_plugin.rb
|
228
228
|
- lib/appsignal/integrations/grape.rb
|
229
229
|
- lib/appsignal/integrations/mongo_ruby_driver.rb
|
230
|
-
- lib/appsignal/integrations/net_http.rb
|
231
230
|
- lib/appsignal/integrations/object.rb
|
232
231
|
- lib/appsignal/integrations/padrino.rb
|
233
232
|
- lib/appsignal/integrations/que.rb
|
@@ -1,16 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Appsignal
|
4
|
-
module Integrations
|
5
|
-
module NetHttpIntegration
|
6
|
-
def request(request, body = nil, &block)
|
7
|
-
Appsignal.instrument(
|
8
|
-
"request.net_http",
|
9
|
-
"#{request.method} #{use_ssl? ? "https" : "http"}://#{request["host"] || address}"
|
10
|
-
) do
|
11
|
-
super
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|