ducksboard 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,9 +10,15 @@ or in an initializer
10
10
 
11
11
  Ducksboard.api_key = 'YOURKEY'
12
12
 
13
+ ### Box
14
+
15
+ widget = Ducksbaord::Box.new(1234) # Widget numeric id
16
+ widget.value = 10
17
+ widget.save
18
+
13
19
  ### Counter
14
20
 
15
- widget = Ducksbaord::Counter.new(1234) # Widget numeric id
21
+ widget = Ducksbaord::Counter.new(1234)
16
22
  widget.value = 10
17
23
  widget.save
18
24
 
@@ -40,6 +46,12 @@ or in an initializer
40
46
  widget.value = 198
41
47
  widget.save
42
48
 
49
+ ### Pin
50
+
51
+ widget = Ducksbaord::Pin.new(1234)
52
+ widget.value = 10
53
+ widget.save
54
+
43
55
  ### Timeline
44
56
 
45
57
  widget = Ducksbaord::Timeline.new(1237)
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'ducksboard'
3
- s.version = '0.1.2'
3
+ s.version = '0.1.3'
4
4
  s.summary = "API wrapper for ducksboard.com dashboard"
5
5
  s.description = "Ruby API wrapper for ducksboard realtime dashboard using HTTParty"
6
6
  s.authors = ["Joseph Hsu"]
@@ -6,8 +6,10 @@ module Ducksboard
6
6
  end
7
7
 
8
8
  require 'ducksboard/widget'
9
+ require 'ducksboard/box'
9
10
  require 'ducksboard/counter'
10
11
  require 'ducksboard/gauge'
11
12
  require 'ducksboard/graph'
12
13
  require 'ducksboard/image'
14
+ require 'ducksboard/pin'
13
15
  require 'ducksboard/timeline'
@@ -0,0 +1,8 @@
1
+ module Ducksboard
2
+ class Box < Widget
3
+ def valid?
4
+ @data[:value].is_a?(Integer)
5
+ end
6
+ end
7
+ end
8
+
@@ -0,0 +1,7 @@
1
+ module Ducksboard
2
+ class Pin < Widget
3
+ def valid?
4
+ @data[:value].is_a?(Integer)
5
+ end
6
+ end
7
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ducksboard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-11-01 00:00:00.000000000Z
12
+ date: 2011-11-03 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty
16
- requirement: &70307484495700 !ruby/object:Gem::Requirement
16
+ requirement: &70247773222760 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -24,7 +24,7 @@ dependencies:
24
24
  version: 0.8.1
25
25
  type: :runtime
26
26
  prerelease: false
27
- version_requirements: *70307484495700
27
+ version_requirements: *70247773222760
28
28
  description: Ruby API wrapper for ducksboard realtime dashboard using HTTParty
29
29
  email: jhsu.x1@gmail.com
30
30
  executables: []
@@ -37,10 +37,12 @@ files:
37
37
  - README.mdown
38
38
  - ducksboard.gemspec
39
39
  - lib/ducksboard.rb
40
+ - lib/ducksboard/box.rb
40
41
  - lib/ducksboard/counter.rb
41
42
  - lib/ducksboard/gauge.rb
42
43
  - lib/ducksboard/graph.rb
43
44
  - lib/ducksboard/image.rb
45
+ - lib/ducksboard/pin.rb
44
46
  - lib/ducksboard/timeline.rb
45
47
  - lib/ducksboard/widget.rb
46
48
  homepage: http://github.com/jhsu/ducksboard