appsignal 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/appsignal/config.rb +5 -2
- data/lib/appsignal/version.rb +1 -1
- data/spec/lib/appsignal/config_spec.rb +12 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0350232f5d3a6ec3503533f55ec40e31f7f8d332
|
4
|
+
data.tar.gz: d0a7745539d05747eb88f2b43469c73b8902f0bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a29b7d6750d40d67889cf456f5f161b7c5f64fb405ce54c9986649b9179895560429b920568b1ca8ea947e8e38993b86086727315121a24fea2311d85b6bbc9
|
7
|
+
data.tar.gz: 396c3d1e3a5370363e4e0ae777e1c767cfb58a611103f5af939aa0d552b646998b36d40aa2b996b2b558c9aad9d0422ba619973dfaaac574c699fc32d19a2039
|
data/CHANGELOG.md
CHANGED
data/lib/appsignal/config.rb
CHANGED
@@ -42,7 +42,8 @@ module Appsignal
|
|
42
42
|
'APPSIGNAL_HTTP_PROXY' => :http_proxy,
|
43
43
|
'APPSIGNAL_ENABLE_ALLOCATION_TRACKING' => :enable_allocation_tracking,
|
44
44
|
'APPSIGNAL_ENABLE_GC_INSTRUMENTATION' => :enable_gc_instrumentation,
|
45
|
-
'APPSIGNAL_RUNNING_IN_CONTAINER' => :running_in_container
|
45
|
+
'APPSIGNAL_RUNNING_IN_CONTAINER' => :running_in_container,
|
46
|
+
'APPSIGNAL_WORKING_DIR_PATH' => :working_dir_path
|
46
47
|
}.freeze
|
47
48
|
|
48
49
|
attr_reader :root_path, :env, :initial_config, :config_hash
|
@@ -103,6 +104,7 @@ module Appsignal
|
|
103
104
|
ENV['APPSIGNAL_HTTP_PROXY'] = config_hash[:http_proxy]
|
104
105
|
ENV['APPSIGNAL_IGNORE_ACTIONS'] = config_hash[:ignore_actions].join(',')
|
105
106
|
ENV['APPSIGNAL_RUNNING_IN_CONTAINER'] = config_hash[:running_in_container].to_s
|
107
|
+
ENV['APPSIGNAL_WORKING_DIR_PATH'] = config_hash[:working_dir_path] if config_hash[:working_dir_path]
|
106
108
|
end
|
107
109
|
|
108
110
|
protected
|
@@ -150,7 +152,8 @@ module Appsignal
|
|
150
152
|
|
151
153
|
# Configuration with string type
|
152
154
|
%w(APPSIGNAL_PUSH_API_KEY APPSIGNAL_APP_NAME APPSIGNAL_PUSH_API_ENDPOINT
|
153
|
-
APPSIGNAL_FRONTEND_ERROR_CATCHING_PATH APPSIGNAL_HTTP_PROXY APPSIGNAL_LOG_PATH
|
155
|
+
APPSIGNAL_FRONTEND_ERROR_CATCHING_PATH APPSIGNAL_HTTP_PROXY APPSIGNAL_LOG_PATH
|
156
|
+
APPSIGNAL_WORKING_DIR_PATH).each do |var|
|
154
157
|
if env_var = ENV[var]
|
155
158
|
config[ENV_TO_KEY_MAPPING[var]] = env_var
|
156
159
|
end
|
data/lib/appsignal/version.rb
CHANGED
@@ -98,6 +98,18 @@ describe Appsignal::Config do
|
|
98
98
|
ENV['APPSIGNAL_HTTP_PROXY'].should == 'http://localhost'
|
99
99
|
ENV['APPSIGNAL_IGNORE_ACTIONS'].should == 'action1,action2'
|
100
100
|
ENV['APPSIGNAL_RUNNING_IN_CONTAINER'].should == 'false'
|
101
|
+
ENV['APPSIGNAL_WORKING_DIR_PATH'].should be_nil
|
102
|
+
end
|
103
|
+
|
104
|
+
context "if working_dir_path is set" do
|
105
|
+
before do
|
106
|
+
subject.config_hash[:working_dir_path] = '/tmp/appsignal2'
|
107
|
+
subject.write_to_environment
|
108
|
+
end
|
109
|
+
|
110
|
+
it "should write the current config to env vars" do
|
111
|
+
ENV['APPSIGNAL_WORKING_DIR_PATH'].should == '/tmp/appsignal2'
|
112
|
+
end
|
101
113
|
end
|
102
114
|
end
|
103
115
|
|
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: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Beekman
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-02-
|
12
|
+
date: 2016-02-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rack
|