...to use cucumber_spinner if it is available in your Gemfile Runs Cucumber under bundle exec Uses an old version of Firefox for Selenium (Javascript) features if you setup your...

...all examples in spec if you don't give an argument Runs RSpec under bundle exec Runs examples in parallel if parallel_tests gem was found in you Gemfile

...contents on the fly (like some CSV). Add zip_tricks to your Gemfile and bundle install. In your controller, include ZipTricks::RailsStreaming. You can then use the zip_tricks_stream...

...streaming existing file attachments (from ActiveStorage, Carrierwave, etc.). Add zipline to your Gemfile and bundle install. In your controller, include Zipline. You can then use the zipline method in controller...

...Here is how to do that automatically. Add premailer-rails to your Gemfile and bundle. Done! premailer-rails will automatically generate a text part for you. Actually, you may want...

...set the variable KNAPSACK_GENERATE_REPORT to true like so: KNAPSACK_GENERATE_REPORT=true bundle exec rspec You can set in your .spec_heper file (or within the features/support/.. folder...

JavaScript build Propshaft, import maps, "no build" esbuild No-build means no bundling, no Sass, no JSX, and poor debugging; esbuild bundles, transpiles and fingerprints JS, CSS and...

makandra dev

Defending Against NPM Supply Chain Attacks: A Practical Guide Ruby: Cooldown period for bundler and brakeman

...at the same time With a custom Capistrano task: CMD='zgrep -P "..." RAILS_ROOT/log/production.log' bundle exec cap production app:run_cmd See Capistrano 3: Running a command on all servers...

edgeapi.rubyonrails.org

...everyone on the project might need to re-recreate their test databases like so: bundle exec rails parallel:drop && bundle exec rails parallel:prepare

Unfortunately, this does not work properly in a multi-file environment, where a bundler like Webpack or esbuild requires individual files. While you could @import (or @use) another file...

...files, you need to stop concatenating files using the import and require of your bundler. Instead you must concatenate files using Sass' @import statement...

rspec.info

...spec/spec_helper.rb : config.example_status_persistence_file_path = 'spec/examples.txt' Rerun all failed examples using --only-failures bundle exec rspec --only-failures (or g rs --only-failures with geordi) will rerun all examples...

...which failed in the last run. Rerun a single failed example using --next-failure bundle exec rspec --next-failure (or g rs --next-failure with geordi) will rerun only the...

...with rspec, cucumber and parallel_tests is easy. Add it to your Gemfile and bundle group :test do gem 'simplecov', require: false end Add a .simplecov file in your project...

github.com

...use in your project. Add slackistrano to your Gemfile, in your :deploy group, and bundle your project. Add the following to your Capfile. # Slack notifications require 'slackistrano/capistrano' set :slackistrano, {

github.com

...data has been recorded you can use that to prioritize your specs by calling bundle exec prioritized. Then it will read out the current modifications and the saved coverage data...

...you (or your coding agent) can do the same with RE_RECORD_VCR=true bundle exec rspec spec/path/to/recorded_spec.rb: # spec/support/vcr.rb RSpec.configure do |config| deleted_vcr_cassettes = [] config.around(:each, :vcr) do |example...

makandra dev
github.com

...in their own gem (makandra/patiently) where we can test them and distribute changes. Setup Bundle the patiently gem: # Gemfile gem "patiently" Replace the vendored boilerplate with a single require: # spec/support/patiently.rb...

...capistrano-rails is a Gem that adds Rails specifics to Capistrano, i.e. support for Bundler, assets, and migrations. While it is designed for Asset Pipeline (Sprockets) assets, it can easily...

makandra Curriculum

...a Rails method your controller calls (e.g. redirect_to) and open its installed source (bundle open, or ask your agent for the source_location). Temporarily add a puts or debugger...

...browser (suggested) gem 'capybara-screenshot' # Optionally gem 'rspec' # Dependency of Spreewald end Now run bundle exec cucumber --init and add this code to env.rb: Bundler.require :default, :test # Require default + test...

makandra dev

...the installation after installing rustc. E.g. rbenv install 3.3.4 You will probably need a bundle pristine afterwards. Enabling YJIT Ruby doesn't yet enable YJIT by default: # Start Ruby without...

...out where a method is defined and which class or module it belongs to; bundle open GEM opens the installed source of a gem Gems and JavaScript libraries

...verify_mode: 'none' } start your server as usual, but go to https://localhost:3000 bundle exec rails s Accept the certificate in your browser See also Creating a self-signed...

github.com

...recent version. You should have at least 0.12.1, which you may obtain from here. Bundle it with your application and tell PDFKit where to find the bundled binary like so...

...github.com/net-ssh/net-ssh/issues/565 for more information Gem::LoadError : "ed25519 is not part of the bundle. Add it to your Gemfile." As described in the error message, the ed25519 and bcrypt_pbkdf...

...is fixed in reline 0.2.0. So either gem install reline, or in projects with Bundler: gem 'reline', '>= 0.2.0' # Fixes TypeError in Rails console