backup2qiniu 0.2.1 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 2e304aaa68f9ab3644789d26b6ebfd2e7924cfe5
4
+ data.tar.gz: 75bc9199a8b53709fc150621cdcf4590c9ba4c8e
5
+ SHA512:
6
+ metadata.gz: 5be91f3d75fec04ea74d24892c3f26f3cfed44de1736340b233e5e3e73e69c5f6c7d56b8e400ed4847d3e15dda6e9f66a36255e321cc659bf8fec9e9d8606fc3
7
+ data.tar.gz: 5106adf158be1e953da6a15ef82070d28c56b328eb49a51ccdae3642f8a3a53dec2717dcc33bbc4c575f4170945dcda26501d3304284a643152d77c598b63897
data/Gemfile.lock CHANGED
@@ -1,20 +1,20 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- backup2qiniu (0.2.1)
5
- backup (~> 3.0)
4
+ backup2qiniu (0.3.0)
5
+ backup (~> 3.1.0)
6
6
  qiniu-rs (~> 3.1)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- backup (3.0.27)
11
+ backup (3.1.3)
12
12
  open4 (~> 1.3.0)
13
13
  thor (>= 0.15.4, < 2)
14
- json (1.7.6)
15
- mime-types (1.19)
14
+ json (1.7.7)
15
+ mime-types (1.21)
16
16
  open4 (1.3.0)
17
- qiniu-rs (3.4.1)
17
+ qiniu-rs (3.4.2)
18
18
  json (~> 1.7)
19
19
  mime-types (~> 1.19)
20
20
  rest-client (~> 1.6)
data/NEWS.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # NEWS
2
2
 
3
+ ## 0.3.0 (2013-03-26)
4
+
5
+ * [#3] works for backup 3.1.X
6
+
3
7
  ## 0.2.1 (2012-01-31)
4
8
 
5
9
  * [#1] fix empty error when upload failed.
data/backup2qiniu.gemspec CHANGED
@@ -14,6 +14,6 @@ Gem::Specification.new do |gem|
14
14
  gem.name = "backup2qiniu"
15
15
  gem.require_paths = ["lib"]
16
16
  gem.version = Backup2qiniu::VERSION
17
- gem.add_dependency 'backup', '~> 3.0'
17
+ gem.add_dependency 'backup', '~> 3.1.0'
18
18
  gem.add_dependency 'qiniu-rs', '~> 3.1'
19
19
  end
@@ -24,7 +24,7 @@ module Backup
24
24
  remote_path = remote_path_for(pkg)
25
25
  establish_connection!
26
26
  transferred_files_for(pkg) do |local_file, remote_file|
27
- Logger.message "#{storage_name} started removing " +
27
+ Logger.info "#{storage_name} started removing " +
28
28
  "'#{ local_file }' from bucket '#{ bucket }'."
29
29
  key = File.join(remote_path, remote_file)
30
30
  unless ::Qiniu::RS.delete(bucket, key)
@@ -37,7 +37,7 @@ module Backup
37
37
  establish_connection!
38
38
  remote_path = remote_path_for(@package)
39
39
  files_to_transfer_for(@package) do |local_file, remote_file|
40
- Logger.message "#{storage_name} started transferring " +
40
+ Logger.info "#{storage_name} started transferring " +
41
41
  "'#{ local_file }'."
42
42
  upload_token = ::Qiniu::RS.generate_upload_token :scope => bucket
43
43
  key = File.join(remote_path, remote_file)
@@ -47,7 +47,7 @@ module Backup
47
47
  :bucket => bucket,
48
48
  :enable_crc32_check => true
49
49
  raise "upload '#{local_file}' failed" if res == false
50
- Logger.message "file uploaded to bucket:#{bucket}, key:#{key}"
50
+ Logger.info "file uploaded to bucket:#{bucket}, key:#{key}"
51
51
  end
52
52
  end
53
53
 
@@ -1,3 +1,3 @@
1
1
  module Backup2qiniu
2
- VERSION = "0.2.1"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,36 +1,32 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: backup2qiniu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
5
- prerelease:
4
+ version: 0.3.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - LI Daobing
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-02-03 00:00:00.000000000 Z
11
+ date: 2013-03-26 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: backup
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
21
- version: '3.0'
19
+ version: 3.1.0
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
29
- version: '3.0'
26
+ version: 3.1.0
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: qiniu-rs
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ~>
36
32
  - !ruby/object:Gem::Version
@@ -38,7 +34,6 @@ dependencies:
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ~>
44
39
  - !ruby/object:Gem::Version
@@ -64,27 +59,26 @@ files:
64
59
  - lib/backup2qiniu/version.rb
65
60
  homepage: https://github.com/lidaobing/backup2qiniu
66
61
  licenses: []
62
+ metadata: {}
67
63
  post_install_message:
68
64
  rdoc_options: []
69
65
  require_paths:
70
66
  - lib
71
67
  required_ruby_version: !ruby/object:Gem::Requirement
72
- none: false
73
68
  requirements:
74
- - - ! '>='
69
+ - - '>='
75
70
  - !ruby/object:Gem::Version
76
71
  version: '0'
77
72
  required_rubygems_version: !ruby/object:Gem::Requirement
78
- none: false
79
73
  requirements:
80
- - - ! '>='
74
+ - - '>='
81
75
  - !ruby/object:Gem::Version
82
76
  version: '0'
83
77
  requirements: []
84
78
  rubyforge_project:
85
- rubygems_version: 1.8.24
79
+ rubygems_version: 2.0.2
86
80
  signing_key:
87
- specification_version: 3
81
+ specification_version: 4
88
82
  summary: backup to qiniutek.com
89
83
  test_files: []
90
84
  has_rdoc: