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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 04e6c482aca628dc01197096708683ce8e4e9340
4
- data.tar.gz: db0ba1d53f6b0da7d131ad1505c4111c16fb166a
3
+ metadata.gz: 0350232f5d3a6ec3503533f55ec40e31f7f8d332
4
+ data.tar.gz: d0a7745539d05747eb88f2b43469c73b8902f0bd
5
5
  SHA512:
6
- metadata.gz: 0bafc3318ec3bf831422e388142c5fd049260378ff0b8862a5b78a0f7f837ef82bef09ee29726f8a6dcc73e4fc92bea4fa8adfc46496f5163044742dc97d5251
7
- data.tar.gz: 84c3d789a1c9cd16ec6e18b46bcc6b03fe90666eb9b69f7c63e86277461e9d0d9fce21ca55ce47145825314e1c167ea60a9a494d8b33cec1406e1b7531d6dfff
6
+ metadata.gz: 2a29b7d6750d40d67889cf456f5f161b7c5f64fb405ce54c9986649b9179895560429b920568b1ca8ea947e8e38993b86086727315121a24fea2311d85b6bbc9
7
+ data.tar.gz: 396c3d1e3a5370363e4e0ae777e1c767cfb58a611103f5af939aa0d552b646998b36d40aa2b996b2b558c9aad9d0422ba619973dfaaac574c699fc32d19a2039
@@ -1,3 +1,6 @@
1
+ # 1.0.4
2
+ * Make working dir configurable using `APPSIGNAL_WORKING_DIR_PATH` or `:working_dir_path`
3
+
1
4
  # 1.0.3
2
5
  * Fix bug in completing JS transactions
3
6
  * Make Resque integration robust for bigger payloads
@@ -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).each do |var|
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
@@ -1,5 +1,5 @@
1
1
  require 'yaml'
2
2
 
3
3
  module Appsignal
4
- VERSION = '1.0.3'
4
+ VERSION = '1.0.4'
5
5
  end
@@ -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.3
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-15 00:00:00.000000000 Z
12
+ date: 2016-02-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rack