slate 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/slate/graph.rb +2 -0
- data/lib/slate/version.rb +1 -1
- data/spec/slate/graph_spec.rb +11 -0
- metadata +3 -3
data/lib/slate/graph.rb
CHANGED
data/lib/slate/version.rb
CHANGED
data/spec/slate/graph_spec.rb
CHANGED
@@ -17,6 +17,17 @@ describe Slate::Graph do
|
|
17
17
|
stub_download :svg , @svg_stub
|
18
18
|
end
|
19
19
|
|
20
|
+
it "should have accessors for from and until" do
|
21
|
+
graph = Slate::Graph.new(:from => "-1w")
|
22
|
+
graph.from.should == "-1w"
|
23
|
+
|
24
|
+
graph.from = "-1d"
|
25
|
+
graph.from.should == "-1d"
|
26
|
+
|
27
|
+
graph.until = "-1d"
|
28
|
+
graph.until.should == "-1d"
|
29
|
+
end
|
30
|
+
|
20
31
|
it "should be able to get a single target" do
|
21
32
|
target = Slate::Target.build("app.server01.load")
|
22
33
|
graph = Slate::Graph.new
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -146,7 +146,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
146
146
|
version: '0'
|
147
147
|
segments:
|
148
148
|
- 0
|
149
|
-
hash:
|
149
|
+
hash: 2164011891299702634
|
150
150
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
151
151
|
none: false
|
152
152
|
requirements:
|
@@ -155,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
155
155
|
version: '0'
|
156
156
|
segments:
|
157
157
|
- 0
|
158
|
-
hash:
|
158
|
+
hash: 2164011891299702634
|
159
159
|
requirements: []
|
160
160
|
rubyforge_project:
|
161
161
|
rubygems_version: 1.8.24
|