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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 132655abbca30e102b1d7c43a13e38d15ae21b8dfb6531aba87e225588fe7fc7
4
- data.tar.gz: 13e9d005e911bc6bc315a0020bb21e87b824b565c2ca90096fd4d5600b3bc52e
3
+ metadata.gz: a36c1700c67eebb9466e467c95022b922b2184406aeeaa7c2800dc0deeb8cf96
4
+ data.tar.gz: de4b45c9ad496df588b7fd8cfcc518e4420bd4acc9eb3ced0178d6b5306194aa
5
5
  SHA512:
6
- metadata.gz: 639b5435234aae8c0fd722f082107eb3b98434e470b1e528f04311657e8fc7e515b3e5eb44a7944f891e9edbbb83f86c57896bea393123efc2dce1d8e8407a50
7
- data.tar.gz: 5672c561d65afb7a262b666fa8fe481bdc253b632fe34330e5a55da8208d9d2be93ebe6d68ba9c4cd4e6409dee92db11f14536caf23b9dfba6aaf84bc5b13dfa
6
+ metadata.gz: 5589a18a85afa3b1a9c0e51ccfca06f6d1c43bcd17e6b914c57f1d157f816146fefd97f2951665097f3bdf9932bcf25bbf4087743621b0f3b3a298d428474d22
7
+ data.tar.gz: 7735784956d35aa5643a53cc6dc3bc2cb11c065daa8744a370cb6022ff7de0655f2b71f252fc488c7e1c9017f32f89844576c85d749ecb897d849ef85c7bf7da
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bundler-mac (0.1.0)
4
+ bundler-mac (0.2.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -49,6 +49,7 @@ GEM
49
49
 
50
50
  PLATFORMS
51
51
  arm64-darwin-20
52
+ x86_64-darwin-19
52
53
 
53
54
  DEPENDENCIES
54
55
  bundler-mac!
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Bundler
4
4
  module Mac
5
- VERSION = "0.1.0"
5
+ VERSION = "0.2.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bundler-mac
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andre Arko