scout_apm 0.1.14 → 0.1.15

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: 9e39795a06f1fa8ed47e67d607b5aed80eb18283
4
- data.tar.gz: 349093f6c3d8c93981c53c56e995a4a903986385
3
+ metadata.gz: 2de2504dc757ce65e42e18f3fb18afa86a7e89da
4
+ data.tar.gz: a707556d8c0cd7423a9713dab0f25b25f0e36c8c
5
5
  SHA512:
6
- metadata.gz: 6d4afbfd3cba70feff6444f636056970963433577cc096ff41a9ece6bda3dd7c455cbebd8be7146d31f8913893a9f6d11292ff4bfafbe9a980e961b7f1f4ace9
7
- data.tar.gz: a2e27c9726c7f185d45639a599ed7bf82f4b67104f0e48013aeadb15f9f4cd12d021d5b4baf3a6c2c5326960d55a54f7edf8b124900e9f8eb9fe3cd72c4570b3
6
+ metadata.gz: d4bee1a9d688b961fdc338d95757c38bcbe6b6bed75f84d7101a5fb85c389239bc687eb44bc2c44f2f6f909672cc717e1dc94e2e849cae227d8d2d9e493e5d3d
7
+ data.tar.gz: 8de5e6aed0e783986df2e5b5a2cc7c682ea95c8af8b6dff57bedb1a3131ee8fc118f8b8d8e51c3e1ff9e71818bafb86ade1e16a0cd4c4fc012b021f87d7caf2a
data/CHANGELOG.markdown CHANGED
@@ -1,3 +1,8 @@
1
+ # 0.1.15
2
+
3
+ * Add new `application_root` option to override the autodetected location of
4
+ the application.
5
+
1
6
  # 0.1.14
2
7
 
3
8
  * Add new `data_file` option to configuration, to control the location of the
@@ -3,6 +3,19 @@ require 'erb'
3
3
 
4
4
  require 'scout_apm/environment'
5
5
 
6
+ # Valid Config Options:
7
+ #
8
+ # application_root - override the detected directory of the application
9
+ # data_file - override the default temporary storage location. Must be a location in a writable directory
10
+ # key - the account key with Scout APM. Found in Settings in the Web UI
11
+ # log_file_path - either a directory or "STDOUT".
12
+ # log_level - DEBUG / INFO / WARN as usual
13
+ # monitor - true or false. False prevents any instrumentation from starting
14
+ # name - override the name reported to APM. This is the name that shows in the Web UI
15
+ #
16
+ # Any of these config settings can be set with an environment variable prefixed
17
+ # by SCOUT_ and uppercasing the key: SCOUT_LOG_LEVEL for instance.
18
+
6
19
  module ScoutApm
7
20
  class Config
8
21
  DEFAULTS = {
@@ -58,12 +58,16 @@ module ScoutApm
58
58
  end
59
59
 
60
60
  def root
61
+ if override_root = Agent.instance.config.value("application_root")
62
+ return override_root
63
+ end
64
+
61
65
  if framework == :rails
62
66
  RAILS_ROOT.to_s
63
67
  elsif framework == :rails3_or_4
64
68
  Rails.root
65
69
  elsif framework == :sinatra
66
- Sinatra::Application.root
70
+ Sinatra::Application.root || "."
67
71
  else
68
72
  '.'
69
73
  end
@@ -1,4 +1,4 @@
1
1
  module ScoutApm
2
- VERSION = "0.1.14"
2
+ VERSION = "0.1.15"
3
3
  end
4
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scout_apm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.14
4
+ version: 0.1.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Derek Haynes
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-09-18 00:00:00.000000000 Z
12
+ date: 2015-09-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: minitest