steto 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -25,8 +25,8 @@ module Steto
25
25
  @text
26
26
  end
27
27
 
28
- def to_json
29
- { :name => name, :status => status, :text => text }.to_json
28
+ def to_json(*args)
29
+ { :name => name, :status => status, :text => text }.to_json(*args)
30
30
  end
31
31
 
32
32
  end
data/lib/steto/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Steto
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -25,6 +25,10 @@ describe Steto::BaseCheck do
25
25
  JSON.parse(subject.to_json).should include("status" => "critical")
26
26
  end
27
27
 
28
+ it "should support json for an array" do
29
+ JSON.parse([subject].to_json).size.should == 1
30
+ end
31
+
28
32
  end
29
33
 
30
34
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: steto
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alban Peignier