what 0.0.1 → 0.0.2

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/bin/what CHANGED
@@ -22,7 +22,7 @@ unless What::Config.loaded?
22
22
  exit
23
23
  end
24
24
 
25
- Thin::Server.start('0.0.0.0', 8164) do
25
+ Thin::Server.start('0.0.0.0', 9428) do
26
26
  run What::Server.new
27
27
  end
28
28
 
@@ -2,7 +2,7 @@ class What::Modules::Unicorn < What::Modules::Base
2
2
  @unicorns = []
3
3
 
4
4
  def check!
5
- @unicorns = `ps aux`.grep(/unicorn_rails worker/).map do |ln|
5
+ @unicorns = `ps aux`.split("\n").grep(/unicorn_rails worker/).map do |ln|
6
6
  ln =~ /^\w+\s+(\d+).*(\d+:\d\d(?:\.\d\d)?) unicorn/
7
7
  {:pid => $1, :cpu_time => $2}
8
8
  end
data/lib/what/modules.rb CHANGED
@@ -2,7 +2,9 @@ module What::Modules
2
2
  # load all modules defined in what/modules, in addition to any paths
3
3
  # specified in the config file.
4
4
  def self.load_all
5
- globs = [File.join(File.dirname(__FILE__), 'modules', '*.rb')]
5
+ require 'what/modules/base'
6
+
7
+ globs = ['what/modules/*.rb']
6
8
 
7
9
  if What::Config['module_paths']
8
10
  What::Config['module_paths'].each do |module_path|
data/lib/what/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module What
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,13 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: what
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
5
4
  prerelease:
6
- segments:
7
- - 0
8
- - 0
9
- - 1
10
- version: 0.0.1
5
+ version: 0.0.2
11
6
  platform: ruby
12
7
  authors:
13
8
  - Ryan Lower
@@ -27,9 +22,6 @@ dependencies:
27
22
  requirements:
28
23
  - - ">="
29
24
  - !ruby/object:Gem::Version
30
- hash: 3
31
- segments:
32
- - 0
33
25
  version: "0"
34
26
  type: :runtime
35
27
  version_requirements: *id001
@@ -41,9 +33,6 @@ dependencies:
41
33
  requirements:
42
34
  - - ">="
43
35
  - !ruby/object:Gem::Version
44
- hash: 3
45
- segments:
46
- - 0
47
36
  version: "0"
48
37
  type: :runtime
49
38
  version_requirements: *id002
@@ -90,23 +79,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
90
79
  requirements:
91
80
  - - ">="
92
81
  - !ruby/object:Gem::Version
93
- hash: 3
94
- segments:
95
- - 0
96
82
  version: "0"
97
83
  required_rubygems_version: !ruby/object:Gem::Requirement
98
84
  none: false
99
85
  requirements:
100
86
  - - ">="
101
87
  - !ruby/object:Gem::Version
102
- hash: 3
103
- segments:
104
- - 0
105
88
  version: "0"
106
89
  requirements: []
107
90
 
108
91
  rubyforge_project: what
109
- rubygems_version: 1.5.1
92
+ rubygems_version: 1.5.2
110
93
  signing_key:
111
94
  specification_version: 3
112
95
  summary: Modular server monitoring with JSON endpoint