appboard 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +40 -41
- data/lib/appboard/version.rb +1 -1
- metadata +3 -3
data/README.md
CHANGED
@@ -38,7 +38,7 @@ or you could define API key in call block:
|
|
38
38
|
|
39
39
|
require 'rubygems'
|
40
40
|
require 'appboard'
|
41
|
-
|
41
|
+
|
42
42
|
Appboard.setup {
|
43
43
|
apiKey "abcd1234"
|
44
44
|
|
@@ -49,7 +49,7 @@ or,
|
|
49
49
|
|
50
50
|
require 'rubygems'
|
51
51
|
require 'appboard'
|
52
|
-
|
52
|
+
|
53
53
|
Appboard.push {
|
54
54
|
apiKey "abcd1234"
|
55
55
|
|
@@ -77,33 +77,32 @@ There is several options how you could use API:
|
|
77
77
|
|
78
78
|
*Option 1.* Setup new dashboard and pushing data to widget:
|
79
79
|
|
80
|
-
|
81
80
|
require 'rubygems'
|
82
81
|
require 'appboard'
|
83
|
-
|
82
|
+
|
84
83
|
Appboard.setup {
|
85
|
-
|
84
|
+
apiKey "zxcv1234"
|
85
|
+
|
86
|
+
widget('My Clock') {
|
87
|
+
type "clock"
|
88
|
+
size "1x1"
|
89
|
+
}
|
86
90
|
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
widget('First Indicator') {
|
93
|
-
type "singlenumber"
|
94
|
-
size "1x1"
|
95
|
-
}
|
91
|
+
widget('First Indicator') {
|
92
|
+
type "singlenumber"
|
93
|
+
size "1x1"
|
94
|
+
}
|
96
95
|
}
|
97
|
-
|
96
|
+
|
98
97
|
Appboard.widget('First Indicator') {
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
98
|
+
data do
|
99
|
+
{
|
100
|
+
:current => 10
|
101
|
+
}
|
102
|
+
end
|
103
|
+
}
|
104
|
+
|
105
|
+
puts Appboard.widget('First Indicator').uid # prints widget uid
|
107
106
|
|
108
107
|
|
109
108
|
After seting up dashboard configuration is stored in Appboard class, and widget could be easily accessed by name.
|
@@ -114,25 +113,25 @@ For already configured dashboards you could push your data by widget uid.
|
|
114
113
|
|
115
114
|
require 'rubygems'
|
116
115
|
require 'appboard'
|
117
|
-
|
118
|
-
Appboard.push {
|
119
|
-
apiKey "zxcv1234"
|
120
116
|
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
117
|
+
Appboard.push {
|
118
|
+
apiKey "zxcv1234"
|
119
|
+
|
120
|
+
widget('widget1') {
|
121
|
+
uid "abcd1234"
|
122
|
+
|
123
|
+
data do
|
124
|
+
# Data is here
|
125
|
+
end
|
126
|
+
}
|
127
|
+
|
128
|
+
widget('widget2') {
|
129
|
+
uid "poiu4321"
|
130
|
+
|
131
|
+
data do
|
132
|
+
# Data is here
|
133
|
+
end
|
134
|
+
}
|
136
135
|
}
|
137
136
|
|
138
137
|
|
data/lib/appboard/version.rb
CHANGED
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:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 7
|
10
|
+
version: 1.0.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- appboard.me
|