rfuse 1.1.2.RC0 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/.travis.yml +7 -3
- data/CHANGES.md +6 -0
- data/lib/rfuse/version.rb +1 -1
- data/spec/fuse_file_info_spec.rb +10 -4
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MGUxZjg1MWU2MzJiYjQ3YjUwYmMyNTgzODg4NjQwZDU2MmVhYjhlZg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NjM5NmMwZGI1MTAyODRiYTlmYzQ2NzI3NmM2YTdkMmI0Mzk0NzFmOQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
M2MxMWI1MGUwYmFlM2VkMGViNzgzYWFiZjUwY2Q5NzMxZmFiOWI0NjcyMWQx
|
10
|
+
OGJlN2ViZmRjNTZhODYxYjMyYWJjMGYwNjc1NTAxY2QzYjgyZTljNzZmYjhk
|
11
|
+
OGQ3NmM1NjU1YjJjNGFiZjYyNTk2Mzk2OTNjNzFjMjk2NWFjMWY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NThhNWNiYzNlYTQ5MTU3ZWM5OWIxMTdmZGU4NWI3N2M1ODNiYzVhNGU3Zjkx
|
14
|
+
M2FiMGYwNmQ4MmM5NzQ4NDE0MDg3NzFmNzY4MmUzZTFkMzE1MGNjOGMxZjRk
|
15
|
+
MmZkNmZmZTI5NjkyMTU1ZDIzNTZhZjU4NDVmNzQ2ZDAyZWY2NDk=
|
data/.travis.yml
CHANGED
@@ -1,16 +1,20 @@
|
|
1
|
-
language: ruby
|
2
1
|
|
2
|
+
sudo: required
|
3
|
+
dist: trusty
|
4
|
+
language: ruby
|
3
5
|
|
4
6
|
rvm:
|
5
7
|
- "2.1"
|
6
8
|
|
7
9
|
before_install:
|
8
10
|
- sudo apt-get update -y
|
9
|
-
- sudo apt-get install -
|
11
|
+
- sudo apt-get install -qq pkg-config fuse libfuse-dev
|
12
|
+
- sudo modprobe fuse
|
13
|
+
- sudo chmod 666 /dev/fuse
|
14
|
+
- sudo chown root:$USER /etc/fuse.conf
|
10
15
|
|
11
16
|
script:
|
12
17
|
- bundle exec rake spec
|
13
18
|
|
14
19
|
cache:
|
15
20
|
bundler: true
|
16
|
-
|
data/CHANGES.md
CHANGED
data/lib/rfuse/version.rb
CHANGED
data/spec/fuse_file_info_spec.rb
CHANGED
@@ -19,6 +19,7 @@ describe RFuse::Fuse do
|
|
19
19
|
mockfs.should_receive(:open).with(anything(),"/ffirelease",anything()) { |ctx,path,ffi|
|
20
20
|
stored_ffi = ffi
|
21
21
|
ffi.fh = file_handle
|
22
|
+
ctx.uid.should > 0
|
22
23
|
}
|
23
24
|
|
24
25
|
mockfs.should_receive(:release).with(anything(),"/ffirelease",anything()) { |ctx,path,ffi|
|
@@ -26,7 +27,9 @@ describe RFuse::Fuse do
|
|
26
27
|
begin
|
27
28
|
ffi.fh.should == file_handle
|
28
29
|
ffi.should == stored_ffi
|
29
|
-
|
30
|
+
# Not sure why ctx.uid is not still set during release
|
31
|
+
ctx.uid.should == 0
|
32
|
+
rescue Exception => ex
|
30
33
|
captured_ex = ex
|
31
34
|
end
|
32
35
|
}
|
@@ -36,7 +39,7 @@ describe RFuse::Fuse do
|
|
36
39
|
f1.close()
|
37
40
|
end
|
38
41
|
|
39
|
-
captured_ex
|
42
|
+
raise captured_ex if captured_ex
|
40
43
|
end
|
41
44
|
|
42
45
|
it "should pass fileinfo to #releasedir" do
|
@@ -50,6 +53,7 @@ describe RFuse::Fuse do
|
|
50
53
|
mockfs.should_receive(:opendir).with(anything(),"/ffirelease",anything()) { |ctx,path,ffi|
|
51
54
|
stored_ffi = ffi
|
52
55
|
ffi.fh = file_handle
|
56
|
+
ctx.uid.should > 0
|
53
57
|
}
|
54
58
|
|
55
59
|
mockfs.should_receive(:readdir) do | ctx, path, filler,offset,ffi |
|
@@ -62,7 +66,9 @@ describe RFuse::Fuse do
|
|
62
66
|
begin
|
63
67
|
ffi.fh.should == file_handle
|
64
68
|
ffi.should == stored_ffi
|
65
|
-
|
69
|
+
# Not entirely sure why ctx.uid is not set here
|
70
|
+
ctx.uid.should == 0
|
71
|
+
rescue Exception => ex
|
66
72
|
captured_ex = ex
|
67
73
|
end
|
68
74
|
}
|
@@ -74,7 +80,7 @@ describe RFuse::Fuse do
|
|
74
80
|
entries.should include("world")
|
75
81
|
end
|
76
82
|
|
77
|
-
captured_ex
|
83
|
+
raise captured_ex if captured_ex
|
78
84
|
end
|
79
85
|
|
80
86
|
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.2
|
4
|
+
version: 1.1.2
|
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-11-
|
11
|
+
date: 2015-11-27 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:
|
180
|
+
version: '0'
|
181
181
|
requirements: []
|
182
182
|
rubyforge_project:
|
183
183
|
rubygems_version: 2.1.11
|