secure 0.0.3 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module Secure
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.5"
3
3
  end
data/spec/secure_spec.rb CHANGED
@@ -82,5 +82,13 @@ describe Secure do
82
82
  response.should be_success
83
83
  response.value.should == 45
84
84
  end
85
+
86
+ it "should be able to read from an open file" do
87
+ file = File.open("/etc/hosts")
88
+ response = Secure.ly({}, file) do |file|
89
+ file.readline
90
+ end
91
+ response.should be_success
92
+ end
85
93
  end
86
94
  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: 25
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
10
- version: 0.0.3
9
+ - 5
10
+ version: 0.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tejas Dinkar