nimble_nodes 0.1.7 → 0.1.8

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.7
1
+ 0.1.8
@@ -20,8 +20,9 @@ module NimbleNodes
20
20
  end
21
21
 
22
22
  def post?
23
+ return false unless NimbleNodes.installed?
23
24
  return true
24
- return false if ENV['NN_APP_PAUSED_AT']
25
+ return false if NimbleNodes.paused?
25
26
  dynos_maxed_out? or queue_depth_too_long? or unused_dynos?
26
27
  end
27
28
 
@@ -12,7 +12,7 @@ module NimbleNodes
12
12
  end
13
13
 
14
14
  def self.url_to(path)
15
- ENV['NN_SERVER_DOMAIN'] + path
15
+ 'http://' + ENV['NN_SERVER_DOMAIN'] + path
16
16
  # 'http://nimblenodes.com' + path
17
17
  end
18
18
 
data/lib/nimble_nodes.rb CHANGED
@@ -20,6 +20,14 @@ module NimbleNodes
20
20
  report.post if report.post?
21
21
  end
22
22
 
23
+ def self.installed?
24
+ not ENV['NN_SERVER_DOMAIN'].nil?
25
+ end
26
+
27
+ def self.paused?
28
+ not ENV['NN_APP_PAUSED_AT'].nil?
29
+ end
30
+
23
31
  end
24
32
 
25
33
  NimbleNodes.files.each { |file| require File.dirname(__FILE__) + "/nimble_nodes/#{file}" }
data/nimble_nodes.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{nimble_nodes}
8
- s.version = "0.1.7"
8
+ s.version = "0.1.8"
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"]
12
- s.date = %q{2010-03-11}
12
+ s.date = %q{2010-03-23}
13
13
  s.description = %q{automatically scales dynos and workers at Heroku}
14
14
  s.email = %q{jordan@digitalignition.com}
15
15
  s.extra_rdoc_files = [
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.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jordan Glasner
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-03-11 00:00:00 -05:00
12
+ date: 2010-03-23 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency