rush_button 0.1.3 → 0.1.4

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: 2abbf2edb2f3e52d1608f9f95c73e5de54d07999
4
- data.tar.gz: 0032ceb8ebb47749962221875a5b93fe43d5a9c7
3
+ metadata.gz: 6a4495d6066b4b0da652be51d348b3c5b0fde0c1
4
+ data.tar.gz: b6420b06f5e943c993cd9e1f501b58bc9c57b10e
5
5
  SHA512:
6
- metadata.gz: 66ea3439e3e8338fbbbf22417db929924aa567ad2c2019736458ebac82da60ad07c9473548a821886d555fcd4d3a25f987c3656f44493c2b5431b71d2e4b86fe
7
- data.tar.gz: 4f19bcd7ea13485beb7507a1787e5bc484de0efda7b8f80b8aca448127828c816559caa4f1e82cc20c734edf797d701985f12837c79c477acbd89df0c2a611f7
6
+ metadata.gz: af45f4d434e05f42ad9f96d76e4c71cb0fbddc2d9784d6ec54c47a48927f859fa0aae3fccdeb8da0801f977daa3e44328b9c897529d055d2d6258ee6d955ed13
7
+ data.tar.gz: a7908644b5c5a7bd5877c15eb43375f9c0e2b074b3f9a6aeefa47171ce2d8f627bfc7d769f7012e809bc888fa52bbc3d24ea5360215a691f5354749be8511eb7
data/README.md CHANGED
@@ -38,5 +38,5 @@ srv.start
38
38
 
39
39
  Find Amazon Dash Button's MAC address:
40
40
 
41
- $ buntle exec find_button INTERFACE
41
+ $ sudo bundle exec find_button INTERFACE
42
42
 
data/bin/find_button CHANGED
@@ -8,7 +8,7 @@ unless iface
8
8
  exit
9
9
  end
10
10
 
11
- if `echo $UID`.chomp != "0"
11
+ if `id | awk -F'[=()]' '{print $2}'`.chomp != "0"
12
12
  puts "Not root"
13
13
  exit
14
14
  end
@@ -1,3 +1,3 @@
1
1
  module RushButton
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rush_button
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - graviton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-06 00:00:00.000000000 Z
11
+ date: 2017-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler