...between major versions. Use the latest Gemfile snippet from the Rails LTS docs. Run bundle update This will upgrade all your gems, ignoring versions locked in Gemfile.lock. This might lead...
...to conflicting gem versions due to conflicting dependencies. You might have to update (bundle update [gem names]) the necessary gems first or find a compatible gem version(s) setup by...
...at The cost of JavaScript (2019, 2023) to figure this out. Understand the service Bundlephobia Try to add lodash to MovieDB Use yarn add lodash, then import it in your...
...thing about Yarn / npm There is one significant difference between JavaScript package managers and Bundler: In Ruby, only one specific version of a gem can be active at any one...
Ruby includes many standard gems that are bundled into the Ruby installation. Here is an example for the gem strscan that will be displayed as default: gem list strscan
...either remove your dependency on it or try updating to a newer version of bundler that supports strscan as a default gem. (Gem::LoadError) This is what happens: bundle install...
...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...
...How does our product Rails LTS work? Why do people pay money for it? Exercise: bundler-audit bundler-audit checks for vulnerable gem versions in your Gemfile.lock. Run bundler-audit...
...foreman to your Gemfile: gem 'jsbundling-rails' group :development, :test do gem 'foreman' # ... end bundle install run bin/rails javascript:install:esbuild in a console to prepare esbuild. run yarn install...
...plugin-import-glob') const { sassPlugin } = require('esbuild-sass-plugin') require('esbuild') .build({ entryPoints: [ 'application.js', ], bundle: true, outdir: path.join(process.cwd(), 'app/assets/builds'), absWorkingDir: path.join(process.cwd(), 'app/assets'), color: true, minify: optimize, sourcemap: true...
...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...
...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
...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...
...at its current local state into the current Ruby version. When you're using Bundler, you could also use the gem by specifying a relative path in the Gemfile of...
...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.
...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...
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...
...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'
...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
...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...
...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 gigabyte, so you should aim to keep your footprint small. Check your JS bundles Webpack(er): Analyze the size of your JavaScript components
...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...
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...
...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...
Sometime we've seen this error when executing e.g. bundle exec rake asset:precompile: double free or corruption (out) rake aborted! The reason for this can be Jemalloc. Check if...
...the reason, unset the Environment Variable and run the command again: unset LD_PRELOAD bundle exec rake asset:precompile To permanently set this option in capistrano edit config/deploy.rb: # Disable Jemalloc...
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