You can check if that's an issue for your project by running bundle exec rails assets:precompile in your development environment (don't forget to run bundle exec...

...The following bash aliases helped me speed up that process: alias show-next-failure="bundle exec rspec --next-failure" alias open-next-failure="show-next-failure || show-next-failure --format...

# Define an alias to run the next failure alias show-next-failure="bundle exec rspec --next-failure" # IFF there is a failure, print it to the console, then...

...still unstable. Workaround: Temporarily change your import map When you don't use a bundler and rely on the browser to load your module through import maps, there is another...

code.google.com

...causes one extra round trip per file to the server and back! This is bad! Bundle-fu throws it all up into a big package and sends it out all...

stevenrbaker.com

...simplicity, we arrived there because of poor community interaction on the part of the Bundler developers...

greg.molnar.io

...gem definition into it so you'll have a Gemfile.lock. Then, run it via bundle exec rackup app.ru You might run into Bundler errors when multiple versions of a gem...

...requires rack 2.2.4. That can also be resolved by using a separate Gemfile and bundle exec rackup. Your application is running in the development environment by default. You can use...

...l -c 'rbenv install 3.4.5 && rbenv global 3.4.5' RUN bash -l -c 'gem install bundler:2.4.13' RUN bash -l -c 'bundle config --global build.nokogiri --use-system-libraries'

github.com

...the last exception that was raised in the current call stack Identify Outdated Gems bundle outdated compares the versions of all gem dependencies against the gem server Get Info About...

...count can be used like "count by": [1,2,3].count { |x| x.odd? } Parallel Bundle Install bundle install --jobs 4 Run An Older Version Of Bundler Fun fact: This TIL...

makandra dev

...despite syntax error could look like this: cucumber: # ... script: - main_cucumber_run_passed=true - bundle exec rake "knapsack:cucumber[--strict --tags 'not @real-stripe-requests' -f progress -f rerun -o...

...cucumber_run_passed =~ false ]]; then (echo -e "\033[0;33mRerunning failed tests:\033[0m"; bundle exec cucumber @tmp/failing_features.txt --strict --tags "not @real-stripe-requests" -f pretty -f junit -o tmp/artifacts/reports...

...the failing features as argument for `geordi cucumber` geordi cucumber `cat tmp/parallel_cucumber_failures.log` Without geordi bundle exec cucumber @tmp/parallel_cucumber_failures.log or # Run the `cucumber profile` command bundle exec cucumber -p rerun

...additional Rake tasks. Unfortunately when whenever register a runner command, it doesn't use bundle exec in the resulting crontab. This gets you errors like this: `gem_original_require': no...

...such file to load -- bundler/setup (LoadError) You can work around this by putting this on the top of your config/schedule.rb: job_type :runner, "cd :path && bundle exec rails runner -e...

...colleagues don't have a big overhead with merge conflicts. Get all existing offenses bundle exec rubocop --parallel --format offenses 541/541 files 383 Layout/ArrayAlignment 352 Layout/ArgumentAlignment -- 735 Total Initially exclude...

...config/ext/rspec.yml - config/ext/rails.yml # 383 Layout/ArrayAlignment: Enabled: false # 352 Layout/ArgumentAlignment: Enabled: false You can also run bundle exec rubocop --auto-gen-config to create a file that excludes all current violations.

...active_support/continuous_integration" ActiveSupport::ContinuousIntegration.run do step "Setup", "bin/setup --skip-server" step "Security: Rubygems audit", "bundle", "audit" step "Security: NPM audit", "npm", "audit" step "Security: Importmap vulnerability audit", "bin/importmap", "audit"

...as NPM packages provided by Fontsource. We recommend using those instead of downloading and bundling font files yourself. (See below for a list of benefits.) Usage Go to fontsource.org and...

...your repo, just a few lines of text to package.json and your CSS. Your bundler will still package all font files, even unneeded ones, but that consumes only disk space...

...with a seed output of 20689: CI_NODE_INDEX=2 CI_NODE_TOTAL=8 bundle exec rake "knapsack:rspec[--seed=20689]" Note: the environment variable CI_NODE_INDEX starts at...

...both sections Report specs + Leftover specs in rspec 3/8 and run them with e.g. bundle exec --seed=20689 spec/models/user_spec.rb spec/models/post_spec.rb...

makandracards.com

git bisect good abcdef1234 Now tell git what to do git bisect run bundle exec cucumber features/my.feature:42 Wait for the results to come in: Git will bisect until...

...inside the tasks or scripts folder. Example for a task: The slim task lib/tasks/gitlab.rb: # bundle exec rake gitlab:user_export namespace :gitlab do desc 'Export all users as XSLX'

end end end Example for a script: The slim ruby script: lib/scripts/user_export.rb: # bundle exec rails runner -e development lib/scripts/user_export.rb Gitlab::UserExport.new.export The main code lib/scripts/gitlab/user_export.rb: module Gitlab

...below is taken from the excid3/esbuild-rails package. Let's say we have an application.js bundle that imports jQuery, sets window.$ and then imports code that uses the global $() function: // application.js...

...for: some-app_staging 34 23 * * * /bin/bash -l -c 'cd /var/www/some-app_staging/releases/20201215171150 && RAILS_ENV=staging bundle exec rake some-task' # End Whenever generated tasks for: some-app_staging Bad

...generated tasks for: /var/www/some-app_staging/releases/20201215171150 34 23 * * * /bin/bash -l -c 'cd /var/www/some-app_staging/releases/20201215171150 && RAILS_ENV=staging bundle exec rake some-task' # End Whenever generated tasks for: /var/www/some-app_staging/releases/20201215171150 # Begin Whenever generated tasks for...

...require and export directives with function calls to a Webpack-provided module registry. Webpack bundles everything into a single large file UglifyJS compresses the output by removing comments, renaming local...

}] ] } UglifyJS also has compatibility settings Once Babel and Webpack is done, the resulting bundle is run through UglifyJS to remove comments, shorten variable names, etc. This results in a...

Install rails-erd following the steps in their installation instructions. Run bundle exec rake erd Open erd.pdf Generating an ERD for only some models of a Rails...

...test the cron output like this (no changes will be made to your crontab): bundle exec whenever --set environment=staging bundle exec whenever --set environment=production Installing jobs only for...

...output like this (no changes will be made to your crontab): STAGE=customer1-staging bundle exec whenever STAGE=customer2-staging bundle exec whenever

...gem by adding this to the top of your Gemfile: gem 'i18n' Then run bundle install

...can use the method say_status. Statuses used by Rails are: say_status :run, 'bundle install' say_status :identical, :blue, 'some_file' say_status :remove, :green, 'some_file'