librato-rails 0.3.1 → 0.4.1

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.
Files changed (31) hide show
  1. data/lib/librato/rails/counter_cache.rb +6 -3
  2. data/lib/librato/rails/version.rb +1 -1
  3. data/lib/librato/rails/worker.rb +2 -2
  4. data/lib/librato/rails.rb +12 -10
  5. data/test/fixtures/config/librato.yml +2 -2
  6. data/test/remote/rails_remote_test.rb +3 -2
  7. data/test/unit/configuration_test.rb +12 -8
  8. metadata +182 -222
  9. data/test/dummy/db/development.sqlite3 +0 -0
  10. data/test/dummy/db/test.sqlite3 +0 -0
  11. data/test/dummy/log/development.log +0 -23936
  12. data/test/dummy/log/test.log +0 -20232
  13. data/test/dummy/test_env.sh +0 -2
  14. data/test/dummy/tmp/cache/assets/C94/D50/sprockets%2F1a49716f234a1b88976e3f09954f8f14 +0 -0
  15. data/test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
  16. data/test/dummy/tmp/cache/assets/CDF/870/sprockets%2Fb878faf942403e313a5b103e5d80488e +0 -0
  17. data/test/dummy/tmp/cache/assets/CE8/7E0/sprockets%2F178e2a1f9aa891d473009c7f3095df28 +0 -0
  18. data/test/dummy/tmp/cache/assets/CF9/7C0/sprockets%2F40fc2f3d2a468a00e463f1d313cb1683 +0 -0
  19. data/test/dummy/tmp/cache/assets/D04/890/sprockets%2F587335c079eef8d5a63784fc8f99905a +0 -0
  20. data/test/dummy/tmp/cache/assets/D05/D40/sprockets%2F1c9faaf28d05409b88ad3113374d613c +0 -0
  21. data/test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
  22. data/test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
  23. data/test/dummy/tmp/cache/assets/D4F/000/sprockets%2F25e44896aac12384727e9dab827ebef9 +0 -0
  24. data/test/dummy/tmp/cache/assets/D51/0D0/sprockets%2Fe895d60a653d8b87f7c5717a4d4cf1f3 +0 -0
  25. data/test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
  26. data/test/dummy/tmp/cache/assets/D8B/F90/sprockets%2Ffe6ce696e9141eb755d8eed79128e17c +0 -0
  27. data/test/dummy/tmp/cache/assets/D98/8B0/sprockets%2Fedbef6e0d0a4742346cf479f2c522eb0 +0 -0
  28. data/test/dummy/tmp/cache/assets/DA1/8B0/sprockets%2F65acae5ede4e92f105c5e8631407c7fc +0 -0
  29. data/test/dummy/tmp/cache/assets/DA5/7B0/sprockets%2Fa0fc1785d4dc1bde68dd7d5652d27a95 +0 -0
  30. data/test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
  31. data/test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
@@ -20,10 +20,13 @@ module Librato
20
20
  end
21
21
 
22
22
  def flush_to(queue)
23
+ counts = nil
23
24
  @lock.synchronize do
24
- @cache.each do |key, value|
25
- queue.add key => {:type => :counter, :value => value}
26
- end
25
+ counts = @cache.dup
26
+ @cache.clear
27
+ end
28
+ counts.each do |key, value|
29
+ queue.add key => value
27
30
  end
28
31
  end
29
32
 
@@ -1,5 +1,5 @@
1
1
  module Librato
2
2
  module Rails
3
- VERSION = "0.3.1"
3
+ VERSION = "0.4.1"
4
4
  end
5
5
  end
@@ -32,7 +32,7 @@ module Librato
32
32
  next_run += period
33
33
  end
34
34
  else
35
- sleep (next_run - now)
35
+ sleep(next_run - now)
36
36
  end
37
37
  end
38
38
  end
@@ -55,4 +55,4 @@ module Librato
55
55
  end
56
56
 
57
57
  end
58
- end
58
+ end
data/lib/librato/rails.rb CHANGED
@@ -58,14 +58,16 @@ module Librato
58
58
  # detect / update configuration
59
59
  def check_config
60
60
  if self.config_file && File.exists?(self.config_file)
61
- configs = YAML.load_file(config_file)
62
- if env_specific = configs[::Rails.env]
63
- settable = CONFIG_SETTABLE & env_specific.keys
64
- settable.each { |key| self.send("#{key}=", env_specific[key]) }
65
- end
61
+ logger.debug "[librato-rails] configuration file present, ignoring ENV variables"
62
+ env_specific = YAML.load(ERB.new(File.read(config_file)).result)[::Rails.env]
63
+ settable = CONFIG_SETTABLE & env_specific.keys
64
+ settable.each { |key| self.send("#{key}=", env_specific[key]) }
65
+ else
66
+ logger.debug "[librato-rails] no configuration file present, using ENV variables"
67
+ self.token = ENV['LIBRATO_METRICS_TOKEN'] if ENV['LIBRATO_METRICS_TOKEN']
68
+ self.user = ENV['LIBRATO_METRICS_USER'] if ENV['LIBRATO_METRICS_USER']
69
+ self.prefix = ENV['LIBRATO_METRICS_SOURCE'] if ENV['LIBRATO_METRICS_SOURCE']
66
70
  end
67
- self.token = ENV['LIBRATO_METRICS_TOKEN'] if ENV['LIBRATO_METRICS_TOKEN']
68
- self.user = ENV['LIBRATO_METRICS_USER'] if ENV['LIBRATO_METRICS_USER']
69
71
  end
70
72
 
71
73
  # check to see if we've forked into a process where a worker
@@ -73,8 +75,8 @@ module Librato
73
75
  def check_worker
74
76
  if @pid != $$
75
77
  start_worker
76
- #aggregate.clear
77
- #counters.clear
78
+ # aggregate.clear
79
+ # counters.clear
78
80
  end
79
81
  end
80
82
 
@@ -119,7 +121,7 @@ module Librato
119
121
  # run once during Rails startup sequence
120
122
  def setup
121
123
  check_config
122
- #return unless self.email && self.api_key
124
+ # return unless self.email && self.api_key
123
125
  logger.info "[librato-rails] starting up with #{app_server}..."
124
126
  @pid = $$
125
127
  if forking_server?
@@ -1,10 +1,10 @@
1
1
  test:
2
2
  user: 'test@bar.com'
3
- token: 'test api key'
3
+ token: <%= 'test api key' %>
4
4
  prefix: 'rails-test'
5
5
  flush_interval: 30
6
6
  source: 'custom-1'
7
7
 
8
8
  production:
9
9
  user: 'live@bar.com'
10
- token: 'live api key'
10
+ token: 'live api key'
@@ -43,10 +43,11 @@ class LibratoRailsRemoteTest < ActiveSupport::TestCase
43
43
  assert_equal 2, bar[source][0]['value']
44
44
  end
45
45
 
46
- test 'counters should persist through flush' do
46
+ test 'counters should not persist through flush' do
47
47
  Librato::Rails.increment 'knightrider'
48
- Librato::Rails.flush
49
48
  assert_equal 1, Librato::Rails.counters['knightrider']
49
+ Librato::Rails.flush
50
+ assert_equal nil, Librato::Rails.counters['knightrider']
50
51
  end
51
52
 
52
53
  test 'flush sends measures/timings' do
@@ -1,21 +1,24 @@
1
1
  require 'test_helper'
2
2
 
3
3
  class LibratoRailsAggregatorTest < MiniTest::Unit::TestCase
4
-
4
+
5
5
  def teardown
6
6
  ENV.delete('LIBRATO_METRICS_USER')
7
7
  ENV.delete('LIBRATO_METRICS_TOKEN')
8
+ ENV.delete('LIBRATO_METRICS_SOURCE')
8
9
  Librato::Rails.check_config
9
10
  end
10
-
11
+
11
12
  def test_environmental_variable_config
12
13
  ENV['LIBRATO_METRICS_USER'] = 'foo@bar.com'
13
14
  ENV['LIBRATO_METRICS_TOKEN'] = 'api_key'
15
+ ENV['LIBRATO_METRICS_SOURCE'] = 'appname'
14
16
  Librato::Rails.check_config
15
17
  assert_equal 'foo@bar.com', Librato::Rails.user
16
18
  assert_equal 'api_key', Librato::Rails.token
19
+ assert_equal 'appname', Librato::Rails.prefix
17
20
  end
18
-
21
+
19
22
  def test_config_file_config
20
23
  with_fixture_config do
21
24
  assert_equal 'test@bar.com', Librato::Rails.user
@@ -25,18 +28,19 @@ class LibratoRailsAggregatorTest < MiniTest::Unit::TestCase
25
28
  assert_equal 'custom-1', Librato::Rails.source
26
29
  end
27
30
  end
28
-
31
+
29
32
  def test_environmental_and_config_file_config
30
33
  ENV['LIBRATO_METRICS_USER'] = 'foo@bar.com'
31
34
  ENV['LIBRATO_METRICS_TOKEN'] = 'api_key'
35
+ ENV['LIBRATO_METRICS_SOURCE'] = 'appname'
32
36
  with_fixture_config do
33
- assert_equal 'foo@bar.com', Librato::Rails.user # from env
34
- assert_equal 'api_key', Librato::Rails.token # from env
37
+ assert_equal 'test@bar.com', Librato::Rails.user # from config file
38
+ assert_equal 'test api key', Librato::Rails.token # from config file
35
39
  assert_equal 'rails-test', Librato::Rails.prefix # from config file
36
40
  assert_equal 30, Librato::Rails.flush_interval # from config file
37
41
  end
38
42
  end
39
-
43
+
40
44
  def with_fixture_config
41
45
  fixture_config = File.join(File.dirname(__FILE__), '../fixtures/config/librato.yml')
42
46
  previous, Librato::Rails.config_file = Librato::Rails.config_file, fixture_config
@@ -45,5 +49,5 @@ class LibratoRailsAggregatorTest < MiniTest::Unit::TestCase
45
49
  ensure
46
50
  Librato::Rails.config_file = previous
47
51
  end
48
-
52
+
49
53
  end
metadata CHANGED
@@ -1,300 +1,260 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: librato-rails
3
- version: !ruby/object:Gem::Version
4
- version: 0.3.1
3
+ version: !ruby/object:Gem::Version
4
+ hash: 13
5
5
  prerelease:
6
+ segments:
7
+ - 0
8
+ - 4
9
+ - 1
10
+ version: 0.4.1
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Matt Sanders
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2012-09-10 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: rails
16
- requirement: !ruby/object:Gem::Requirement
17
+
18
+ date: 2012-09-29 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ version_requirements: &id001 !ruby/object:Gem::Requirement
17
22
  none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: '3.0'
22
- type: :runtime
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ hash: 7
27
+ segments:
28
+ - 3
29
+ - 0
30
+ version: "3.0"
31
+ requirement: *id001
32
+ name: rails
23
33
  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
34
+ type: :runtime
35
+ - !ruby/object:Gem::Dependency
36
+ version_requirements: &id002 !ruby/object:Gem::Requirement
33
37
  none: false
34
- requirements:
38
+ requirements:
35
39
  - - ~>
36
- - !ruby/object:Gem::Version
40
+ - !ruby/object:Gem::Version
41
+ hash: 3
42
+ segments:
43
+ - 0
44
+ - 7
45
+ - 0
37
46
  version: 0.7.0
38
- type: :runtime
47
+ requirement: *id002
48
+ name: librato-metrics
39
49
  prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
50
+ type: :runtime
51
+ - !ruby/object:Gem::Dependency
52
+ version_requirements: &id003 !ruby/object:Gem::Requirement
41
53
  none: false
42
- requirements:
43
- - - ~>
44
- - !ruby/object:Gem::Version
45
- version: 0.7.0
46
- - !ruby/object:Gem::Dependency
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ hash: 3
58
+ segments:
59
+ - 0
60
+ version: "0"
61
+ requirement: *id003
47
62
  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
63
  prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
64
+ type: :development
65
+ - !ruby/object:Gem::Dependency
66
+ version_requirements: &id004 !ruby/object:Gem::Requirement
57
67
  none: false
58
- requirements:
59
- - - ! '>='
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- - !ruby/object:Gem::Dependency
68
+ requirements:
69
+ - - ">="
70
+ - !ruby/object:Gem::Version
71
+ hash: 3
72
+ segments:
73
+ - 0
74
+ version: "0"
75
+ requirement: *id004
63
76
  name: minitest
64
- requirement: !ruby/object:Gem::Requirement
65
- none: false
66
- requirements:
67
- - - ! '>='
68
- - !ruby/object:Gem::Version
69
- version: '0'
70
- type: :development
71
77
  prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
- requirements:
75
- - - ! '>='
76
- - !ruby/object:Gem::Version
77
- version: '0'
78
- description: Report key app statistics to the Librato Metrics service and easily track
79
- your own custom metrics.
80
- email:
78
+ type: :development
79
+ description: Report key app statistics to the Librato Metrics service and easily track your own custom metrics.
80
+ email:
81
81
  - matt@librato.com
82
82
  executables: []
83
+
83
84
  extensions: []
85
+
84
86
  extra_rdoc_files: []
85
- files:
86
- - lib/librato/rack/middleware.rb
87
+
88
+ files:
87
89
  - lib/librato/rack.rb
90
+ - lib/librato/rails.rb
91
+ - lib/librato/rack/middleware.rb
88
92
  - lib/librato/rails/aggregator.rb
93
+ - lib/librato/rails/helpers.rb
94
+ - lib/librato/rails/worker.rb
95
+ - lib/librato/rails/subscribers.rb
89
96
  - lib/librato/rails/counter_cache.rb
90
97
  - lib/librato/rails/group.rb
91
- - lib/librato/rails/helpers.rb
92
98
  - lib/librato/rails/railtie.rb
93
- - lib/librato/rails/subscribers.rb
94
99
  - lib/librato/rails/version.rb
95
- - lib/librato/rails/worker.rb
96
- - lib/librato/rails.rb
97
100
  - lib/librato-rails.rb
98
101
  - lib/tasks/metrics-rails_tasks.rake
99
102
  - LICENSE
100
103
  - Rakefile
101
104
  - README.md
102
- - test/dummy/app/assets/javascripts/application.js
103
- - test/dummy/app/assets/javascripts/home.js
104
- - test/dummy/app/assets/javascripts/status.js
105
- - test/dummy/app/assets/stylesheets/application.css
106
- - test/dummy/app/assets/stylesheets/home.css
107
- - test/dummy/app/assets/stylesheets/status.css
108
- - test/dummy/app/controllers/application_controller.rb
109
- - test/dummy/app/controllers/home_controller.rb
110
- - test/dummy/app/controllers/status_controller.rb
111
- - test/dummy/app/controllers/user_controller.rb
112
- - test/dummy/app/helpers/application_helper.rb
113
- - test/dummy/app/helpers/home_helper.rb
114
- - test/dummy/app/helpers/status_helper.rb
115
- - test/dummy/app/mailers/user_mailer.rb
116
- - test/dummy/app/models/user.rb
117
- - test/dummy/app/views/home/index.html.erb
118
- - test/dummy/app/views/layouts/application.html.erb
119
- - test/dummy/app/views/status/code.html.erb
120
- - test/dummy/app/views/user_mailer/welcome_email.text.erb
121
- - test/dummy/config/application.rb
122
- - test/dummy/config/boot.rb
123
- - test/dummy/config/database.yml
124
- - test/dummy/config/environment.rb
105
+ - test/dummy/script/rails
125
106
  - test/dummy/config/environments/development.rb
126
107
  - test/dummy/config/environments/production.rb
127
108
  - test/dummy/config/environments/test.rb
128
- - test/dummy/config/initializers/backtrace_silencers.rb
109
+ - test/dummy/config/routes.rb
110
+ - test/dummy/config/database.yml
111
+ - test/dummy/config/unicorn.rb
129
112
  - test/dummy/config/initializers/inflections.rb
130
- - test/dummy/config/initializers/mime_types.rb
113
+ - test/dummy/config/initializers/wrap_parameters.rb
114
+ - test/dummy/config/initializers/backtrace_silencers.rb
131
115
  - test/dummy/config/initializers/secret_token.rb
132
- - test/dummy/config/initializers/session_store.rb
133
116
  - test/dummy/config/initializers/silence_assets.rb
134
- - test/dummy/config/initializers/wrap_parameters.rb
117
+ - test/dummy/config/initializers/mime_types.rb
118
+ - test/dummy/config/initializers/session_store.rb
135
119
  - test/dummy/config/locales/en.yml
136
- - test/dummy/config/routes.rb
137
- - test/dummy/config/unicorn.rb
138
- - test/dummy/config.ru
139
- - test/dummy/db/development.sqlite3
120
+ - test/dummy/config/environment.rb
121
+ - test/dummy/config/boot.rb
122
+ - test/dummy/config/application.rb
123
+ - test/dummy/Rakefile
140
124
  - test/dummy/db/migrate/20120719231810_create_users.rb
141
125
  - test/dummy/db/schema.rb
142
- - test/dummy/db/test.sqlite3
143
- - test/dummy/log/development.log
144
- - test/dummy/log/test.log
145
- - test/dummy/public/404.html
126
+ - test/dummy/config.ru
127
+ - test/dummy/app/assets/stylesheets/status.css
128
+ - test/dummy/app/assets/stylesheets/home.css
129
+ - test/dummy/app/assets/stylesheets/application.css
130
+ - test/dummy/app/assets/javascripts/status.js
131
+ - test/dummy/app/assets/javascripts/application.js
132
+ - test/dummy/app/assets/javascripts/home.js
133
+ - test/dummy/app/controllers/home_controller.rb
134
+ - test/dummy/app/controllers/status_controller.rb
135
+ - test/dummy/app/controllers/user_controller.rb
136
+ - test/dummy/app/controllers/application_controller.rb
137
+ - test/dummy/app/views/status/code.html.erb
138
+ - test/dummy/app/views/layouts/application.html.erb
139
+ - test/dummy/app/views/user_mailer/welcome_email.text.erb
140
+ - test/dummy/app/views/home/index.html.erb
141
+ - test/dummy/app/mailers/user_mailer.rb
142
+ - test/dummy/app/helpers/status_helper.rb
143
+ - test/dummy/app/helpers/home_helper.rb
144
+ - test/dummy/app/helpers/application_helper.rb
145
+ - test/dummy/app/models/user.rb
146
+ - test/dummy/README.rdoc
146
147
  - test/dummy/public/422.html
147
- - test/dummy/public/500.html
148
148
  - test/dummy/public/favicon.ico
149
- - test/dummy/Rakefile
150
- - test/dummy/README.rdoc
151
- - test/dummy/script/rails
152
- - test/dummy/test_env.sh
153
- - test/dummy/tmp/cache/assets/C94/D50/sprockets%2F1a49716f234a1b88976e3f09954f8f14
154
- - test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
155
- - test/dummy/tmp/cache/assets/CDF/870/sprockets%2Fb878faf942403e313a5b103e5d80488e
156
- - test/dummy/tmp/cache/assets/CE8/7E0/sprockets%2F178e2a1f9aa891d473009c7f3095df28
157
- - test/dummy/tmp/cache/assets/CF9/7C0/sprockets%2F40fc2f3d2a468a00e463f1d313cb1683
158
- - test/dummy/tmp/cache/assets/D04/890/sprockets%2F587335c079eef8d5a63784fc8f99905a
159
- - test/dummy/tmp/cache/assets/D05/D40/sprockets%2F1c9faaf28d05409b88ad3113374d613c
160
- - test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
161
- - test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
162
- - test/dummy/tmp/cache/assets/D4F/000/sprockets%2F25e44896aac12384727e9dab827ebef9
163
- - test/dummy/tmp/cache/assets/D51/0D0/sprockets%2Fe895d60a653d8b87f7c5717a4d4cf1f3
164
- - test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
165
- - test/dummy/tmp/cache/assets/D8B/F90/sprockets%2Ffe6ce696e9141eb755d8eed79128e17c
166
- - test/dummy/tmp/cache/assets/D98/8B0/sprockets%2Fedbef6e0d0a4742346cf479f2c522eb0
167
- - test/dummy/tmp/cache/assets/DA1/8B0/sprockets%2F65acae5ede4e92f105c5e8631407c7fc
168
- - test/dummy/tmp/cache/assets/DA5/7B0/sprockets%2Fa0fc1785d4dc1bde68dd7d5652d27a95
169
- - test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
170
- - test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
171
- - test/fixtures/config/librato.yml
172
- - test/integration/helper_test.rb
149
+ - test/dummy/public/404.html
150
+ - test/dummy/public/500.html
151
+ - test/metrics-rails_test.rb
152
+ - test/unit/group_test.rb
153
+ - test/unit/worker_test.rb
154
+ - test/unit/middleware_test.rb
155
+ - test/unit/counter_cache_test.rb
156
+ - test/unit/configuration_test.rb
157
+ - test/unit/aggregator_test.rb
173
158
  - test/integration/mail_test.rb
174
- - test/integration/request_test.rb
175
159
  - test/integration/sql_test.rb
176
- - test/metrics-rails_test.rb
177
- - test/remote/rails_remote_test.rb
160
+ - test/integration/request_test.rb
161
+ - test/integration/helper_test.rb
178
162
  - test/support/integration_case.rb
163
+ - test/remote/rails_remote_test.rb
179
164
  - test/test_helper.rb
180
- - test/unit/aggregator_test.rb
181
- - test/unit/configuration_test.rb
182
- - test/unit/counter_cache_test.rb
183
- - test/unit/group_test.rb
184
- - test/unit/middleware_test.rb
185
- - test/unit/worker_test.rb
165
+ - test/fixtures/config/librato.yml
186
166
  homepage: https://github.com/librato/librato-rails
187
167
  licenses: []
168
+
188
169
  post_install_message:
189
170
  rdoc_options: []
190
- require_paths:
171
+
172
+ require_paths:
191
173
  - lib
192
- required_ruby_version: !ruby/object:Gem::Requirement
174
+ required_ruby_version: !ruby/object:Gem::Requirement
193
175
  none: false
194
- requirements:
195
- - - ! '>='
196
- - !ruby/object:Gem::Version
197
- version: '0'
198
- segments:
176
+ requirements:
177
+ - - ">="
178
+ - !ruby/object:Gem::Version
179
+ hash: 3
180
+ segments:
199
181
  - 0
200
- hash: 2674653082492726438
201
- required_rubygems_version: !ruby/object:Gem::Requirement
182
+ version: "0"
183
+ required_rubygems_version: !ruby/object:Gem::Requirement
202
184
  none: false
203
- requirements:
204
- - - ! '>='
205
- - !ruby/object:Gem::Version
206
- version: '0'
207
- segments:
185
+ requirements:
186
+ - - ">="
187
+ - !ruby/object:Gem::Version
188
+ hash: 3
189
+ segments:
208
190
  - 0
209
- hash: 2674653082492726438
191
+ version: "0"
210
192
  requirements: []
193
+
211
194
  rubyforge_project:
212
- rubygems_version: 1.8.24
195
+ rubygems_version: 1.8.10
213
196
  signing_key:
214
197
  specification_version: 3
215
198
  summary: Use Librato Metrics with your Rails 3 app
216
- test_files:
217
- - test/dummy/app/assets/javascripts/application.js
218
- - test/dummy/app/assets/javascripts/home.js
219
- - test/dummy/app/assets/javascripts/status.js
220
- - test/dummy/app/assets/stylesheets/application.css
221
- - test/dummy/app/assets/stylesheets/home.css
222
- - test/dummy/app/assets/stylesheets/status.css
223
- - test/dummy/app/controllers/application_controller.rb
224
- - test/dummy/app/controllers/home_controller.rb
225
- - test/dummy/app/controllers/status_controller.rb
226
- - test/dummy/app/controllers/user_controller.rb
227
- - test/dummy/app/helpers/application_helper.rb
228
- - test/dummy/app/helpers/home_helper.rb
229
- - test/dummy/app/helpers/status_helper.rb
230
- - test/dummy/app/mailers/user_mailer.rb
231
- - test/dummy/app/models/user.rb
232
- - test/dummy/app/views/home/index.html.erb
233
- - test/dummy/app/views/layouts/application.html.erb
234
- - test/dummy/app/views/status/code.html.erb
235
- - test/dummy/app/views/user_mailer/welcome_email.text.erb
236
- - test/dummy/config/application.rb
237
- - test/dummy/config/boot.rb
238
- - test/dummy/config/database.yml
239
- - test/dummy/config/environment.rb
199
+ test_files:
200
+ - test/dummy/script/rails
240
201
  - test/dummy/config/environments/development.rb
241
202
  - test/dummy/config/environments/production.rb
242
203
  - test/dummy/config/environments/test.rb
243
- - test/dummy/config/initializers/backtrace_silencers.rb
204
+ - test/dummy/config/routes.rb
205
+ - test/dummy/config/database.yml
206
+ - test/dummy/config/unicorn.rb
244
207
  - test/dummy/config/initializers/inflections.rb
245
- - test/dummy/config/initializers/mime_types.rb
208
+ - test/dummy/config/initializers/wrap_parameters.rb
209
+ - test/dummy/config/initializers/backtrace_silencers.rb
246
210
  - test/dummy/config/initializers/secret_token.rb
247
- - test/dummy/config/initializers/session_store.rb
248
211
  - test/dummy/config/initializers/silence_assets.rb
249
- - test/dummy/config/initializers/wrap_parameters.rb
212
+ - test/dummy/config/initializers/mime_types.rb
213
+ - test/dummy/config/initializers/session_store.rb
250
214
  - test/dummy/config/locales/en.yml
251
- - test/dummy/config/routes.rb
252
- - test/dummy/config/unicorn.rb
253
- - test/dummy/config.ru
254
- - test/dummy/db/development.sqlite3
215
+ - test/dummy/config/environment.rb
216
+ - test/dummy/config/boot.rb
217
+ - test/dummy/config/application.rb
218
+ - test/dummy/Rakefile
255
219
  - test/dummy/db/migrate/20120719231810_create_users.rb
256
220
  - test/dummy/db/schema.rb
257
- - test/dummy/db/test.sqlite3
258
- - test/dummy/log/development.log
259
- - test/dummy/log/test.log
260
- - test/dummy/public/404.html
221
+ - test/dummy/config.ru
222
+ - test/dummy/app/assets/stylesheets/status.css
223
+ - test/dummy/app/assets/stylesheets/home.css
224
+ - test/dummy/app/assets/stylesheets/application.css
225
+ - test/dummy/app/assets/javascripts/status.js
226
+ - test/dummy/app/assets/javascripts/application.js
227
+ - test/dummy/app/assets/javascripts/home.js
228
+ - test/dummy/app/controllers/home_controller.rb
229
+ - test/dummy/app/controllers/status_controller.rb
230
+ - test/dummy/app/controllers/user_controller.rb
231
+ - test/dummy/app/controllers/application_controller.rb
232
+ - test/dummy/app/views/status/code.html.erb
233
+ - test/dummy/app/views/layouts/application.html.erb
234
+ - test/dummy/app/views/user_mailer/welcome_email.text.erb
235
+ - test/dummy/app/views/home/index.html.erb
236
+ - test/dummy/app/mailers/user_mailer.rb
237
+ - test/dummy/app/helpers/status_helper.rb
238
+ - test/dummy/app/helpers/home_helper.rb
239
+ - test/dummy/app/helpers/application_helper.rb
240
+ - test/dummy/app/models/user.rb
241
+ - test/dummy/README.rdoc
261
242
  - test/dummy/public/422.html
262
- - test/dummy/public/500.html
263
243
  - test/dummy/public/favicon.ico
264
- - test/dummy/Rakefile
265
- - test/dummy/README.rdoc
266
- - test/dummy/script/rails
267
- - test/dummy/test_env.sh
268
- - test/dummy/tmp/cache/assets/C94/D50/sprockets%2F1a49716f234a1b88976e3f09954f8f14
269
- - test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
270
- - test/dummy/tmp/cache/assets/CDF/870/sprockets%2Fb878faf942403e313a5b103e5d80488e
271
- - test/dummy/tmp/cache/assets/CE8/7E0/sprockets%2F178e2a1f9aa891d473009c7f3095df28
272
- - test/dummy/tmp/cache/assets/CF9/7C0/sprockets%2F40fc2f3d2a468a00e463f1d313cb1683
273
- - test/dummy/tmp/cache/assets/D04/890/sprockets%2F587335c079eef8d5a63784fc8f99905a
274
- - test/dummy/tmp/cache/assets/D05/D40/sprockets%2F1c9faaf28d05409b88ad3113374d613c
275
- - test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
276
- - test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
277
- - test/dummy/tmp/cache/assets/D4F/000/sprockets%2F25e44896aac12384727e9dab827ebef9
278
- - test/dummy/tmp/cache/assets/D51/0D0/sprockets%2Fe895d60a653d8b87f7c5717a4d4cf1f3
279
- - test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
280
- - test/dummy/tmp/cache/assets/D8B/F90/sprockets%2Ffe6ce696e9141eb755d8eed79128e17c
281
- - test/dummy/tmp/cache/assets/D98/8B0/sprockets%2Fedbef6e0d0a4742346cf479f2c522eb0
282
- - test/dummy/tmp/cache/assets/DA1/8B0/sprockets%2F65acae5ede4e92f105c5e8631407c7fc
283
- - test/dummy/tmp/cache/assets/DA5/7B0/sprockets%2Fa0fc1785d4dc1bde68dd7d5652d27a95
284
- - test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
285
- - test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
286
- - test/fixtures/config/librato.yml
287
- - test/integration/helper_test.rb
244
+ - test/dummy/public/404.html
245
+ - test/dummy/public/500.html
246
+ - test/metrics-rails_test.rb
247
+ - test/unit/group_test.rb
248
+ - test/unit/worker_test.rb
249
+ - test/unit/middleware_test.rb
250
+ - test/unit/counter_cache_test.rb
251
+ - test/unit/configuration_test.rb
252
+ - test/unit/aggregator_test.rb
288
253
  - test/integration/mail_test.rb
289
- - test/integration/request_test.rb
290
254
  - test/integration/sql_test.rb
291
- - test/metrics-rails_test.rb
292
- - test/remote/rails_remote_test.rb
255
+ - test/integration/request_test.rb
256
+ - test/integration/helper_test.rb
293
257
  - test/support/integration_case.rb
258
+ - test/remote/rails_remote_test.rb
294
259
  - test/test_helper.rb
295
- - test/unit/aggregator_test.rb
296
- - test/unit/configuration_test.rb
297
- - test/unit/counter_cache_test.rb
298
- - test/unit/group_test.rb
299
- - test/unit/middleware_test.rb
300
- - test/unit/worker_test.rb
260
+ - test/fixtures/config/librato.yml