secure 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/secure/child_process.rb +3 -1
- data/lib/secure/parent_process.rb +3 -1
- data/lib/secure/version.rb +1 -1
- data/secure.gemspec +2 -2
- metadata +8 -7
data/Rakefile
CHANGED
@@ -4,7 +4,7 @@ require 'rspec/core/rake_task'
|
|
4
4
|
|
5
5
|
desc "Run all examples"
|
6
6
|
RSpec::Core::RakeTask.new('spec') do |t|
|
7
|
-
t.rspec_opts = "--colour --format documentation -r
|
7
|
+
t.rspec_opts = "--colour --format documentation -r spec_helper"
|
8
8
|
t.pattern = 'spec/**/*.rb'
|
9
9
|
end
|
10
10
|
|
data/lib/secure/child_process.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'base64'
|
2
|
+
|
1
3
|
module Secure
|
2
4
|
class ChildProcess
|
3
5
|
def initialize(opts, read_file, write_file)
|
@@ -27,7 +29,7 @@ module Secure
|
|
27
29
|
|
28
30
|
def execute
|
29
31
|
ret = safely_run_block { yield }
|
30
|
-
@pipe.write(Marshal.dump(ret))
|
32
|
+
@pipe.write(Base64.encode64(Marshal.dump(ret)))
|
31
33
|
end
|
32
34
|
end
|
33
35
|
end
|
data/lib/secure/version.rb
CHANGED
data/secure.gemspec
CHANGED
@@ -18,6 +18,6 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
19
19
|
s.require_paths = ["lib"]
|
20
20
|
|
21
|
-
s.add_development_dependency
|
22
|
-
s.add_development_dependency
|
21
|
+
s.add_development_dependency "rspec", ["~> 2.6"]
|
22
|
+
s.add_development_dependency 'rake'
|
23
23
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: secure
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 1
|
10
|
+
version: 0.2.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Tejas Dinkar
|
@@ -24,12 +24,13 @@ dependencies:
|
|
24
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
25
|
none: false
|
26
26
|
requirements:
|
27
|
-
- -
|
27
|
+
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
hash:
|
29
|
+
hash: 15
|
30
30
|
segments:
|
31
|
-
-
|
32
|
-
|
31
|
+
- 2
|
32
|
+
- 6
|
33
|
+
version: "2.6"
|
33
34
|
type: :development
|
34
35
|
version_requirements: *id001
|
35
36
|
- !ruby/object:Gem::Dependency
|