palobr 0.1.0 → 0.1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.0.1
@@ -41,10 +41,13 @@ module Backup
41
41
  path = delete_slashes(path)
42
42
  mask = mask.gsub('.', '\.').gsub('*', '[^\/]')
43
43
 
44
- try_to_work_with_cloud do
45
- files = @directory.files.map &:key
46
- end
47
-
44
+ files = []
45
+
46
+ files = @directory.files.all(
47
+ :prefix => path,
48
+ :max_keys => 30_000 #TODO: Fix or use it?
49
+ ).map &:key
50
+
48
51
  files.map do |item|
49
52
  match = item.match(/^#{path}\/([^\/]+#{mask}).*$/)
50
53
  match[1] if match
@@ -69,7 +72,6 @@ module Backup
69
72
  end
70
73
  end
71
74
 
72
-
73
75
  def try_to_connect_with_cloud
74
76
  begin
75
77
  @connection = ::Fog::Storage.new(
data/palobr.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{palobr}
8
- s.version = "0.1.0"
8
+ s.version = "0.1.0.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Timothy Klim"]
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: palobr
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.0
5
+ version: 0.1.0.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Timothy Klim
@@ -124,7 +124,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
124
124
  requirements:
125
125
  - - ">="
126
126
  - !ruby/object:Gem::Version
127
- hash: -1906186080507489003
127
+ hash: 473850692790996854
128
128
  segments:
129
129
  - 0
130
130
  version: "0"