rfuse 1.1.1 → 1.1.2.RC0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZmY2MGVhOTliNWNhYjkwMDhjNzg0ZTA2YzMyNTU5NTk3MTg3YjFiMw==
4
+ M2M0M2YzYWY2OGY2MWJlMGQzNmZkODUwNWM4Yzg1MDkzYjg2YTI4Yg==
5
5
  data.tar.gz: !binary |-
6
- NDFlNjE3NjQwYzY4Mjc4M2EyYjJkOTk3ODM0MmExZGI0OWU5YzNjMQ==
6
+ ZDg3YmFiMDdjN2EzZjQwM2EzOTZjNGIwMjFiMTM0OTlhMmJiZDRkYg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MGZlZDEzZDYyNjU3MGVkZGUzZGVmY2JkNDA4YjVjNjQ2ZmQwMmYyNjU3ZjQ4
10
- OGNlMTdhYjc4Njg3NGJjZGU0OTRlZjBiNmUwY2I1YzVjMWNiNjgyM2UyMDRh
11
- YjRlYzRlMDVlOWVkMWQ5MTg3Yzc3Y2YyZTZhOTZiOTg1NjNiY2Y=
9
+ YjIxMDkyZmVlNDhkYWYzMDBkZDk5NzBmZTkyYzAwNDk4ZGMzMDMyOTQ2ODFj
10
+ OTE0ZTM5ZWI1YjdmZTg5OWU5NjM2MjJmODdiMzNmZWZiMWQwYmUyNWU1MWZh
11
+ ODQxYzQ2NmJiZTE3MGQ1NmE2MjA4ZmYxYjE3NTM5OWVkZThiNzE=
12
12
  data.tar.gz: !binary |-
13
- YTYwMmFmNzhjZjRmNzI3YTE0M2YyOTc1MTZiZmY3ZGM1NzBkNTdhNjM0MWIx
14
- OWU5OWFhY2YwOGUwNDYyNjgyZjU1Zjg5MTliN2FiNTQ1N2QyZGRhZjhjMTA2
15
- YWE5ZDkxMjEyYmNlMzYxYTZkMjEyNDMzNGEyYjczZTc4ZGMzNjc=
13
+ ODBjYmZjOGYxOTE0MWJhM2QzZjFmZmQ1ZjhmYjQxNmZmNTFhNjRjNWQxYTY5
14
+ NTcwMTUyYzM4NWZjMjJlOTc4NTU4YWYzMDliNmY1MzE4M2Q2ODc0ZjFkZjUw
15
+ N2FlZDNkOTYxYzk0YjEyYjdiZGY3MmVmYTgxZTZlYzJjMjZmOGY=
data/ext/rfuse/rfuse.c CHANGED
@@ -1156,8 +1156,7 @@ static int rf_opendir(const char *path,struct fuse_file_info *ffi)
1156
1156
  */
1157
1157
  static VALUE unsafe_releasedir(VALUE *args)
1158
1158
  {
1159
-
1160
- return rb_funcall(args[0],rb_intern("releasedir"),3,&args[1]);
1159
+ return rb_funcall3(args[0],rb_intern("releasedir"),3,&args[1]);
1161
1160
  }
1162
1161
 
1163
1162
  static int rf_releasedir(const char *path,struct fuse_file_info *ffi)
data/lib/rfuse/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RFuse
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2.RC0"
3
3
  end
@@ -22,7 +22,7 @@ describe RFuse::Fuse do
22
22
  }
23
23
 
24
24
  mockfs.should_receive(:release).with(anything(),"/ffirelease",anything()) { |ctx,path,ffi|
25
- # the return value of release is ignore, so exceptions here are lost
25
+ # the return value of release is ignored, so exceptions here are lost
26
26
  begin
27
27
  ffi.fh.should == file_handle
28
28
  ffi.should == stored_ffi
@@ -36,7 +36,45 @@ describe RFuse::Fuse do
36
36
  f1.close()
37
37
  end
38
38
 
39
- raise captured_ex if captured_ex
39
+ captured_ex.should be_nil
40
+ end
41
+
42
+ it "should pass fileinfo to #releasedir" do
43
+
44
+ file_handle = Object.new()
45
+ stored_ffi = nil
46
+ captured_ex = nil
47
+
48
+ mockfs.stub(:getattr).with(anything(),"/ffirelease").and_return(dir_stat)
49
+
50
+ mockfs.should_receive(:opendir).with(anything(),"/ffirelease",anything()) { |ctx,path,ffi|
51
+ stored_ffi = ffi
52
+ ffi.fh = file_handle
53
+ }
54
+
55
+ mockfs.should_receive(:readdir) do | ctx, path, filler,offset,ffi |
56
+ filler.push("hello",nil,0)
57
+ filler.push("world",nil,0)
58
+ end
59
+
60
+ mockfs.should_receive(:releasedir).with(anything(),"/ffirelease",anything()) { |ctx,path,ffi|
61
+ # the return value of release is ignored, so exceptions here are lost
62
+ begin
63
+ ffi.fh.should == file_handle
64
+ ffi.should == stored_ffi
65
+ rescue => ex
66
+ captured_ex = ex
67
+ end
68
+ }
69
+
70
+ with_fuse(mountpoint,mockfs) do
71
+ entries = Dir.entries("#{mountpoint}/ffirelease")
72
+ entries.size.should == 2
73
+ entries.should include("hello")
74
+ entries.should include("world")
75
+ end
76
+
77
+ captured_ex.should be_nil
40
78
  end
41
79
 
42
80
  context "file handles" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rfuse
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2.RC0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Grant Gardner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-26 00:00:00.000000000 Z
11
+ date: 2015-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -175,9 +175,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
175
175
  version: '0'
176
176
  required_rubygems_version: !ruby/object:Gem::Requirement
177
177
  requirements:
178
- - - ! '>='
178
+ - - ! '>'
179
179
  - !ruby/object:Gem::Version
180
- version: '0'
180
+ version: 1.3.1
181
181
  requirements: []
182
182
  rubyforge_project:
183
183
  rubygems_version: 2.1.11