helpema 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.rdoc +1 -1
- data/lib/helpema/version.rb +1 -1
- data/lib/helpema/zbar.rb +8 -2
- metadata +6 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97aef7e26445e9b17fb514f34fba1d286dd6cda7
|
4
|
+
data.tar.gz: c8149b74cb8d35ce7e0a42dfc6236c4a210f35a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d37cc78e671535927fdfe18c36374409729a6b8490a85e5b91394f566755dbde70f459db38452bff697e6f36d42dab5f62c008f3dc0ff6e22f42f1d38a8e08e
|
7
|
+
data.tar.gz: ecbc2b1ff09517c00d7fe9a430345c9c6331b62f8bdfd17259d81e6a3017c7428ff89f8cb9f53c68e918b56c71f6a410fe691d36bd744661bcbce7417aa31387
|
data/README.rdoc
CHANGED
data/lib/helpema/version.rb
CHANGED
data/lib/helpema/zbar.rb
CHANGED
@@ -2,13 +2,19 @@ module Helpema
|
|
2
2
|
module ZBar
|
3
3
|
|
4
4
|
def self.qrcode(timeout=3)
|
5
|
-
qrcode =
|
5
|
+
qrcode = ''
|
6
6
|
IO.popen('zbarcam --nodisplay --raw --prescale=800x800', 'r') do |io|
|
7
7
|
begin
|
8
8
|
Timeout.timeout(timeout) do
|
9
|
-
qrcode
|
9
|
+
qrcode << io.gets
|
10
|
+
while q = io.gets
|
11
|
+
break if q=="\n"
|
12
|
+
qrcode << q
|
13
|
+
end
|
14
|
+
qrcode.strip!
|
10
15
|
end
|
11
16
|
rescue Timeout::Error
|
17
|
+
qrcode = nil
|
12
18
|
$stderr.puts $!
|
13
19
|
ensure
|
14
20
|
Process.kill('INT', io.pid)
|
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: helpema
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- carlosjhr64
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-06-14 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |
|
14
|
-
Some wrappers on the following linux commands: ssss-split, ssss-combine, zbarcam.
|
14
|
+
Some wrappers on the following linux commands: ssss-split, ssss-combine, zbarcam, youtube-dl -j.
|
15
15
|
|
16
16
|
More later.
|
17
17
|
email: carlosjhr64@gmail.com
|
@@ -47,15 +47,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
47
47
|
- !ruby/object:Gem::Version
|
48
48
|
version: '0'
|
49
49
|
requirements:
|
50
|
-
- 'ruby: ruby 2.
|
50
|
+
- 'ruby: ruby 2.3.3p222 (2016-11-21 revision 56859) [x86_64-linux]'
|
51
51
|
- 'ssss-split: 0.5'
|
52
52
|
- 'ssss-combine: 0.5'
|
53
53
|
- 'zbarcam: 0.10'
|
54
54
|
rubyforge_project:
|
55
|
-
rubygems_version: 2.
|
55
|
+
rubygems_version: 2.5.2
|
56
56
|
signing_key:
|
57
57
|
specification_version: 4
|
58
58
|
summary: 'Some wrappers on the following linux commands: ssss-split, ssss-combine,
|
59
|
-
zbarcam.'
|
59
|
+
zbarcam, youtube-dl -j.'
|
60
60
|
test_files: []
|
61
|
-
has_rdoc:
|