fxn-unmac 0.1 → 0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/README +1 -1
  2. data/bin/unmac +1 -1
  3. data/lib/unmacer.rb +0 -12
  4. data/unmac.gemspec +1 -1
  5. metadata +1 -1
data/README CHANGED
@@ -10,7 +10,7 @@ Options:
10
10
  -f, --keep-fsevents Do not delete Time Machine stuff
11
11
  -t, --keep-trashes Do not delete volume trashes
12
12
  -m, --keep-macosx Do not delete "__MACOSX" directories
13
- -r, --keep-dsstore Do not delete ".DS_Store" directories
13
+ -r, --keep-dsstore Do not delete ".DS_Store" files
14
14
  -d, --keep-apple-double Do not delete "._*" ghost files
15
15
  -o, --keep-apple-double-orphans Delete "._foo.txt" only if "foo.txt" exists
16
16
 
data/bin/unmac CHANGED
@@ -18,7 +18,7 @@ Options:
18
18
  -f, --keep-fsevents Do not delete Time Machine stuff
19
19
  -t, --keep-trashes Do not delete volume trashes
20
20
  -m, --keep-macosx Do not delete "__MACOSX" directories
21
- -r, --keep-dsstore Do not delete ".DS_Store" directories
21
+ -r, --keep-dsstore Do not delete ".DS_Store" files
22
22
  -d, --keep-apple-double Do not delete "._*" ghost files
23
23
  -o, --keep-apple-double-orphans Delete "._foo.txt" only if "foo.txt" exists
24
24
 
data/lib/unmacer.rb CHANGED
@@ -50,10 +50,6 @@ class Unmacer
50
50
 
51
51
  private
52
52
 
53
- def unmac_all(dirname)
54
- unmac_root_folder(dirname)
55
- end
56
-
57
53
  def unmac_root(dirname)
58
54
  # Order is important because ".Trashes" has "._.Trashes". Otherwise,
59
55
  # "._.Trashes" could be left as an orphan.
@@ -135,14 +131,6 @@ private
135
131
  # See http://www.westwind.com/reference/OS-X/invisibles.html.
136
132
  # See http://en.wikipedia.org/wiki/Resource_fork.
137
133
  # See http://en.wikipedia.org/wiki/AppleSingle.
138
- #
139
- # Given the listing of a directory in +basenames+ this method selects
140
- # emulated resource forks in there.
141
- #
142
- # If +include_orphans+ is true any filename that start with "._" are
143
- # selected. The idea is to clean up ghost entries corresponding to files
144
- # that were deleted in the target volume mounted in a different OS.
145
- # Otherwise we ensure the corresponding filename exists in +basenames+.
146
134
  def delete_apple_double(dirname)
147
135
  basenames = Dir.entries(dirname)
148
136
  basenames.select do |basename|
data/unmac.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'unmac'
3
- spec.version = '0.1'
3
+ spec.version = '0.2'
4
4
  spec.summary = 'Delete spurious Mac files under a directory or volume'
5
5
  spec.homepage = 'http://github.com/fxn/unmac/tree/master'
6
6
  spec.executables = %w(unmac)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fxn-unmac
3
3
  version: !ruby/object:Gem::Version
4
- version: "0.1"
4
+ version: "0.2"
5
5
  platform: ruby
6
6
  authors:
7
7
  - Xavier Noria