sambal 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +7 -0
  2. data/lib/sambal/version.rb +1 -1
  3. data/lib/sambal.rb +3 -1
  4. metadata +10 -14
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: d09cf481cbaa004f81aa0d1e0a63a05f31c6254a
4
+ data.tar.gz: 54a959308a5cddfd4505ea64711d6fa1bc49f8c5
5
+ SHA512:
6
+ metadata.gz: 88a88d87a5a1e103fb74f175bc20c07da0cc11ec229813aa0dd558fa777ef9318e8803fe5e9cbd106db05dadd931f75ee6c5562f2402c4f10b3c67d7113cc1c3
7
+ data.tar.gz: e0c4b0595bc531661140661cbda95c5d87518eb5103e7cd0cb7ff4f1d22c6bcb4ad004c0902282783f08ecdd50054125a8219a61fce0b8366ea0920028a9d0fd
@@ -1,5 +1,5 @@
1
1
  # coding: UTF-8
2
2
 
3
3
  module Sambal
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
5
5
  end
data/lib/sambal.rb CHANGED
@@ -48,7 +48,7 @@ module Sambal
48
48
  @o, @i, @pid = PTY.spawn("smbclient //#{options[:host]}/#{options[:share]} #{options[:password]} -W #{options[:domain]} -U #{options[:user]} -p #{options[:port]}")
49
49
  #@o.set_encoding('UTF-8:UTF-8') ## don't know didn't work, we only have this problem when the files are named using non-english characters
50
50
  #@i.set_encoding('UTF-8:UTF-8')
51
- res = @o.expect(/^smb:.*\\>/, 10)[0] rescue nil
51
+ res = @o.expect(/(.*\n)?smb:.*\\>/, 10)[0] rescue nil
52
52
  @connected = case res
53
53
  when nil
54
54
  $stderr.puts "Failed to connect"
@@ -227,6 +227,8 @@ module Sambal
227
227
 
228
228
  def close
229
229
  @i.printf("quit\n")
230
+ @i.close
231
+ @o.close
230
232
  @connected = false
231
233
  end
232
234
 
metadata CHANGED
@@ -1,30 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sambal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
5
- prerelease:
4
+ version: 0.1.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - John Axel Eriksson
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-10-22 00:00:00.000000000 Z
11
+ date: 2015-05-20 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rspec
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: 2.6.0
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - ">="
28
25
  - !ruby/object:Gem::Version
29
26
  version: 2.6.0
30
27
  description: Ruby Samba Client using the cmdline smbclient
@@ -34,7 +31,7 @@ executables: []
34
31
  extensions: []
35
32
  extra_rdoc_files: []
36
33
  files:
37
- - .gitignore
34
+ - ".gitignore"
38
35
  - Gemfile
39
36
  - LICENSE
40
37
  - README.md
@@ -48,27 +45,26 @@ files:
48
45
  - spec/spec_helper.rb
49
46
  homepage: https://github.com/johnae/sambal
50
47
  licenses: []
48
+ metadata: {}
51
49
  post_install_message:
52
50
  rdoc_options: []
53
51
  require_paths:
54
52
  - lib
55
53
  required_ruby_version: !ruby/object:Gem::Requirement
56
- none: false
57
54
  requirements:
58
- - - ! '>='
55
+ - - ">="
59
56
  - !ruby/object:Gem::Version
60
57
  version: '0'
61
58
  required_rubygems_version: !ruby/object:Gem::Requirement
62
- none: false
63
59
  requirements:
64
- - - ! '>='
60
+ - - ">="
65
61
  - !ruby/object:Gem::Version
66
62
  version: '0'
67
63
  requirements: []
68
64
  rubyforge_project:
69
- rubygems_version: 1.8.23
65
+ rubygems_version: 2.2.2
70
66
  signing_key:
71
- specification_version: 3
67
+ specification_version: 4
72
68
  summary: Ruby Samba Client
73
69
  test_files:
74
70
  - spec/sambal/client_spec.rb