Skip to content

Commit

Permalink
Merge pull request #133 from apiology/update-from-cookiecutter-2024-1…
Browse files Browse the repository at this point in the history
…0-10-0819

Update from cookiecutter
  • Loading branch information
apiology authored Oct 10, 2024
2 parents 4a8995e + 9934cb5 commit 0a4da3d
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 17 deletions.
3 changes: 2 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
source 'https://rubygems.org'

gem 'mdl'
gem 'overcommit', ['>=0.61.0', '<0.62.0']
gem 'ostruct'
gem 'overcommit', ['>=0.64.0', '<0.65.0']
gem 'punchlist'
22 changes: 13 additions & 9 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@ GEM
specs:
chef-utils (18.5.0)
concurrent-ruby
childprocess (4.1.0)
childprocess (5.1.0)
logger (~> 1.5)
concurrent-ruby (1.3.4)
iniparse (1.5.0)
kramdown (2.4.0)
rexml
kramdown-parser-gfm (1.1.0)
kramdown (~> 2.0)
logger (1.6.1)
mdl (0.13.0)
kramdown (~> 2.3)
kramdown-parser-gfm (~> 1.1)
Expand All @@ -21,29 +23,31 @@ GEM
tomlrb
mixlib-shellout (3.2.8)
chef-utils
overcommit (0.61.0)
childprocess (>= 0.6.3, < 5)
ostruct (0.6.0)
overcommit (0.64.0)
childprocess (>= 0.6.3, < 6)
iniparse (~> 1.4)
rexml (~> 3.2)
punchlist (1.3.0)
punchlist (1.3.2)
source_finder (>= 2)
rexml (3.3.6)
strscan
rexml (3.3.8)
source_finder (3.2.1)
strscan (3.1.0)
tomlrb (2.0.3)

PLATFORMS
arm64-darwin-23
ruby
x86_64-darwin-20
x86_64-darwin-21
x86_64-darwin-23
x86_64-linux
x86_64-linux-musl

DEPENDENCIES
mdl
overcommit (>= 0.61.0, < 0.62.0)
ostruct
overcommit (>= 0.64.0, < 0.65.0)
punchlist

BUNDLED WITH
2.2.22
2.5.21
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ update_from_cookiecutter: ## Bring in changes from template project used to crea
git checkout cookiecutter-template && git push && git checkout main
git checkout main && git pull && git checkout -b update-from-cookiecutter-$$(date +%Y-%m-%d-%H%M)
git merge cookiecutter-template || true
bundle exec overcommit --install
bundle exec overcommit --install || true
@echo
@echo "Please resolve any merge conflicts below and push up a PR with:"
@echo
Expand Down
5 changes: 3 additions & 2 deletions fix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,11 @@ ensure_dev_library() {
header_file_name=${1:?header file name}
homebrew_package=${2:?homebrew package}
apt_package=${3:-${homebrew_package}}
if ! [ -f /usr/include/"${header_file_name}" ] && \
if ! [ -f /opt/homebrew/include/"${header_file_name}" ] && \
! [ -f /usr/include/"${header_file_name}" ] && \
! [ -f /usr/include/x86_64-linux-gnu/"${header_file_name}" ] && \
! [ -f /usr/local/include/"${header_file_name}" ] && \
! [ -f /usr/local/opt/"${homebrew_package}"/include/"${header_file_name}" ]
! [ -f /usr/local/opt/"${homebrew_package}"/include/"${header_file_name}" ]
then
install_package "${homebrew_package}" "${apt_package}"
fi
Expand Down
3 changes: 2 additions & 1 deletion {{cookiecutter.project_slug}}/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
source 'https://rubygems.org'

gem 'mdl'
gem 'overcommit', ['>=0.61.0', '<0.62.0']
gem 'ostruct'
gem 'overcommit', ['>=0.64.0', '<0.65.0']
gem 'punchlist'
gem 'rake'
gem 'rspec'
Expand Down
2 changes: 1 addition & 1 deletion {{cookiecutter.project_slug}}/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ update_from_cookiecutter: ## Bring in changes from template project used to crea
git checkout cookiecutter-template && git push && git checkout main
git checkout main && git pull && git checkout -b update-from-cookiecutter-$$(date +%Y-%m-%d-%H%M)
git merge cookiecutter-template || true
bundle exec overcommit --install
bundle exec overcommit --install || true
@echo
@echo "Please resolve any merge conflicts below and push up a PR with:"
@echo
Expand Down
5 changes: 3 additions & 2 deletions {{cookiecutter.project_slug}}/fix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,11 @@ ensure_dev_library() {
header_file_name=${1:?header file name}
homebrew_package=${2:?homebrew package}
apt_package=${3:-${homebrew_package}}
if ! [ -f /usr/include/"${header_file_name}" ] && \
if ! [ -f /opt/homebrew/include/"${header_file_name}" ] && \
! [ -f /usr/include/"${header_file_name}" ] && \
! [ -f /usr/include/x86_64-linux-gnu/"${header_file_name}" ] && \
! [ -f /usr/local/include/"${header_file_name}" ] && \
! [ -f /usr/local/opt/"${homebrew_package}"/include/"${header_file_name}" ]
! [ -f /usr/local/opt/"${homebrew_package}"/include/"${header_file_name}" ]
then
install_package "${homebrew_package}" "${apt_package}"
fi
Expand Down

0 comments on commit 0a4da3d

Please sign in to comment.