appboard 1.0.6 → 1.0.7

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.
Files changed (3) hide show
  1. data/README.md +40 -41
  2. data/lib/appboard/version.rb +1 -1
  3. 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
- apiKey "zxcv1234"
84
+ apiKey "zxcv1234"
85
+
86
+ widget('My Clock') {
87
+ type "clock"
88
+ size "1x1"
89
+ }
86
90
 
87
- widget('My Clock') {
88
- type "clock"
89
- size "1x1"
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
- data do
100
- {
101
- :current => 10
102
- }
103
- end
104
- }
105
-
106
- puts Appboard.widget('First Indicator').uid # prints widget uid
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
- widget('widget1') {
122
- uid "abcd1234"
123
-
124
- data do
125
- # Data is here
126
- end
127
- }
128
-
129
- widget('widget2') {
130
- uid "poiu4321"
131
-
132
- data do
133
- # Data is here
134
- end
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
 
@@ -2,7 +2,7 @@ module Appboard #:nodoc:
2
2
  module Version #:nodoc:
3
3
  MAJOR = 1
4
4
  MINOR = 0
5
- TINY = 6
5
+ TINY = 7
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
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: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 6
10
- version: 1.0.6
9
+ - 7
10
+ version: 1.0.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - appboard.me