ftpmvc 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bf2e9baaad49d9a071156187fb937b34bad1034a
4
- data.tar.gz: 8af18d576a62518dc608c109b0a1714857d7c864
3
+ metadata.gz: 79a923c8d12fec0e8aee16d6bcf75d15969c12b8
4
+ data.tar.gz: 1b2ab2266a73e6e1263b3e9f66456cc0d93393aa
5
5
  SHA512:
6
- metadata.gz: 48e3c95a03c80d3765ca612b176a68e28eadebd76d3b6c55164947324edc253bcc2657699e614a96525e3164c2357380d9b2cb9309c867a3a4980e14ae88487f
7
- data.tar.gz: 5c232bcd9e543591d318431a41abf286763717a2879267ca6152a867e229787468139b2d47b5c84a15c8aec9b9a2429130d55ed601d6b5ab0749b746cdaf281a
6
+ metadata.gz: 723985bcf387095631590083826bdb3013ba5c77b0b59707adea0989e31144eb3c1c20704eed44a10526dde9ed82b32bc79935091391197278aa920aa5e869a7
7
+ data.tar.gz: 6c159810a90943ea5417f1d53a0dc1ebab8557e1f0ea090535919f06c98ecf41757c2ab1bf6dc5c6d48c7c1d7cdc56429d22425ba8aefb68263d06bae7835299
@@ -6,11 +6,11 @@ module FTPMVC
6
6
  end
7
7
 
8
8
  def dir(path)
9
- @application.index(path[/^[^*]*/]).map { |node| ::File.join(path, node.name) }
9
+ @application.index(path.gsub('/*', '')).map { |node| ::File.join(path, node.name) }
10
10
  end
11
11
 
12
12
  def directory?(path)
13
- @application.directory?(path)
13
+ @application.directory?(path.gsub('/*', ''))
14
14
  end
15
15
 
16
16
  def read(path)
@@ -29,7 +29,7 @@ module FTPMVC
29
29
  ::Ftpd::FileInfo.new(
30
30
  :ftype => directory?(path) ? 'directory' : 'file',
31
31
  :group => 'nogroup',
32
- :mode => 0777,
32
+ :mode => directory?(path) ? 0750 : 0640,
33
33
  :mtime => Time.now,
34
34
  :nlink => 33,
35
35
  :owner => 'nobody',
@@ -1,3 +1,3 @@
1
1
  module FTPMVC
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ftpmvc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - André Aizim Kelmanson