backup2sndacs 3.3.1 → 3.5.0

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: 4b9699f9937ffa0e5ec6e41294088f5e7a22370e
4
- data.tar.gz: 53a68362e9417a344b32e0bd287fe9c73977ee51
3
+ metadata.gz: d31ca2a823e51371341da5674d8fed58d6e5c7db
4
+ data.tar.gz: a25c0703574458a37810a933f3f44a9131af272d
5
5
  SHA512:
6
- metadata.gz: 1e45a931623cfcfc9bc2a6ffe1952acabf13a8039261f8832805aa72574dadde721805c9c9d27a9df4f1ebdf67b87020d2e4d1a68d50a6bbc34c5b092630da26
7
- data.tar.gz: ef57db57c6755d3c5a7767ec8b185d56e9eee4c1a54f30a32aef672acd38b7a3c70bd7f99de4a010a58c6679e9ed18105b81eed8d412c553b8f510f16f4c0725
6
+ metadata.gz: 0ccfb80e1e9be9ef5f57a3e247a9ff0d5fe3e11ce2a1badb7d3d91feecc85ad751c534c9c1d569ea95ff46118828c6d34137d82bc3444bfd5aca88a68fea6934
7
+ data.tar.gz: 155f91c07f2cf9b00d61d01efcd79ecfe7b8423bc2733c694877682781e2ebd8e1a7616c716047bfee55d28a8bc13ed3eac8a2cb00b4da9dcc3fc28c22b51c07
@@ -1,23 +1,99 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- backup2sndacs (3.3.1)
5
- backup (~> 3.3.0)
4
+ backup2sndacs (3.5.0)
5
+ backup (>= 3.4.0)
6
6
  sndacs (~> 0.2.0)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- backup (3.3.2)
12
- open4 (~> 1.3.0)
13
- thor (>= 0.15.4, < 2)
11
+ backup (3.5.0)
12
+ builder (= 3.2.0)
13
+ dropbox-sdk (= 1.5.1)
14
+ excon (= 0.20.1)
15
+ faraday (= 0.8.7)
16
+ fog (= 1.10.1)
17
+ formatador (= 0.2.4)
18
+ hipchat (= 0.8.0)
19
+ httparty (= 0.11.0)
20
+ i18n (= 0.6.4)
21
+ json (= 1.7.7)
22
+ mail (= 2.5.3)
23
+ mime-types (= 1.23)
24
+ multi_json (= 1.7.2)
25
+ multi_xml (= 0.5.3)
26
+ multipart-post (= 1.2.0)
27
+ net-scp (= 1.1.0)
28
+ net-sftp (= 2.1.1)
29
+ net-ssh (= 2.6.7)
30
+ nokogiri (= 1.5.9)
31
+ open4 (= 1.3.0)
32
+ parallel (= 0.6.4)
33
+ polyglot (= 0.3.3)
34
+ prowler (= 1.3.1)
35
+ ruby-hmac (= 0.4.0)
36
+ simple_oauth (= 0.2.0)
37
+ thor (= 0.18.1)
38
+ treetop (= 1.4.12)
39
+ twitter (= 4.6.2)
40
+ builder (3.2.0)
41
+ dropbox-sdk (1.5.1)
42
+ json
43
+ excon (0.20.1)
44
+ faraday (0.8.7)
45
+ multipart-post (~> 1.1)
46
+ fog (1.10.1)
47
+ builder
48
+ excon (~> 0.20)
49
+ formatador (~> 0.2.0)
50
+ mime-types
51
+ multi_json (~> 1.0)
52
+ net-scp (~> 1.1)
53
+ net-ssh (>= 2.1.3)
54
+ nokogiri (~> 1.5.0)
55
+ ruby-hmac
56
+ formatador (0.2.4)
57
+ hipchat (0.8.0)
58
+ httparty
59
+ httparty
60
+ httparty (0.11.0)
61
+ multi_json (~> 1.0)
62
+ multi_xml (>= 0.5.2)
63
+ i18n (0.6.4)
64
+ json (1.7.7)
65
+ mail (2.5.3)
66
+ i18n (>= 0.4.0)
67
+ mime-types (~> 1.16)
68
+ treetop (~> 1.4.8)
14
69
  mime-types (1.23)
70
+ multi_json (1.7.2)
71
+ multi_xml (0.5.3)
72
+ multipart-post (1.2.0)
73
+ net-scp (1.1.0)
74
+ net-ssh (>= 2.6.5)
75
+ net-sftp (2.1.1)
76
+ net-ssh (>= 2.6.5)
77
+ net-ssh (2.6.7)
78
+ nokogiri (1.5.9)
15
79
  open4 (1.3.0)
80
+ parallel (0.6.4)
81
+ polyglot (0.3.3)
82
+ prowler (1.3.1)
16
83
  proxies (0.2.1)
84
+ ruby-hmac (0.4.0)
85
+ simple_oauth (0.2.0)
17
86
  sndacs (0.2.4)
18
87
  mime-types
19
88
  proxies (~> 0.2.0)
20
89
  thor (0.18.1)
90
+ treetop (1.4.12)
91
+ polyglot
92
+ polyglot (>= 0.3.1)
93
+ twitter (4.6.2)
94
+ faraday (~> 0.8, < 0.10)
95
+ multi_json (~> 1.0)
96
+ simple_oauth (~> 0.2)
21
97
 
22
98
  PLATFORMS
23
99
  ruby
data/NEWS.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 3.5.0 (2013-05-08)
2
+
3
+ * works with backup 3.5.0
4
+ * bump minimum backup version to 3.4.0
5
+
1
6
  ## 3.3.1 (2013-04-28)
2
7
 
3
8
  * support set path prefix
@@ -16,6 +16,6 @@ Gem::Specification.new do |gem|
16
16
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
17
17
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
18
  gem.require_paths = ["lib"]
19
- gem.add_dependency 'backup', '~> 3.3.0'
19
+ gem.add_dependency 'backup', '>= 3.4.0'
20
20
  gem.add_dependency 'sndacs', '~> 0.2.0'
21
21
  end
@@ -19,9 +19,9 @@ module Backup
19
19
 
20
20
  def remove!(pkg)
21
21
  remote_path = remote_path_for(pkg)
22
- transferred_files_for(pkg) do |local_file, remote_file|
22
+ package.filenames.each do |remote_file|
23
23
  Logger.info "#{storage_name} started removing " +
24
- "'#{ local_file }' from bucket '#{ bucket }'."
24
+ "'#{ remote_file }' from bucket '#{ bucket }'."
25
25
  key = File.join(remote_path, remote_file)
26
26
  res = bucket_service.objects.find(key).destroy
27
27
  unless res == true
@@ -32,14 +32,14 @@ module Backup
32
32
 
33
33
  def transfer!
34
34
  remote_path = remote_path_for(@package)
35
- files_to_transfer_for(@package) do |local_file, remote_file|
35
+ package.filenames.each do |filename|
36
36
  Logger.info "#{storage_name} started transferring " +
37
- "'#{ local_file }'."
38
- key = File.join(remote_path, remote_file)
37
+ "'#{ filename }'."
38
+ key = File.join(remote_path, filename)
39
39
  o = bucket_service.objects.build(key)
40
- o.content = open(File.join(local_path, local_file))
40
+ o.content = open(File.join(Config.tmp_path, filename))
41
41
  res = o.save
42
- raise "upload '#{local_file}' failed" unless res == true
42
+ raise "upload '#{filename}' failed" unless res == true
43
43
  Logger.info "file uploaded to bucket:#{bucket}, key:#{key}"
44
44
  end
45
45
  end
@@ -1,3 +1,3 @@
1
1
  module Backup2sndacs
2
- VERSION = "3.3.1"
2
+ VERSION = "3.5.0"
3
3
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: backup2sndacs
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.1
4
+ version: 3.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - LI Daobing
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-04-28 00:00:00.000000000 Z
11
+ date: 2013-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: backup
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
- version: 3.3.0
19
+ version: 3.4.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - '>='
25
25
  - !ruby/object:Gem::Version
26
- version: 3.3.0
26
+ version: 3.4.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: sndacs
29
29
  requirement: !ruby/object:Gem::Requirement