metrics-rails 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +24 -0
- data/README.md +105 -0
- data/Rakefile +41 -0
- data/lib/metrics-rails.rb +1 -0
- data/lib/metrics/rails.rb +226 -0
- data/lib/metrics/rails/aggregator.rb +48 -0
- data/lib/metrics/rails/counter_cache.rb +41 -0
- data/lib/metrics/rails/group.rb +27 -0
- data/lib/metrics/rails/helpers.rb +19 -0
- data/lib/metrics/rails/railtie.rb +17 -0
- data/lib/metrics/rails/subscribers.rb +77 -0
- data/lib/metrics/rails/version.rb +5 -0
- data/lib/metrics/rails/worker.rb +58 -0
- data/lib/tasks/metrics-rails_tasks.rake +4 -0
- data/test/dummy/README.rdoc +261 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +15 -0
- data/test/dummy/app/assets/javascripts/home.js +2 -0
- data/test/dummy/app/assets/javascripts/status.js +2 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/assets/stylesheets/home.css +4 -0
- data/test/dummy/app/assets/stylesheets/status.css +4 -0
- data/test/dummy/app/controllers/application_controller.rb +10 -0
- data/test/dummy/app/controllers/home_controller.rb +33 -0
- data/test/dummy/app/controllers/status_controller.rb +5 -0
- data/test/dummy/app/controllers/user_controller.rb +13 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/helpers/home_helper.rb +2 -0
- data/test/dummy/app/helpers/status_helper.rb +2 -0
- data/test/dummy/app/mailers/user_mailer.rb +8 -0
- data/test/dummy/app/models/user.rb +18 -0
- data/test/dummy/app/views/home/index.html.erb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/app/views/status/code.html.erb +2 -0
- data/test/dummy/app/views/user_mailer/welcome_email.text.erb +1 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +63 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +37 -0
- data/test/dummy/config/environments/production.rb +67 -0
- data/test/dummy/config/environments/test.rb +37 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +15 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/silence_assets.rb +16 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +62 -0
- data/test/dummy/config/unicorn.rb +16 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20120719231810_create_users.rb +10 -0
- data/test/dummy/db/schema.rb +23 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +161447 -0
- data/test/dummy/log/test.log +19173 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +25 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/dummy/test_env.sh +2 -0
- data/test/dummy/tmp/cache/assets/C94/D50/sprockets%2F1a49716f234a1b88976e3f09954f8f14 +0 -0
- data/test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/CDF/870/sprockets%2Fb878faf942403e313a5b103e5d80488e +0 -0
- data/test/dummy/tmp/cache/assets/CE8/7E0/sprockets%2F178e2a1f9aa891d473009c7f3095df28 +0 -0
- data/test/dummy/tmp/cache/assets/CF9/7C0/sprockets%2F40fc2f3d2a468a00e463f1d313cb1683 +0 -0
- data/test/dummy/tmp/cache/assets/D04/890/sprockets%2F587335c079eef8d5a63784fc8f99905a +0 -0
- data/test/dummy/tmp/cache/assets/D05/D40/sprockets%2F1c9faaf28d05409b88ad3113374d613c +0 -0
- data/test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/dummy/tmp/cache/assets/D4F/000/sprockets%2F25e44896aac12384727e9dab827ebef9 +0 -0
- data/test/dummy/tmp/cache/assets/D51/0D0/sprockets%2Fe895d60a653d8b87f7c5717a4d4cf1f3 +0 -0
- data/test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/D8B/F90/sprockets%2Ffe6ce696e9141eb755d8eed79128e17c +0 -0
- data/test/dummy/tmp/cache/assets/D98/8B0/sprockets%2Fedbef6e0d0a4742346cf479f2c522eb0 +0 -0
- data/test/dummy/tmp/cache/assets/DA1/8B0/sprockets%2F65acae5ede4e92f105c5e8631407c7fc +0 -0
- data/test/dummy/tmp/cache/assets/DA5/7B0/sprockets%2Fa0fc1785d4dc1bde68dd7d5652d27a95 +0 -0
- data/test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/fixtures/config/metrics.yml +10 -0
- data/test/integration/helper_test.rb +29 -0
- data/test/integration/mail_test.rb +15 -0
- data/test/integration/request_test.rb +53 -0
- data/test/integration/sql_test.rb +30 -0
- data/test/metrics-rails_test.rb +39 -0
- data/test/remote/rails_remote_test.rb +105 -0
- data/test/support/integration_case.rb +19 -0
- data/test/test_helper.rb +23 -0
- data/test/unit/aggregator_test.rb +16 -0
- data/test/unit/configuration_test.rb +49 -0
- data/test/unit/counter_cache_test.rb +19 -0
- data/test/unit/group_test.rb +49 -0
- data/test/unit/worker_test.rb +31 -0
- metadata +280 -0
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class MetricsRailsAggregatorTest < ActiveSupport::TestCase
|
4
|
+
|
5
|
+
test 'adding timings' do
|
6
|
+
agg = Metrics::Rails::Aggregator.new
|
7
|
+
|
8
|
+
agg.timing 'request.time.total', 23.7
|
9
|
+
agg.timing 'request.time.db', 5.3
|
10
|
+
agg.timing 'request.time.total', 64.3
|
11
|
+
|
12
|
+
assert_equal 2, agg['request.time.total'][:count]
|
13
|
+
assert_equal 88.0, agg['request.time.total'][:sum]
|
14
|
+
end
|
15
|
+
|
16
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class MetricsRailsAggregatorTest < ActiveSupport::TestCase
|
4
|
+
|
5
|
+
test 'environmental variable config' do
|
6
|
+
ENV['METRICS_EMAIL'] = 'foo@bar.com'
|
7
|
+
ENV['METRICS_API_KEY'] = 'api_key'
|
8
|
+
Metrics::Rails.check_config
|
9
|
+
assert_equal 'foo@bar.com', Metrics::Rails.email
|
10
|
+
assert_equal 'api_key', Metrics::Rails.api_key
|
11
|
+
end
|
12
|
+
|
13
|
+
test 'config file config' do
|
14
|
+
with_fixture_config do
|
15
|
+
assert_equal 'test@bar.com', Metrics::Rails.email
|
16
|
+
assert_equal 'test api key', Metrics::Rails.api_key
|
17
|
+
assert_equal 'rails-test', Metrics::Rails.prefix
|
18
|
+
assert_equal 30, Metrics::Rails.flush_interval
|
19
|
+
assert_equal 'custom-1', Metrics::Rails.source
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
test 'environmental and config file config' do
|
24
|
+
ENV['METRICS_EMAIL'] = 'foo@bar.com'
|
25
|
+
ENV['METRICS_API_KEY'] = 'api_key'
|
26
|
+
with_fixture_config do
|
27
|
+
assert_equal 'foo@bar.com', Metrics::Rails.email # from env
|
28
|
+
assert_equal 'api_key', Metrics::Rails.api_key # from env
|
29
|
+
assert_equal 'rails-test', Metrics::Rails.prefix # from config file
|
30
|
+
assert_equal 30, Metrics::Rails.flush_interval # from config file
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
def teardown
|
35
|
+
ENV.delete('METRICS_EMAIL')
|
36
|
+
ENV.delete('METRICS_API_KEY')
|
37
|
+
Metrics::Rails.check_config
|
38
|
+
end
|
39
|
+
|
40
|
+
def with_fixture_config
|
41
|
+
fixture_config = File.join(File.dirname(__FILE__), '../fixtures/config/metrics.yml')
|
42
|
+
previous, Metrics::Rails.config_file = Metrics::Rails.config_file, fixture_config
|
43
|
+
Metrics::Rails.check_config
|
44
|
+
yield
|
45
|
+
ensure
|
46
|
+
Metrics::Rails.config_file = previous
|
47
|
+
end
|
48
|
+
|
49
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class MetricsRailsCounterCacheTest < ActiveSupport::TestCase
|
4
|
+
|
5
|
+
test 'basic operations' do
|
6
|
+
cc = Metrics::Rails::CounterCache.new
|
7
|
+
cc.increment :foo
|
8
|
+
assert_equal 1, cc[:foo]
|
9
|
+
|
10
|
+
# accepts optional argument
|
11
|
+
cc.increment :foo, 5
|
12
|
+
assert_equal 6, cc[:foo]
|
13
|
+
|
14
|
+
# strings or symbols work
|
15
|
+
cc.increment 'foo'
|
16
|
+
assert_equal 7, cc['foo']
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class MetricsRailsGroupTest < ActiveSupport::TestCase
|
4
|
+
|
5
|
+
test 'basic grouping' do
|
6
|
+
Metrics::Rails.group 'fruit' do |g|
|
7
|
+
g.increment 'bites'
|
8
|
+
g.increment 'nibbles', 5
|
9
|
+
|
10
|
+
g.measure 'banana', 12
|
11
|
+
g.measure 'banana', 10
|
12
|
+
|
13
|
+
g.timing 'grow_time', 122.2
|
14
|
+
g.timing 'grow_time', 24.3
|
15
|
+
end
|
16
|
+
|
17
|
+
assert_equal 1, counters['fruit.bites']
|
18
|
+
assert_equal 5, counters['fruit.nibbles']
|
19
|
+
|
20
|
+
assert_equal 2, aggregate['fruit.banana'][:count]
|
21
|
+
assert_equal 22, aggregate['fruit.banana'][:sum]
|
22
|
+
|
23
|
+
assert_equal 2, aggregate['fruit.grow_time'][:count]
|
24
|
+
assert_equal 146.5, aggregate['fruit.grow_time'][:sum]
|
25
|
+
end
|
26
|
+
|
27
|
+
test 'nesting' do
|
28
|
+
Metrics::Rails.group 'street' do |s|
|
29
|
+
s.increment 'count'
|
30
|
+
s.group 'market' do |m|
|
31
|
+
m.increment 'tenants', 10
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
assert_equal 1, counters['street.count']
|
36
|
+
assert_equal 10, counters['street.market.tenants']
|
37
|
+
end
|
38
|
+
|
39
|
+
private
|
40
|
+
|
41
|
+
def aggregate
|
42
|
+
Metrics::Rails.aggregate
|
43
|
+
end
|
44
|
+
|
45
|
+
def counters
|
46
|
+
Metrics::Rails.counters
|
47
|
+
end
|
48
|
+
|
49
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class MetricsRailsWorkerTest < ActiveSupport::TestCase
|
4
|
+
|
5
|
+
test 'basic use' do
|
6
|
+
worker = Metrics::Rails::Worker.new
|
7
|
+
counter = 0
|
8
|
+
Thread.new do
|
9
|
+
worker.run_periodically(0.1) do
|
10
|
+
counter += 1
|
11
|
+
end
|
12
|
+
end
|
13
|
+
sleep 0.45
|
14
|
+
assert_equal counter, 4
|
15
|
+
end
|
16
|
+
|
17
|
+
test 'start time' do
|
18
|
+
worker = Metrics::Rails::Worker.new
|
19
|
+
|
20
|
+
time = Time.now
|
21
|
+
start = worker.start_time(60)
|
22
|
+
assert start >= time + 60, 'should be more than 60 seconds from when run'
|
23
|
+
assert_equal 0, start.sec, 'should start on a whole minute'
|
24
|
+
|
25
|
+
time = Time.now
|
26
|
+
start = worker.start_time(10)
|
27
|
+
assert start >= time + 10, 'should be more than 10 seconds from when run'
|
28
|
+
assert_equal 0, start.sec%10, 'should be evenly divisible with whole minutes'
|
29
|
+
end
|
30
|
+
|
31
|
+
end
|
metadata
ADDED
@@ -0,0 +1,280 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: metrics-rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Matt Sanders
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-07-27 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rails
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '3.0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '3.0'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: librato-metrics
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ~>
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: 0.7.0
|
38
|
+
type: :runtime
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 0.7.0
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: sqlite3
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
description: Report key app statistics to the Librato Metrics service and easily track
|
63
|
+
your own custom metrics.
|
64
|
+
email:
|
65
|
+
- matt@librato.com
|
66
|
+
executables: []
|
67
|
+
extensions: []
|
68
|
+
extra_rdoc_files: []
|
69
|
+
files:
|
70
|
+
- lib/metrics/rails/aggregator.rb
|
71
|
+
- lib/metrics/rails/counter_cache.rb
|
72
|
+
- lib/metrics/rails/group.rb
|
73
|
+
- lib/metrics/rails/helpers.rb
|
74
|
+
- lib/metrics/rails/railtie.rb
|
75
|
+
- lib/metrics/rails/subscribers.rb
|
76
|
+
- lib/metrics/rails/version.rb
|
77
|
+
- lib/metrics/rails/worker.rb
|
78
|
+
- lib/metrics/rails.rb
|
79
|
+
- lib/metrics-rails.rb
|
80
|
+
- lib/tasks/metrics-rails_tasks.rake
|
81
|
+
- LICENSE
|
82
|
+
- Rakefile
|
83
|
+
- README.md
|
84
|
+
- test/dummy/app/assets/javascripts/application.js
|
85
|
+
- test/dummy/app/assets/javascripts/home.js
|
86
|
+
- test/dummy/app/assets/javascripts/status.js
|
87
|
+
- test/dummy/app/assets/stylesheets/application.css
|
88
|
+
- test/dummy/app/assets/stylesheets/home.css
|
89
|
+
- test/dummy/app/assets/stylesheets/status.css
|
90
|
+
- test/dummy/app/controllers/application_controller.rb
|
91
|
+
- test/dummy/app/controllers/home_controller.rb
|
92
|
+
- test/dummy/app/controllers/status_controller.rb
|
93
|
+
- test/dummy/app/controllers/user_controller.rb
|
94
|
+
- test/dummy/app/helpers/application_helper.rb
|
95
|
+
- test/dummy/app/helpers/home_helper.rb
|
96
|
+
- test/dummy/app/helpers/status_helper.rb
|
97
|
+
- test/dummy/app/mailers/user_mailer.rb
|
98
|
+
- test/dummy/app/models/user.rb
|
99
|
+
- test/dummy/app/views/home/index.html.erb
|
100
|
+
- test/dummy/app/views/layouts/application.html.erb
|
101
|
+
- test/dummy/app/views/status/code.html.erb
|
102
|
+
- test/dummy/app/views/user_mailer/welcome_email.text.erb
|
103
|
+
- test/dummy/config/application.rb
|
104
|
+
- test/dummy/config/boot.rb
|
105
|
+
- test/dummy/config/database.yml
|
106
|
+
- test/dummy/config/environment.rb
|
107
|
+
- test/dummy/config/environments/development.rb
|
108
|
+
- test/dummy/config/environments/production.rb
|
109
|
+
- test/dummy/config/environments/test.rb
|
110
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
111
|
+
- test/dummy/config/initializers/inflections.rb
|
112
|
+
- test/dummy/config/initializers/mime_types.rb
|
113
|
+
- test/dummy/config/initializers/secret_token.rb
|
114
|
+
- test/dummy/config/initializers/session_store.rb
|
115
|
+
- test/dummy/config/initializers/silence_assets.rb
|
116
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
117
|
+
- test/dummy/config/locales/en.yml
|
118
|
+
- test/dummy/config/routes.rb
|
119
|
+
- test/dummy/config/unicorn.rb
|
120
|
+
- test/dummy/config.ru
|
121
|
+
- test/dummy/db/development.sqlite3
|
122
|
+
- test/dummy/db/migrate/20120719231810_create_users.rb
|
123
|
+
- test/dummy/db/schema.rb
|
124
|
+
- test/dummy/db/test.sqlite3
|
125
|
+
- test/dummy/log/development.log
|
126
|
+
- test/dummy/log/test.log
|
127
|
+
- test/dummy/public/404.html
|
128
|
+
- test/dummy/public/422.html
|
129
|
+
- test/dummy/public/500.html
|
130
|
+
- test/dummy/public/favicon.ico
|
131
|
+
- test/dummy/Rakefile
|
132
|
+
- test/dummy/README.rdoc
|
133
|
+
- test/dummy/script/rails
|
134
|
+
- test/dummy/test_env.sh
|
135
|
+
- test/dummy/tmp/cache/assets/C94/D50/sprockets%2F1a49716f234a1b88976e3f09954f8f14
|
136
|
+
- test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
|
137
|
+
- test/dummy/tmp/cache/assets/CDF/870/sprockets%2Fb878faf942403e313a5b103e5d80488e
|
138
|
+
- test/dummy/tmp/cache/assets/CE8/7E0/sprockets%2F178e2a1f9aa891d473009c7f3095df28
|
139
|
+
- test/dummy/tmp/cache/assets/CF9/7C0/sprockets%2F40fc2f3d2a468a00e463f1d313cb1683
|
140
|
+
- test/dummy/tmp/cache/assets/D04/890/sprockets%2F587335c079eef8d5a63784fc8f99905a
|
141
|
+
- test/dummy/tmp/cache/assets/D05/D40/sprockets%2F1c9faaf28d05409b88ad3113374d613c
|
142
|
+
- test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
|
143
|
+
- test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
|
144
|
+
- test/dummy/tmp/cache/assets/D4F/000/sprockets%2F25e44896aac12384727e9dab827ebef9
|
145
|
+
- test/dummy/tmp/cache/assets/D51/0D0/sprockets%2Fe895d60a653d8b87f7c5717a4d4cf1f3
|
146
|
+
- test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
|
147
|
+
- test/dummy/tmp/cache/assets/D8B/F90/sprockets%2Ffe6ce696e9141eb755d8eed79128e17c
|
148
|
+
- test/dummy/tmp/cache/assets/D98/8B0/sprockets%2Fedbef6e0d0a4742346cf479f2c522eb0
|
149
|
+
- test/dummy/tmp/cache/assets/DA1/8B0/sprockets%2F65acae5ede4e92f105c5e8631407c7fc
|
150
|
+
- test/dummy/tmp/cache/assets/DA5/7B0/sprockets%2Fa0fc1785d4dc1bde68dd7d5652d27a95
|
151
|
+
- test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
|
152
|
+
- test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
|
153
|
+
- test/fixtures/config/metrics.yml
|
154
|
+
- test/integration/helper_test.rb
|
155
|
+
- test/integration/mail_test.rb
|
156
|
+
- test/integration/request_test.rb
|
157
|
+
- test/integration/sql_test.rb
|
158
|
+
- test/metrics-rails_test.rb
|
159
|
+
- test/remote/rails_remote_test.rb
|
160
|
+
- test/support/integration_case.rb
|
161
|
+
- test/test_helper.rb
|
162
|
+
- test/unit/aggregator_test.rb
|
163
|
+
- test/unit/configuration_test.rb
|
164
|
+
- test/unit/counter_cache_test.rb
|
165
|
+
- test/unit/group_test.rb
|
166
|
+
- test/unit/worker_test.rb
|
167
|
+
homepage: https://github.com/librato/metrics-rails
|
168
|
+
licenses: []
|
169
|
+
post_install_message:
|
170
|
+
rdoc_options: []
|
171
|
+
require_paths:
|
172
|
+
- lib
|
173
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
174
|
+
none: false
|
175
|
+
requirements:
|
176
|
+
- - ! '>='
|
177
|
+
- !ruby/object:Gem::Version
|
178
|
+
version: '0'
|
179
|
+
segments:
|
180
|
+
- 0
|
181
|
+
hash: -3211601922657433338
|
182
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
183
|
+
none: false
|
184
|
+
requirements:
|
185
|
+
- - ! '>='
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
188
|
+
segments:
|
189
|
+
- 0
|
190
|
+
hash: -3211601922657433338
|
191
|
+
requirements: []
|
192
|
+
rubyforge_project:
|
193
|
+
rubygems_version: 1.8.24
|
194
|
+
signing_key:
|
195
|
+
specification_version: 3
|
196
|
+
summary: Use Librato Metrics with your Rails 3 app
|
197
|
+
test_files:
|
198
|
+
- test/dummy/app/assets/javascripts/application.js
|
199
|
+
- test/dummy/app/assets/javascripts/home.js
|
200
|
+
- test/dummy/app/assets/javascripts/status.js
|
201
|
+
- test/dummy/app/assets/stylesheets/application.css
|
202
|
+
- test/dummy/app/assets/stylesheets/home.css
|
203
|
+
- test/dummy/app/assets/stylesheets/status.css
|
204
|
+
- test/dummy/app/controllers/application_controller.rb
|
205
|
+
- test/dummy/app/controllers/home_controller.rb
|
206
|
+
- test/dummy/app/controllers/status_controller.rb
|
207
|
+
- test/dummy/app/controllers/user_controller.rb
|
208
|
+
- test/dummy/app/helpers/application_helper.rb
|
209
|
+
- test/dummy/app/helpers/home_helper.rb
|
210
|
+
- test/dummy/app/helpers/status_helper.rb
|
211
|
+
- test/dummy/app/mailers/user_mailer.rb
|
212
|
+
- test/dummy/app/models/user.rb
|
213
|
+
- test/dummy/app/views/home/index.html.erb
|
214
|
+
- test/dummy/app/views/layouts/application.html.erb
|
215
|
+
- test/dummy/app/views/status/code.html.erb
|
216
|
+
- test/dummy/app/views/user_mailer/welcome_email.text.erb
|
217
|
+
- test/dummy/config/application.rb
|
218
|
+
- test/dummy/config/boot.rb
|
219
|
+
- test/dummy/config/database.yml
|
220
|
+
- test/dummy/config/environment.rb
|
221
|
+
- test/dummy/config/environments/development.rb
|
222
|
+
- test/dummy/config/environments/production.rb
|
223
|
+
- test/dummy/config/environments/test.rb
|
224
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
225
|
+
- test/dummy/config/initializers/inflections.rb
|
226
|
+
- test/dummy/config/initializers/mime_types.rb
|
227
|
+
- test/dummy/config/initializers/secret_token.rb
|
228
|
+
- test/dummy/config/initializers/session_store.rb
|
229
|
+
- test/dummy/config/initializers/silence_assets.rb
|
230
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
231
|
+
- test/dummy/config/locales/en.yml
|
232
|
+
- test/dummy/config/routes.rb
|
233
|
+
- test/dummy/config/unicorn.rb
|
234
|
+
- test/dummy/config.ru
|
235
|
+
- test/dummy/db/development.sqlite3
|
236
|
+
- test/dummy/db/migrate/20120719231810_create_users.rb
|
237
|
+
- test/dummy/db/schema.rb
|
238
|
+
- test/dummy/db/test.sqlite3
|
239
|
+
- test/dummy/log/development.log
|
240
|
+
- test/dummy/log/test.log
|
241
|
+
- test/dummy/public/404.html
|
242
|
+
- test/dummy/public/422.html
|
243
|
+
- test/dummy/public/500.html
|
244
|
+
- test/dummy/public/favicon.ico
|
245
|
+
- test/dummy/Rakefile
|
246
|
+
- test/dummy/README.rdoc
|
247
|
+
- test/dummy/script/rails
|
248
|
+
- test/dummy/test_env.sh
|
249
|
+
- test/dummy/tmp/cache/assets/C94/D50/sprockets%2F1a49716f234a1b88976e3f09954f8f14
|
250
|
+
- test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
|
251
|
+
- test/dummy/tmp/cache/assets/CDF/870/sprockets%2Fb878faf942403e313a5b103e5d80488e
|
252
|
+
- test/dummy/tmp/cache/assets/CE8/7E0/sprockets%2F178e2a1f9aa891d473009c7f3095df28
|
253
|
+
- test/dummy/tmp/cache/assets/CF9/7C0/sprockets%2F40fc2f3d2a468a00e463f1d313cb1683
|
254
|
+
- test/dummy/tmp/cache/assets/D04/890/sprockets%2F587335c079eef8d5a63784fc8f99905a
|
255
|
+
- test/dummy/tmp/cache/assets/D05/D40/sprockets%2F1c9faaf28d05409b88ad3113374d613c
|
256
|
+
- test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
|
257
|
+
- test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
|
258
|
+
- test/dummy/tmp/cache/assets/D4F/000/sprockets%2F25e44896aac12384727e9dab827ebef9
|
259
|
+
- test/dummy/tmp/cache/assets/D51/0D0/sprockets%2Fe895d60a653d8b87f7c5717a4d4cf1f3
|
260
|
+
- test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
|
261
|
+
- test/dummy/tmp/cache/assets/D8B/F90/sprockets%2Ffe6ce696e9141eb755d8eed79128e17c
|
262
|
+
- test/dummy/tmp/cache/assets/D98/8B0/sprockets%2Fedbef6e0d0a4742346cf479f2c522eb0
|
263
|
+
- test/dummy/tmp/cache/assets/DA1/8B0/sprockets%2F65acae5ede4e92f105c5e8631407c7fc
|
264
|
+
- test/dummy/tmp/cache/assets/DA5/7B0/sprockets%2Fa0fc1785d4dc1bde68dd7d5652d27a95
|
265
|
+
- test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
|
266
|
+
- test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
|
267
|
+
- test/fixtures/config/metrics.yml
|
268
|
+
- test/integration/helper_test.rb
|
269
|
+
- test/integration/mail_test.rb
|
270
|
+
- test/integration/request_test.rb
|
271
|
+
- test/integration/sql_test.rb
|
272
|
+
- test/metrics-rails_test.rb
|
273
|
+
- test/remote/rails_remote_test.rb
|
274
|
+
- test/support/integration_case.rb
|
275
|
+
- test/test_helper.rb
|
276
|
+
- test/unit/aggregator_test.rb
|
277
|
+
- test/unit/configuration_test.rb
|
278
|
+
- test/unit/counter_cache_test.rb
|
279
|
+
- test/unit/group_test.rb
|
280
|
+
- test/unit/worker_test.rb
|