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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b0c1d48e25197f04c4d7ca05d068a81b639358c0
4
- data.tar.gz: ca0251478b57e758d3fdc1c6474fdee26b62e2db
3
+ metadata.gz: 97aef7e26445e9b17fb514f34fba1d286dd6cda7
4
+ data.tar.gz: c8149b74cb8d35ce7e0a42dfc6236c4a210f35a8
5
5
  SHA512:
6
- metadata.gz: b98a8692143b9c85407e1a192a453dd845b25cab1a23dc1b1ded198ed80d0c7378a7ca62ca3c32d0709c129ad2576f94d4cfaffb625645a9646fc429d165e1e7
7
- data.tar.gz: 46bc724009fc7b9d61d8e407494be1b6c6c782e077c74d004dcef5ca5d63a8bddf07d24395c6896d1d003abc1067d21b6d53d6c37845cff73bcb5407b7df71a2
6
+ metadata.gz: 9d37cc78e671535927fdfe18c36374409729a6b8490a85e5b91394f566755dbde70f459db38452bff697e6f36d42dab5f62c008f3dc0ff6e22f42f1d38a8e08e
7
+ data.tar.gz: ecbc2b1ff09517c00d7fe9a430345c9c6331b62f8bdfd17259d81e6a3017c7428ff89f8cb9f53c68e918b56c71f6a410fe691d36bd744661bcbce7417aa31387
data/README.rdoc CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  == DESCRIPTION:
6
6
 
7
- Some wrappers on the following linux commands: ssss-split, ssss-combine, zbarcam.
7
+ Some wrappers on the following linux commands: ssss-split, ssss-combine, zbarcam, youtube-dl -j.
8
8
 
9
9
  More later.
10
10
 
@@ -1,3 +1,3 @@
1
1
  module Helpema
2
- VERSION = '0.1.0'
2
+ VERSION = '0.2.0'
3
3
  end
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 = nil
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 = io.gets.strip
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.1.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: 2014-12-23 00:00:00.000000000 Z
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.1.3p242 (2014-09-19 revision 47630) [x86_64-linux]'
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.4.1
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: