File tree 5 files changed +28
-7
lines changed
5 files changed +28
-7
lines changed Original file line number Diff line number Diff line change
1
+ == 1.0 2011-08-11
2
+
3
+ * Prints usage if no directory is passed.
4
+
1
5
== 0.9 2011-08-11
2
6
3
7
* Knows about mobile backups, new in Lion.
Original file line number Diff line number Diff line change @@ -43,9 +43,11 @@ What's deleted:
43
43
* A folder called ".Trashes" in the root directory of volumes stores their
44
44
trashes. Those ones are taken into account by the Trash in the Dock.
45
45
46
- * Document revisions are stored in the /.DocumentRevisions-V100 folder. (New in Lion.)
46
+ * Document revisions are stored on a folder called .DocumentRevisions-V100
47
+ in the root directory. (New in Lion.)
47
48
48
- * Mobile backups are stored in the /.MobileBackups folder. (New in Lion.)
49
+ * Mobile backups are stored on a folder called .MobileBackups in the root
50
+ directory. (New in Lion.)
49
51
50
52
* Some archivers create auxiliary directories called "__MACOSX".
51
53
Original file line number Diff line number Diff line change @@ -7,6 +7,6 @@ Rake::TestTask.new do |t|
7
7
t . verbose = true
8
8
end
9
9
10
- task :home do
11
- sh "scp home/index.html [email protected] :/var/www/gforge-projects/ unmac/ "
10
+ task :readme do
11
+ system "ruby -Ilib bin/ unmac > README "
12
12
end
Original file line number Diff line number Diff line change @@ -51,9 +51,11 @@ What's deleted:
51
51
* A folder called "#{ Unmacer ::TRASHES } " in the root directory of volumes stores their
52
52
trashes. Those ones are taken into account by the Trash in the Dock.
53
53
54
- * Document revisions are stored in the /.DocumentRevisions-V100 folder. (New in Lion.)
54
+ * Document revisions are stored on a folder called #{ Unmacer ::REVISIONS }
55
+ in the root directory. (New in Lion.)
55
56
56
- * Mobile backups are stored in the /.MobileBackups folder. (New in Lion.)
57
+ * Mobile backups are stored on a folder called #{ Unmacer ::MBACKUPS } in the root
58
+ directory. (New in Lion.)
57
59
58
60
* Some archivers create auxiliary directories called "#{ Unmacer ::MACOSX } ".
59
61
@@ -106,7 +108,11 @@ begin
106
108
test = true
107
109
end
108
110
end
109
- unmacer . unmac! ( ARGV ) unless test
111
+ if ARGV . empty?
112
+ usage and exit
113
+ else
114
+ unmacer . unmac! ( ARGV ) unless test
115
+ end
110
116
rescue GetoptLong ::InvalidOption
111
117
usage and exit 1
112
118
end
Original file line number Diff line number Diff line change @@ -281,4 +281,13 @@ def test_help
281
281
assert_match %r{^Usage\b } , buf
282
282
assert ARGV . empty?
283
283
end
284
+
285
+ def test_no_directory
286
+ buf = ''
287
+ $> = StringIO . open ( buf , 'w' )
288
+ call_unmac
289
+ $> = $stdout
290
+ assert_match %r{^unmac\b } , buf
291
+ assert_match %r{^Usage\b } , buf
292
+ end
284
293
end
You can’t perform that action at this time.
0 commit comments