xinput_wrapper 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
  SHA1:
3
- metadata.gz: ae4fcf42fbfa6e86aacfc6b9419f13719318a1e9
4
- data.tar.gz: e5b1e93f433bbea0c0656a9aab67fb178782418f
3
+ metadata.gz: c3903d1dfa16bf7e743aee402009f44e536e1da8
4
+ data.tar.gz: 69887fc65d3f95a6142ff25f81d8baeba5b87861
5
5
  SHA512:
6
- metadata.gz: d1fee6164dc00a35d1d4348e90740efa3ec3747ed0de9ac213b2037bd1af9a5cd3ddf51a4daa7f66c8b9a475f2274cb52d2961302587edee5dfea4dc07c4bdd3
7
- data.tar.gz: e33f39f7468246891e5334a4d218775eb551f6e7eb323d64c6db7a78fb4f3f941f064e6a67be903a67c761527993c1ceb6b04e1f9287faaa8e3dfa49faea9049
6
+ metadata.gz: 374014c88dedc0eeea697e325cf32964fd50e8fb3597633e21e12fd9a51b6ab5e2e211b7499f74523c8268d862bd59f43d04be1c4f958aface14fb80528269ad
7
+ data.tar.gz: d3d31a90923f35d51a58909b02cff43d6dc6320bc40402d079179b716c42f3f1c3c00d38e315506f50f50f764b5c449abc6836baf7698dedbd12fb51d90cdc41
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -10,7 +10,7 @@ require 'secret_knock'
10
10
  class XInputWrapper
11
11
 
12
12
  def initialize(device: '3', host: 'sps', port: '59000',
13
- topic: 'input/keyboard', verbose: true, lookup: nil)
13
+ topic: 'input/keyboard', verbose: true, lookup: {})
14
14
 
15
15
  @lookup = {
16
16
  37 => :control,
@@ -29,7 +29,11 @@ class XInputWrapper
29
29
  end
30
30
 
31
31
  def message(msg)
32
+
33
+ puts ':: ' + msg.inspect if @verbose
34
+
32
35
  return if msg.strip.empty?
36
+
33
37
  @sps.notice "%s: %s" % [@topic, msg]
34
38
  end
35
39
 
@@ -68,4 +72,4 @@ class XInputWrapper
68
72
  end
69
73
  end
70
74
  end
71
- end
75
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xinput_wrapper
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
  - James Robertson
metadata.gz.sig CHANGED
Binary file