appsignal 3.2.0-java → 3.2.1-java

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: 6ba59271103947144c9d29a741b03d602449f20e0603e53d775d7a18f7959aaf
4
- data.tar.gz: ab9233cb944b2f35eaf7639a918306ceac42c4de57a337295eeb72d3249043dc
3
+ metadata.gz: 7076acfac6521656f414d1c468571d1abb86696e59354bcf3eecf0ddaed50ac4
4
+ data.tar.gz: b23b6612079b7117947ff9402b6831de64ffc262473bbaae852bf89d2e9a92ac
5
5
  SHA512:
6
- metadata.gz: a7f9e30219e7a1178a13fcc1c3595731a5ebe8734b762f8a10465e644428d9b21482dceff1a984af846f1a947a6444d03450600ba71afd63c4973d177c8629f4
7
- data.tar.gz: 64477a38482899aed37b742fa3b8d76b9c562edb46973881bb2881a2eaa3d469ea390516d3ab90f02e2675d27df492b0b516d5679feec9690f167d6b6a983c7f
6
+ metadata.gz: 9d82b3c4856764e9f6c5a2c953f5883fcc11cedb5e8447e463f970233f46085e333710e818e314c30acd829fdef80eccab2fc75ab04f85c0cf2ea7c9db2d87c6
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Appsignal
4
- VERSION = "3.2.0".freeze
4
+ VERSION = "3.2.1".freeze
5
5
  end
@@ -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.0
4
+ version: 3.2.1
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: 2022-11-18 00:00:00.000000000 Z
13
+ date: 2022-11-21 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rack
@@ -448,7 +448,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
448
448
  - !ruby/object:Gem::Version
449
449
  version: '0'
450
450
  requirements: []
451
- rubygems_version: 3.3.12
451
+ rubygems_version: 3.3.7
452
452
  signing_key:
453
453
  specification_version: 4
454
454
  summary: Logs performance and exception data from your app to appsignal.com