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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8030ea8ce771bafd23266be65ddac30e62d9954b
4
- data.tar.gz: bc53925b9956147157e9200d4cfb9d8c7886d343
3
+ metadata.gz: 2a6fdf395aa40c4164ac6c1d5e1d10f3aa54e0b0
4
+ data.tar.gz: 06a681ec27b68e776f94f5a90425c227a3747d52
5
5
  SHA512:
6
- metadata.gz: b9631215669b56c92b1694d5a1005d5292ae9d3e25dd2da717cfbe40e30af80d6163b38e6662b7c309c2b480d4d69fe953458171c7dcd5fa908a51314d1ab584
7
- data.tar.gz: 799f65d322c49d396d9301163412db25369ced068c6260a66fb54444cbd234da73fa07d92c3f6b8e8a58f6bfc241d763c1261d475dc2d3580f6acee02e295cce
6
+ metadata.gz: 0afede59332bc2f40795a3eb680ee49a10537e57771323248eb15a2e45abc6656fdfa65c02b282fa7118adc343b691ece2957d55362e8a1578e8f0251b5ba496
7
+ data.tar.gz: f5e6b8bc6b47620916caeb578dc45a90622e42ba7137e870e6f7bd291adc79d3ea08f89947a66ec33e174c142fc57de25f149130f7fbaefd613a0721f6a95e25
@@ -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.to_s.gsub('*', '(.*)') }$/
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)
@@ -13,7 +13,7 @@ module Backup
13
13
  # Defines the minor version
14
14
  # PATCH:
15
15
  # Defines the patch version
16
- MAJOR, MINOR, PATCH = 3, 3, 0
16
+ MAJOR, MINOR, PATCH = 3, 3, 1
17
17
 
18
18
  ##
19
19
  # Returns the major version ( big release based off of multiple minor releases )
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.0
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-14 00:00:00.000000000 Z
11
+ date: 2013-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor