nimble_nodes 0.1.6 → 0.1.7

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.6
1
+ 0.1.7
@@ -8,8 +8,8 @@ module NimbleNodes
8
8
  end
9
9
 
10
10
  def initialize(env)
11
- @dynos_in_use = env['HTTP_X_HEROKU_DYNOS_IN_USE']
12
- @request_queue_depth = env['HTTP_X_HEROKU_QUEUE_DEPTH']
11
+ @dynos_in_use = env['HTTP_X_HEROKU_DYNOS_IN_USE'].to_i
12
+ @request_queue_depth = env['HTTP_X_HEROKU_QUEUE_DEPTH'].to_i
13
13
  end
14
14
 
15
15
  def post
@@ -20,6 +20,7 @@ module NimbleNodes
20
20
  end
21
21
 
22
22
  def post?
23
+ return true
23
24
  return false if ENV['NN_APP_PAUSED_AT']
24
25
  dynos_maxed_out? or queue_depth_too_long? or unused_dynos?
25
26
  end
data/nimble_nodes.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{nimble_nodes}
8
- s.version = "0.1.6"
8
+ s.version = "0.1.7"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jordan Glasner"]
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.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jordan Glasner