sftp-sync 0.1.2 → 0.1.3

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: 61089132b1de7a2b31c21d454c81b69a32245fb7
4
- data.tar.gz: 9f78ce8b992a2e95481f469b7a37da03e030e406
3
+ metadata.gz: fb0cca0ee95ed24c2142f581adc73cf1599d8b16
4
+ data.tar.gz: 362efe2681388e8376547468dc848454a00535ea
5
5
  SHA512:
6
- metadata.gz: 661dae15c0d54711a6a607e394ed78b2b81bba4710c07edf5b8278003387f70ec0c8b3883ba3f3a7cff8948cac37319530e65fb00d7d50361655eb5e9d967c13
7
- data.tar.gz: 7e933be00abc43df3a3351e820cc9176821de286eb1e993c598517dfd14bc27f74e02a85cf7fdac1fa88ebd9e9645876f82c08705e51da2babd6694f1e9e670a
6
+ metadata.gz: 5fa87d32d9cf9673bf969458e05c15960d4f9df541b6d864dfd268cf510d696a2edfb92103043b46f23a754ccb2e46ee11f8e1254a15de206d90a94799199f45
7
+ data.tar.gz: 5347b71e6013475a41a1610bf20e55cba77c7355d0bb329c86d10ae507922425dd01c72045b73a232912de493d95259c5c61cccb7a05d0fa6adb5e811b329be2
@@ -136,10 +136,14 @@ module Sftp
136
136
  def build_diff_map
137
137
  diff_map = FileDiffMap.new
138
138
 
139
+ output_pathname = Pathname.new(File.expand_path(config.output_dir))
140
+
139
141
  ## enumerate local files
140
- Dir[ File.join(config.output_dir, '**', '*') ].each do |local_entry|
142
+ Dir[ File.join(output_pathname.to_s, '**', '*') ].each do |local_entry|
143
+
144
+
141
145
 
142
- relative_path = Pathname.new(local_entry).relative_path_from(Pathname.new(config.output_dir)).to_s
146
+ relative_path = Pathname.new(local_entry).relative_path_from(output_pathname).to_s
143
147
 
144
148
  diff_map.add(relative_path, (File.size?(local_entry)|| 0)) unless File.directory?(local_entry) || filter.match(relative_path)
145
149
  end
@@ -1,5 +1,5 @@
1
1
  module Sftp
2
2
  module Sync
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sftp-sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benjamin Bryant