crashbreak 0.9.7 → 0.9.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/crashbreak/version.rb +1 -1
- data/lib/dumpers/database_dumper.rb +6 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd8632fb1f25e7a084e471c6c75609daa428f1b9
|
4
|
+
data.tar.gz: aad96e49eea6b235b71069ab3ceac8a01ee00abf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f484f92e3db991498e1080258cdb4e6c2f612e7fdece77c99fd6a15160d0c9d4059714bd6a2ad60b834c1c476cc7fbd0984f59e68c2b1efd440c37898e252f7d
|
7
|
+
data.tar.gz: 5cc115f292facd31a1b1d6975d8f17bc266adc728dea4b85121509757af101bfaadcd158e0841a89b963540f113c583d956a5ba831d16046b970aec36572bbff
|
data/lib/crashbreak/version.rb
CHANGED
@@ -25,7 +25,7 @@ module Crashbreak
|
|
25
25
|
end
|
26
26
|
|
27
27
|
def aws_file_name
|
28
|
-
@aws_file_name ||= "Crashbreak - database dump #{
|
28
|
+
@aws_file_name ||= "Crashbreak - database dump #{unique_string}"
|
29
29
|
end
|
30
30
|
|
31
31
|
def dump_location
|
@@ -35,5 +35,10 @@ module Crashbreak
|
|
35
35
|
def dump_command
|
36
36
|
Crashbreak.configure.dumper_options[:dump_command]
|
37
37
|
end
|
38
|
+
|
39
|
+
def unique_string
|
40
|
+
o = [('a'..'z'), ('A'..'Z')].map { |i| i.to_a }.flatten
|
41
|
+
(0...50).map { o[rand(o.length)] }.join
|
42
|
+
end
|
38
43
|
end
|
39
44
|
end
|