appboard 1.0.3 → 1.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/README.md CHANGED
@@ -9,6 +9,7 @@ Further reading:
9
9
  * [Home page](http://appboard.me/)
10
10
  * [The essential documentation](http://appboard.me/docs)
11
11
  * [List of available widgets](http://appboard.me/docs/widgets)
12
+ * [Demo Dashboard](http://appboard.me/demo)
12
13
  * [Follow us on Twitter](http://twitter.com/appboard)
13
14
 
14
15
  NOTE: We are currently in private beta. Please let me know (eugene@appboard.me) if you'd like an invite.
data/examples/alert.rb ADDED
@@ -0,0 +1,55 @@
1
+ require 'rubygems'
2
+ require 'appboard'
3
+
4
+ #
5
+ # Updates Alert Widget on Dashboard (see http://appboard.me/docs/alert)
6
+ # Don't forget to specify your apiKey and widget identifier.
7
+ #
8
+ Appboard.push {
9
+ apiKey 'wOUpOJeOozcgPdZa'
10
+
11
+ widget('some name here') {
12
+ uid "gFMndwmrtZzAWWYB"
13
+ data do
14
+ [
15
+ {
16
+ :current => 0,
17
+ :label => 'server 1',
18
+ :boundaries => [
19
+ {
20
+ :shape => "triangledown",
21
+ :color => "#fd1d25",
22
+ :range => 0,
23
+ :title => "Down"
24
+ },
25
+ {
26
+ :shape => "triangleup",
27
+ :color => "#9ac736",
28
+ :range => 1,
29
+ :title => "Up"
30
+ }
31
+ ]
32
+ },
33
+ {
34
+ :current => 1,
35
+ :label => 'server 2',
36
+ :boundaries => [
37
+ {
38
+ :shape => "triangledown",
39
+ :color => "#fd1d25",
40
+ :range => 0,
41
+ :title => "Down"
42
+ },
43
+ {
44
+ :shape => "triangleup",
45
+ :color => "#9ac736",
46
+ :range => 1,
47
+ :title => "Up"
48
+ }
49
+ ]
50
+ }
51
+ ]
52
+ end
53
+ }
54
+ }
55
+
@@ -2,7 +2,7 @@ module Appboard #:nodoc:
2
2
  module Version #:nodoc:
3
3
  MAJOR = 1
4
4
  MINOR = 0
5
- TINY = 3
5
+ TINY = 4
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
data/lib/appboard.rb CHANGED
@@ -71,7 +71,7 @@ module Appboard
71
71
 
72
72
 
73
73
  def send(widget)
74
- url = "#{@config[:url]}/#{@config[:version]}/#{@apiKey}/#{widget.uid}"
74
+ url = "#{@config[:url]}/#{@config[:version]}/#{@apiKey}/data/#{widget.uid}"
75
75
  json = JSON.generate(widget.get_data)
76
76
 
77
77
  #put url, json
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appboard
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 3
10
- version: 1.0.3
9
+ - 4
10
+ version: 1.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - appboard.me
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-06-30 00:00:00 -04:00
18
+ date: 2011-07-13 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -90,6 +90,7 @@ extra_rdoc_files:
90
90
  - README.md
91
91
  files:
92
92
  - README.md
93
+ - examples/alert.rb
93
94
  - examples/barchart.rb
94
95
  - examples/bubblechart.rb
95
96
  - examples/columnchart.rb