rubeepass 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rubeepass.rb +3 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8635dc28cb56a0bc98a6c2d8ac0f0029a1d16005
4
- data.tar.gz: 83416771d1bf5a6ebd2d66cde4603b9de3d55cd5
3
+ metadata.gz: d0d57a82495844ad825a16e50870940d62a2f67d
4
+ data.tar.gz: 0824857cd914ec4d4b8b39f3f4384fd92f3ec65e
5
5
  SHA512:
6
- metadata.gz: ee4d0478d32fa683fbde3a7e80f9c42b48ce4e4248285e7ef7b094ee66c60918fd1c1563403fa7d59b6682a7a4670055853cbb8bae0fa7e66f453e5bce5d68a8
7
- data.tar.gz: ee51c7575168d1727527690cb6d064f2d21fc2f6ff8ee877360744ec71590569dd14320ffb8467e6446e98878af97eb6bc2e8328da81a6e3e067b73311c7e5e1
6
+ metadata.gz: 0dac864aea481644421ccfa24edb580e391d11883eec6ee74a6eaf27353b2be5d7a2f1a79a5b526bfb30fbd5651535ec0974433478d694b32bc335ea982363f2
7
+ data.tar.gz: 41e331ec51c58df22c38a75b1b3f6c2ef31330f5484c1e41ade1ffe8f0c953da0754b927731f4e3d953d86bee1ee1d00b82b152a6d4280048d9414663a0ee899
data/lib/rubeepass.rb CHANGED
@@ -3,6 +3,7 @@ require "digest"
3
3
  require "openssl"
4
4
  require "os"
5
5
  require "scoobydoo"
6
+ require "shellwords"
6
7
  require "uri"
7
8
  require "zlib"
8
9
 
@@ -85,7 +86,7 @@ class RubeePass
85
86
  end
86
87
 
87
88
  if (cp)
88
- system("echo \"#{string}\" | #{cp}")
89
+ system("echo #{string.shellescape} | #{cp}")
89
90
  else
90
91
  puts "Please install reattach-to-user-namespace!"
91
92
  return
@@ -102,7 +103,7 @@ class RubeePass
102
103
  end
103
104
 
104
105
  if (cp)
105
- system("echo \"#{string}\" | #{cp}")
106
+ system("echo #{string.shellescape} | #{cp}")
106
107
  else
107
108
  puts "Please install either xclip or xsel!"
108
109
  return
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubeepass
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
  - Miles Whittaker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-17 00:00:00.000000000 Z
11
+ date: 2015-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest