backup-aliyun 0.1.0 → 0.1.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 21cb25fe79fecd93f044681aa1bb2f368af90533
4
- data.tar.gz: e82895729d58116f9de591b6f2f3920606e5eac6
3
+ metadata.gz: 0953e04079cc92b63f1fd349ea7f83e6f09a2bf5
4
+ data.tar.gz: 7c423f963854fa6e366a7f8fcc432155db90564a
5
5
  SHA512:
6
- metadata.gz: 58aa73262b0e85554041ab3d042c5aa81c1d097a068accc18c90da732e6be90cd163e5887478c14c8f7bd1118dac51eea785f91f240bc638228081fdc52779bf
7
- data.tar.gz: ea984d49640e4a331811d3b56742a3fb823dac76ec68fc9c128b3c2a9e308e26bebf3d5780b022831a423c7a565f6680ff4a711b07785508d50b100e7074111b
6
+ metadata.gz: 33f97752c55a487ca805ef6fec588a21c680d822015140f36d0e5d4362a3040f81bcc76f1e0559257fe12a9149bb87b9b57fe431822479061465887ab24fb308
7
+ data.tar.gz: 239da97498af6112de284904373ab53efbad0181d0524115d567e20dfe61ab5a514b7038bdf42e2ad7221f3c8559a1a1fb570101f0159c8fbc8610e73fbd7455
data/Gemfile.lock CHANGED
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- backup-aliyun (0.1.0)
4
+ backup-aliyun (0.1.1)
5
5
  backup (>= 3.7.0)
6
- carrierwave-aliyun (>= 0.1.3)
6
+ carrierwave-aliyun (~> 0.2.1)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
@@ -40,7 +40,7 @@ GEM
40
40
  builder (3.2.2)
41
41
  carrierwave (0.5.8)
42
42
  activesupport (~> 3.0)
43
- carrierwave-aliyun (0.2.0)
43
+ carrierwave-aliyun (0.2.1)
44
44
  carrierwave (>= 0.5.7)
45
45
  rest-client (>= 1.6.7)
46
46
  diff-lcs (1.2.4)
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "backup-aliyun"
6
- s.version = "0.1.0"
6
+ s.version = "0.1.1"
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ["Jason Lee"]
9
9
  s.email = ["huacnlee@gmail.com"]
@@ -17,5 +17,5 @@ Gem::Specification.new do |s|
17
17
  s.license = 'MIT'
18
18
 
19
19
  s.add_dependency "backup", ">= 3.7.0"
20
- s.add_dependency "carrierwave-aliyun", ["~> 0.2.0"]
20
+ s.add_dependency "carrierwave-aliyun", ["~> 0.2.1"]
21
21
  end
@@ -35,7 +35,7 @@ module Backup
35
35
  dest = File.join(remote_path, filename)
36
36
  Logger.info "#{storage_name} uploading '#{ dest }'..."
37
37
  File.open(src, 'r') do |file|
38
- connection.put(dest, file.read)
38
+ connection.put(dest, file)
39
39
  end
40
40
  end
41
41
  end
data/spec/aliyun_spec.rb CHANGED
@@ -128,7 +128,7 @@ describe Backup::Storage::Aliyun do
128
128
  File.join('/local/path', 'backup.tar.enc-aa'), 'r'
129
129
  ).yields(file)
130
130
  connection.expects(:put).in_sequence(s).with(
131
- File.join('remote/path', 'backup.tar.enc-aa'), file.read
131
+ File.join('remote/path', 'backup.tar.enc-aa'), file
132
132
  )
133
133
  # second yield
134
134
  Backup::Logger.expects(:info).in_sequence(s).with(
@@ -138,7 +138,7 @@ describe Backup::Storage::Aliyun do
138
138
  File.join('/local/path', 'backup.tar.enc-ab'), 'r'
139
139
  ).yields(file)
140
140
  connection.expects(:put).in_sequence(s).with(
141
- File.join('remote/path', 'backup.tar.enc-ab'), file.read
141
+ File.join('remote/path', 'backup.tar.enc-ab'), file
142
142
  )
143
143
 
144
144
  storage.send(:transfer!)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: backup-aliyun
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Lee
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - ~>
32
32
  - !ruby/object:Gem::Version
33
- version: 0.2.0
33
+ version: 0.2.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ~>
39
39
  - !ruby/object:Gem::Version
40
- version: 0.2.0
40
+ version: 0.2.1
41
41
  description: Aliyun OSS Storage support for Backup
42
42
  email:
43
43
  - huacnlee@gmail.com