mac_setup 0.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 +7 -0
- data/.codeclimate.yml +7 -0
- data/.gitignore +9 -0
- data/.rspec +3 -0
- data/.rubocop.yml +59 -0
- data/.ruby-version +1 -0
- data/.travis.yml +9 -0
- data/CODE_OF_CONDUCT.md +13 -0
- data/Gemfile +6 -0
- data/LICENSE.txt +21 -0
- data/README.md +57 -0
- data/Rakefile +12 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/exe/mac_setup +13 -0
- data/lib/mac_setup/cask_installer.rb +20 -0
- data/lib/mac_setup/configuration.rb +35 -0
- data/lib/mac_setup/formula_installer.rb +57 -0
- data/lib/mac_setup/homebrew_installer.rb +23 -0
- data/lib/mac_setup/launch_agent_installer.rb +33 -0
- data/lib/mac_setup/shell.rb +7 -0
- data/lib/mac_setup/system_status.rb +49 -0
- data/lib/mac_setup/tap_installer.rb +28 -0
- data/lib/mac_setup/version.rb +3 -0
- data/lib/mac_setup.rb +21 -0
- data/mac_setup.gemspec +28 -0
- metadata +140 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: a0c21ee9ec80684d50f3b5e1ac2725f2a71dd8be
|
4
|
+
data.tar.gz: 216ad25d385dc3bbdf10bc76a22de8939cfef835
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: d9ad5fed7237905f5bdca7243585b0ed757848cd17dff5c280c70d800cba050be2d9396272cc66e628b3f5894cd106826dd4dfa013b9c428e450cb2957903db9
|
7
|
+
data.tar.gz: ff98452361c5fec7492ce42a73f4d35ba03137c5f8bee172bfea8c5c46f198aa61b17c165e992621f43de1ebcf6962861cfda169a378a3a0431a1fe8191de50b
|
data/.codeclimate.yml
ADDED
data/.gitignore
ADDED
data/.rspec
ADDED
data/.rubocop.yml
ADDED
@@ -0,0 +1,59 @@
|
|
1
|
+
require: rubocop-rspec
|
2
|
+
|
3
|
+
Style/Documentation:
|
4
|
+
Enabled: false
|
5
|
+
|
6
|
+
Metrics/LineLength:
|
7
|
+
Max: 100
|
8
|
+
Exclude:
|
9
|
+
- 'spec/**/*'
|
10
|
+
|
11
|
+
Metrics/MethodLength:
|
12
|
+
Exclude:
|
13
|
+
- 'spec/**/*'
|
14
|
+
|
15
|
+
Style/SingleSpaceBeforeFirstArg:
|
16
|
+
Enabled: false
|
17
|
+
|
18
|
+
Style/AccessorMethodName:
|
19
|
+
Enabled: false
|
20
|
+
|
21
|
+
Style/GuardClause:
|
22
|
+
Enabled: true
|
23
|
+
|
24
|
+
Style/MethodCalledOnDoEndBlock:
|
25
|
+
Enabled: true
|
26
|
+
|
27
|
+
Style/SymbolArray:
|
28
|
+
Enabled: false
|
29
|
+
|
30
|
+
Style/TrivialAccessors:
|
31
|
+
ExactNameMatch: true
|
32
|
+
|
33
|
+
Style/CollectionMethods:
|
34
|
+
Enabled: true
|
35
|
+
|
36
|
+
Style/PredicateName:
|
37
|
+
NamePrefix:
|
38
|
+
- is_
|
39
|
+
- have_
|
40
|
+
NamePrefixBlacklist:
|
41
|
+
- is_
|
42
|
+
- have_
|
43
|
+
|
44
|
+
Style/SignalException:
|
45
|
+
Enabled: false
|
46
|
+
|
47
|
+
Style/NumericLiterals:
|
48
|
+
Enabled: false
|
49
|
+
|
50
|
+
RSpec/DescribeClass:
|
51
|
+
Enabled: false
|
52
|
+
RSpec/DescribedClass:
|
53
|
+
Enabled: false
|
54
|
+
RSpec/DescribeMethod:
|
55
|
+
Enabled: false
|
56
|
+
RSpec/FilePath:
|
57
|
+
Enabled: false
|
58
|
+
RSpec/InstanceVariable:
|
59
|
+
Enabled: false
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.0.0
|
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
|
4
|
+
|
5
|
+
We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
|
6
|
+
|
7
|
+
Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
|
8
|
+
|
9
|
+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
|
10
|
+
|
11
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
|
12
|
+
|
13
|
+
This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2015 Matt Wean
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,57 @@
|
|
1
|
+
# MacSetup
|
2
|
+
|
3
|
+
This is a tool for setting up a new Mac and keeping it up to date. It uses Homebrew to install formulas and applications (using Homebrew casks).
|
4
|
+
|
5
|
+
[](https://travis-ci.org/mwean/mac_setup) [](https://codeclimate.com/github/mwean/mac_setup) [](https://codeclimate.com/github/mwean/mac_setup/coverage) 
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
$ gem install mac_setup
|
10
|
+
|
11
|
+
## Usage
|
12
|
+
|
13
|
+
Create a config file at `~/.mac_setup.yml` and run `mac_setup`.
|
14
|
+
|
15
|
+
You can also specify the config file location:
|
16
|
+
|
17
|
+
$ mac_setup ~/path/to/config.yml
|
18
|
+
|
19
|
+
## Config File Format
|
20
|
+
|
21
|
+
```yaml
|
22
|
+
taps:
|
23
|
+
- caskroom/fonts
|
24
|
+
- homebrew/dupes
|
25
|
+
- homebrew/versions
|
26
|
+
|
27
|
+
formulas:
|
28
|
+
- git
|
29
|
+
- openssl
|
30
|
+
- postgresql
|
31
|
+
- redis
|
32
|
+
- zsh
|
33
|
+
|
34
|
+
casks:
|
35
|
+
- google-chrome
|
36
|
+
- slack
|
37
|
+
|
38
|
+
launch_agents:
|
39
|
+
- postgresql
|
40
|
+
- redis
|
41
|
+
```
|
42
|
+
|
43
|
+
## Development
|
44
|
+
|
45
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment. Run `bundle exec mac_setup` to use the gem in this directory, ignoring other installed copies of this gem.
|
46
|
+
|
47
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
48
|
+
|
49
|
+
## Contributing
|
50
|
+
|
51
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/mwean/mac_setup. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
|
52
|
+
|
53
|
+
|
54
|
+
## License
|
55
|
+
|
56
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
57
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
require 'bundler/gem_tasks'
|
2
|
+
require 'rspec/core/rake_task'
|
3
|
+
require 'rubocop/rake_task'
|
4
|
+
|
5
|
+
RuboCop::RakeTask.new(:rubocop) do |task|
|
6
|
+
task.options = ['--display-cop-names', '--display-style-guide']
|
7
|
+
end
|
8
|
+
|
9
|
+
RSpec::Core::RakeTask.new(:spec)
|
10
|
+
|
11
|
+
task default: 'rubocop'
|
12
|
+
task default: :spec
|
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'bundler/setup'
|
4
|
+
require 'mac_setup'
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require 'irb'
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
data/exe/mac_setup
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'mac_setup'
|
4
|
+
|
5
|
+
DEFAULT_CONFIG_PATH = '~/.mac_setup.yml'
|
6
|
+
|
7
|
+
config_path = ARGV[0] || DEFAULT_CONFIG_PATH
|
8
|
+
|
9
|
+
if File.exist?(config_path)
|
10
|
+
MacSetup.install(config_path)
|
11
|
+
else
|
12
|
+
puts "You must specify a path to config file or create one at #{DEFAULT_CONFIG_PATH}"
|
13
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
require_relative 'shell'
|
2
|
+
|
3
|
+
module MacSetup
|
4
|
+
class CaskInstaller
|
5
|
+
def self.run(config, status)
|
6
|
+
casks = config.casks
|
7
|
+
return if casks.none?
|
8
|
+
|
9
|
+
puts 'Installing casks...'
|
10
|
+
|
11
|
+
uninstalled_casks = casks - status.installed_casks
|
12
|
+
|
13
|
+
uninstalled_casks.each do |cask|
|
14
|
+
print "Installing #{cask}..."
|
15
|
+
Shell.run("brew cask install #{cask}")
|
16
|
+
puts('Ok')
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
require 'yaml'
|
2
|
+
|
3
|
+
module MacSetup
|
4
|
+
class Configuration
|
5
|
+
CASK_TAP = 'caskroom/cask'
|
6
|
+
|
7
|
+
attr_reader :config
|
8
|
+
|
9
|
+
def initialize(config_path)
|
10
|
+
@config = YAML.load_file(config_path)
|
11
|
+
end
|
12
|
+
|
13
|
+
def taps
|
14
|
+
add_cask_tap(@config['taps'] || []).uniq
|
15
|
+
end
|
16
|
+
|
17
|
+
def formulas
|
18
|
+
(@config['formulas'] || []).uniq
|
19
|
+
end
|
20
|
+
|
21
|
+
def casks
|
22
|
+
(@config['casks'] || []).uniq
|
23
|
+
end
|
24
|
+
|
25
|
+
def launch_agents
|
26
|
+
(@config['launch_agents'] || []).uniq
|
27
|
+
end
|
28
|
+
|
29
|
+
private
|
30
|
+
|
31
|
+
def add_cask_tap(specified_taps)
|
32
|
+
casks.any? ? specified_taps << CASK_TAP : specified_taps
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,57 @@
|
|
1
|
+
require 'English'
|
2
|
+
|
3
|
+
require_relative 'shell'
|
4
|
+
|
5
|
+
module MacSetup
|
6
|
+
class FormulaInstaller
|
7
|
+
attr_reader :config, :status
|
8
|
+
|
9
|
+
def self.run(config, status)
|
10
|
+
new(config, status).run
|
11
|
+
end
|
12
|
+
|
13
|
+
def initialize(config, status)
|
14
|
+
@config = config
|
15
|
+
@status = status
|
16
|
+
end
|
17
|
+
|
18
|
+
def run
|
19
|
+
formulas = config.formulas
|
20
|
+
return if formulas.none?
|
21
|
+
|
22
|
+
puts 'Installing formulas...'
|
23
|
+
|
24
|
+
formulas.each { |formula| install_formula(formula) }
|
25
|
+
end
|
26
|
+
|
27
|
+
def install_formula(formula)
|
28
|
+
if status.installed_formulas.include?(formula)
|
29
|
+
upgrade_formula(formula)
|
30
|
+
else
|
31
|
+
print "Installing #{formula}..."
|
32
|
+
output = Shell.run("brew install #{formula}")
|
33
|
+
|
34
|
+
$CHILD_STATUS.success? ? puts('Ok') : puts("\n#{output}")
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
def upgrade_formula(formula)
|
39
|
+
if can_upgrade?(formula)
|
40
|
+
print "Upgrading #{formula}..."
|
41
|
+
output = Shell.run("brew upgrade #{formula}")
|
42
|
+
|
43
|
+
$CHILD_STATUS.success? ? puts('Ok') : puts("\n#{output}")
|
44
|
+
else
|
45
|
+
puts "Already using latest version of #{formula}..."
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
def can_upgrade?(formula)
|
50
|
+
status.outdated_formulas.include?(full_name(formula))
|
51
|
+
end
|
52
|
+
|
53
|
+
def full_name(formula)
|
54
|
+
Shell.run("brew info #{formula}").split("\n")[0].split(':')[0]
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require_relative 'shell'
|
2
|
+
|
3
|
+
module MacSetup
|
4
|
+
class HomebrewInstaller
|
5
|
+
BREW_INSTALL_URL = 'https://raw.githubusercontent.com/Homebrew/install/master/install'
|
6
|
+
|
7
|
+
def self.run
|
8
|
+
if homebrew_missing?
|
9
|
+
puts 'Installing Homebrew...'
|
10
|
+
Shell.run("curl -fsS '#{BREW_INSTALL_URL}' | ruby")
|
11
|
+
else
|
12
|
+
puts 'Homebrew already installed...'
|
13
|
+
end
|
14
|
+
|
15
|
+
puts 'Updating Homebrew formulas...'
|
16
|
+
Shell.run('brew update')
|
17
|
+
end
|
18
|
+
|
19
|
+
def self.homebrew_missing?
|
20
|
+
Shell.run('which brew').empty?
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
require_relative 'shell'
|
2
|
+
|
3
|
+
module MacSetup
|
4
|
+
class LaunchAgentInstaller
|
5
|
+
BREW_OPT_PATH = '/usr/local/opt'
|
6
|
+
LAUNCH_AGENTS_PATH = File.expand_path('~/Library/LaunchAgents')
|
7
|
+
|
8
|
+
def self.run(config, status)
|
9
|
+
launch_agents = config.launch_agents
|
10
|
+
return if launch_agents.none?
|
11
|
+
|
12
|
+
puts 'Installing launch agents...'
|
13
|
+
|
14
|
+
FileUtils.mkdir_p(LAUNCH_AGENTS_PATH)
|
15
|
+
|
16
|
+
launch_agents.each { |agent| install_launch_agent(agent, status) }
|
17
|
+
end
|
18
|
+
|
19
|
+
def self.install_launch_agent(agent, status)
|
20
|
+
puts "Installing launch agent for #{agent}..."
|
21
|
+
|
22
|
+
domain = "homebrew.mxcl.#{agent}"
|
23
|
+
plist = "#{domain}.plist"
|
24
|
+
FileUtils.ln_sf(File.join(BREW_OPT_PATH, agent, plist), LAUNCH_AGENTS_PATH)
|
25
|
+
|
26
|
+
agent_plist_path = File.join(LAUNCH_AGENTS_PATH, plist)
|
27
|
+
|
28
|
+
Shell.run("launchctl unload '#{agent_plist_path}'") if status.loaded_agents.include?(domain)
|
29
|
+
|
30
|
+
Shell.run("launchctl load '#{agent_plist_path}'")
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
require_relative 'shell'
|
2
|
+
|
3
|
+
module MacSetup
|
4
|
+
class SystemStatus
|
5
|
+
def installed_formulas
|
6
|
+
@installed_formulas ||= get_formulas
|
7
|
+
end
|
8
|
+
|
9
|
+
def outdated_formulas
|
10
|
+
@outdated_formulas ||= get_outdated_formulas
|
11
|
+
end
|
12
|
+
|
13
|
+
def installed_taps
|
14
|
+
@installed_taps ||= get_taps
|
15
|
+
end
|
16
|
+
|
17
|
+
def installed_casks
|
18
|
+
@installed_casks ||= get_casks
|
19
|
+
end
|
20
|
+
|
21
|
+
def loaded_agents
|
22
|
+
@loaded_agents ||= get_loaded_agents
|
23
|
+
end
|
24
|
+
|
25
|
+
private
|
26
|
+
|
27
|
+
def get_formulas
|
28
|
+
Shell.run('brew list -1').split("\n")
|
29
|
+
end
|
30
|
+
|
31
|
+
def get_taps
|
32
|
+
Shell.run('brew tap').split("\n")
|
33
|
+
end
|
34
|
+
|
35
|
+
def get_casks
|
36
|
+
Shell.run('brew cask list -1').split("\n")
|
37
|
+
end
|
38
|
+
|
39
|
+
def get_outdated_formulas
|
40
|
+
Shell.run('brew outdated --quiet').split("\n")
|
41
|
+
end
|
42
|
+
|
43
|
+
def get_loaded_agents
|
44
|
+
Shell.run('launchctl list | grep homebrew').split("\n").map do |line|
|
45
|
+
line.split(/\s/)[-1]
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
require 'English'
|
2
|
+
|
3
|
+
require_relative 'shell'
|
4
|
+
|
5
|
+
module MacSetup
|
6
|
+
class TapInstaller
|
7
|
+
def self.run(config, status)
|
8
|
+
return if config.taps.none?
|
9
|
+
|
10
|
+
puts 'Installing taps...'
|
11
|
+
|
12
|
+
uninstalled_taps = config.taps - status.installed_taps
|
13
|
+
|
14
|
+
if uninstalled_taps.none?
|
15
|
+
puts 'No uninstalled taps'
|
16
|
+
else
|
17
|
+
uninstalled_taps.each { |tap| install_tap(tap) }
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
def self.install_tap(tap)
|
22
|
+
print "Installing #{tap}..."
|
23
|
+
output = Shell.run("brew tap #{tap}")
|
24
|
+
|
25
|
+
$CHILD_STATUS.success? ? puts('Ok') : puts("\n#{output}")
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
data/lib/mac_setup.rb
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
require 'mac_setup/version'
|
2
|
+
require 'mac_setup/configuration'
|
3
|
+
require 'mac_setup/system_status'
|
4
|
+
require 'mac_setup/homebrew_installer'
|
5
|
+
require 'mac_setup/tap_installer'
|
6
|
+
require 'mac_setup/formula_installer'
|
7
|
+
require 'mac_setup/cask_installer'
|
8
|
+
require 'mac_setup/launch_agent_installer'
|
9
|
+
|
10
|
+
module MacSetup
|
11
|
+
def self.install(config_path)
|
12
|
+
config = Configuration.new(File.expand_path(config_path))
|
13
|
+
status = SystemStatus.new
|
14
|
+
|
15
|
+
HomebrewInstaller.run
|
16
|
+
TapInstaller.run(config, status)
|
17
|
+
FormulaInstaller.run(config, status)
|
18
|
+
CaskInstaller.run(config, status)
|
19
|
+
LaunchAgentInstaller.run(config, status)
|
20
|
+
end
|
21
|
+
end
|
data/mac_setup.gemspec
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'mac_setup/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'mac_setup'
|
8
|
+
spec.version = MacSetup::VERSION
|
9
|
+
spec.authors = ['Matt Wean']
|
10
|
+
spec.email = ['matthew.wean@gmail.com']
|
11
|
+
|
12
|
+
spec.summary = 'Tool to set up a Mac'
|
13
|
+
spec.license = 'MIT'
|
14
|
+
|
15
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
16
|
+
f.match(%r{^(test|spec|features)/})
|
17
|
+
end
|
18
|
+
|
19
|
+
spec.bindir = 'exe'
|
20
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
21
|
+
spec.require_paths = ['lib']
|
22
|
+
|
23
|
+
spec.add_development_dependency 'bundler', '~> 1.10'
|
24
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
25
|
+
spec.add_development_dependency 'rspec'
|
26
|
+
spec.add_development_dependency 'rubocop', '~> 0.34.2'
|
27
|
+
spec.add_development_dependency 'rubocop-rspec'
|
28
|
+
end
|
metadata
ADDED
@@ -0,0 +1,140 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: mac_setup
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Matt Wean
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-09-27 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.10'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.10'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rubocop
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.34.2
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ~>
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.34.2
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rubocop-rspec
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - '>='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - '>='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
description:
|
84
|
+
email:
|
85
|
+
- matthew.wean@gmail.com
|
86
|
+
executables:
|
87
|
+
- mac_setup
|
88
|
+
extensions: []
|
89
|
+
extra_rdoc_files: []
|
90
|
+
files:
|
91
|
+
- .codeclimate.yml
|
92
|
+
- .gitignore
|
93
|
+
- .rspec
|
94
|
+
- .rubocop.yml
|
95
|
+
- .ruby-version
|
96
|
+
- .travis.yml
|
97
|
+
- CODE_OF_CONDUCT.md
|
98
|
+
- Gemfile
|
99
|
+
- LICENSE.txt
|
100
|
+
- README.md
|
101
|
+
- Rakefile
|
102
|
+
- bin/console
|
103
|
+
- bin/setup
|
104
|
+
- exe/mac_setup
|
105
|
+
- lib/mac_setup.rb
|
106
|
+
- lib/mac_setup/cask_installer.rb
|
107
|
+
- lib/mac_setup/configuration.rb
|
108
|
+
- lib/mac_setup/formula_installer.rb
|
109
|
+
- lib/mac_setup/homebrew_installer.rb
|
110
|
+
- lib/mac_setup/launch_agent_installer.rb
|
111
|
+
- lib/mac_setup/shell.rb
|
112
|
+
- lib/mac_setup/system_status.rb
|
113
|
+
- lib/mac_setup/tap_installer.rb
|
114
|
+
- lib/mac_setup/version.rb
|
115
|
+
- mac_setup.gemspec
|
116
|
+
homepage:
|
117
|
+
licenses:
|
118
|
+
- MIT
|
119
|
+
metadata: {}
|
120
|
+
post_install_message:
|
121
|
+
rdoc_options: []
|
122
|
+
require_paths:
|
123
|
+
- lib
|
124
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
125
|
+
requirements:
|
126
|
+
- - '>='
|
127
|
+
- !ruby/object:Gem::Version
|
128
|
+
version: '0'
|
129
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
130
|
+
requirements:
|
131
|
+
- - '>='
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '0'
|
134
|
+
requirements: []
|
135
|
+
rubyforge_project:
|
136
|
+
rubygems_version: 2.0.14
|
137
|
+
signing_key:
|
138
|
+
specification_version: 4
|
139
|
+
summary: Tool to set up a Mac
|
140
|
+
test_files: []
|