nimble_nodes 0.1.0 → 0.1.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.
data/README.rdoc CHANGED
@@ -1,4 +1,4 @@
1
- = NimbleNodes
1
+ = Coming Soon: NimbleNodes
2
2
 
3
3
  Automatic scaling for Heroku Dynos (and Delayed Job Workers coming soon). See http://nimblenodes.com for more information.
4
4
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -3,7 +3,7 @@ module NimbleNodes
3
3
  module Dynos
4
4
 
5
5
  def self.max
6
- ENV['NN_DYNO_POOL_MAX']
6
+ ENV['NN_DYNOS_POOL_MAX']
7
7
  end
8
8
 
9
9
  def self.max_request_queue
@@ -6,7 +6,7 @@ module NimbleNodes
6
6
 
7
7
 
8
8
  def call(env)
9
- @report = NimbleNodes::Report.new
9
+ @report = NimbleNodes::Report.new(request)
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
5
- @dynos_in_use = ENV['HTTP_X_HEROKU_DYNOS_IN_USE']
6
- @request_queue_depth = ENV['HTTP_X_HEROKU_QUEUE_DEPTH']
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']
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.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jordan Glasner