bundler-mac 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -1
- data/lib/bundler/mac.rb +5 -1
- data/lib/bundler/mac/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a36c1700c67eebb9466e467c95022b922b2184406aeeaa7c2800dc0deeb8cf96
|
4
|
+
data.tar.gz: de4b45c9ad496df588b7fd8cfcc518e4420bd4acc9eb3ced0178d6b5306194aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5589a18a85afa3b1a9c0e51ccfca06f6d1c43bcd17e6b914c57f1d157f816146fefd97f2951665097f3bdf9932bcf25bbf4087743621b0f3b3a298d428474d22
|
7
|
+
data.tar.gz: 7735784956d35aa5643a53cc6dc3bc2cb11c065daa8744a370cb6022ff7de0655f2b71f252fc488c7e1c9017f32f89844576c85d749ecb897d849ef85c7bf7da
|
data/Gemfile.lock
CHANGED
data/lib/bundler/mac.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require_relative "mac/version"
|
4
|
-
require_relative "mac/xattr"
|
5
4
|
|
6
5
|
module Bundler
|
7
6
|
module Mac
|
@@ -13,11 +12,16 @@ module Bundler
|
|
13
12
|
Bundler.bundle_path.join(".metadata_never_index").write("")
|
14
13
|
|
15
14
|
# Tell Time Machine to skip backing up the bundle
|
15
|
+
require_relative "mac/xattr"
|
16
16
|
path = Bundler.bundle_path.to_s
|
17
17
|
exclude_key = "com.apple.metadata:com_apple_backup_excludeItem"
|
18
18
|
exclude_value = "bplist00_\x10\x11com.apple.backupd\b"
|
19
19
|
Bundler.ui.debug "[time machine excluded] #{path}"
|
20
20
|
Xattr.setxattr(path, exclude_key, exclude_value, exclude_value.size, 0, 0)
|
21
|
+
rescue => e
|
22
|
+
# If something goes wrong, trace in debug mode but otherwise continue.
|
23
|
+
# This isn't critical functionality.
|
24
|
+
Bundler.ui.trace(e)
|
21
25
|
end
|
22
26
|
end
|
23
27
|
end
|
data/lib/bundler/mac/version.rb
CHANGED