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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d89696524ee8ae603c50be9ffd9fe6bbcb1f217f
4
- data.tar.gz: 6fcbab915f26646e9981caf65f5d75de64cea4d1
3
+ metadata.gz: 6ee177148e1551d6f4f431bb4ec5a6af20d289d4
4
+ data.tar.gz: 947944d3ccf4f1f032b75a6bd6a1293ed0ae9dc5
5
5
  SHA512:
6
- metadata.gz: 7cd15fadb1d5b251fd73a20914830a26eae38363d3e622bf3219cf46dfa2f0fa72716ff7ff2bd49fa503eaac922676c193b5002bd107f6a9502310c4cadcdda5
7
- data.tar.gz: 5bdef20abe76ea38602ff99092c15ae19d3bda1d799ae5bda38fd0d2e7110b2115275a962b3df113e31b2a7b29d35ef0e5577bd9c47301fa059205f5f4bd3a11
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.gsub(/\\/, ''), write: write, read: read, disposition: disposition)
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.gsub(/\\/, ''), delete: true)
53
+ file = last_tree.open_file(filename: path.sub(/^\\/, ''), delete: true)
54
54
  file.delete
55
55
  file.close
56
56
  end
@@ -1,3 +1,3 @@
1
1
  module RubySMB
2
- VERSION = '1.0.0'.freeze
2
+ VERSION = '1.0.1'.freeze
3
3
  end
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.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-25 00:00:00.000000000 Z
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