keepitsafe 0.2.3 → 0.2.4
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 +1 -1
- data/keepitsafe.gemspec +1 -1
- data/lib/keepitsafe.rb +1 -1
- metadata +2 -2
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.2.
|
|
1
|
+
0.2.4
|
data/keepitsafe.gemspec
CHANGED
data/lib/keepitsafe.rb
CHANGED
|
@@ -172,7 +172,7 @@ class Keepitsafe
|
|
|
172
172
|
|
|
173
173
|
def set_backup_size remote_path
|
|
174
174
|
|
|
175
|
-
raw = (run_cmd("du -hc #{remote_path}").gsub("\n",' ').gsub("\t",' ').strip.match(/([0-9kmgt.]{2,10})\s*total/i) || [0])[1]
|
|
175
|
+
raw = (run_cmd("du -hc #{remote_path}").gsub("\n",' ').gsub("\t",' ').strip.match(/([0-9kmgt.]{2,10})\s*total/i) || [0,0])[1]
|
|
176
176
|
@backup_size = raw_to_meg(raw)
|
|
177
177
|
end
|
|
178
178
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: keepitsafe
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.4
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -242,7 +242,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
242
242
|
version: '0'
|
|
243
243
|
segments:
|
|
244
244
|
- 0
|
|
245
|
-
hash:
|
|
245
|
+
hash: 1516461565223966193
|
|
246
246
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
247
247
|
none: false
|
|
248
248
|
requirements:
|