macos.rb 0.50.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.
Files changed (70) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG +572 -0
  3. data/Gemfile +3 -0
  4. data/LICENSE +21 -0
  5. data/README.md +129 -0
  6. data/Rakefile +9 -0
  7. data/lib/Array/all_but_last.rb +7 -0
  8. data/lib/MacOS/Apple80211.rb +68 -0
  9. data/lib/MacOS/Applications.rb +73 -0
  10. data/lib/MacOS/Defaults/ComAppleDock.rb +153 -0
  11. data/lib/MacOS/Defaults/NSGlobalDomain/NSUserKeyEquivalents.rb +109 -0
  12. data/lib/MacOS/Defaults.rb +126 -0
  13. data/lib/MacOS/DiskUtil.rb +63 -0
  14. data/lib/MacOS/Dmg.rb +99 -0
  15. data/lib/MacOS/HardwarePort.rb +79 -0
  16. data/lib/MacOS/IfConfig.rb +183 -0
  17. data/lib/MacOS/Keychain.rb +26 -0
  18. data/lib/MacOS/LaunchControl.rb +36 -0
  19. data/lib/MacOS/SystemProfiler.rb +119 -0
  20. data/lib/MacOS/USBFlashDrive.rb +26 -0
  21. data/lib/MacOS/Users.rb +16 -0
  22. data/lib/MacOS/VERSION.rb +6 -0
  23. data/lib/MacOS/VPN.rb +13 -0
  24. data/lib/MacOS/Voice.rb +40 -0
  25. data/lib/MacOS.rb +27 -0
  26. data/lib/Module/alias_methods.rb +7 -0
  27. data/lib/Ordinal/Array.rb +8 -0
  28. data/lib/Ordinal.rb +157 -0
  29. data/lib/Thoran/Array/AllButLast/all_but_last.rb +28 -0
  30. data/lib/Thoran/Array/LastX/lastX.rb +33 -0
  31. data/lib/Thoran/Module/AliasMethods/alias_methods.rb +23 -0
  32. data/lib/Thoran/String/Capture/capture.rb +28 -0
  33. data/lib/Version.rb +381 -0
  34. data/macos.rb.gemspec +59 -0
  35. data/test/MacOS/Apple80211_test.rb +80 -0
  36. data/test/MacOS/Applications_test.rb +82 -0
  37. data/test/MacOS/Defaults/ComAppleDock_test.rb +66 -0
  38. data/test/MacOS/Defaults/NSGlobalDomain/NSUserKeyEquivalents_test.rb +67 -0
  39. data/test/MacOS/Defaults_test.rb +144 -0
  40. data/test/MacOS/DiskUtil_test.rb +48 -0
  41. data/test/MacOS/Dmg_test.rb +69 -0
  42. data/test/MacOS/HardwarePort_test.rb +46 -0
  43. data/test/MacOS/IfConfig_test.rb +144 -0
  44. data/test/MacOS/Keychain_test.rb +22 -0
  45. data/test/MacOS/LaunchControl_test.rb +40 -0
  46. data/test/MacOS/SystemProfiler_test.rb +69 -0
  47. data/test/MacOS/USBFlashDrive_test.rb +20 -0
  48. data/test/MacOS/Users_test.rb +10 -0
  49. data/test/MacOS/VPN_test.rb +18 -0
  50. data/test/MacOS/Voice_test.rb +46 -0
  51. data/test/MacOS_test.rb +17 -0
  52. data/test/VERSION_test.rb +19 -0
  53. data/test/commands_test.rb +50 -0
  54. data/test/fixtures/airport-I-deprecated.txt +2 -0
  55. data/test/fixtures/airport-I.txt +17 -0
  56. data/test/fixtures/defaults-domains.txt +1 -0
  57. data/test/fixtures/defaults-export-com.apple.dock.xml +47 -0
  58. data/test/fixtures/defaults-read-NSUserKeyEquivalents.txt +4 -0
  59. data/test/fixtures/df-k.txt +6 -0
  60. data/test/fixtures/diskutil-list-plist.xml +104 -0
  61. data/test/fixtures/dscl-list-users.txt +8 -0
  62. data/test/fixtures/ifconfig-a.txt +53 -0
  63. data/test/fixtures/networksetup-listallhardwareports.txt +39 -0
  64. data/test/fixtures/say-v.txt +8 -0
  65. data/test/fixtures/system_profiler-SPAirPortDataType.txt +44 -0
  66. data/test/fixtures/system_profiler-SPSoftwareDataType.txt +14 -0
  67. data/test/fixtures/system_profiler-SPUSBDataType.txt +58 -0
  68. data/test/gemspec_test.rb +50 -0
  69. data/test/helper.rb +18 -0
  70. metadata +183 -0
metadata ADDED
@@ -0,0 +1,183 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: macos.rb
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.50.0
5
+ platform: ruby
6
+ authors:
7
+ - thoran
8
+ bindir: bin
9
+ cert_chain: []
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
+ dependencies:
12
+ - !ruby/object:Gem::Dependency
13
+ name: CFPropertyList
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - ">="
17
+ - !ruby/object:Gem::Version
18
+ version: '0'
19
+ type: :runtime
20
+ prerelease: false
21
+ version_requirements: !ruby/object:Gem::Requirement
22
+ requirements:
23
+ - - ">="
24
+ - !ruby/object:Gem::Version
25
+ version: '0'
26
+ - !ruby/object:Gem::Dependency
27
+ name: plist
28
+ requirement: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ - !ruby/object:Gem::Dependency
41
+ name: minitest
42
+ requirement: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ type: :development
48
+ prerelease: false
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ - !ruby/object:Gem::Dependency
55
+ name: minitest-mock
56
+ requirement: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: '0'
61
+ type: :development
62
+ prerelease: false
63
+ version_requirements: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: '0'
68
+ - !ruby/object:Gem::Dependency
69
+ name: rake
70
+ requirement: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: '0'
75
+ type: :development
76
+ prerelease: false
77
+ version_requirements: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ version: '0'
82
+ description: 'Work with macOS from Ruby: network interfaces and hardware ports, the
83
+ system''s version, defaults, disks and disk images, USB flash drives, applications,
84
+ users, voices, the keychain and launchd.'
85
+ email: code@thoran.com
86
+ executables: []
87
+ extensions: []
88
+ extra_rdoc_files: []
89
+ files:
90
+ - CHANGELOG
91
+ - Gemfile
92
+ - LICENSE
93
+ - README.md
94
+ - Rakefile
95
+ - lib/Array/all_but_last.rb
96
+ - lib/MacOS.rb
97
+ - lib/MacOS/Apple80211.rb
98
+ - lib/MacOS/Applications.rb
99
+ - lib/MacOS/Defaults.rb
100
+ - lib/MacOS/Defaults/ComAppleDock.rb
101
+ - lib/MacOS/Defaults/NSGlobalDomain/NSUserKeyEquivalents.rb
102
+ - lib/MacOS/DiskUtil.rb
103
+ - lib/MacOS/Dmg.rb
104
+ - lib/MacOS/HardwarePort.rb
105
+ - lib/MacOS/IfConfig.rb
106
+ - lib/MacOS/Keychain.rb
107
+ - lib/MacOS/LaunchControl.rb
108
+ - lib/MacOS/SystemProfiler.rb
109
+ - lib/MacOS/USBFlashDrive.rb
110
+ - lib/MacOS/Users.rb
111
+ - lib/MacOS/VERSION.rb
112
+ - lib/MacOS/VPN.rb
113
+ - lib/MacOS/Voice.rb
114
+ - lib/Module/alias_methods.rb
115
+ - lib/Ordinal.rb
116
+ - lib/Ordinal/Array.rb
117
+ - lib/Thoran/Array/AllButLast/all_but_last.rb
118
+ - lib/Thoran/Array/LastX/lastX.rb
119
+ - lib/Thoran/Module/AliasMethods/alias_methods.rb
120
+ - lib/Thoran/String/Capture/capture.rb
121
+ - lib/Version.rb
122
+ - macos.rb.gemspec
123
+ - test/MacOS/Apple80211_test.rb
124
+ - test/MacOS/Applications_test.rb
125
+ - test/MacOS/Defaults/ComAppleDock_test.rb
126
+ - test/MacOS/Defaults/NSGlobalDomain/NSUserKeyEquivalents_test.rb
127
+ - test/MacOS/Defaults_test.rb
128
+ - test/MacOS/DiskUtil_test.rb
129
+ - test/MacOS/Dmg_test.rb
130
+ - test/MacOS/HardwarePort_test.rb
131
+ - test/MacOS/IfConfig_test.rb
132
+ - test/MacOS/Keychain_test.rb
133
+ - test/MacOS/LaunchControl_test.rb
134
+ - test/MacOS/SystemProfiler_test.rb
135
+ - test/MacOS/USBFlashDrive_test.rb
136
+ - test/MacOS/Users_test.rb
137
+ - test/MacOS/VPN_test.rb
138
+ - test/MacOS/Voice_test.rb
139
+ - test/MacOS_test.rb
140
+ - test/VERSION_test.rb
141
+ - test/commands_test.rb
142
+ - test/fixtures/airport-I-deprecated.txt
143
+ - test/fixtures/airport-I.txt
144
+ - test/fixtures/defaults-domains.txt
145
+ - test/fixtures/defaults-export-com.apple.dock.xml
146
+ - test/fixtures/defaults-read-NSUserKeyEquivalents.txt
147
+ - test/fixtures/df-k.txt
148
+ - test/fixtures/diskutil-list-plist.xml
149
+ - test/fixtures/dscl-list-users.txt
150
+ - test/fixtures/ifconfig-a.txt
151
+ - test/fixtures/networksetup-listallhardwareports.txt
152
+ - test/fixtures/say-v.txt
153
+ - test/fixtures/system_profiler-SPAirPortDataType.txt
154
+ - test/fixtures/system_profiler-SPSoftwareDataType.txt
155
+ - test/fixtures/system_profiler-SPUSBDataType.txt
156
+ - test/gemspec_test.rb
157
+ - test/helper.rb
158
+ homepage: https://github.com/thoran/macos.rb
159
+ licenses:
160
+ - MIT
161
+ metadata:
162
+ bug_tracker_uri: https://github.com/thoran/macos.rb/issues
163
+ changelog_uri: https://github.com/thoran/macos.rb/blob/master/CHANGELOG
164
+ source_code_uri: https://github.com/thoran/macos.rb
165
+ documentation_uri: https://github.com/thoran/macos.rb/blob/master/README.md
166
+ rdoc_options: []
167
+ require_paths:
168
+ - lib
169
+ required_ruby_version: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '2.7'
174
+ required_rubygems_version: !ruby/object:Gem::Requirement
175
+ requirements:
176
+ - - ">="
177
+ - !ruby/object:Gem::Version
178
+ version: '0'
179
+ requirements: []
180
+ rubygems_version: 4.0.23
181
+ specification_version: 4
182
+ summary: Work with macOS from Ruby.
183
+ test_files: []