dasher-ruby 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/dasher/client.rb +4 -0
- data/lib/dasher/version.rb +1 -1
- data/lib/dasher.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4c1f2c573dd89fb8a74c4dd62693a34a6543199
|
4
|
+
data.tar.gz: ef18d61b75c59cbc2c8968cef06c2be051d40e4c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a486b0e4f77eb530b89fb8a798a29c4e94f5b65635b2dfdd84b9454b6412095331c1ba337b0418e98fa1b12cb74a607413ae4c6c3e4d1dc0a69b644fc6ae3303
|
7
|
+
data.tar.gz: 742f24163c6ee72e0f348063aeb0884c6465c5108ab78f583e068148a2a8988b05dc83540ba9d12bfc5ef37d7c92ff96ab53fbac879d126c7c40a00426f4603d
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Dasher Ruby Client
|
2
2
|
|
3
|
-
This client allows you to easily update screen data for [Dasher](http://
|
3
|
+
This client allows you to easily update screen data for [Dasher](http://dasher.tv).
|
4
4
|
You can use this gem to easily push new data to any of your Dasher screens with
|
5
5
|
ease.
|
6
6
|
|
@@ -40,7 +40,7 @@ Dasher.client.replace_list(2, [
|
|
40
40
|
```
|
41
41
|
|
42
42
|
The `Dasher.client` instance is automatically configured to use the production
|
43
|
-
Dasher endpoints and the key in the `
|
43
|
+
Dasher endpoints and the key in the `DASHER_TOKEN` environment variable.
|
44
44
|
You can create your own clients if you would like.
|
45
45
|
|
46
46
|
```ruby
|
data/lib/dasher/client.rb
CHANGED
@@ -30,6 +30,10 @@ module Dasher
|
|
30
30
|
api.lists.add!(:square => square, :identifier => identifier, :properties => properties)
|
31
31
|
end
|
32
32
|
|
33
|
+
def insert_list_item(square, index, identifier, properties = {})
|
34
|
+
api.lists.add!(:square => square, :index => index, :identifier => identifier, :properties => properties)
|
35
|
+
end
|
36
|
+
|
33
37
|
def replace_list(square, items = [])
|
34
38
|
api.lists.replace!(:square => square, :items => items)
|
35
39
|
rescue MoonropeClient::RequestError => e
|
data/lib/dasher/version.rb
CHANGED
data/lib/dasher.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dasher-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Cooke
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: moonrope-client
|
@@ -41,7 +41,7 @@ files:
|
|
41
41
|
- lib/dasher.rb
|
42
42
|
- lib/dasher/client.rb
|
43
43
|
- lib/dasher/version.rb
|
44
|
-
homepage: https://
|
44
|
+
homepage: https://dasher.tv
|
45
45
|
licenses:
|
46
46
|
- MIT
|
47
47
|
metadata: {}
|