scout_rails 1.1.2 → 1.1.3
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.
- data/.ruby-version +1 -0
- data/CHANGELOG.markdown +4 -0
- data/README.markdown +5 -5
- data/lib/scout_rails.rb +1 -1
- data/lib/scout_rails/agent.rb +2 -2
- data/lib/scout_rails/environment.rb +3 -3
- data/lib/scout_rails/instruments/{rails3 → rails3_or_4}/action_controller_instruments.rb +1 -1
- data/lib/scout_rails/version.rb +1 -1
- metadata +6 -4
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
ruby-1.9.3-p392
|
data/CHANGELOG.markdown
CHANGED
data/README.markdown
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
__Rails application monitoring is avaiable by invite-only @ Scout.__
|
2
|
+
|
1
3
|
# ScoutRails
|
2
4
|
|
3
5
|
A Ruby gem for detailed Rails application performance analysis. Metrics are reported to [Scout](https://scoutapp.com), a hosted server and application monitoring service. For general server monitoring, see our [server monitoring agent](https://github.com/scoutapp/scout-client).
|
@@ -24,13 +26,11 @@ Your config file should look like:
|
|
24
26
|
|
25
27
|
## Supported Frameworks
|
26
28
|
|
27
|
-
* Rails 2.2
|
29
|
+
* Rails 2.2 through Rails 4
|
28
30
|
|
29
31
|
## Supported Rubies
|
30
32
|
|
31
|
-
* Ruby 1.8.7
|
32
|
-
* Ruby 1.9.2
|
33
|
-
* Ruby 1.9.3
|
33
|
+
* Ruby 1.8.7 through Ruby 2.1.2
|
34
34
|
|
35
35
|
## Supported Application Servers
|
36
36
|
|
@@ -41,4 +41,4 @@ Your config file should look like:
|
|
41
41
|
|
42
42
|
## Help
|
43
43
|
|
44
|
-
See our [troubleshooting tips](https://scoutapp.com/info/support_app_monitoring) and/or email support@scoutapp.com if you need a hand.
|
44
|
+
See our [troubleshooting tips](https://scoutapp.com/info/support_app_monitoring) and/or email support@scoutapp.com if you need a hand.
|
data/lib/scout_rails.rb
CHANGED
@@ -24,7 +24,7 @@ require File.expand_path('../scout_rails/transaction_sample.rb', __FILE__)
|
|
24
24
|
require File.expand_path('../scout_rails/instruments/process/process_cpu.rb', __FILE__)
|
25
25
|
require File.expand_path('../scout_rails/instruments/process/process_memory.rb', __FILE__)
|
26
26
|
|
27
|
-
if defined?(Rails) and Rails.respond_to?(:version) and Rails.version
|
27
|
+
if defined?(Rails) and Rails.respond_to?(:version) and Rails.version >= '3'
|
28
28
|
module ScoutRails
|
29
29
|
class Railtie < Rails::Railtie
|
30
30
|
initializer "scout_rails.start" do |app|
|
data/lib/scout_rails/agent.rb
CHANGED
@@ -194,8 +194,8 @@ module ScoutRails
|
|
194
194
|
case environment.framework
|
195
195
|
when :rails
|
196
196
|
require File.expand_path(File.join(File.dirname(__FILE__),'instruments/rails/action_controller_instruments.rb'))
|
197
|
-
when :
|
198
|
-
require File.expand_path(File.join(File.dirname(__FILE__),'instruments/
|
197
|
+
when :rails3_or_4
|
198
|
+
require File.expand_path(File.join(File.dirname(__FILE__),'instruments/rails3_or_4/action_controller_instruments.rb'))
|
199
199
|
end
|
200
200
|
require File.expand_path(File.join(File.dirname(__FILE__),'instruments/active_record_instruments.rb'))
|
201
201
|
require File.expand_path(File.join(File.dirname(__FILE__),'instruments/net_http.rb'))
|
@@ -4,7 +4,7 @@ module ScoutRails
|
|
4
4
|
def env
|
5
5
|
@env ||= case framework
|
6
6
|
when :rails then RAILS_ENV.dup
|
7
|
-
when :
|
7
|
+
when :rails3_or_4 then Rails.env
|
8
8
|
when :sinatra
|
9
9
|
ENV['RACK_ENV'] || ENV['RAILS_ENV'] || 'development'
|
10
10
|
end
|
@@ -16,7 +16,7 @@ module ScoutRails
|
|
16
16
|
if Rails::VERSION::MAJOR < 3
|
17
17
|
:rails
|
18
18
|
else
|
19
|
-
:
|
19
|
+
:rails3_or_4
|
20
20
|
end
|
21
21
|
when defined?(::Sinatra) && defined?(::Sinatra::Base) then :sinatra
|
22
22
|
else :ruby
|
@@ -42,7 +42,7 @@ module ScoutRails
|
|
42
42
|
def root
|
43
43
|
if framework == :rails
|
44
44
|
RAILS_ROOT.to_s
|
45
|
-
elsif framework == :
|
45
|
+
elsif framework == :rails3_or_4
|
46
46
|
Rails.root
|
47
47
|
elsif framework == :sinatra
|
48
48
|
Sinatra::Application.root
|
data/lib/scout_rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scout_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2014-09-05 00:00:00.000000000 Z
|
14
14
|
dependencies: []
|
15
15
|
description: Monitors a Ruby on Rails application and reports detailed metrics on
|
16
16
|
performance to Scout, a hosted monitoring service.
|
@@ -21,6 +21,7 @@ extensions: []
|
|
21
21
|
extra_rdoc_files: []
|
22
22
|
files:
|
23
23
|
- .gitignore
|
24
|
+
- .ruby-version
|
24
25
|
- CHANGELOG.markdown
|
25
26
|
- Gemfile
|
26
27
|
- LICENSE.markdown
|
@@ -40,7 +41,7 @@ files:
|
|
40
41
|
- lib/scout_rails/instruments/process/process_cpu.rb
|
41
42
|
- lib/scout_rails/instruments/process/process_memory.rb
|
42
43
|
- lib/scout_rails/instruments/rails/action_controller_instruments.rb
|
43
|
-
- lib/scout_rails/instruments/
|
44
|
+
- lib/scout_rails/instruments/rails3_or_4/action_controller_instruments.rb
|
44
45
|
- lib/scout_rails/layaway.rb
|
45
46
|
- lib/scout_rails/layaway_file.rb
|
46
47
|
- lib/scout_rails/metric_meta.rb
|
@@ -71,8 +72,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
71
72
|
version: '0'
|
72
73
|
requirements: []
|
73
74
|
rubyforge_project: scout_rails
|
74
|
-
rubygems_version: 1.8.
|
75
|
+
rubygems_version: 1.8.23
|
75
76
|
signing_key:
|
76
77
|
specification_version: 3
|
77
78
|
summary: Rails application performance monitoring
|
78
79
|
test_files: []
|
80
|
+
has_rdoc:
|