ruby_smb 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/ruby_smb/client/utils.rb +2 -2
- data/lib/ruby_smb/version.rb +1 -1
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ee177148e1551d6f4f431bb4ec5a6af20d289d4
|
4
|
+
data.tar.gz: 947944d3ccf4f1f032b75a6bd6a1293ed0ae9dc5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 679363057437492685efbc69e080d33559759f2514fe10847ffdc02a6fccab9c782363ea61315a3c3b30cc96ed4256b1ccb84a8bba72ac49de35181032e91e90
|
7
|
+
data.tar.gz: 17224d743364f6d18435fb055d1bd612d78532de7799c02a31b788a1247d3fd9c7119d2e17dbab2680bd44f71b5bce0dca4abaa18462428d8c47f49bef97515a
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
@@ -25,7 +25,7 @@ module RubySMB
|
|
25
25
|
end
|
26
26
|
|
27
27
|
def open(path, disposition=RubySMB::Dispositions::FILE_OPEN, write: false, read: true)
|
28
|
-
file = last_tree.open_file(filename: path.
|
28
|
+
file = last_tree.open_file(filename: path.sub(/^\\/, ''), write: write, read: read, disposition: disposition)
|
29
29
|
@last_file_id = if file.respond_to?(:guid)
|
30
30
|
file.guid.to_binary_s
|
31
31
|
elsif file.respond_to?(:fid)
|
@@ -50,7 +50,7 @@ module RubySMB
|
|
50
50
|
end
|
51
51
|
|
52
52
|
def delete(path)
|
53
|
-
file = last_tree.open_file(filename: path.
|
53
|
+
file = last_tree.open_file(filename: path.sub(/^\\/, ''), delete: true)
|
54
54
|
file.delete
|
55
55
|
file.close
|
56
56
|
end
|
data/lib/ruby_smb/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_smb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Maloney
|
@@ -91,7 +91,7 @@ cert_chain:
|
|
91
91
|
G+Hmcg1v810agasPdoydE0RTVZgEOOMoQ07qu7JFXVWZ9ZQpHT7qJATWL/b2csFG
|
92
92
|
8mVuTXnyJOKRJA==
|
93
93
|
-----END CERTIFICATE-----
|
94
|
-
date: 2018-06-
|
94
|
+
date: 2018-06-27 00:00:00.000000000 Z
|
95
95
|
dependencies:
|
96
96
|
- !ruby/object:Gem::Dependency
|
97
97
|
name: redcarpet
|
metadata.gz.sig
CHANGED
Binary file
|