six-rsync 0.3.1 → 0.3.2

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.
Files changed (4) hide show
  1. data/Rakefile +1 -1
  2. data/lib/six/rsync/lib.rb +1 -1
  3. data/lib/six/rsync.rb +16 -2
  4. metadata +2 -2
data/Rakefile CHANGED
@@ -12,7 +12,7 @@ require 'rake/testtask'
12
12
 
13
13
  spec = Gem::Specification.new do |s|
14
14
  s.name = 'six-rsync'
15
- s.version = '0.3.1'
15
+ s.version = '0.3.2'
16
16
  s.has_rdoc = true
17
17
  s.extra_rdoc_files = ['README', 'LICENSE']
18
18
  s.summary = 'Your summary here'
data/lib/six/rsync/lib.rb CHANGED
@@ -432,7 +432,7 @@ module Six
432
432
  else
433
433
  c = mismatch.size
434
434
  @logger.info "Fetching #{mismatch.size} files... Please wait"
435
- slist = File.join(ENV['TEMP'], ".six-updater_#{rand 9999}-list")
435
+ slist = File.join(TEMP_PATH, ".six-updater_#{rand 9999}-list")
436
436
  slist.gsub!("\\", "/")
437
437
  File.open(slist, 'w') do |f|
438
438
  mismatch.each { |e| f.puts e }
data/lib/six/rsync.rb CHANGED
@@ -30,11 +30,25 @@ module Six
30
30
  end
31
31
 
32
32
  module Rsync
33
- VERSION = '0.3.1'
33
+ VERSION = '0.3.2'
34
34
  TOOLS_PATH = File.join(BASE_PATH, 'tools')
35
35
 
36
36
  FOLDER = /(.*)\/(.*)/
37
- ENV['PATH'] = "#{TOOLS_PATH};#{File.join(TOOLS_PATH, 'bin')};" + ENV['PATH']
37
+ ENV['PATH'] = "#{TOOLS_PATH};#{File.join(TOOLS_PATH, 'bin')};#{ENV['PATH']}"
38
+ TEMP_PATH = if ENV['TEMP']
39
+ if ENV['TEMP'].size > 0
40
+ if File.directory?(ENV['TEMP'])
41
+ ENV['TEMP']
42
+ else
43
+ BASE_PATH
44
+ end
45
+ else
46
+ BASE_PATH
47
+ end
48
+ else
49
+ BASE_PATH
50
+ end
51
+
38
52
  # No meaning on Cygwin 1.7
39
53
  # ENV['CYGWIN'] = "nontsec"
40
54
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: six-rsync
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sickboy
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-12-25 00:00:00 +01:00
12
+ date: 2009-12-26 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies: []
15
15