odisk 0.2.3 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +6 -11
- data/lib/odisk/crypter.rb +2 -2
- data/lib/odisk/statfixer.rb +20 -2
- data/lib/odisk/version.rb +1 -1
- metadata +6 -10
data/README.md
CHANGED
@@ -25,22 +25,17 @@ which utilizes an alternative approach to dealing with multiple threads.
|
|
25
25
|
|
26
26
|
## <a name="release">Release Notes</a>
|
27
27
|
|
28
|
-
### Release 0.
|
28
|
+
### Release 0.9.0
|
29
29
|
|
30
|
-
-
|
30
|
+
- Updated to work properly with Ubuntu 12.
|
31
31
|
|
32
|
-
-
|
32
|
+
- Note: the version has been bumped up to 0.9 indicating it is stable enough to use. I have been using it for several months without a problem on 3 Macs and now one Ubuntu machine.
|
33
33
|
|
34
34
|
# Plans and Notes
|
35
35
|
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
backup functionality works with backups encrypted and compressed on a remote
|
40
|
-
server. Adding new files and making modifications works just fine. Removing
|
41
|
-
files has not been implemented yet and changing ownership or mode only take
|
42
|
-
effect if the file is touched as well. Feel free to give it a try and let me
|
43
|
-
know when you run into bugs.
|
36
|
+
So far the basic backup functionality works with backups encrypted and compressed on a remote server. Adding new files
|
37
|
+
and making modifications works just fine. Removing files has not been fully implemented yet and changing ownership or
|
38
|
+
mode only take effect if the file is touched as well. Feel free to give it a try and let me know when you run into bugs.
|
44
39
|
|
45
40
|
- Support ignore of file and directories
|
46
41
|
- specify on command line and create .odisk/ignore file
|
data/lib/odisk/crypter.rb
CHANGED
@@ -20,7 +20,7 @@ module ODisk
|
|
20
20
|
def encrypt(src, dest, remote)
|
21
21
|
::Opee::Env.info("encrypt \"#{src}\" into \"#{dest}\"")
|
22
22
|
unless $dry_run
|
23
|
-
`gpg -c --batch --yes --force-mdc --passphrase-file "#{$remote.pass_file}" -o "#{dest}" "#{src}"`
|
23
|
+
`gpg -c --batch --yes --force-mdc --no-use-agent --passphrase-file "#{$remote.pass_file}" -o "#{dest}" "#{src}"`
|
24
24
|
@copy_queue.add_method(:upload, dest, remote, true)
|
25
25
|
end
|
26
26
|
@crypt_queue.ask(:ready, self)
|
@@ -29,7 +29,7 @@ module ODisk
|
|
29
29
|
def decrypt(src, dest)
|
30
30
|
::Opee::Env.info("decrypt \"#{src}\" into \"#{dest}\"")
|
31
31
|
unless $dry_run
|
32
|
-
`gpg -d --batch --yes -q --passphrase-file "#{$remote.pass_file}" -o "#{dest}" "#{src}"`
|
32
|
+
`gpg -d --batch --yes -q --no-use-agent --passphrase-file "#{$remote.pass_file}" -o "#{dest}" "#{src}"`
|
33
33
|
::File.delete(src)
|
34
34
|
::Opee::Env.warn("Downloaded and decrypted \"#{dest}\"")
|
35
35
|
end
|
data/lib/odisk/statfixer.rb
CHANGED
@@ -90,9 +90,27 @@ module ODisk
|
|
90
90
|
when :group
|
91
91
|
owner = Etc.getpwnam(info.owner).uid
|
92
92
|
group = Etc.getgrnam(info.group).gid
|
93
|
-
|
93
|
+
begin
|
94
|
+
::File::lchown(owner, group, path)
|
95
|
+
rescue Errno::EPERM
|
96
|
+
begin
|
97
|
+
::File::chown(owner, group, path)
|
98
|
+
rescue Errno::EPERM
|
99
|
+
begin
|
100
|
+
::File::chown(owner, nil, path)
|
101
|
+
#::Opee::Env.warn("failed to set group to #{info.group} for #{path}")
|
102
|
+
rescue Errno::EPERM
|
103
|
+
::File::chown(nil, nil, path)
|
104
|
+
::Opee::Env.warn("failed to set owner to #{info.owner} and group to #{info.group} for #{path}")
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|
94
108
|
when :mode
|
95
|
-
|
109
|
+
begin
|
110
|
+
::File::lchmod(val[1], path)
|
111
|
+
rescue NotImplementedError
|
112
|
+
::File::chmod(val[1], path)
|
113
|
+
end
|
96
114
|
else
|
97
115
|
# ignore?
|
98
116
|
end
|
data/lib/odisk/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: odisk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-11-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: opee
|
@@ -106,12 +106,9 @@ files:
|
|
106
106
|
- lib/odisk.rb
|
107
107
|
- LICENSE
|
108
108
|
- README.md
|
109
|
-
-
|
110
|
-
|
111
|
-
-
|
112
|
-
YmluL29kaXNrX2ZvcmdldA==
|
113
|
-
- !binary |-
|
114
|
-
YmluL29kaXNrX3JlbW92ZQ==
|
109
|
+
- bin/odisk
|
110
|
+
- bin/odisk_forget
|
111
|
+
- bin/odisk_remove
|
115
112
|
homepage: http://www.ohler.com/odisk
|
116
113
|
licenses: []
|
117
114
|
post_install_message:
|
@@ -134,9 +131,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
134
131
|
version: '0'
|
135
132
|
requirements: []
|
136
133
|
rubyforge_project: odisk
|
137
|
-
rubygems_version: 1.8.
|
134
|
+
rubygems_version: 1.8.23
|
138
135
|
signing_key:
|
139
136
|
specification_version: 3
|
140
137
|
summary: Remote Encrypted File Synchronization, oDisk
|
141
138
|
test_files: []
|
142
|
-
has_rdoc: true
|