appsignal 3.3.6-java → 3.3.7-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: 23fd604ba8693728cde46042cdd5a8948ed02a0d1fd585485a64b9b63679f834
4
- data.tar.gz: 26ccebf3fd9845f812f1521b819c926aacb8465cd3faeeb0a3802877f7c19e58
3
+ metadata.gz: cf316d2ff99ac803b94b624dc081c41a6c8d84d5ee659e3029870d7ed4d212ba
4
+ data.tar.gz: 77177fc406fe073de5917b1829bc88f820ebfe941af8e1183be083d99d1735d6
5
5
  SHA512:
6
- metadata.gz: 8f9cfbf7b54ebc968f558a0f144cfbb3d255f2038465c19a9ce1d60b675be5b9bb06b58c514c77584d063695380fc7bca135e1841104756267956721df0a3265
7
- data.tar.gz: '0487d44ad3d8907615cb877f5aaf3a13e73c1753c05cbac87a7a41eb0f5dfeaa383d533e7e057e8534d5c2035c005b8094eb566ed729e6a7a87ce9877e95c57c'
6
+ metadata.gz: 66082238307235ccfeabf9a3b60c8f2b5702a4cb715cbd6dc260d786fde00032add30e6a44993a862f7bba8ef5a2698aa5d581adfc9c54ce9448816692b09add
7
+ data.tar.gz: 79e3ead1f689f0f9dd1a2b207b5051ec92fffbbd270349aa407d56a0c69669e48f3a1fc681f59ee93d445d92224129e207981a1e84d019f44b7df8b425c8c673
data/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # AppSignal for Ruby gem Changelog
2
2
 
3
+ ## 3.3.7
4
+
5
+ ### Changed
6
+
7
+ - [8e67159e](https://github.com/appsignal/appsignal-ruby/commit/8e67159e2a57d3b697a07fadd8eb0e0234db9124) patch - Configure AppSignal with the RACK_ENV or RAILS_ENV environment variable in diagnose CLI, if present. Makes it easier to run the diagnose CLI in production, without having to always specify the environment with the `--environment` CLI option.
8
+
9
+ ### Fixed
10
+
11
+ - [a815b298](https://github.com/appsignal/appsignal-ruby/commit/a815b29826a84f430384e7e735f79c8c312f1abf) patch - Remove trailing comments in SQL queries, ensuring queries are grouped consistently.
12
+ - [a815b298](https://github.com/appsignal/appsignal-ruby/commit/a815b29826a84f430384e7e735f79c8c312f1abf) patch - Fix an issue where events longer than forty-eight minutes would be shown as having a zero-second duration.
13
+
3
14
  ## 3.3.6
4
15
 
5
16
  ### Changed
data/ext/agent.rb CHANGED
@@ -4,7 +4,7 @@
4
4
  # Modifications to this file will be overwritten with the next agent release.
5
5
 
6
6
  APPSIGNAL_AGENT_CONFIG = {
7
- "version" => "8d042e2",
7
+ "version" => "dee4fcb",
8
8
  "mirrors" => [
9
9
  "https://appsignal-agent-releases.global.ssl.fastly.net",
10
10
  "https://d135dj0rjqvssy.cloudfront.net"
@@ -12,131 +12,131 @@ APPSIGNAL_AGENT_CONFIG = {
12
12
  "triples" => {
13
13
  "x86_64-darwin" => {
14
14
  "static" => {
15
- "checksum" => "e0142859f35e31b52dcc57418636c05bcb21940ad499bbe255f90a1cf7359bf7",
15
+ "checksum" => "d45bfc2eb38138c317b501c3156459b8dbbb15a59910f1e2ec3d2d02e461a147",
16
16
  "filename" => "appsignal-x86_64-darwin-all-static.tar.gz"
17
17
  },
18
18
  "dynamic" => {
19
- "checksum" => "43b01ab821eddb9fda03cedf59ab4bd8ebfca4c0cf011daa0233802fff69fc0b",
19
+ "checksum" => "a126901650046ae1c40affd386ab5dfcda5cb89f9bd05cf0a3087faff1d2d77d",
20
20
  "filename" => "appsignal-x86_64-darwin-all-dynamic.tar.gz"
21
21
  }
22
22
  },
23
23
  "universal-darwin" => {
24
24
  "static" => {
25
- "checksum" => "e0142859f35e31b52dcc57418636c05bcb21940ad499bbe255f90a1cf7359bf7",
25
+ "checksum" => "d45bfc2eb38138c317b501c3156459b8dbbb15a59910f1e2ec3d2d02e461a147",
26
26
  "filename" => "appsignal-x86_64-darwin-all-static.tar.gz"
27
27
  },
28
28
  "dynamic" => {
29
- "checksum" => "43b01ab821eddb9fda03cedf59ab4bd8ebfca4c0cf011daa0233802fff69fc0b",
29
+ "checksum" => "a126901650046ae1c40affd386ab5dfcda5cb89f9bd05cf0a3087faff1d2d77d",
30
30
  "filename" => "appsignal-x86_64-darwin-all-dynamic.tar.gz"
31
31
  }
32
32
  },
33
33
  "aarch64-darwin" => {
34
34
  "static" => {
35
- "checksum" => "5a1ab02452497b29222d580f3e9d3649eb547b8c90338858462d4f221dd18ff9",
35
+ "checksum" => "1cd875e74ba18c2bc81533437a9eebdf08f624e0201427c13326c2be00f22907",
36
36
  "filename" => "appsignal-aarch64-darwin-all-static.tar.gz"
37
37
  },
38
38
  "dynamic" => {
39
- "checksum" => "ea6ee98125ae521f3a79c47d942cf9b689a43e48fd172eab62d3dc80a7fea033",
39
+ "checksum" => "d2243146bf4e5839a4cf4430870b7b87d6553e1da4dc631c9fb396bba094cea4",
40
40
  "filename" => "appsignal-aarch64-darwin-all-dynamic.tar.gz"
41
41
  }
42
42
  },
43
43
  "arm64-darwin" => {
44
44
  "static" => {
45
- "checksum" => "5a1ab02452497b29222d580f3e9d3649eb547b8c90338858462d4f221dd18ff9",
45
+ "checksum" => "1cd875e74ba18c2bc81533437a9eebdf08f624e0201427c13326c2be00f22907",
46
46
  "filename" => "appsignal-aarch64-darwin-all-static.tar.gz"
47
47
  },
48
48
  "dynamic" => {
49
- "checksum" => "ea6ee98125ae521f3a79c47d942cf9b689a43e48fd172eab62d3dc80a7fea033",
49
+ "checksum" => "d2243146bf4e5839a4cf4430870b7b87d6553e1da4dc631c9fb396bba094cea4",
50
50
  "filename" => "appsignal-aarch64-darwin-all-dynamic.tar.gz"
51
51
  }
52
52
  },
53
53
  "arm-darwin" => {
54
54
  "static" => {
55
- "checksum" => "5a1ab02452497b29222d580f3e9d3649eb547b8c90338858462d4f221dd18ff9",
55
+ "checksum" => "1cd875e74ba18c2bc81533437a9eebdf08f624e0201427c13326c2be00f22907",
56
56
  "filename" => "appsignal-aarch64-darwin-all-static.tar.gz"
57
57
  },
58
58
  "dynamic" => {
59
- "checksum" => "ea6ee98125ae521f3a79c47d942cf9b689a43e48fd172eab62d3dc80a7fea033",
59
+ "checksum" => "d2243146bf4e5839a4cf4430870b7b87d6553e1da4dc631c9fb396bba094cea4",
60
60
  "filename" => "appsignal-aarch64-darwin-all-dynamic.tar.gz"
61
61
  }
62
62
  },
63
63
  "aarch64-linux" => {
64
64
  "static" => {
65
- "checksum" => "0e85a0a13b9457c4ee1f316e92e8d95de9125bbaff90ceb826bcefaaffa413d9",
65
+ "checksum" => "72fbfaa1c6ed72defea9eca59679372f53ddeab845a9b2f75d9d165e4983d69e",
66
66
  "filename" => "appsignal-aarch64-linux-all-static.tar.gz"
67
67
  },
68
68
  "dynamic" => {
69
- "checksum" => "77103ab5c9907334998c48464fd742ab21fcbead58195cb6afcfc4797514f34c",
69
+ "checksum" => "bf31b4836c84ceaa87a52aa85f296d40e32cfd784a8aa5b19ec5ca3a4aa5c8eb",
70
70
  "filename" => "appsignal-aarch64-linux-all-dynamic.tar.gz"
71
71
  }
72
72
  },
73
73
  "i686-linux" => {
74
74
  "static" => {
75
- "checksum" => "0e8a0490ca960bb8e57183156ed4999afbd70cf13c640fe96f9b0e25556075f1",
75
+ "checksum" => "c504a7233512c9285274a7ba0142ab91cf4637c6f5f57c58c6890137ba0f82de",
76
76
  "filename" => "appsignal-i686-linux-all-static.tar.gz"
77
77
  },
78
78
  "dynamic" => {
79
- "checksum" => "f19947288f3638f15eeaf8f6ee9aecae6f1f777e4e68820c88bf4fb6941856b9",
79
+ "checksum" => "19091f50e98afed547b73bc220770bdafce737e152ab9345dabe03e284219cc1",
80
80
  "filename" => "appsignal-i686-linux-all-dynamic.tar.gz"
81
81
  }
82
82
  },
83
83
  "x86-linux" => {
84
84
  "static" => {
85
- "checksum" => "0e8a0490ca960bb8e57183156ed4999afbd70cf13c640fe96f9b0e25556075f1",
85
+ "checksum" => "c504a7233512c9285274a7ba0142ab91cf4637c6f5f57c58c6890137ba0f82de",
86
86
  "filename" => "appsignal-i686-linux-all-static.tar.gz"
87
87
  },
88
88
  "dynamic" => {
89
- "checksum" => "f19947288f3638f15eeaf8f6ee9aecae6f1f777e4e68820c88bf4fb6941856b9",
89
+ "checksum" => "19091f50e98afed547b73bc220770bdafce737e152ab9345dabe03e284219cc1",
90
90
  "filename" => "appsignal-i686-linux-all-dynamic.tar.gz"
91
91
  }
92
92
  },
93
93
  "x86_64-linux" => {
94
94
  "static" => {
95
- "checksum" => "4eec193edeae76e0793789846112ac9127870c90a8ae6e47aa2a8490163733aa",
95
+ "checksum" => "f9e68dbbee7d38b255c5b9bc0cb75226764f79cd51421e4e00a9e7454b0c6ccb",
96
96
  "filename" => "appsignal-x86_64-linux-all-static.tar.gz"
97
97
  },
98
98
  "dynamic" => {
99
- "checksum" => "dcbc99ba30038f03f91232e5a25d76f27fae1a85a1b692e4935c62720e60b4ae",
99
+ "checksum" => "58e3192c87903a2abce6540b893c9d25a69f43e37fd2367df45c2c22c26068ba",
100
100
  "filename" => "appsignal-x86_64-linux-all-dynamic.tar.gz"
101
101
  }
102
102
  },
103
103
  "x86_64-linux-musl" => {
104
104
  "static" => {
105
- "checksum" => "d91d1ed6e775cc00319fca0a4144dff064d31fb6a8a28dbb5027add44e4dab02",
105
+ "checksum" => "8fa1d110d2544502509cc66ba8ec6685010d8c6d8373f4f14ebe721d4be157e0",
106
106
  "filename" => "appsignal-x86_64-linux-musl-all-static.tar.gz"
107
107
  },
108
108
  "dynamic" => {
109
- "checksum" => "87a704506c488a9f6fd582b2191085af9dc3c1ffb10eaa8586691474fc42f595",
109
+ "checksum" => "fc46dd29864165968d96bb78fde1c8970903488d80d97056e630636c736cf86f",
110
110
  "filename" => "appsignal-x86_64-linux-musl-all-dynamic.tar.gz"
111
111
  }
112
112
  },
113
113
  "aarch64-linux-musl" => {
114
114
  "static" => {
115
- "checksum" => "0ff6702bd976871f610f39ff6c2dd73c4535b12c15c81c0d0afab7650e75922d",
115
+ "checksum" => "a43895183baf017879332885a904208773befc14b9bd628efae6d1513052b782",
116
116
  "filename" => "appsignal-aarch64-linux-musl-all-static.tar.gz"
117
117
  },
118
118
  "dynamic" => {
119
- "checksum" => "516656660666791a5158765fdc8181f12c2c08763f257740c6e04d97cdcdb6c2",
119
+ "checksum" => "7e96b29348be655066cf162ae5c15248bba7d7177663e35e60a6c5ad243937d0",
120
120
  "filename" => "appsignal-aarch64-linux-musl-all-dynamic.tar.gz"
121
121
  }
122
122
  },
123
123
  "x86_64-freebsd" => {
124
124
  "static" => {
125
- "checksum" => "d973edc7f13cdad2993c415f17a680a4de3288ce57fc5ae0c69ef3a1ccbb2856",
125
+ "checksum" => "1b992f770bdbced09f7b5f18d7aa721710218d4a76a131adc7affe44d68684f0",
126
126
  "filename" => "appsignal-x86_64-freebsd-all-static.tar.gz"
127
127
  },
128
128
  "dynamic" => {
129
- "checksum" => "6720b701bb41257c4fcdb189c7196241c5e43a0a0f20f1614a1a8978e117f5c9",
129
+ "checksum" => "300b718986c10ff65f237e1d74086e9cc0f7079d7b531e3b6f9a64752f1aa6ee",
130
130
  "filename" => "appsignal-x86_64-freebsd-all-dynamic.tar.gz"
131
131
  }
132
132
  },
133
133
  "amd64-freebsd" => {
134
134
  "static" => {
135
- "checksum" => "d973edc7f13cdad2993c415f17a680a4de3288ce57fc5ae0c69ef3a1ccbb2856",
135
+ "checksum" => "1b992f770bdbced09f7b5f18d7aa721710218d4a76a131adc7affe44d68684f0",
136
136
  "filename" => "appsignal-x86_64-freebsd-all-static.tar.gz"
137
137
  },
138
138
  "dynamic" => {
139
- "checksum" => "6720b701bb41257c4fcdb189c7196241c5e43a0a0f20f1614a1a8978e117f5c9",
139
+ "checksum" => "300b718986c10ff65f237e1d74086e9cc0f7079d7b531e3b6f9a64752f1aa6ee",
140
140
  "filename" => "appsignal-x86_64-freebsd-all-dynamic.tar.gz"
141
141
  }
142
142
  }
@@ -35,9 +35,9 @@ module Appsignal
35
35
  # @since 2.0.0
36
36
  # @see Appsignal::Demo
37
37
  # @see Appsignal::CLI::Install
38
- # @see http://docs.appsignal.com/ruby/command-line/demo.html
38
+ # @see https://docs.appsignal.com/ruby/command-line/demo.html
39
39
  # AppSignal demo documentation
40
- # @see http://docs.appsignal.com/support/debugging.html
40
+ # @see https://docs.appsignal.com/support/debugging.html
41
41
  # Debugging AppSignal guide
42
42
  # @api private
43
43
  class Demo
@@ -196,7 +196,7 @@ module Appsignal
196
196
 
197
197
  Appsignal.config = Appsignal::Config.new(
198
198
  current_path,
199
- options[:environment],
199
+ options.fetch(:environment, ENV.fetch("RACK_ENV", ENV.fetch("RAILS_ENV", nil))),
200
200
  initial_config
201
201
  )
202
202
  Appsignal.config.write_to_environment
@@ -126,7 +126,7 @@ module Appsignal
126
126
  puts " require 'appsignal/integrations/sinatra'"
127
127
  puts
128
128
  puts " You can find more information in the documentation:"
129
- puts " http://docs.appsignal.com/ruby/integrations/sinatra.html"
129
+ puts " https://docs.appsignal.com/ruby/integrations/sinatra.html"
130
130
  press_any_key
131
131
  done_notice
132
132
  end
@@ -144,7 +144,7 @@ module Appsignal
144
144
  puts " require 'appsignal/integrations/padrino"
145
145
  puts
146
146
  puts " You can find more information in the documentation:"
147
- puts " http://docs.appsignal.com/ruby/integrations/padrino.html"
147
+ puts " https://docs.appsignal.com/ruby/integrations/padrino.html"
148
148
  press_any_key
149
149
  done_notice
150
150
  end
@@ -159,7 +159,7 @@ module Appsignal
159
159
 
160
160
  puts "Manual Grape configuration needed"
161
161
  puts " See the installation instructions at:"
162
- puts " http://docs.appsignal.com/ruby/integrations/grape.html"
162
+ puts " https://docs.appsignal.com/ruby/integrations/grape.html"
163
163
  press_any_key
164
164
  done_notice
165
165
  end
@@ -177,7 +177,7 @@ module Appsignal
177
177
  puts " require 'appsignal/integrations/hanami'"
178
178
  puts
179
179
  puts " You can find more information in the documentation:"
180
- puts " http://docs.appsignal.com/ruby/integrations/hanami.html"
180
+ puts " https://docs.appsignal.com/ruby/integrations/hanami.html"
181
181
  press_any_key
182
182
  done_notice
183
183
  end
@@ -234,7 +234,7 @@ module Appsignal
234
234
  end
235
235
  puts
236
236
  puts " See the documentation for more configuration options:"
237
- puts " http://docs.appsignal.com/gem-settings/configuration.html"
237
+ puts " https://docs.appsignal.com/gem-settings/configuration.html"
238
238
  press_any_key
239
239
  break
240
240
  end
@@ -197,9 +197,9 @@ module Appsignal
197
197
  # used to send the error.
198
198
  # @return [void]
199
199
  #
200
- # @see http://docs.appsignal.com/ruby/instrumentation/exception-handling.html
200
+ # @see https://docs.appsignal.com/ruby/instrumentation/exception-handling.html
201
201
  # Exception handling guide
202
- # @see http://docs.appsignal.com/ruby/instrumentation/tagging.html
202
+ # @see https://docs.appsignal.com/ruby/instrumentation/tagging.html
203
203
  # Tagging guide
204
204
  # @since 0.6.0
205
205
  def send_error(
@@ -296,7 +296,7 @@ module Appsignal
296
296
  # @return [void]
297
297
  #
298
298
  # @see Transaction#set_error
299
- # @see http://docs.appsignal.com/ruby/instrumentation/exception-handling.html
299
+ # @see https://docs.appsignal.com/ruby/instrumentation/exception-handling.html
300
300
  # Exception handling guide
301
301
  # @since 0.6.6
302
302
  def set_error(exception, tags = nil, namespace = nil)
@@ -435,7 +435,7 @@ module Appsignal
435
435
  # @return [void]
436
436
  #
437
437
  # @see Transaction.set_tags
438
- # @see http://docs.appsignal.com/ruby/instrumentation/tagging.html
438
+ # @see https://docs.appsignal.com/ruby/instrumentation/tagging.html
439
439
  # Tagging guide
440
440
  def tag_request(tags = {})
441
441
  return unless active?
@@ -468,7 +468,7 @@ module Appsignal
468
468
  # @return [void]
469
469
  #
470
470
  # @see Transaction#add_breadcrumb
471
- # @see http://docs.appsignal.com/ruby/instrumentation/breadcrumbs.html
471
+ # @see https://docs.appsignal.com/ruby/instrumentation/breadcrumbs.html
472
472
  # Breadcrumb reference
473
473
  # @since 2.12.0
474
474
  def add_breadcrumb(category, action, message = "", metadata = {}, time = Time.now.utc)
@@ -513,9 +513,9 @@ module Appsignal
513
513
  #
514
514
  # @see Appsignal::Transaction#instrument
515
515
  # @see .instrument_sql
516
- # @see http://docs.appsignal.com/ruby/instrumentation/instrumentation.html
516
+ # @see https://docs.appsignal.com/ruby/instrumentation/instrumentation.html
517
517
  # AppSignal custom instrumentation guide
518
- # @see http://docs.appsignal.com/api/event-names.html
518
+ # @see https://docs.appsignal.com/api/event-names.html
519
519
  # AppSignal event naming guide
520
520
  # @since 1.3.0
521
521
  def instrument(
@@ -557,9 +557,9 @@ module Appsignal
557
557
  # @return [Object] Returns the block's return value.
558
558
  #
559
559
  # @see .instrument
560
- # @see http://docs.appsignal.com/ruby/instrumentation/instrumentation.html
560
+ # @see https://docs.appsignal.com/ruby/instrumentation/instrumentation.html
561
561
  # AppSignal custom instrumentation guide
562
- # @see http://docs.appsignal.com/api/event-names.html
562
+ # @see https://docs.appsignal.com/api/event-names.html
563
563
  # AppSignal event naming guide
564
564
  # @since 2.0.0
565
565
  def instrument_sql(name, title = nil, body = nil, &block)
@@ -18,7 +18,7 @@ module Appsignal
18
18
  # Set config does not override data set in {#marker_data}.
19
19
  #
20
20
  # @see Appsignal::CLI::NotifyOfDeploy
21
- # @see http://docs.appsignal.com/appsignal/terminology.html#markers
21
+ # @see https://docs.appsignal.com/appsignal/terminology.html#markers
22
22
  # Terminology: Deploy marker
23
23
  # @api private
24
24
  class Marker
@@ -159,7 +159,7 @@ module Appsignal
159
159
  # @return [void]
160
160
  #
161
161
  # @see Appsignal.tag_request
162
- # @see http://docs.appsignal.com/ruby/instrumentation/tagging.html
162
+ # @see https://docs.appsignal.com/ruby/instrumentation/tagging.html
163
163
  # Tagging guide
164
164
  def set_tags(given_tags = {})
165
165
  @tags.merge!(given_tags)
@@ -177,7 +177,7 @@ module Appsignal
177
177
  # @return [void]
178
178
  #
179
179
  # @see Appsignal.add_breadcrumb
180
- # @see http://docs.appsignal.com/ruby/instrumentation/breadcrumbs.html
180
+ # @see https://docs.appsignal.com/ruby/instrumentation/breadcrumbs.html
181
181
  # Breadcrumb reference
182
182
  def add_breadcrumb(category, action, message = "", metadata = {}, time = Time.now.utc)
183
183
  @breadcrumbs.push(
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Appsignal
4
- VERSION = "3.3.6".freeze
4
+ VERSION = "3.3.7".freeze
5
5
  end
data/lib/appsignal.rb CHANGED
@@ -74,8 +74,8 @@ module Appsignal
74
74
  # This is not required for the automatic integrations AppSignal offers, but
75
75
  # this is required for all non-automatic integrations and pure Ruby
76
76
  # applications. For more information, see our [integrations
77
- # list](http://docs.appsignal.com/ruby/integrations/) and our [Integrating
78
- # AppSignal](http://docs.appsignal.com/ruby/instrumentation/integrating-appsignal.html)
77
+ # list](https://docs.appsignal.com/ruby/integrations/) and our [Integrating
78
+ # AppSignal](https://docs.appsignal.com/ruby/instrumentation/integrating-appsignal.html)
79
79
  # guide.
80
80
  #
81
81
  # To start the logger see {.start_logger}.
@@ -26,7 +26,7 @@ default: &defaults
26
26
  # - SystemExit
27
27
  # - SystemStackError
28
28
 
29
- # See http://docs.appsignal.com/ruby/configuration/options.html for
29
+ # See https://docs.appsignal.com/ruby/configuration/options.html for
30
30
  # all configuration options.
31
31
 
32
32
  # Configuration per environment, leave out an environment or set active
@@ -802,6 +802,39 @@ describe Appsignal::CLI::Diagnose, :api_stub => true, :send_report => :yes_cli_i
802
802
  end
803
803
  end
804
804
 
805
+ context "when the source is the RACK_ENV env variable", :send_report => :no_cli_option do
806
+ let(:config) { project_fixture_config("rack_env") }
807
+ let(:options) { {} }
808
+ before do
809
+ ENV["RACK_ENV"] = "rack_env"
810
+ run
811
+ end
812
+ after { ENV.delete("RACK_ENV") }
813
+
814
+ it "outputs the RACK_ENV variable value" do
815
+ expect(output).to include(
816
+ %(environment: "rack_env" (Loaded from: initial)\n)
817
+ )
818
+ end
819
+ end
820
+
821
+ context "when the source is the RAILS_ENV env variable", :send_report => :no_cli_option do
822
+ let(:config) { project_fixture_config("rails_env") }
823
+ let(:options) { {} }
824
+ before do
825
+ ENV.delete("RACK_ENV")
826
+ ENV["RAILS_ENV"] = "rails_env"
827
+ run
828
+ end
829
+ after { ENV.delete("RAILS_ENV") }
830
+
831
+ it "outputs the RAILS_ENV variable value" do
832
+ expect(output).to include(
833
+ %(environment: "rails_env" (Loaded from: initial)\n)
834
+ )
835
+ end
836
+ end
837
+
805
838
  context "when the source is multiple sources" do
806
839
  let(:options) { { :environment => "development" } }
807
840
  before do
@@ -469,7 +469,7 @@ describe Appsignal::CLI::Install do
469
469
  "Installing for Sinatra",
470
470
  "Sinatra requires some manual configuration.",
471
471
  "require 'appsignal/integrations/sinatra'",
472
- "http://docs.appsignal.com/ruby/integrations/sinatra.html"
472
+ "https://docs.appsignal.com/ruby/integrations/sinatra.html"
473
473
  ]
474
474
  end
475
475
  let(:app_name) { "Test app" }
@@ -536,7 +536,7 @@ describe Appsignal::CLI::Install do
536
536
  [
537
537
  "Installing for Padrino",
538
538
  "Padrino requires some manual configuration.",
539
- "http://docs.appsignal.com/ruby/integrations/padrino.html"
539
+ "https://docs.appsignal.com/ruby/integrations/padrino.html"
540
540
  ]
541
541
  end
542
542
  let(:app_name) { "Test app" }
@@ -603,7 +603,7 @@ describe Appsignal::CLI::Install do
603
603
  [
604
604
  "Installing for Grape",
605
605
  "Manual Grape configuration needed",
606
- "http://docs.appsignal.com/ruby/integrations/grape.html"
606
+ "https://docs.appsignal.com/ruby/integrations/grape.html"
607
607
  ]
608
608
  end
609
609
  let(:app_name) { "Test app" }
@@ -670,7 +670,7 @@ describe Appsignal::CLI::Install do
670
670
  [
671
671
  "Installing for Hanami",
672
672
  "Hanami requires some manual configuration.",
673
- "http://docs.appsignal.com/ruby/integrations/hanami.html"
673
+ "https://docs.appsignal.com/ruby/integrations/hanami.html"
674
674
  ]
675
675
  end
676
676
  let(:app_name) { "Test app" }
@@ -52,3 +52,9 @@ old_config_mixed_with_new_config:
52
52
  "REQUEST_METHOD", "REQUEST_URI", "SERVER_NAME", "SERVER_PORT",
53
53
  "SERVER_PROTOCOL", "HTTP_USER_AGENT"
54
54
  ]
55
+
56
+ rack_env:
57
+ <<: *defaults
58
+
59
+ rails_env:
60
+ <<: *defaults
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appsignal
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.6
4
+ version: 3.3.7
5
5
  platform: java
6
6
  authors:
7
7
  - Robert Beekman
8
8
  - Thijs Cadier
9
9
  - Tom de Bruijn
10
- autorequire:
10
+ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2023-02-22 00:00:00.000000000 Z
13
+ date: 2023-03-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rack
@@ -436,7 +436,7 @@ metadata:
436
436
  documentation_uri: https://docs.appsignal.com/ruby/
437
437
  homepage_uri: https://docs.appsignal.com/ruby/
438
438
  source_code_uri: https://github.com/appsignal/appsignal-ruby
439
- post_install_message:
439
+ post_install_message:
440
440
  rdoc_options: []
441
441
  require_paths:
442
442
  - lib
@@ -453,7 +453,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
453
453
  version: '0'
454
454
  requirements: []
455
455
  rubygems_version: 3.1.6
456
- signing_key:
456
+ signing_key:
457
457
  specification_version: 4
458
458
  summary: Logs performance and exception data from your app to appsignal.com
459
459
  test_files: