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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a439652b39917c50e99d32395c619b87bbba32ec65c563f00f62446cb04ae4b6
4
- data.tar.gz: ae9f08db528b33db9f7d51075d79539fd6fdc449c3141b7d3d72d5aa3c8d3710
3
+ metadata.gz: 54e64d9bc63475543ea14e50b2a2423bfe01bbd2102164cce769623ecc4f78ec
4
+ data.tar.gz: adb2f90670ffaf0581c10fb3d72a492ad57451ba0ab4846ac02f87d7e0465290
5
5
  SHA512:
6
- metadata.gz: 38caedc71cccdf2798fcddd6f76331a16f1a3bb529d960ecf9ea9773ea72f42286396b31ed50dda0ab913d9f0f76fe3ba09cdde5db5d46d317aa0e6c3cb9cd19
7
- data.tar.gz: 2c81b9f88367afc8e86517f6c05394c2aea84bd1769c8b3288c597d2d9e566ebba6ae1527928ddf66b0d428a5efc8b6ac7d9feea42e4811dc59942b55ccbbd09
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
@@ -1,12 +1,12 @@
1
1
  PATH
2
2
  remote: ../delirium
3
3
  specs:
4
- delirium (0.1.0)
4
+ delirium (0.2.0)
5
5
 
6
6
  PATH
7
7
  remote: .
8
8
  specs:
9
- delirium-driver (0.1.0)
9
+ delirium-driver (0.1.1)
10
10
  delirium
11
11
  sinatra
12
12
 
@@ -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/deliriumdriver"
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 "/mouse/move" do
15
- x = params[:x]
16
- y = params[:y]
14
+ s.post "/:device/:action" do
15
+ device = params.delete "device"
16
+ action = params.delete "action"
17
17
 
18
- s.settings.delirium_driver.do({
19
- device: :mouse,
20
- action: :move,
21
- params: { x: x, y: y }
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: :keyboard,
30
- action: :write,
31
- params: { string: string }
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!
@@ -1,5 +1,5 @@
1
1
  module Delirium
2
2
  module Driver
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
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.0
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/deliriumdriver
108
+ homepage: https://github.com/superbothq/delirium-driver
107
109
  licenses:
108
110
  - MIT
109
111
  metadata: {}