rsync 1.0.8 → 1.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.rspec +1 -0
- data/.travis.yml +1 -1
- data/Gemfile +2 -0
- data/README.md +6 -3
- data/lib/rsync/result.rb +3 -0
- data/lib/rsync/version.rb +1 -1
- data/spec/rsync/result_spec.rb +3 -0
- data/spec/spec_helper.rb +2 -4
- metadata +16 -29
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 0784ed7b2ea8c21905e76eaacfde227d8901e394
|
4
|
+
data.tar.gz: a7eebab5a899aa722269bfbc6b75896f2319eb16
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 267d9f6e341bcbd79549ef65d3ca990aeb260d7f17373bb3d2c955fecdbc78276c7796b04d5c929916a5b4d894f8f7c5214cb7479eb624dbb6bdc5e98f85c190
|
7
|
+
data.tar.gz: c45cdaf4921fddf0af302aacf1e66a5c576fc85452205312ebe9e79e36e67a8ff425c40ea22f528f36f29239eace0dd1496eeb1c0228ec66ba22785963d7bfea
|
data/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--color
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -3,19 +3,22 @@
|
|
3
3
|
[![Build Status](https://travis-ci.org/jbussdieker/ruby-rsync.png?branch=master)](https://travis-ci.org/jbussdieker/ruby-rsync)
|
4
4
|
[![Code Climate](https://codeclimate.com/github/jbussdieker/ruby-rsync.png)](https://codeclimate.com/github/jbussdieker/ruby-rsync)
|
5
5
|
[![Gem Version](https://badge.fury.io/rb/rsync.png)](http://badge.fury.io/rb/rsync)
|
6
|
+
[![Coverage Status](https://coveralls.io/repos/jbussdieker/ruby-rsync/badge.png)](https://coveralls.io/r/jbussdieker/ruby-rsync)
|
7
|
+
[![Dependency Status](https://gemnasium.com/jbussdieker/ruby-rsync.svg)](https://gemnasium.com/jbussdieker/ruby-rsync)
|
6
8
|
|
7
9
|
Ruby/Rsync is a Ruby library that can syncronize files between remote hosts by wrapping a call to the rsync binary.
|
8
10
|
|
9
11
|
## Usage
|
10
12
|
|
11
13
|
Minimal example
|
12
|
-
|
14
|
+
```ruby
|
13
15
|
require "rsync"
|
14
16
|
|
15
17
|
result = Rsync.run("/path/to/src", "/path/to/dest")
|
18
|
+
```
|
16
19
|
|
17
20
|
Complete example
|
18
|
-
|
21
|
+
```ruby
|
19
22
|
require "rsync"
|
20
23
|
|
21
24
|
Rsync.run("/path/to/src", "/path/to/dest") do |result|
|
@@ -27,4 +30,4 @@ Complete example
|
|
27
30
|
puts result.error
|
28
31
|
end
|
29
32
|
end
|
30
|
-
|
33
|
+
```
|
data/lib/rsync/result.rb
CHANGED
data/lib/rsync/version.rb
CHANGED
data/spec/rsync/result_spec.rb
CHANGED
@@ -6,6 +6,7 @@ describe Rsync::Result do
|
|
6
6
|
result.changes.should eql([])
|
7
7
|
result.error.should eql("Success")
|
8
8
|
result.success?.should eql(true)
|
9
|
+
result.exitcode.should eql(0)
|
9
10
|
end
|
10
11
|
|
11
12
|
it "should handle basic example with changes" do
|
@@ -13,6 +14,7 @@ describe Rsync::Result do
|
|
13
14
|
result.changes.length.should eql(1)
|
14
15
|
result.error.should eql("Success")
|
15
16
|
result.success?.should eql(true)
|
17
|
+
result.exitcode.should eql(0)
|
16
18
|
end
|
17
19
|
|
18
20
|
it "should handle syntax error" do
|
@@ -20,5 +22,6 @@ describe Rsync::Result do
|
|
20
22
|
result.changes.should eql([])
|
21
23
|
result.error.should eql("Syntax or usage error")
|
22
24
|
result.success?.should eql(false)
|
25
|
+
result.exitcode.should eql(1)
|
23
26
|
end
|
24
27
|
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,62 +1,55 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rsync
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
5
|
-
prerelease:
|
4
|
+
version: 1.0.9
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Joshua Bussdieker
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2014-10-01 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: bundler
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- - ~>
|
17
|
+
- - "~>"
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '1.3'
|
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
|
29
26
|
version: '1.3'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: rake
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - ">="
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '0'
|
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
|
45
40
|
version: '0'
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: rspec
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- -
|
45
|
+
- - ">="
|
52
46
|
- !ruby/object:Gem::Version
|
53
47
|
version: '0'
|
54
48
|
type: :development
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
|
-
- -
|
52
|
+
- - ">="
|
60
53
|
- !ruby/object:Gem::Version
|
61
54
|
version: '0'
|
62
55
|
description:
|
@@ -66,8 +59,9 @@ executables: []
|
|
66
59
|
extensions: []
|
67
60
|
extra_rdoc_files: []
|
68
61
|
files:
|
69
|
-
- .gitignore
|
70
|
-
- .
|
62
|
+
- ".gitignore"
|
63
|
+
- ".rspec"
|
64
|
+
- ".travis.yml"
|
71
65
|
- Gemfile
|
72
66
|
- LICENSE.txt
|
73
67
|
- README.md
|
@@ -87,33 +81,26 @@ files:
|
|
87
81
|
homepage: http://github.com/jbussdieker/ruby-rsync
|
88
82
|
licenses:
|
89
83
|
- MIT
|
84
|
+
metadata: {}
|
90
85
|
post_install_message:
|
91
86
|
rdoc_options: []
|
92
87
|
require_paths:
|
93
88
|
- lib
|
94
89
|
required_ruby_version: !ruby/object:Gem::Requirement
|
95
|
-
none: false
|
96
90
|
requirements:
|
97
|
-
- -
|
91
|
+
- - ">="
|
98
92
|
- !ruby/object:Gem::Version
|
99
93
|
version: '0'
|
100
|
-
segments:
|
101
|
-
- 0
|
102
|
-
hash: 1609043924082832949
|
103
94
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
104
|
-
none: false
|
105
95
|
requirements:
|
106
|
-
- -
|
96
|
+
- - ">="
|
107
97
|
- !ruby/object:Gem::Version
|
108
98
|
version: '0'
|
109
|
-
segments:
|
110
|
-
- 0
|
111
|
-
hash: 1609043924082832949
|
112
99
|
requirements: []
|
113
100
|
rubyforge_project:
|
114
|
-
rubygems_version:
|
101
|
+
rubygems_version: 2.2.2
|
115
102
|
signing_key:
|
116
|
-
specification_version:
|
103
|
+
specification_version: 4
|
117
104
|
summary: Ruby/Rsync is a Ruby library that can syncronize files between remote hosts
|
118
105
|
by wrapping a call to the rsync binary.
|
119
106
|
test_files:
|