appsignal 3.2.0 → 3.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/appsignal/integrations/http.rb +1 -1
- data/lib/appsignal/version.rb +1 -1
- data/spec/lib/appsignal/integrations/http_spec.rb +41 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 90e8e74eb068c6090065ab6446125d0305b87c73b2ba544a3a1401a4a56e039d
|
4
|
+
data.tar.gz: b23b6612079b7117947ff9402b6831de64ffc262473bbaae852bf89d2e9a92ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13a4628cc782b80ecabcafed9269023d61834862ad49611a44f033689c11dd2505805dff2f54679a5101e3ec3da1b42916f9cd6a7e7ee5008653ccded183633d
|
7
|
+
data.tar.gz: b6b28bff154f6fc9ecbafd152be8ccc717dfd713ab34ffc9de81376d65d15833c59af6c5f18b173faa9a720cfadaf46c238529bd7331cd52548a31cf41ed5408
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# AppSignal for Ruby gem Changelog
|
2
2
|
|
3
|
+
## 3.2.1
|
4
|
+
|
5
|
+
### Fixed
|
6
|
+
|
7
|
+
- [5e87aa34](https://github.com/appsignal/appsignal-ruby/commit/5e87aa34878d84cd07717671e770a0a356ad8430) patch - Support the http.rb gem's URI argument using objects with the `#to_s` method. A Ruby URI object is no longer required.
|
8
|
+
|
3
9
|
## 3.2.0
|
4
10
|
|
5
11
|
### Added
|
@@ -4,7 +4,7 @@ module Appsignal
|
|
4
4
|
module Integrations
|
5
5
|
module HttpIntegration
|
6
6
|
def request(verb, uri, opts = {})
|
7
|
-
parsed_request_uri = URI.parse(uri)
|
7
|
+
parsed_request_uri = uri.is_a?(URI) ? uri : URI.parse(uri.to_s)
|
8
8
|
request_uri = "#{parsed_request_uri.scheme}://#{parsed_request_uri.host}"
|
9
9
|
|
10
10
|
begin
|
data/lib/appsignal/version.rb
CHANGED
@@ -99,5 +99,46 @@ if DependencyHelper.http_present?
|
|
99
99
|
)
|
100
100
|
end
|
101
101
|
end
|
102
|
+
|
103
|
+
context "with various URI objects" do
|
104
|
+
it "parses an object responding to #to_s" do
|
105
|
+
request_uri = Struct.new(:uri) do
|
106
|
+
def to_s
|
107
|
+
uri.to_s
|
108
|
+
end
|
109
|
+
end
|
110
|
+
|
111
|
+
stub_request(:get, "http://www.google.com")
|
112
|
+
|
113
|
+
HTTP.get(request_uri.new("http://www.google.com"))
|
114
|
+
|
115
|
+
expect(transaction.to_h["events"].first).to include(
|
116
|
+
"name" => "request.http_rb",
|
117
|
+
"title" => "GET http://www.google.com"
|
118
|
+
)
|
119
|
+
end
|
120
|
+
|
121
|
+
it "parses an URI object" do
|
122
|
+
stub_request(:get, "http://www.google.com")
|
123
|
+
|
124
|
+
HTTP.get(URI("http://www.google.com"))
|
125
|
+
|
126
|
+
expect(transaction.to_h["events"].first).to include(
|
127
|
+
"name" => "request.http_rb",
|
128
|
+
"title" => "GET http://www.google.com"
|
129
|
+
)
|
130
|
+
end
|
131
|
+
|
132
|
+
it "parses a String object" do
|
133
|
+
stub_request(:get, "http://www.google.com")
|
134
|
+
|
135
|
+
HTTP.get("http://www.google.com")
|
136
|
+
|
137
|
+
expect(transaction.to_h["events"].first).to include(
|
138
|
+
"name" => "request.http_rb",
|
139
|
+
"title" => "GET http://www.google.com"
|
140
|
+
)
|
141
|
+
end
|
142
|
+
end
|
102
143
|
end
|
103
144
|
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.2.
|
4
|
+
version: 3.2.1
|
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: 2022-11-
|
13
|
+
date: 2022-11-21 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rack
|
@@ -434,7 +434,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
434
434
|
- !ruby/object:Gem::Version
|
435
435
|
version: '0'
|
436
436
|
requirements: []
|
437
|
-
rubygems_version: 3.3.
|
437
|
+
rubygems_version: 3.3.7
|
438
438
|
signing_key:
|
439
439
|
specification_version: 4
|
440
440
|
summary: Logs performance and exception data from your app to appsignal.com
|