astrails-safe 0.2.1 → 0.2.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.
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 2
4
- :patch: 1
4
+ :patch: 2
@@ -37,7 +37,7 @@ module Astrails
37
37
  return unless keep = @config[:keep, :s3]
38
38
 
39
39
 
40
- puts "listing files in #{bucket}:#{base}" if $_VERBOSE
40
+ puts "listing files: #{bucket}:#{base}*" if $_VERBOSE
41
41
  files = AWS::S3::Bucket.objects(bucket, :prefix => base, :max_keys => keep * 2)
42
42
  puts files.collect {|x| x.key} if $_VERBOSE
43
43
 
@@ -43,9 +43,9 @@ module Astrails
43
43
 
44
44
  return unless keep = @config[:keep, :sftp]
45
45
 
46
- puts "listing files in #{host}:#{path}" if $_VERBOSE
46
+ puts "listing files: #{host}:#{base}*" if $_VERBOSE
47
47
  Net::SFTP.start(host, user, :password => password) do |sftp|
48
- files = sftp.dir.glob(path, '*')
48
+ files = sftp.dir.glob(path, File.basename("#{base}*"))
49
49
 
50
50
  puts files.collect {|x| x.name } if $_VERBOSE
51
51
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: astrails-safe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Astrails Ltd.