rfuse 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: c681e2e8d70b6ac4e8df3fff15a400024294c67c
4
- data.tar.gz: 6da4b5e6fe5c4d4688757ab771a8eb08f107089e
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZmY2MGVhOTliNWNhYjkwMDhjNzg0ZTA2YzMyNTU5NTk3MTg3YjFiMw==
5
+ data.tar.gz: !binary |-
6
+ NDFlNjE3NjQwYzY4Mjc4M2EyYjJkOTk3ODM0MmExZGI0OWU5YzNjMQ==
5
7
  SHA512:
6
- metadata.gz: cc1ac1367049aeb0d192eaa69b52774a97c899ac62047553eba6e84c0ebaea1b0e5f98ef1d106f2730725e1a247a5c975be27c652374039ee94b3893fbc3a650
7
- data.tar.gz: 8389030790e7823114dbd36e19080c58152a67e5236e2dee4b2ca2843c793e0279fba91b10acd82431351f7969150f9c93b4dfee2262c6b81b2eef08a01a9bdf
8
+ metadata.gz: !binary |-
9
+ MGZlZDEzZDYyNjU3MGVkZGUzZGVmY2JkNDA4YjVjNjQ2ZmQwMmYyNjU3ZjQ4
10
+ OGNlMTdhYjc4Njg3NGJjZGU0OTRlZjBiNmUwY2I1YzVjMWNiNjgyM2UyMDRh
11
+ YjRlYzRlMDVlOWVkMWQ5MTg3Yzc3Y2YyZTZhOTZiOTg1NjNiY2Y=
12
+ data.tar.gz: !binary |-
13
+ YTYwMmFmNzhjZjRmNzI3YTE0M2YyOTc1MTZiZmY3ZGM1NzBkNTdhNjM0MWIx
14
+ OWU5OWFhY2YwOGUwNDYyNjgyZjU1Zjg5MTliN2FiNTQ1N2QyZGRhZjhjMTA2
15
+ YWE5ZDkxMjEyYmNlMzYxYTZkMjEyNDMzNGEyYjczZTc4ZGMzNjc=
@@ -0,0 +1,16 @@
1
+ language: ruby
2
+
3
+
4
+ rvm:
5
+ - "2.1"
6
+
7
+ before_install:
8
+ - sudo apt-get update -y
9
+ - sudo apt-get install -y libfuse-dev
10
+
11
+ script:
12
+ - bundle exec rake spec
13
+
14
+ cache:
15
+ bundler: true
16
+
@@ -74,7 +74,7 @@ module RFuse
74
74
  def self.parse_options(argv,*local_opts)
75
75
  result = Hash.new(nil)
76
76
 
77
- first_opt_index = (argv.find_index() { |opt| opt =~ /-.*/ } || argv.length )
77
+ first_opt_index = (argv.find_index() { |opt| opt =~ /^-.*/ } || argv.length )
78
78
 
79
79
  result[:device] = argv.shift if first_opt_index > 1
80
80
  result[:mountpoint] = argv[0] if argv.length > 0
@@ -1,3 +1,3 @@
1
1
  module RFuse
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
@@ -131,5 +131,13 @@ describe RFuse do
131
131
  argv.should == [ "/mountpoint" , "-o", "rw,debug,default_permissions" ]
132
132
  end
133
133
 
134
+ context "with '-' in device" do
135
+ it "should parse the device correctly" do
136
+ argv = [ "a-device", "/mountpoint" , "-o", "rw,debug,default_permissions" ]
137
+ result = RFuse.parse_options(argv)
138
+
139
+ result[:device].should == "a-device"
140
+ end
141
+ end
134
142
  end
135
143
  end
metadata CHANGED
@@ -1,111 +1,111 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rfuse
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Grant Gardner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-22 00:00:00.000000000 Z
11
+ date: 2015-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - ! '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - ! '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake-compiler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - ! '>='
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - ! '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ~>
46
46
  - !ruby/object:Gem::Version
47
47
  version: 3.0.0
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ~>
53
53
  - !ruby/object:Gem::Version
54
54
  version: 3.0.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: yard
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - ! '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - ! '>='
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: redcarpet
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - ! '>='
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ">="
80
+ - - ! '>='
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: ffi-xattr
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - ! '>='
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ">="
94
+ - - ! '>='
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: sys-filesystem
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ">="
101
+ - - ! '>='
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ">="
108
+ - - ! '>='
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  description: Write userspace filesystems in Ruby
@@ -117,8 +117,9 @@ extensions:
117
117
  extra_rdoc_files:
118
118
  - CHANGES.md
119
119
  files:
120
- - ".gitignore"
121
- - ".yardopts"
120
+ - .gitignore
121
+ - .travis.yml
122
+ - .yardopts
122
123
  - CHANGES.md
123
124
  - Gemfile
124
125
  - LICENSE
@@ -169,17 +170,17 @@ require_paths:
169
170
  - lib
170
171
  required_ruby_version: !ruby/object:Gem::Requirement
171
172
  requirements:
172
- - - ">="
173
+ - - ! '>='
173
174
  - !ruby/object:Gem::Version
174
175
  version: '0'
175
176
  required_rubygems_version: !ruby/object:Gem::Requirement
176
177
  requirements:
177
- - - ">="
178
+ - - ! '>='
178
179
  - !ruby/object:Gem::Version
179
180
  version: '0'
180
181
  requirements: []
181
182
  rubyforge_project:
182
- rubygems_version: 2.4.3
183
+ rubygems_version: 2.1.11
183
184
  signing_key:
184
185
  specification_version: 4
185
186
  summary: Ruby language binding for FUSE