slate 0.0.3 → 0.0.4

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/lib/slate/graph.rb CHANGED
@@ -3,6 +3,8 @@ require 'rest-client'
3
3
 
4
4
  module Slate
5
5
  class Graph
6
+ attr_accessor :from, :until
7
+
6
8
  def initialize(options={})
7
9
  @from = options[:from]
8
10
  @until = options[:until]
data/lib/slate/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Slate
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -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.3
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: -594468841269473360
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: -594468841269473360
158
+ hash: 2164011891299702634
159
159
  requirements: []
160
160
  rubyforge_project:
161
161
  rubygems_version: 1.8.24