god 0.13.0 → 0.13.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. data/History.txt +4 -0
  2. data/bin/god +3 -1
  3. data/god.gemspec +2 -2
  4. data/lib/god.rb +9 -3
  5. data/test/helper.rb +5 -1
  6. metadata +65 -94
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.13.1 / 2012-09-18
2
+ * Minor Changes
3
+ * Prevent auto-loading from bundler by requiring $load_god to require (#97)
4
+
1
5
  == 0.13.0 / 2012-09-17
2
6
  * Minor Changes
3
7
  * Reduce verbosity of non-failing conditions (#111)
data/bin/god CHANGED
@@ -4,7 +4,6 @@ STDOUT.sync = true
4
4
 
5
5
  $:.unshift File.join(File.dirname(__FILE__), *%w[.. lib])
6
6
 
7
- require 'rubygems'
8
7
  require 'optparse'
9
8
  require 'drb'
10
9
  require 'yaml'
@@ -105,6 +104,9 @@ begin
105
104
  abort("Invalid log level '#{options[:log_level]}'")
106
105
  end
107
106
 
107
+ # Use this flag to actually load all of the god infrastructure
108
+ $load_god = true
109
+
108
110
  # dispatch
109
111
  if !options[:config] && options[:version]
110
112
  require 'god'
data/god.gemspec CHANGED
@@ -3,8 +3,8 @@ Gem::Specification.new do |s|
3
3
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
4
4
 
5
5
  s.name = 'god'
6
- s.version = '0.13.0'
7
- s.date = '2012-09-17'
6
+ s.version = '0.13.1'
7
+ s.date = '2012-09-18'
8
8
 
9
9
  s.summary = "Process monitoring framework."
10
10
  s.description = "An easy to configure, easy to extend monitoring framework written in Ruby."
data/lib/god.rb CHANGED
@@ -1,4 +1,8 @@
1
- $:.unshift File.dirname(__FILE__) # For use/testing when no gem is installed
1
+ # Bail out before loading anything unless this flag is set.
2
+ #
3
+ # We are doing this to guard against bundler autoloading because there is
4
+ # no value in loading god in most processes.
5
+ if $load_god
2
6
 
3
7
  # core
4
8
  require 'stringio'
@@ -151,7 +155,7 @@ end
151
155
 
152
156
  module God
153
157
  # The String version number for this package.
154
- VERSION = '0.13.0'
158
+ VERSION = '0.13.1'
155
159
 
156
160
  # The Integer number of lines of backlog to keep for the logger.
157
161
  LOG_BUFFER_SIZE_DEFAULT = 100
@@ -726,7 +730,7 @@ module God
726
730
  # private
727
731
 
728
732
  # Match a shortened pattern against a list of String candidates.
729
- # The pattern is expanded into a regular expression by
733
+ # The pattern is expanded into a regular expression by
730
734
  # inserting .* between each character.
731
735
  #
732
736
  # pattern - The String containing the abbreviation.
@@ -756,3 +760,5 @@ end
756
760
  at_exit do
757
761
  God.at_exit if $run
758
762
  end
763
+
764
+ end
data/test/helper.rb CHANGED
@@ -1,4 +1,8 @@
1
- require 'rubygems'
1
+ $:.unshift File.expand_path('../../lib', __FILE__) # For use/testing when no gem is installed
2
+
3
+ # Use this flag to actually load all of the god infrastructure
4
+ $load_god = true
5
+
2
6
  require File.join(File.dirname(__FILE__), *%w[.. lib god sys_logger])
3
7
  require File.join(File.dirname(__FILE__), *%w[.. lib god])
4
8
  God::EventHandler.load
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: god
3
3
  version: !ruby/object:Gem::Version
4
- hash: 43
5
- prerelease:
4
+ prerelease: false
6
5
  segments:
7
6
  - 0
8
7
  - 13
9
- - 0
10
- version: 0.13.0
8
+ - 1
9
+ version: 0.13.1
11
10
  platform: ruby
12
11
  authors:
13
12
  - Tom Preston-Werner
@@ -17,191 +16,167 @@ autorequire:
17
16
  bindir: bin
18
17
  cert_chain: []
19
18
 
20
- date: 2012-09-17 00:00:00 -07:00
19
+ date: 2012-09-18 00:00:00 -07:00
21
20
  default_executable:
22
21
  dependencies:
23
22
  - !ruby/object:Gem::Dependency
24
- name: json
25
- prerelease: false
26
- requirement: &id001 !ruby/object:Gem::Requirement
27
- none: false
23
+ type: :development
24
+ version_requirements: &id001 !ruby/object:Gem::Requirement
28
25
  requirements:
29
26
  - - ~>
30
27
  - !ruby/object:Gem::Version
31
- hash: 3
32
28
  segments:
33
29
  - 1
34
30
  - 6
35
31
  version: "1.6"
36
- type: :development
37
- version_requirements: *id001
38
- - !ruby/object:Gem::Dependency
39
- name: rake
32
+ name: json
33
+ requirement: *id001
40
34
  prerelease: false
41
- requirement: &id002 !ruby/object:Gem::Requirement
42
- none: false
35
+ - !ruby/object:Gem::Dependency
36
+ type: :development
37
+ version_requirements: &id002 !ruby/object:Gem::Requirement
43
38
  requirements:
44
39
  - - ~>
45
40
  - !ruby/object:Gem::Version
46
- hash: 25
47
41
  segments:
48
42
  - 0
49
43
  - 9
50
44
  version: "0.9"
51
- type: :development
52
- version_requirements: *id002
53
- - !ruby/object:Gem::Dependency
54
- name: rdoc
45
+ name: rake
46
+ requirement: *id002
55
47
  prerelease: false
56
- requirement: &id003 !ruby/object:Gem::Requirement
57
- none: false
48
+ - !ruby/object:Gem::Dependency
49
+ type: :development
50
+ version_requirements: &id003 !ruby/object:Gem::Requirement
58
51
  requirements:
59
52
  - - ~>
60
53
  - !ruby/object:Gem::Version
61
- hash: 19
62
54
  segments:
63
55
  - 3
64
56
  - 10
65
57
  version: "3.10"
66
- type: :development
67
- version_requirements: *id003
68
- - !ruby/object:Gem::Dependency
69
- name: twitter
58
+ name: rdoc
59
+ requirement: *id003
70
60
  prerelease: false
71
- requirement: &id004 !ruby/object:Gem::Requirement
72
- none: false
61
+ - !ruby/object:Gem::Dependency
62
+ type: :development
63
+ version_requirements: &id004 !ruby/object:Gem::Requirement
73
64
  requirements:
74
65
  - - ~>
75
66
  - !ruby/object:Gem::Version
76
- hash: 3
77
67
  segments:
78
68
  - 2
79
69
  - 0
80
70
  version: "2.0"
81
- type: :development
82
- version_requirements: *id004
83
- - !ruby/object:Gem::Dependency
84
- name: prowly
71
+ name: twitter
72
+ requirement: *id004
85
73
  prerelease: false
86
- requirement: &id005 !ruby/object:Gem::Requirement
87
- none: false
74
+ - !ruby/object:Gem::Dependency
75
+ type: :development
76
+ version_requirements: &id005 !ruby/object:Gem::Requirement
88
77
  requirements:
89
78
  - - ~>
90
79
  - !ruby/object:Gem::Version
91
- hash: 13
92
80
  segments:
93
81
  - 0
94
82
  - 3
95
83
  version: "0.3"
96
- type: :development
97
- version_requirements: *id005
98
- - !ruby/object:Gem::Dependency
99
- name: xmpp4r
84
+ name: prowly
85
+ requirement: *id005
100
86
  prerelease: false
101
- requirement: &id006 !ruby/object:Gem::Requirement
102
- none: false
87
+ - !ruby/object:Gem::Dependency
88
+ type: :development
89
+ version_requirements: &id006 !ruby/object:Gem::Requirement
103
90
  requirements:
104
91
  - - ~>
105
92
  - !ruby/object:Gem::Version
106
- hash: 1
107
93
  segments:
108
94
  - 0
109
95
  - 5
110
96
  version: "0.5"
111
- type: :development
112
- version_requirements: *id006
113
- - !ruby/object:Gem::Dependency
114
- name: dike
97
+ name: xmpp4r
98
+ requirement: *id006
115
99
  prerelease: false
116
- requirement: &id007 !ruby/object:Gem::Requirement
117
- none: false
100
+ - !ruby/object:Gem::Dependency
101
+ type: :development
102
+ version_requirements: &id007 !ruby/object:Gem::Requirement
118
103
  requirements:
119
104
  - - ~>
120
105
  - !ruby/object:Gem::Version
121
- hash: 25
122
106
  segments:
123
107
  - 0
124
108
  - 0
125
109
  - 3
126
110
  version: 0.0.3
127
- type: :development
128
- version_requirements: *id007
129
- - !ruby/object:Gem::Dependency
130
- name: snapshot
111
+ name: dike
112
+ requirement: *id007
131
113
  prerelease: false
132
- requirement: &id008 !ruby/object:Gem::Requirement
133
- none: false
114
+ - !ruby/object:Gem::Dependency
115
+ type: :development
116
+ version_requirements: &id008 !ruby/object:Gem::Requirement
134
117
  requirements:
135
118
  - - ~>
136
119
  - !ruby/object:Gem::Version
137
- hash: 15
138
120
  segments:
139
121
  - 1
140
122
  - 0
141
123
  version: "1.0"
142
- type: :development
143
- version_requirements: *id008
144
- - !ruby/object:Gem::Dependency
145
- name: rcov
124
+ name: snapshot
125
+ requirement: *id008
146
126
  prerelease: false
147
- requirement: &id009 !ruby/object:Gem::Requirement
148
- none: false
127
+ - !ruby/object:Gem::Dependency
128
+ type: :development
129
+ version_requirements: &id009 !ruby/object:Gem::Requirement
149
130
  requirements:
150
131
  - - ~>
151
132
  - !ruby/object:Gem::Version
152
- hash: 25
153
133
  segments:
154
134
  - 0
155
135
  - 9
156
136
  version: "0.9"
157
- type: :development
158
- version_requirements: *id009
159
- - !ruby/object:Gem::Dependency
160
- name: daemons
137
+ name: rcov
138
+ requirement: *id009
161
139
  prerelease: false
162
- requirement: &id010 !ruby/object:Gem::Requirement
163
- none: false
140
+ - !ruby/object:Gem::Dependency
141
+ type: :development
142
+ version_requirements: &id010 !ruby/object:Gem::Requirement
164
143
  requirements:
165
144
  - - ~>
166
145
  - !ruby/object:Gem::Version
167
- hash: 13
168
146
  segments:
169
147
  - 1
170
148
  - 1
171
149
  version: "1.1"
172
- type: :development
173
- version_requirements: *id010
174
- - !ruby/object:Gem::Dependency
175
- name: mocha
150
+ name: daemons
151
+ requirement: *id010
176
152
  prerelease: false
177
- requirement: &id011 !ruby/object:Gem::Requirement
178
- none: false
153
+ - !ruby/object:Gem::Dependency
154
+ type: :development
155
+ version_requirements: &id011 !ruby/object:Gem::Requirement
179
156
  requirements:
180
157
  - - ~>
181
158
  - !ruby/object:Gem::Version
182
- hash: 31
183
159
  segments:
184
160
  - 0
185
161
  - 10
186
162
  version: "0.10"
187
- type: :development
188
- version_requirements: *id011
189
- - !ruby/object:Gem::Dependency
190
- name: gollum
163
+ name: mocha
164
+ requirement: *id011
191
165
  prerelease: false
192
- requirement: &id012 !ruby/object:Gem::Requirement
193
- none: false
166
+ - !ruby/object:Gem::Dependency
167
+ type: :development
168
+ version_requirements: &id012 !ruby/object:Gem::Requirement
194
169
  requirements:
195
170
  - - ~>
196
171
  - !ruby/object:Gem::Version
197
- hash: 25
198
172
  segments:
199
173
  - 1
200
174
  - 3
201
175
  - 1
202
176
  version: 1.3.1
203
- type: :development
204
- version_requirements: *id012
177
+ name: gollum
178
+ requirement: *id012
179
+ prerelease: false
205
180
  description: An easy to configure, easy to extend monitoring framework written in Ruby.
206
181
  email: god-rb@googlegroups.com
207
182
  executables:
@@ -349,27 +324,23 @@ require_paths:
349
324
  - lib
350
325
  - ext
351
326
  required_ruby_version: !ruby/object:Gem::Requirement
352
- none: false
353
327
  requirements:
354
328
  - - ">="
355
329
  - !ruby/object:Gem::Version
356
- hash: 3
357
330
  segments:
358
331
  - 0
359
332
  version: "0"
360
333
  required_rubygems_version: !ruby/object:Gem::Requirement
361
- none: false
362
334
  requirements:
363
335
  - - ">="
364
336
  - !ruby/object:Gem::Version
365
- hash: 3
366
337
  segments:
367
338
  - 0
368
339
  version: "0"
369
340
  requirements: []
370
341
 
371
342
  rubyforge_project: god
372
- rubygems_version: 1.6.2
343
+ rubygems_version: 1.3.6
373
344
  signing_key:
374
345
  specification_version: 2
375
346
  summary: Process monitoring framework.