boxafe 0.1.7 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (7) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +2 -2
  3. data/README.md +4 -0
  4. data/VERSION +1 -1
  5. data/lib/boxafe.rb +1 -1
  6. data/lib/boxafe/box.rb +2 -1
  7. metadata +17 -17
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bd82070b49d3bd4c1138e4af09b91c3934090344
4
- data.tar.gz: 28b5fb286d063862a195df0dbd9605ffde6618cd
3
+ metadata.gz: dfe521aa76502b8ccd2e9560869bad379ef970dc
4
+ data.tar.gz: a12d602447f52259af3ef1fae0f38cff92f5a9cc
5
5
  SHA512:
6
- metadata.gz: da081fd8b2d1462248ac93dfabe5fc32dbd93bd8b2c1e6b6be2fd88c6ea4e7ba4558ee2417b4051cbc429ef1476439c03d95385f7a63dbea1fde2fde632b4afc
7
- data.tar.gz: 3db3ef34e3057b7198bbbbdabaa4db24b8d8e907173b9b87742a0e1e0eebc0f753f485e6db34029ea10a7116c0fa12d184e98db13278476020f0f31d41d4efd9
6
+ metadata.gz: b981c6195569536b283f09875f831daec5491838982447a8e2f1c365cf45ad17d420b77a97ef6b821b9df6aaee286c3589f6ac5f2f32a0a8f3787201c71c8a8b
7
+ data.tar.gz: 1d997e8c3eea39826d081302d20dcaebbf296d09d9c52df899acb23a1792129f9e9aed6c9e6df9e4f3c2403c30dd027896630f7c60b64a9e583336d898c6a23d
data/Gemfile CHANGED
@@ -15,10 +15,10 @@ gem 'multi_scheduler', '~> 0.1.2'
15
15
  # Include everything needed to run rake, tests, features, etc.
16
16
  group :development do
17
17
  gem 'rake', '~> 11.3'
18
- gem 'rspec', '~> 3.1'
19
18
  gem 'jeweler', '~> 2.0'
20
19
  gem 'rake-version', '~> 1.0'
21
- gem 'simplecov', '~> 0.12.0'
22
20
  gem 'fakefs', '~> 0.10.0', require: 'fakefs/safe'
21
+ gem 'rspec', '~> 3.1'
22
+ gem 'simplecov', '~> 0.12.0'
23
23
  gem 'coveralls', '~> 0.8.16', require: false
24
24
  end
data/README.md CHANGED
@@ -10,6 +10,10 @@ It can also mount them on startup. [EncFS](http://www.arg0.net/encfs) must be in
10
10
 
11
11
  **Note: Currently supports OS X. Partial Linux support.**
12
12
 
13
+ ## Requirements
14
+
15
+ * Ruby 2.2+
16
+
13
17
  ## Installation
14
18
 
15
19
  gem install boxafe
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.7
1
+ 0.1.9
@@ -4,7 +4,7 @@ require 'dotenv'
4
4
  require 'mutaconf'
5
5
 
6
6
  module Boxafe
7
- VERSION = '0.1.7'
7
+ VERSION = '0.1.9'
8
8
 
9
9
  # TODO: add detailed error description for non-trace mode
10
10
  class Error < StandardError
@@ -34,7 +34,8 @@ module Boxafe
34
34
  end
35
35
 
36
36
  def mounted?
37
- File.directory? mount_options[:mount]
37
+ # TODO: check if it's possible to differentiate between an empty mounted directory and an unmounted directory
38
+ File.directory?(mount_options[:mount]) && !Dir.entries(mount_options[:mount]).reject{ |e| e.match(/^\.{1,2}$/) }.empty?
38
39
  end
39
40
 
40
41
  def mount_options
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: boxafe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - AlphaHydrae
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-04 00:00:00.000000000 Z
11
+ date: 2017-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: paint
@@ -123,75 +123,75 @@ dependencies:
123
123
  - !ruby/object:Gem::Version
124
124
  version: '11.3'
125
125
  - !ruby/object:Gem::Dependency
126
- name: rspec
126
+ name: jeweler
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: '3.1'
131
+ version: '2.0'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: '3.1'
138
+ version: '2.0'
139
139
  - !ruby/object:Gem::Dependency
140
- name: jeweler
140
+ name: rake-version
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
143
  - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: '2.0'
145
+ version: '1.0'
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: '2.0'
152
+ version: '1.0'
153
153
  - !ruby/object:Gem::Dependency
154
- name: rake-version
154
+ name: fakefs
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
157
  - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: '1.0'
159
+ version: 0.10.0
160
160
  type: :development
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - "~>"
165
165
  - !ruby/object:Gem::Version
166
- version: '1.0'
166
+ version: 0.10.0
167
167
  - !ruby/object:Gem::Dependency
168
- name: simplecov
168
+ name: rspec
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
171
  - - "~>"
172
172
  - !ruby/object:Gem::Version
173
- version: 0.12.0
173
+ version: '3.1'
174
174
  type: :development
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
178
  - - "~>"
179
179
  - !ruby/object:Gem::Version
180
- version: 0.12.0
180
+ version: '3.1'
181
181
  - !ruby/object:Gem::Dependency
182
- name: fakefs
182
+ name: simplecov
183
183
  requirement: !ruby/object:Gem::Requirement
184
184
  requirements:
185
185
  - - "~>"
186
186
  - !ruby/object:Gem::Version
187
- version: 0.10.0
187
+ version: 0.12.0
188
188
  type: :development
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
192
  - - "~>"
193
193
  - !ruby/object:Gem::Version
194
- version: 0.10.0
194
+ version: 0.12.0
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: coveralls
197
197
  requirement: !ruby/object:Gem::Requirement