Skip to content

Commit

Permalink
Replace gemfiles rake with bundle binstub (#470)
Browse files Browse the repository at this point in the history
This does the same but we can specify normal bundle CLI arguments rather than have to convert to rake format.
  • Loading branch information
javierjulio authored Mar 14, 2023
1 parent 507799e commit b2fde36
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 14 deletions.
6 changes: 1 addition & 5 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
# frozen_string_literal: true
require 'bundler'
Bundler::GemHelper.install_tasks

import "tasks/gemfiles.rake"

require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)

Expand Down
7 changes: 7 additions & 0 deletions bin/bundle
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

( set -x; bundle $1 )

for gemfile in gemfiles/*/Gemfile; do
( set -x; BUNDLE_GEMFILE="$gemfile" bundle $1 )
done
9 changes: 0 additions & 9 deletions tasks/gemfiles.rake

This file was deleted.

0 comments on commit b2fde36

Please sign in to comment.