heroku_mongo_watcher 0.2.3.beta → 0.2.4.beta

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.md CHANGED
@@ -59,7 +59,8 @@ found (see output above), set to false it will just put the total in the summary
59
59
  ## Prereqs
60
60
 
61
61
  1. need to have a heroku account, and have the heroku gem running on your machine
62
- 2. need to be able to run mongostat (e.q. has at least read-only admin access to your mongos)
62
+ 2. need to be able to run mongostat (e.q. has at least read-only admin access to your mongos), and have mongo installed
63
+ locally
63
64
 
64
65
  ## To install
65
66
 
@@ -43,7 +43,7 @@ class HerokuMongoWatcher::CLI
43
43
  heroku_watcher = Thread.new('heroku_logs') do
44
44
 
45
45
  cmd_string = "heroku logs --tail --app #{config[:heroku_appname]}"
46
- cmd_string = cmd_string + " --account #{config[:heroku_account]}" if config[:heroku_account]
46
+ cmd_string = cmd_string + " --account #{config[:heroku_account]}" if config[:heroku_account] && config[:heroku_account].length > 0
47
47
  IO.popen(cmd_string) do |f|
48
48
  while line = f.gets
49
49
  @mutex.synchronize do
@@ -59,7 +59,7 @@ class HerokuMongoWatcher::CLI
59
59
  while true do
60
60
  dynos = 0
61
61
  cmd_string = "heroku ps --app #{config[:heroku_appname]}"
62
- cmd_string = cmd_string + " --account #{config[:heroku_account]}" if config[:heroku_account]
62
+ cmd_string = cmd_string + " --account #{config[:heroku_account]}" if config[:heroku_account] && config[:heroku_account].length > 0
63
63
  IO.popen(cmd_string) do |p|
64
64
  while line = p.gets
65
65
  dynos += 1 if line =~ /^web/ && line.split(' ')[1] == 'up'
@@ -1,3 +1,3 @@
1
1
  module HerokuMongoWatcher
2
- VERSION = "0.2.3.beta"
2
+ VERSION = "0.2.4.beta"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: heroku_mongo_watcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3.beta
4
+ version: 0.2.4.beta
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-07-24 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: term-ansicolor
16
- requirement: &2158070480 !ruby/object:Gem::Requirement
16
+ requirement: &2160280340 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2158070480
24
+ version_requirements: *2160280340
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: tlsmail
27
- requirement: &2158069020 !ruby/object:Gem::Requirement
27
+ requirement: &2160279260 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *2158069020
35
+ version_requirements: *2160279260
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: heroku
38
- requirement: &2158068300 !ruby/object:Gem::Requirement
38
+ requirement: &2160277560 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *2158068300
46
+ version_requirements: *2160277560
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: trollop
49
- requirement: &2158067500 !ruby/object:Gem::Requirement
49
+ requirement: &2160274100 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '0'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *2158067500
57
+ version_requirements: *2160274100
58
58
  description: Also notifies you when certain thresholds are hit. I have found this
59
59
  much more accurate than New Relic
60
60
  email: