duplicati 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ NTRmYTk2NjJmZTM5NGE2NDI0YTYzNWM5YjJkOGU0NTg5MzNmMThiZA==
5
+ data.tar.gz: !binary |-
6
+ NGQyNDg2YWJmNDUwMzg5ODc2NjBlZWY2YWNhZjM3MmNjY2Q4OGM1MQ==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ YWZmY2UyMzNhYjJlZTBmYTcxZDcwMTg4YWVhZDhiYjE1YTY4NmUzYjU0YTM1
10
+ MDQ2NzdkNjdiYjY3MzE0MWQwNzQ0YTM1NGViZTc2ZmU4ZDJiZTI2MzM0Yjkw
11
+ MDVjNzc1YzE4YTUxNzQ0MDg2NzU2YzllNzRjOGU0MzFlMjA5NDU=
12
+ data.tar.gz: !binary |-
13
+ MWQxZWI4YWEyYTEzOTQzMTkzMDNhZjJjN2ZiZTBiMGUzNTZmYjJjM2Y2NWMz
14
+ NGFiNmJkMjczOGVkYzE0NTkyODFiOTBlYzhiYjA1OGQzNmJmNDA1M2MwYjc0
15
+ YTMyNDllMGMyMGRiMWJmNGJmY2Q4ZDZjMWM1ZGFhMmFhNjhkMGU=
data/Gemfile CHANGED
@@ -1,5 +1,5 @@
1
- source 'https://rubygems.org'
2
-
3
- gemspec
4
-
5
- gem 'coveralls', :require => false
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
5
+ gem 'coveralls', :require => false
@@ -21,7 +21,8 @@ class Duplicati
21
21
  --usn-policy=auto
22
22
  --snapshot-policy=auto
23
23
  --full-if-sourcefolder-changed
24
- 2>&1 1>> "#{@log_path}"]
24
+ 1>>"#{@log_path}"
25
+ 2>&1]
25
26
  end
26
27
 
27
28
  private
@@ -11,7 +11,8 @@ class Duplicati
11
11
  %Q["#{@duplicati_path}" delete-all-but-n 5 "#{@backup_store_path}"
12
12
  #{encryption_option}
13
13
  --force
14
- 2>&1 1>> "#{@log_path}"]
14
+ 1>>"#{@log_path}"
15
+ 2>&1]
15
16
  end
16
17
 
17
18
  private
@@ -1,3 +1,3 @@
1
1
  class Duplicati
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
@@ -40,7 +40,8 @@ describe Duplicati::Backup do
40
40
  --usn-policy=auto
41
41
  --snapshot-policy=auto
42
42
  --full-if-sourcefolder-changed
43
- 2>&1 1>> "/zzz/output.log"]
43
+ 1>>"/zzz/output.log"
44
+ 2>&1]
44
45
  end
45
46
 
46
47
  it "generates backup command for Duplicati without using any encryption when encryption key is not provided" do
@@ -20,7 +20,8 @@ describe Duplicati::Clean do
20
20
  ).command.should == %Q["/bin/duplicati-commandline" delete-all-but-n 5 "file:///foo/backup"
21
21
 
22
22
  --force
23
- 2>&1 1>> "/zzz/output.log"]
23
+ 1>>"/zzz/output.log"
24
+ 2>&1]
24
25
  end
25
26
 
26
27
  it "generates clean command for Duplicati using backup encryption" do
@@ -32,7 +33,8 @@ describe Duplicati::Clean do
32
33
  ).command.should == %Q["/bin/duplicati-commandline" delete-all-but-n 5 "file:///foo/backup"
33
34
  --passphrase="foobar"
34
35
  --force
35
- 2>&1 1>> "/zzz/output.log"]
36
+ 1>>"/zzz/output.log"
37
+ 2>&1]
36
38
  end
37
39
 
38
40
  end
@@ -1,6 +1,10 @@
1
1
  require "spec_helper"
2
2
 
3
3
  describe Duplicati do
4
+ before do
5
+ allow_message_expectations_on_nil
6
+ end
7
+
4
8
  context "#initialize" do
5
9
 
6
10
  it "has specified default log path" do
@@ -61,7 +65,7 @@ describe Duplicati do
61
65
  it "has no exclusion filters by default" do
62
66
  Duplicati.new.opts[:exclusion_filters].should == []
63
67
  end
64
-
68
+
65
69
  it "allows to specify a single exclusion filter" do
66
70
  Duplicati.new(:exclusion_filter => /aa/).opts[:exclusion_filters].should == [/aa/]
67
71
  end
@@ -122,6 +126,7 @@ describe Duplicati do
122
126
  it "executes the command" do
123
127
  cmd = "multiline
124
128
  command with spaces"
129
+ $?.should_receive(:exitstatus).and_return 0
125
130
  Object.any_instance.should_receive(:system).with("multiline command with spaces")
126
131
 
127
132
  Duplicati.new.send(:execute, cmd)
@@ -148,7 +153,7 @@ describe Duplicati do
148
153
 
149
154
  it "is false when one of the commands fail with invalid exit status" do
150
155
  duplicati = Duplicati.new
151
-
156
+
152
157
  Object.any_instance.should_receive(:system).twice.and_return true
153
158
  $?.should_receive(:exitstatus).and_return 0
154
159
  duplicati.send(:execute, "")
@@ -188,7 +193,7 @@ describe Duplicati do
188
193
 
189
194
  it "is true when all of the commands succeed with success exit status" do
190
195
  duplicati = Duplicati.new
191
-
196
+
192
197
  Object.any_instance.should_receive(:system).twice.and_return true
193
198
  $?.should_receive(:exitstatus).twice.and_return 0
194
199
  duplicati.send(:execute, "")
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: duplicati
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
5
- prerelease:
4
+ version: 0.0.10
6
5
  platform: ruby
7
6
  authors:
8
7
  - Jarmo Pertman
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-02-10 00:00:00.000000000 Z
11
+ date: 2013-03-02 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rake
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ! '>='
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :development
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
@@ -30,7 +27,6 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rspec
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: :development
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
@@ -76,33 +71,26 @@ files:
76
71
  - spec/spec_helper.rb
77
72
  homepage: https://github.com/jarmo/duplicati-rb
78
73
  licenses: []
74
+ metadata: {}
79
75
  post_install_message:
80
76
  rdoc_options: []
81
77
  require_paths:
82
78
  - lib
83
79
  required_ruby_version: !ruby/object:Gem::Requirement
84
- none: false
85
80
  requirements:
86
81
  - - ! '>='
87
82
  - !ruby/object:Gem::Version
88
83
  version: '0'
89
- segments:
90
- - 0
91
- hash: 935446881
92
84
  required_rubygems_version: !ruby/object:Gem::Requirement
93
- none: false
94
85
  requirements:
95
86
  - - ! '>='
96
87
  - !ruby/object:Gem::Version
97
88
  version: '0'
98
- segments:
99
- - 0
100
- hash: 935446881
101
89
  requirements: []
102
90
  rubyforge_project:
103
- rubygems_version: 1.8.24
91
+ rubygems_version: 2.0.0
104
92
  signing_key:
105
- specification_version: 3
93
+ specification_version: 4
106
94
  summary: Duplicati backup utility wrapper in Ruby with easier API and sensible configuration
107
95
  defaults.
108
96
  test_files: