backup 3.3.0 → 3.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/backup/model.rb +2 -1
- data/lib/backup/storage/dropbox.rb +1 -1
- data/lib/backup/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a6fdf395aa40c4164ac6c1d5e1d10f3aa54e0b0
|
4
|
+
data.tar.gz: 06a681ec27b68e776f94f5a90425c227a3747d52
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0afede59332bc2f40795a3eb680ee49a10537e57771323248eb15a2e45abc6656fdfa65c02b282fa7118adc343b691ece2957d55362e8a1578e8f0251b5ba496
|
7
|
+
data.tar.gz: f5e6b8bc6b47620916caeb578dc45a90622e42ba7137e870e6f7bd291adc79d3ea08f89947a66ec33e174c142fc57de25f149130f7fbaefd613a0721f6a95e25
|
data/lib/backup/model.rb
CHANGED
@@ -14,8 +14,9 @@ module Backup
|
|
14
14
|
##
|
15
15
|
# Return an Array of Models matching the given +trigger+.
|
16
16
|
def find_by_trigger(trigger)
|
17
|
+
trigger = trigger.to_s
|
17
18
|
if trigger.include?('*')
|
18
|
-
regex = /^#{ trigger.
|
19
|
+
regex = /^#{ trigger.gsub('*', '(.*)') }$/
|
19
20
|
all.select {|model| regex =~ model.trigger }
|
20
21
|
else
|
21
22
|
all.select {|model| trigger == model.trigger }
|
@@ -112,7 +112,7 @@ module Backup
|
|
112
112
|
|
113
113
|
uploader, retries = nil, 0
|
114
114
|
File.open(File.join(local_path, local_file), 'r') do |file|
|
115
|
-
uploader = connection.get_chunked_uploader(file, file.size)
|
115
|
+
uploader = connection.get_chunked_uploader(file, file.stat.size)
|
116
116
|
while uploader.offset < uploader.total_size
|
117
117
|
begin
|
118
118
|
uploader.upload(1024**2 * chunk_size)
|
data/lib/backup/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: backup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.3.
|
4
|
+
version: 3.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael van Rooijen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-04-
|
11
|
+
date: 2013-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|