Skip to content

Commit 80cbae9

Browse files
committed
tests pass on linux too. v 1.13.0
1 parent aa2875d commit 80cbae9

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

lib/sekrets.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ def recrypt(old_key, new_key, data)
357357
require 'tmpdir'
358358

359359
class Sekrets < ::String
360-
Version = '1.12.0' unless defined?(Version)
360+
Version = '1.13.0' unless defined?(Version)
361361

362362
class << Sekrets
363363
def version

sekrets.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
Gem::Specification::new do |spec|
77
spec.name = "sekrets"
8-
spec.version = "1.12.0"
8+
spec.version = "1.13.0"
99
spec.platform = Gem::Platform::RUBY
1010
spec.summary = "securely manage encrypted files and settings"
1111
spec.description = "sekrets is a command line tool and library used to securely manage encrypted files and settings in your rails' applications and git repositories."

test/sekrets_test.rb

+3-1
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,13 @@
5151
command = %[ #{ ruby } -r #{ $libdir }/sekrets.rb -e'puts Sekrets.key_for("plaintext")' ]
5252

5353
key = nil
54+
5455
PTY.spawn(command) do |r, w, pid|
5556
w.puts('foobar')
5657
w.close
57-
key = r.read.to_s.strip
58+
key = r.gets.to_s.strip rescue Errno::EIO
5859
end
60+
5961
assert{ key =~ /foobar/ }
6062

6163
key = `#{ command } </dev/null`

0 commit comments

Comments
 (0)