prefnerd 0.2 → 1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/pn +2 -3
  3. metadata +6 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ecd39d3f68a1baa503eba80c41c8ccd5fcd1fdc0
4
- data.tar.gz: 7ddd0d8d0bd0eb277db33de325beb93fe2c044d7
3
+ metadata.gz: 5a8ccb6ff48f50cd680040ef2e6a9b671295be8e
4
+ data.tar.gz: 1352fd8c18afa2df47b1cabaa10fb2b121cf1160
5
5
  SHA512:
6
- metadata.gz: 41f92bdc0ace02ebe0bfe5638fff75e25a751826cf3eee80120cd048e3dc7aa6cabac3c545d4b779596c18b8910cca895a2cb648cf1e94efc42de7f58ad98269
7
- data.tar.gz: b946d8bb0e446d33963f7cf917acc919198d8ea1fa5f3851d9fc477e235876456926d6f72508345d9330f5130d54d9fc2918b82f0008f9fea47efc249a343667
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.2'
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: 2015-03-16 00:00:00.000000000 Z
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.0.14
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