delirium-driver 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/Gemfile.lock +2 -2
- data/delirium-driver.gemspec +1 -1
- data/lib/delirium/driver/cli/root_command.rb +11 -15
- data/lib/delirium/driver/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 54e64d9bc63475543ea14e50b2a2423bfe01bbd2102164cce769623ecc4f78ec
|
4
|
+
data.tar.gz: adb2f90670ffaf0581c10fb3d72a492ad57451ba0ab4846ac02f87d7e0465290
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5637fda9b453dd970970b5e905ae399fc2887f47deb81c2acb7dc31aab19673a02e471265fc320b49795d431ca72210cd6298742fd94686aa449d764d660ad2
|
7
|
+
data.tar.gz: 5f30161bc76294553dadb7a333b44df26c07a0b9716233adfc0e88a6bce653c944ab07afe1df18abf1252e1f73e1600225788ab47819bcc37ff5a9c5c2746ecc
|
data/.ruby-gemset
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
delirium-driver
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.5.3
|
data/Gemfile.lock
CHANGED
data/delirium-driver.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.authors = ["SuperbotHQ"]
|
10
10
|
|
11
11
|
spec.summary = "delirium driver"
|
12
|
-
spec.homepage = "https://github.com/superbothq/
|
12
|
+
spec.homepage = "https://github.com/superbothq/delirium-driver"
|
13
13
|
spec.license = "MIT"
|
14
14
|
|
15
15
|
# Specify which files should be added to the gem when it is released.
|
@@ -11,25 +11,21 @@ module Delirium
|
|
11
11
|
|
12
12
|
s.set :delirium_driver, Delirium::Platform.class_for_current_platform.new
|
13
13
|
|
14
|
-
s.post "
|
15
|
-
|
16
|
-
|
14
|
+
s.post "/:device/:action" do
|
15
|
+
device = params.delete "device"
|
16
|
+
action = params.delete "action"
|
17
17
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
})
|
23
|
-
end
|
24
|
-
|
25
|
-
s.post "/keyboard/write" do
|
26
|
-
string = params[:string]
|
18
|
+
delirium_params = {}
|
19
|
+
params.each_pair do |k,v|
|
20
|
+
delirium_params[k.to_sym] = v
|
21
|
+
end
|
27
22
|
|
28
23
|
s.settings.delirium_driver.do({
|
29
|
-
device:
|
30
|
-
action:
|
31
|
-
params:
|
24
|
+
device: device.to_sym,
|
25
|
+
action: action.to_sym,
|
26
|
+
params: delirium_params
|
32
27
|
})
|
28
|
+
""
|
33
29
|
end
|
34
30
|
|
35
31
|
s.run!
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: delirium-driver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SuperbotHQ
|
@@ -89,6 +89,8 @@ extra_rdoc_files: []
|
|
89
89
|
files:
|
90
90
|
- ".gitignore"
|
91
91
|
- ".rspec"
|
92
|
+
- ".ruby-gemset"
|
93
|
+
- ".ruby-version"
|
92
94
|
- ".travis.yml"
|
93
95
|
- Gemfile
|
94
96
|
- Gemfile.lock
|
@@ -103,7 +105,7 @@ files:
|
|
103
105
|
- lib/delirium/driver/cli.rb
|
104
106
|
- lib/delirium/driver/cli/root_command.rb
|
105
107
|
- lib/delirium/driver/version.rb
|
106
|
-
homepage: https://github.com/superbothq/
|
108
|
+
homepage: https://github.com/superbothq/delirium-driver
|
107
109
|
licenses:
|
108
110
|
- MIT
|
109
111
|
metadata: {}
|