379 Commits (trunk)
 

Author SHA1 Message Date
Thomas Riboulet f58defd77e add link to original repository 2 years ago
Thomas Riboulet 7839a25baa add laptop.local example 2 years ago
Thomas Riboulet 390c550034 remove unecessary parts
- remove postgresql and redis install
- install ruby 2.7.5 and 3.0.3 specifically
2 years ago
Chad Pytel 6d791b7a01
Change branch reference
We switched from master to main some time ago, but the README was not updated.
2 years ago
Chad Pytel a37310cc02
Use brew asdk, changes for latest node (#608)
Closes #563 
Closes #587
Closes #600

This makes the following changes:

* Installs asdf via Homebrew, thanks @jdbann in #592 and @gssbzn in #597
* The latest version of the asdf nodejs plugin takes care of the keyring stuff itself.
2 years ago
Chad Pytel 2584a6e453
Ignore shellcheck warning SC3043 globally (#606)
This warning states that "In POSIX sh, 'local' is undefined".

`local` is used extensively in the mac script, but it should be
understood by most OSes based on the information in:
https://stackoverflow.com/questions/18597697/posix-compliant-way-to-scope-variables-to-a-function-in-a-shell-script#answer-18600920

Add a line at the beginning of the script to ignore this warning
in the entire file to avoid false positives when linting locally.

Co-authored-by: rreinhardt9
2 years ago
Chad Pytel 3a82112678
Add testing instruction to README (#605)
We can recommend a free and open source emulator and provide tips to it in the README to make it easier to make sure we're not introducing breaking changes when we contribute.

In the future I also want to see if we could add CI to this project now that macOS CI setup is more widely available than it has been in the past.
2 years ago
Chad Pytel ef509a8c4e
Use gpg-suite-no-mail (#607)
Closes #575
Closes #531

Use an alternative gpg-suite package which does not install the mail extension.
2 years ago
Kamlesh 4df6f4639d Update ctags installation command (#586)
Closes https://github.com/thoughtbot/laptop/issues/584

The tap universal-ctags is not available anymore and these are the official instructions to install ctags.

Refer: https://github.com/universal-ctags/homebrew-universal-ctags
2 years ago
Chad Pytel ebbd76ecb6
Officially only list support for Monterey (#603)
While older versions may work, it is unrealistic for us to claim
official support for such old versions.

Also updates the copyright date in the README.
2 years ago
Chad Pytel 618d208e45
Use proper homebrew prefix and add to path (#602)
Closes #589 

This adds support for properly installing Homebrew on either Apple Silicon or Intel machines to the correct Homebrew location on macOS.

Also changes to:
* Using `HEAD` instead of `master`, which comes from the Homebrew home page.
* Use the new  `shellenv` recommended by Homebrew post-install next steps.
2 years ago
Chad Pytel f538968566
Update LICENSE copyright to 2022 (#604) 2 years ago
Daniel Colson c3d5a26bfa
Replace deprecated homebrew install command (#590)
The script we are currently using outputs a deprecation warning telling us to use this new bash script. See https://raw.githubusercontent.com/Homebrew/install/master/install

```
#!/usr/bin/ruby

STDERR.print <<EOS
Warning: The Ruby Homebrew installer is now deprecated and has been rewritten in
Bash. Please migrate to the following command:
  /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

EOS

Kernel.exec "/bin/bash", "-c", '/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"'
```
3 years ago
Paulo Fagiani 45322d1c54
Update MacOS X latest version (#591) 3 years ago
Tyson Gach 57503d6131
Replace hub with GitHub CLI (#576)
GitHub has [announced GitHub CLI][announcement]. While hub was
semi-official, GitHub CLI is said to be GitHub’s new official CLI.

The backstory on hub and how GitHub CLI came to be can be read in the
post [‘The past and the future of hub’][hub-post] by Mislav Marohnić,
hub’s core maintainer.

[announcement]: https://github.blog/2020-02-12-supercharge-your-command-line-experience-github-cli-is-now-in-beta/
[hub-post]: https://mislav.net/2020/01/github-cli/
4 years ago
Tyson Gach 53872a61ad Fix typos 4 years ago
Tyson Gach 568fa96894 Update copyright to 2020 4 years ago
Daniel Colson ef3adfdfc2
Update logo 4 years ago
Tyson Gach 9d5cc43e41
Remove FUNDING.yml
We have instead moved thoughtbot's global `FUNDING.yml` to the
[`thoughtbot/.github`][.github-repo] repo. It's a special repo that
GitHub supports for [setting default community health
files][github-docs].

[.github-repo]: https://github.com/thoughtbot/.github
[github-docs]: https://help.github.com/en/github/building-a-strong-community/creating-a-default-community-health-file-for-your-organization
4 years ago
Tyson Gach faacf03d7e
Configure GitHub Sponsors
https://help.github.com/en/github/administering-a-repository/displaying-a-sponsor-button-in-your-repository
4 years ago
Andy Waite e2aef76a8b Update README to specify correct ctags library
Universal Ctags was added in #503 but the README wasn't updated so it
still refers to the Exuberant Ctags.
4 years ago
Rob Whittaker 8935bbcf77
Drop tapping of Homebrew cask
People used to have to tap Homebrew cask to use the `cask` command.
Homebrew have now integrated `cask` into the primary package manager.
`mac` was raising an error because the tap repository no longer exists.
We have dropped the tapping of `"homebrew/cask-cask"` from `mac`.
5 years ago
Jason Laxdal 85867e07e6 Update cask's tap location 5 years ago
David Knell 581e50e6a9 fix(laptop): remove redundant gem 5 years ago
Amina 5672669fdf Spelling mistake 5 years ago
Phill Sparks b7c85a7feb Update asdf plugins already installed (#554)
This may resolve some issues updating the languages, especially nodejs
where the asdf plugin maintains the signing keys required to verify the
package.

In order not to break anyone's laptop.local scripts, keep an alias of
`install_asdf_plugin` to the new method.
5 years ago
Simon van Dyk 9b874312c4
Merge pull request #553 from sighmin/si-update-readme-mojave
List support for macOS Mojave
5 years ago
Simon van Dyk 3424bedf81 List support for macOS Mojave 5 years ago
Nick Charlton 6a5e1e6719
Remove Qt.
Qt, a dependency on capybara-webkit, causes a lot of install problems
and most recently more so. We're not using capybara-webkit so much now,
so we don't absolutely need Qt.

Fixes #499.
5 years ago
Zane Alexander 984c7a3efe Updates license to 2018 5 years ago
Zane Alexander be30780797 Updates readme to 2018. 5 years ago
jacob fecfd21d83 Standardize ellipses 5 years ago
Pablo Brasero 247d1ee37c
Merge pull request #549 from jacobherrington/patch-2
Add a tap for heroku
5 years ago
jacob 5248e6a42a
Update brew heroku formula 5 years ago
jacob dc6884bac0
Add a tap for heroku
The Heroku install was not working for me until I made this change. 
Fresh install on OS X High Sierra.
5 years ago
Jeff Stolz ae30221d7c
Merge pull request #545 from thoughtbot/js-readme-update
Add 10.13 to list of supported operating systems in the readme.
6 years ago
Jeff Stolz d9ec5768c7 Add 10.13 to list of supported operating systems in the readme. 6 years ago
Eebs Kobeissi fc4c2ec36c
Merge pull request #540 from thoughtbot/ek-asdf-update-0-5-0
Update asdf to 0.5.0
6 years ago
Eebs Kobeissi 6a6dce197b Update asdf to 0.5.0
0.5.0 was released in May 2018. I've been using it for a while with no
issues.
6 years ago
Edward Loveall b6d08ccc57
Latest XCode version 6 years ago
Edward Loveall e33e510d6c
Shellcheck passes once again
It prefers new lines to be escaped `\\n` and to use `command -v`
instead of `which`.
6 years ago
Edward Loveall d3b4967157
Migrate to circle 2.0
A: This will update our ci stack
B: This might fix a CI bug where circle would pick the wrong version of
ruby
6 years ago
Daniel Colson 938f1815da Only install released MRI versions of Ruby
Fixes #533 and may make #515 unnecessary.

When installing Ruby and Node, we use `asdf list-all` to find the
latest version. For Ruby, the list includes previews and release
candidates as well as non-MRI versions. The script failed for me because
it tried to install version `ree-1.8.7-2012.02`. Filtering out
versions with letters should ensure we only install fully released MRI
versions.
6 years ago
Kevin Solorio 8ad6fd7096 GPG Tools Renamed (#517)
Updated to gpg-suite
6 years ago
Derek Prior 2210951f07
Use ASDF version manager
At first, we did Ruby work, so we needed a ruby version manager.
Then we needed Node, so some of us added a node version manager.
Some of work with varying versions of Python, Elixir, Elm, etc.
ASDF lets us stop searching out solutions to the same problem in
each of these languges by supporting [plugins][1].

[1]: https://github.com/asdf-vm/asdf-plugins/tree/master/plugins
7 years ago
Hannah K @mindlessroman cfda02a041 Force update Homebrew
Add a force since there's sometimes a broken Homebrew update.
See https://github.com/Homebrew/brew/issues/1151

`brew update --force` will prevent stalling in the script.
Until the issue above is resolved,
it could pop up for someone trapped in a
'please update'-'already updated' loop.
7 years ago
Derek Prior cf590e324a
Skip install of Qt 5.5 if Xcode not installed
While trying to run laptop on a new machine, I got the following error:

> A full installation of Xcode.app is required to compile this software.
> Installing just the Command Line Tools is not sufficient.

To truly fix this, we'd need to script the installation of Xcode, which
is beyond my skills at the moment. For now, I use a conditional in the
generated `Brewfile` to skip if Xcode is not installed.
7 years ago
Dan Croak b00dd14c3b Configure CircleCI
* Move off Travis to Circle.
* Run the entire script on macOS infrastructure.
* Performance optimization:
  Enforce a Ruby version to skip Ruby install

We're cheating slightly with this implementation,
but seems worth it for speed of build tradeoff:

* Use pre-installed XCode for compilers, etc.
* Use pre-installed Ruby version.

Related:

https://github.com/thoughtbot/laptop/issues/494
7 years ago
Derek Prior b417be8522
Use universal-ctags
Universal ctags is a maintained and improved fork of
exuberant ctags. It adds many things, including better
ruby ctag support, and new supported languages.

https://github.com/universal-ctags/ctags
7 years ago
Derek Prior 3ffa16e6ed
Restart services only when necessary
The Brewfile supports restarting the service only when there's a change
to that service. See [docs][1].

[1]: https://github.com/Homebrew/homebrew-bundle#restarting-services
7 years ago