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 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 spec/spec_helper"
7
+ t.rspec_opts = "--colour --format documentation -r spec_helper"
8
8
  t.pattern = 'spec/**/*.rb'
9
9
  end
10
10
 
@@ -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
@@ -1,3 +1,5 @@
1
+ require 'base64'
2
+
1
3
  module Secure
2
4
  class ParentProcess
3
5
  def initialize(read_file, write_file)
@@ -6,7 +8,7 @@ module Secure
6
8
  end
7
9
 
8
10
  def execute
9
- Marshal.load(@pipe.read)
11
+ Marshal.load(Base64.decode64(@pipe.read))
10
12
  end
11
13
  end
12
14
  end
@@ -1,3 +1,3 @@
1
1
  module Secure
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
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('rspec')
22
- s.add_development_dependency('rake')
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: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 0
10
- version: 0.2.0
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: 3
29
+ hash: 15
30
30
  segments:
31
- - 0
32
- version: "0"
31
+ - 2
32
+ - 6
33
+ version: "2.6"
33
34
  type: :development
34
35
  version_requirements: *id001
35
36
  - !ruby/object:Gem::Dependency