nimble_nodes 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -6,7 +6,7 @@ module NimbleNodes
6
6
 
7
7
 
8
8
  def call(env)
9
- @report = NimbleNodes::Report.new(request)
9
+ @report = NimbleNodes::Report.new(env)
10
10
  @report.post if @report.post?
11
11
  # now, execute the request using our Rails app
12
12
  response = @app.call(env)
@@ -1,9 +1,9 @@
1
1
  module NimbleNodes
2
2
 
3
3
  class Report
4
- def initializer(request)
5
- @dynos_in_use = request.headers['HTTP_X_HEROKU_DYNOS_IN_USE']
6
- @request_queue_depth = request.headers['HTTP_X_HEROKU_QUEUE_DEPTH']
4
+ def initializer(env)
5
+ @dynos_in_use = env['HTTP_X_HEROKU_DYNOS_IN_USE']
6
+ @request_queue_depth = env['HTTP_X_HEROKU_QUEUE_DEPTH']
7
7
  end
8
8
 
9
9
  def post
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nimble_nodes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jordan Glasner