unmac 0.7 → 0.8

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 CHANGED
@@ -68,4 +68,4 @@ License:
68
68
  See the MIT-LICENSE file included in the distribution.
69
69
 
70
70
  Copyright:
71
- Copyright (C) 2009 Xavier Noria.
71
+ Copyright (C) 2009-2011 Xavier Noria.
data/Rakefile CHANGED
@@ -5,3 +5,7 @@ task :test do
5
5
  ruby "-Ilib #{test}"
6
6
  end
7
7
  end
8
+
9
+ task :home do
10
+ sh "scp home/index.html fxn@rubyforge.org:/var/www/gforge-projects/unmac/"
11
+ end
@@ -34,7 +34,7 @@ class Unmacer
34
34
  end
35
35
 
36
36
  def unmac!(dirnames)
37
- dirnames.each do |dirname|
37
+ Array(dirnames).each do |dirname|
38
38
  unmac_root(dirname)
39
39
  find_skipping_root(dirname) do |f|
40
40
  unmac_folder(f) if File.directory?(f)
@@ -63,7 +63,7 @@ class TestUnmacer < Test::Unit::TestCase
63
63
  @unmacer.pretend = true
64
64
  unmac!
65
65
  $> = $stdout
66
- assert Set.new(dirs + ['._dummy']), Set.new(read_struct)
66
+ assert_equal Set.new(dirs + ['._dummy']), Set.new(read_struct)
67
67
  assert_match /^would delete.*\.Spotlight/, buf
68
68
  assert_match /^would delete.*\.fsevents/, buf
69
69
  assert_match /^would delete.*\.Trashes/, buf
@@ -88,7 +88,7 @@ class TestUnmacer < Test::Unit::TestCase
88
88
  create_struct(Unmacer::SPOTLIGHT)
89
89
  @unmacer.keep_spotlight = true
90
90
  unmac!
91
- assert [Unmacer::SPOTLIGHT], read_struct
91
+ assert_equal [Unmacer::SPOTLIGHT], read_struct
92
92
  end
93
93
 
94
94
  def test_fsevents
@@ -180,7 +180,7 @@ class TestUnmacer < Test::Unit::TestCase
180
180
  create_struct([], '._foo.txt')
181
181
  @unmacer.keep_apple_double = true
182
182
  unmac!
183
- assert ['._foo.txt'], read_struct
183
+ assert_equal ['._foo.txt'], read_struct
184
184
  end
185
185
 
186
186
  def test_keep_apple_double_orphans
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'unmac'
3
- spec.version = '0.7'
3
+ spec.version = '0.8'
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,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unmac
3
3
  version: !ruby/object:Gem::Version
4
- version: "0.7"
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 8
8
+ version: "0.8"
5
9
  platform: ruby
6
10
  authors:
7
11
  - Xavier Noria
@@ -9,7 +13,7 @@ autorequire:
9
13
  bindir: bin
10
14
  cert_chain: []
11
15
 
12
- date: 2009-01-08 00:00:00 +01:00
16
+ date: 2011-04-28 00:00:00 +02:00
13
17
  default_executable:
14
18
  dependencies: []
15
19
 
@@ -30,31 +34,37 @@ files:
30
34
  - lib/unmacer.rb
31
35
  - test/test_unmacer.rb
32
36
  - test/test_unmac.rb
33
- has_rdoc: false
37
+ has_rdoc: true
34
38
  homepage: http://github.com/fxn/unmac/tree/master
39
+ licenses: []
40
+
35
41
  post_install_message:
36
42
  rdoc_options: []
37
43
 
38
44
  require_paths:
39
45
  - lib
40
46
  required_ruby_version: !ruby/object:Gem::Requirement
47
+ none: false
41
48
  requirements:
42
49
  - - ">="
43
50
  - !ruby/object:Gem::Version
51
+ segments:
52
+ - 0
44
53
  version: "0"
45
- version:
46
54
  required_rubygems_version: !ruby/object:Gem::Requirement
55
+ none: false
47
56
  requirements:
48
57
  - - ">="
49
58
  - !ruby/object:Gem::Version
59
+ segments:
60
+ - 0
50
61
  version: "0"
51
- version:
52
62
  requirements: []
53
63
 
54
64
  rubyforge_project: unmac
55
- rubygems_version: 1.3.1
65
+ rubygems_version: 1.3.7
56
66
  signing_key:
57
- specification_version: 2
67
+ specification_version: 3
58
68
  summary: Delete spurious Mac files under a directory or volume
59
69
  test_files:
60
70
  - test/test_unmacer.rb