rsyncbackup 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.gitignore +2 -0
- data/.rvmrc +48 -0
- data/Gemfile.lock +1 -1
- data/features/spaced_file_names.feature +23 -0
- data/lib/rsyncbackup/utilities.rb +3 -3
- data/lib/rsyncbackup/version.rb +1 -1
- metadata +8 -18
- data/rsyncbackup-0.0.1.gem +0 -0
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
Mzk3NmFhYzYyMTBjNTczMjlmNDA3YjZmYjA4YmJhZjhkY2RmM2Y3Zg==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
MjQxNzIxZTE0NTZmZDNmM2RiZDExNTdhOTQ5OGE1Y2E2NTI4MzA4Nw==
|
7
|
+
!binary "U0hBNTEy":
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
NjMzOTRiMGY0MWFmOTU0ZTFhNGQ0MDgzNTM1ZTkzZjY0OTBlMDcxM2UzYjJh
|
10
|
+
NzIxZTI5MDIzM2QzMjUxMzMyZTJhZTRiZjQ0ZmI2OTVhZjVjNDUyNDZkZDMy
|
11
|
+
ZTkxOTM0ZWJmODc1MmI1YjljMjBhNDJiMTkyNzY1M2M1N2EyN2Q=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
MWQ2ZTUzYmY3YThjNDNjMmU4YTBiNDc1ZWUyZWM5ZjNmY2RlMmM0NGM3MDM5
|
14
|
+
ODE1Y2UyNDhhN2QwODIyMzM4OGE2ODliNDZiZmMwMDcxMjBkODdlZDJlNDE2
|
15
|
+
Mzk3NTUyMjkxYzViMzM3ODc3ODcxYWFjYzJhOGZkYmQ4ZWU3NDk=
|
data/.gitignore
CHANGED
data/.rvmrc
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
#!/usr/bin/env bash
|
2
|
+
|
3
|
+
# This is an RVM Project .rvmrc file, used to automatically load the ruby
|
4
|
+
# development environment upon cd'ing into the directory
|
5
|
+
|
6
|
+
# First we specify our desired <ruby>[@<gemset>], the @gemset name is optional,
|
7
|
+
# Only full ruby name is supported here, for short names use:
|
8
|
+
# echo "rvm use 1.9.3" > .rvmrc
|
9
|
+
environment_id="ruby-1.9.3-p392@rsyncbackup"
|
10
|
+
|
11
|
+
# Uncomment the following lines if you want to verify rvm version per project
|
12
|
+
# rvmrc_rvm_version="1.18.15 (stable)" # 1.10.1 seams as a safe start
|
13
|
+
# eval "$(echo ${rvm_version}.${rvmrc_rvm_version} | awk -F. '{print "[[ "$1*65536+$2*256+$3" -ge "$4*65536+$5*256+$6" ]]"}' )" || {
|
14
|
+
# echo "This .rvmrc file requires at least RVM ${rvmrc_rvm_version}, aborting loading."
|
15
|
+
# return 1
|
16
|
+
# }
|
17
|
+
|
18
|
+
# First we attempt to load the desired environment directly from the environment
|
19
|
+
# file. This is very fast and efficient compared to running through the entire
|
20
|
+
# CLI and selector. If you want feedback on which environment was used then
|
21
|
+
# insert the word 'use' after --create as this triggers verbose mode.
|
22
|
+
if [[ -d "${rvm_path:-$HOME/.rvm}/environments"
|
23
|
+
&& -s "${rvm_path:-$HOME/.rvm}/environments/$environment_id" ]]
|
24
|
+
then
|
25
|
+
\. "${rvm_path:-$HOME/.rvm}/environments/$environment_id"
|
26
|
+
[[ -s "${rvm_path:-$HOME/.rvm}/hooks/after_use" ]] &&
|
27
|
+
\. "${rvm_path:-$HOME/.rvm}/hooks/after_use" || true
|
28
|
+
else
|
29
|
+
# If the environment file has not yet been created, use the RVM CLI to select.
|
30
|
+
rvm --create "$environment_id" || {
|
31
|
+
echo "Failed to create RVM environment '${environment_id}'."
|
32
|
+
return 1
|
33
|
+
}
|
34
|
+
fi
|
35
|
+
|
36
|
+
# If you use bundler, this might be useful to you:
|
37
|
+
# if [[ -s Gemfile ]] && {
|
38
|
+
# ! builtin command -v bundle >/dev/null ||
|
39
|
+
# builtin command -v bundle | GREP_OPTIONS= \grep $rvm_path/bin/bundle >/dev/null
|
40
|
+
# }
|
41
|
+
# then
|
42
|
+
# printf "%b" "The rubygem 'bundler' is not installed. Installing it now.\n"
|
43
|
+
# gem install bundler
|
44
|
+
# fi
|
45
|
+
# if [[ -s Gemfile ]] && builtin command -v bundle >/dev/null
|
46
|
+
# then
|
47
|
+
# bundle install | GREP_OPTIONS= \grep -vE '^Using|Your bundle is complete'
|
48
|
+
# fi
|
data/Gemfile.lock
CHANGED
@@ -0,0 +1,23 @@
|
|
1
|
+
Feature: File names with spaces
|
2
|
+
In order to ensure file names with spaces are correctly handled
|
3
|
+
|
4
|
+
Scenario: Use spaces in file names
|
5
|
+
Given a directory named "this source"
|
6
|
+
Given a file named "this source/one" with:
|
7
|
+
"""
|
8
|
+
xxxx
|
9
|
+
"""
|
10
|
+
Given a file named "this source/two" with:
|
11
|
+
"""
|
12
|
+
xxxx
|
13
|
+
"""
|
14
|
+
Given a directory named "this target"
|
15
|
+
When I successfully run `rsyncbackup --log-level debug 'this source' 'this target'`
|
16
|
+
Then a file named "this target/.lastfull" should exist
|
17
|
+
And a directory named "this target/.incomplete" should not exist
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
|
@@ -27,9 +27,9 @@ class Rsyncbackup
|
|
27
27
|
cmd << '--numeric-ids' if options[:numeric_ids]
|
28
28
|
cmd << '--delete' if options[:delete]
|
29
29
|
cmd << "--exclude-file #{options[:exclusions]}" if File.exist?(options[:exclusions])
|
30
|
-
cmd << "--link-dest #{options[:link_dest]}" if options[:link_dest]
|
31
|
-
cmd << options[:source]
|
32
|
-
cmd << temp_target_path
|
30
|
+
cmd << "--link-dest '#{options[:link_dest]}'" if options[:link_dest]
|
31
|
+
cmd << "'#{options[:source]}'"
|
32
|
+
cmd << "'#{temp_target_path}'"
|
33
33
|
|
34
34
|
cmd.join(' ').tap{|t| debug "Command: #{t}" }
|
35
35
|
|
data/lib/rsyncbackup/version.rb
CHANGED
metadata
CHANGED
@@ -1,20 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rsyncbackup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
5
|
-
prerelease:
|
4
|
+
version: 1.0.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Tamara Temple
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-02-
|
11
|
+
date: 2013-02-28 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rdoc
|
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: aruba
|
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
|
@@ -46,7 +41,6 @@ dependencies:
|
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: rake
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
45
|
- - ~>
|
52
46
|
- !ruby/object:Gem::Version
|
@@ -54,7 +48,6 @@ dependencies:
|
|
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
|
@@ -62,7 +55,6 @@ dependencies:
|
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
56
|
name: rspec
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
59
|
- - ! '>='
|
68
60
|
- !ruby/object:Gem::Version
|
@@ -70,7 +62,6 @@ dependencies:
|
|
70
62
|
type: :development
|
71
63
|
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
65
|
requirements:
|
75
66
|
- - ! '>='
|
76
67
|
- !ruby/object:Gem::Version
|
@@ -78,7 +69,6 @@ dependencies:
|
|
78
69
|
- !ruby/object:Gem::Dependency
|
79
70
|
name: methadone
|
80
71
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
72
|
requirements:
|
83
73
|
- - ~>
|
84
74
|
- !ruby/object:Gem::Version
|
@@ -86,7 +76,6 @@ dependencies:
|
|
86
76
|
type: :runtime
|
87
77
|
prerelease: false
|
88
78
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
79
|
requirements:
|
91
80
|
- - ~>
|
92
81
|
- !ruby/object:Gem::Version
|
@@ -101,6 +90,7 @@ extra_rdoc_files: []
|
|
101
90
|
files:
|
102
91
|
- .gitignore
|
103
92
|
- .rspec
|
93
|
+
- .rvmrc
|
104
94
|
- Gemfile
|
105
95
|
- Gemfile.lock
|
106
96
|
- LICENSE.txt
|
@@ -110,6 +100,7 @@ files:
|
|
110
100
|
- bin/rsyncbackup
|
111
101
|
- features/backup.feature
|
112
102
|
- features/rsyncbackup.feature
|
103
|
+
- features/spaced_file_names.feature
|
113
104
|
- features/step_definitions/backup_steps.rb
|
114
105
|
- features/step_definitions/rsyncbackup_steps.rb
|
115
106
|
- features/support/env.rb
|
@@ -123,38 +114,37 @@ files:
|
|
123
114
|
- lib/rsyncbackup.rb
|
124
115
|
- lib/rsyncbackup/utilities.rb
|
125
116
|
- lib/rsyncbackup/version.rb
|
126
|
-
- rsyncbackup-0.0.1.gem
|
127
117
|
- rsyncbackup.gemspec
|
128
118
|
- spec/rsyncbackup_spec.rb
|
129
119
|
- spec/spec_helper.rb
|
130
120
|
- spec/utilities_spec.rb
|
131
121
|
homepage: http://github.com/tamouse/rsyncbackup-rb
|
132
122
|
licenses: []
|
123
|
+
metadata: {}
|
133
124
|
post_install_message:
|
134
125
|
rdoc_options: []
|
135
126
|
require_paths:
|
136
127
|
- lib
|
137
128
|
required_ruby_version: !ruby/object:Gem::Requirement
|
138
|
-
none: false
|
139
129
|
requirements:
|
140
130
|
- - ! '>='
|
141
131
|
- !ruby/object:Gem::Version
|
142
132
|
version: '0'
|
143
133
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
144
|
-
none: false
|
145
134
|
requirements:
|
146
135
|
- - ! '>='
|
147
136
|
- !ruby/object:Gem::Version
|
148
137
|
version: '0'
|
149
138
|
requirements: []
|
150
139
|
rubyforge_project:
|
151
|
-
rubygems_version:
|
140
|
+
rubygems_version: 2.0.0
|
152
141
|
signing_key:
|
153
|
-
specification_version:
|
142
|
+
specification_version: 4
|
154
143
|
summary: Yet another rsyncbackup script, this time in ruby
|
155
144
|
test_files:
|
156
145
|
- features/backup.feature
|
157
146
|
- features/rsyncbackup.feature
|
147
|
+
- features/spaced_file_names.feature
|
158
148
|
- features/step_definitions/backup_steps.rb
|
159
149
|
- features/step_definitions/rsyncbackup_steps.rb
|
160
150
|
- features/support/env.rb
|
data/rsyncbackup-0.0.1.gem
DELETED
Binary file
|