prefnerd 0.2 → 1.0
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.
- checksums.yaml +4 -4
- data/bin/pn +2 -3
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5a8ccb6ff48f50cd680040ef2e6a9b671295be8e
|
|
4
|
+
data.tar.gz: 1352fd8c18afa2df47b1cabaa10fb2b121cf1160
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 81b5403b16d70b8d2410a366abef0d77d6af6dad904f1cc244ee89c0df39d4ca481615ed06381028c1bc631f0eaf4bfef71e90a2d670903160a979731190f759
|
|
7
|
+
data.tar.gz: 252352884f68de02454f8083076b946209ebba17693ac2d3266dc3733bd415414b237d9aac854ea2e2ae9cc7f880a8bc011520ec8fd1655288b3fa4578a8e62a
|
data/bin/pn
CHANGED
|
@@ -19,8 +19,7 @@ end
|
|
|
19
19
|
|
|
20
20
|
# Try to get current host UUID.
|
|
21
21
|
match = File.
|
|
22
|
-
popen(%w[system_profiler SPHardwareDataType]).
|
|
23
|
-
read.
|
|
22
|
+
popen(%w[system_profiler SPHardwareDataType]) { |f| f.read }.
|
|
24
23
|
match(/^\s*Hardware UUID:\s*(.+)$/)
|
|
25
24
|
CURRENT_HOST_SUFFIX = '.' + (match && match[1]).to_s + '.plist'
|
|
26
25
|
CURRENT_HOST_PREFIX = '-currentHost '
|
|
@@ -100,7 +99,7 @@ begin
|
|
|
100
99
|
|
|
101
100
|
# Output diff from before to after, but strip meaningless filename header
|
|
102
101
|
puts plist + ':'
|
|
103
|
-
puts(File.popen(['diff', '-u', old_file.path, new_file.path]).readlines[2..-1])
|
|
102
|
+
puts(File.popen(['diff', '-u', old_file.path, new_file.path]) { |f| f.readlines[2..-1] })
|
|
104
103
|
|
|
105
104
|
new_file.unlink
|
|
106
105
|
old_file.unlink
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: prefnerd
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: '0
|
|
4
|
+
version: '1.0'
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Greg Hurrell
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2017-10-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: "\n Are you an OS X prefnerd? Do you keep a base set of OS X preferences
|
|
14
14
|
in\n version control to make it easier to set up new machines? Do you want to\n
|
|
@@ -23,7 +23,7 @@ extensions: []
|
|
|
23
23
|
extra_rdoc_files: []
|
|
24
24
|
files:
|
|
25
25
|
- bin/pn
|
|
26
|
-
homepage:
|
|
26
|
+
homepage: https://github.com/wincent/prefnerd
|
|
27
27
|
licenses:
|
|
28
28
|
- MIT
|
|
29
29
|
metadata: {}
|
|
@@ -33,18 +33,18 @@ require_paths:
|
|
|
33
33
|
- lib
|
|
34
34
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
35
35
|
requirements:
|
|
36
|
-
- -
|
|
36
|
+
- - ">="
|
|
37
37
|
- !ruby/object:Gem::Version
|
|
38
38
|
version: '0'
|
|
39
39
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
40
40
|
requirements:
|
|
41
|
-
- -
|
|
41
|
+
- - ">="
|
|
42
42
|
- !ruby/object:Gem::Version
|
|
43
43
|
version: '0'
|
|
44
44
|
requirements:
|
|
45
45
|
- The fswatch executable
|
|
46
46
|
rubyforge_project:
|
|
47
|
-
rubygems_version: 2.
|
|
47
|
+
rubygems_version: 2.6.13
|
|
48
48
|
signing_key:
|
|
49
49
|
specification_version: 4
|
|
50
50
|
summary: Monitors the OS X defaults database for changes
|