deputy 0.1.51 → 0.1.52
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 +1 -1
- data/deputy.gemspec +4 -3
- data/lib/deputy.rb +1 -0
- data/spec/deputy_spec.rb +5 -0
- metadata +6 -6
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.52
|
data/deputy.gemspec
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{deputy}
|
|
8
|
-
s.version = "0.1.
|
|
8
|
+
s.version = "0.1.52"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Michael Grosser"]
|
|
12
|
-
s.date = %q{2011-05-
|
|
12
|
+
s.date = %q{2011-05-27}
|
|
13
13
|
s.default_executable = %q{deputy}
|
|
14
14
|
s.email = %q{mirko@dawanda.com}
|
|
15
15
|
s.executables = ["deputy"]
|
|
@@ -27,7 +27,7 @@ Gem::Specification.new do |s|
|
|
|
27
27
|
]
|
|
28
28
|
s.homepage = %q{http://github.com/dawanda/deputy}
|
|
29
29
|
s.require_paths = ["lib"]
|
|
30
|
-
s.rubygems_version = %q{1.
|
|
30
|
+
s.rubygems_version = %q{1.3.7}
|
|
31
31
|
s.summary = %q{Report to the sheriff}
|
|
32
32
|
s.test_files = [
|
|
33
33
|
"spec/deputy_spec.rb",
|
|
@@ -35,6 +35,7 @@ Gem::Specification.new do |s|
|
|
|
35
35
|
]
|
|
36
36
|
|
|
37
37
|
if s.respond_to? :specification_version then
|
|
38
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
|
38
39
|
s.specification_version = 3
|
|
39
40
|
|
|
40
41
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
data/lib/deputy.rb
CHANGED
|
@@ -130,6 +130,7 @@ module Deputy
|
|
|
130
130
|
end
|
|
131
131
|
|
|
132
132
|
def self.send_report(group, value, options = {})
|
|
133
|
+
return if config['disabled']
|
|
133
134
|
raise "separate #{group} with a ." unless group.split('.',2).size == 2
|
|
134
135
|
get "/notify?group=#{CGI.escape group}&value=#{CGI.escape value.to_s}", options
|
|
135
136
|
end
|
data/spec/deputy_spec.rb
CHANGED
|
@@ -237,6 +237,11 @@ describe Deputy do
|
|
|
237
237
|
FakeWeb.register_uri(:get, "http://sheri.ff/notify?group=Xxx.yy%3Fy&value=123&hostname=general&forced_host=true", :body => 'OK')
|
|
238
238
|
Deputy.send_report('Xxx.yy?y', '123', {:host => 'general'}).should == 'OK'
|
|
239
239
|
end
|
|
240
|
+
|
|
241
|
+
it "does nothing, if disabled" do
|
|
242
|
+
Deputy.stub!(:config).and_return "disabled" => true
|
|
243
|
+
Deputy.send_report('Xxx.yy?y', '123', {:host => 'general'}).should == nil
|
|
244
|
+
end
|
|
240
245
|
end
|
|
241
246
|
|
|
242
247
|
describe :extract_auth_from_url! do
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: deputy
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
5
|
-
prerelease:
|
|
4
|
+
hash: 115
|
|
5
|
+
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 1
|
|
9
|
-
-
|
|
10
|
-
version: 0.1.
|
|
9
|
+
- 52
|
|
10
|
+
version: 0.1.52
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Michael Grosser
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2011-05-
|
|
18
|
+
date: 2011-05-27 00:00:00 +02:00
|
|
19
19
|
default_executable: deputy
|
|
20
20
|
dependencies: []
|
|
21
21
|
|
|
@@ -68,7 +68,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
68
68
|
requirements: []
|
|
69
69
|
|
|
70
70
|
rubyforge_project:
|
|
71
|
-
rubygems_version: 1.
|
|
71
|
+
rubygems_version: 1.3.7
|
|
72
72
|
signing_key:
|
|
73
73
|
specification_version: 3
|
|
74
74
|
summary: Report to the sheriff
|