From 8f580e72d7eb8fa2f7faf57538971490e3de9e53 Mon Sep 17 00:00:00 2001 From: "Christopher R. Murphy" Date: Wed, 2 Dec 2020 09:00:58 -0500 Subject: [PATCH 1/5] Add a .ruby-version file A version of Ruby needs to be installed in order to develop this gem --- .ruby-version | 1 + 1 file changed, 1 insertion(+) create mode 100644 .ruby-version diff --git a/.ruby-version b/.ruby-version new file mode 100644 index 0000000..338a5b5 --- /dev/null +++ b/.ruby-version @@ -0,0 +1 @@ +2.6.6 From 82afdcfb4ca6f26beeda898649dbdd66b8012c4c Mon Sep 17 00:00:00 2001 From: "Christopher R. Murphy" Date: Wed, 2 Dec 2020 09:01:37 -0500 Subject: [PATCH 2/5] Add a Brewfile with the GNU coreutils dependency Without this dependency, the json gem won't compile on macOS Big Sur (at least) --- Brewfile | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 Brewfile diff --git a/Brewfile b/Brewfile new file mode 100644 index 0000000..dc32868 --- /dev/null +++ b/Brewfile @@ -0,0 +1,2 @@ +# Add homebrew-based depencencies here +brew 'coreutils' # Dependencies for natively compiling the json gem. See https://www.gnu.org/software/coreutils/ From ea409458bd2342568aa3aa744d683f6f92aa3a89 Mon Sep 17 00:00:00 2001 From: "Christopher R. Murphy" Date: Wed, 2 Dec 2020 09:01:51 -0500 Subject: [PATCH 3/5] Add a bootstrap file for macOS development --- bin/bootstrap_macos | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 bin/bootstrap_macos diff --git a/bin/bootstrap_macos b/bin/bootstrap_macos new file mode 100755 index 0000000..718f710 --- /dev/null +++ b/bin/bootstrap_macos @@ -0,0 +1,18 @@ + +#!/bin/sh + +# script/bootstrap: Resolve all dependencies that the application requires to +# run. + +set -e + +cd "$(dirname "$0")/.." + +if [ -f "Brewfile" ] && [ "$(uname -s)" = "Darwin" ]; then + brew bundle check || { + echo "==> Installing Homebrew dependencies..." + brew bundle + } +fi + +brew bootstrap-rbenv-ruby From 608ef20bc8ba27306fac94b65d573250c9778a2d Mon Sep 17 00:00:00 2001 From: "Christopher R. Murphy" Date: Wed, 2 Dec 2020 09:02:25 -0500 Subject: [PATCH 4/5] Add steps for getting setup for gem development --- README.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 0adc0c6..a8c6c2c 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ Or install it yourself as: ## Usage -IsItUp provides one monitoring URI that returns a JSON response: +IsItUp provides a monitoring URI that returns a JSON response: ```ruby % curl your-domain/is_it_up @@ -30,10 +30,12 @@ IsItUp provides one monitoring URI that returns a JSON response: ## Contributing 1. Fork it ( http://github.com/customink/is_it_up/fork ) -2. Create your feature branch (`git checkout -b my-new-feature`) -3. Commit your changes (`git commit -am 'Add some feature'`) -4. Push to the branch (`git push origin my-new-feature`) -5. Create new Pull Request +2. Run `bin/bootstrap_macos` (if using macOS) and `bin/setup` to ensure your environment is configured for development +3. Run `bin/test` to ensure all tests pass +4. Create your feature branch (`git checkout -b my-new-feature`) +5. Commit your changes (`git commit -am 'Add some feature'`) +6. Push to the branch (`git push origin my-new-feature`) +7. Create new Pull Request ## Kudos From 38e3141286c308a6a32233f4b386ca52bca9df48 Mon Sep 17 00:00:00 2001 From: "Christopher R. Murphy" Date: Wed, 2 Dec 2020 09:11:15 -0500 Subject: [PATCH 5/5] Update changelog and version number --- CHANGELOG.md | 6 ++++++ lib/is_it_up/version.rb | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b49a3f3..797770a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # IsItUp Changelog +## 0.0.4 +- Added `.ruby-version` file with a recent version of Ruby +- Added `Brewfile` with the GNU coreutils dependency +- Added `bin/bootstrap_macos` to help macOS users get bootstrapped for development +- Updated README with additional instructions for getting started + ## 0.0.3 - Added `bin/console` for local testing - Added `bin/setup` for easier installation diff --git a/lib/is_it_up/version.rb b/lib/is_it_up/version.rb index 4b9720b..cc27f20 100644 --- a/lib/is_it_up/version.rb +++ b/lib/is_it_up/version.rb @@ -1,3 +1,3 @@ module IsItUp - VERSION = "0.0.3" + VERSION = "0.0.4" end