uinput-device 0.3.0 → 0.3.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: 55ba55f9d8dff99f554fd0f1aa8bf9377e9fa77c
4
- data.tar.gz: bc91b3afbd8329ddce18399cdd68b5963ae93e2a
3
+ metadata.gz: 3e61ca1ca8105ca4f9c79601787dfa4bdac1affd
4
+ data.tar.gz: 4ba393bed65b0beb2ea139365f08dda223cc16f1
5
5
  SHA512:
6
- metadata.gz: b2e8a73b728547ce8067c8ec62a918d97575363670739ce4f39a50573e43b36e41ad9126b93e9bd2af76e040a1e5f393ef28aba469a247885e6b3fbcab5d311d
7
- data.tar.gz: fed2a9aa9a0e546f8fbe9726b0bdc4b9a3583811bab031f204adfe85f3ef0fb5cfc383d0eeed33239ad27271f039cc7e27da14eb2fd9a65c32ff00bcdbcf6a35
6
+ metadata.gz: 0358e0f8ea56f1e07b2dd0c069f9b6340fdd7c03a5f437eb623f0d6ca9ab717ab90e13eca0e24acd7fd66be2ac75fe0c983c4070177e1c62d78021e175d66a37
7
+ data.tar.gz: 72be5cca039b8929fb5333e14d9b94a94f43387a797b4eda0e492ef3a7c902c9b96a58cff85e0b1d73b5ef54d01fc3c87f66ea2fb6fd0eebebf50292a4d62def
data/lib/uinput/device.rb CHANGED
@@ -36,6 +36,10 @@ module Uinput
36
36
  "/dev/input/#{event}"
37
37
  end
38
38
 
39
+ def name
40
+ File.read("#{sys_path}/name")
41
+ end
42
+
39
43
  def active?
40
44
  not @file.nil?
41
45
  end
@@ -1,5 +1,5 @@
1
1
  module Uinput
2
2
  class Device
3
- VERSION = "0.3.0"
3
+ VERSION = "0.3.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uinput-device
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher Aue
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-17 00:00:00.000000000 Z
11
+ date: 2015-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: uinput