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...

...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...

...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

Store this snippet in .git/hooks/pre-push: if [ -f ./.rubocop.yml ]; then echo 'Running Rubocop ...' bundle exec rubocop --parallel fi chmod +x .git/hooks/pre-push The snippet only executes Rubocop if it finds...

...preprocessed: true end end Preprocess this version for all existing records bundle exec rails runner 'User.find_each { |user| user.avatar.variant(:preview).processed }' Use the new variant and deploy

...build the Cronjob on your server. job_type :enqueue, 'cd :path && :environment_variable=:environment bundle exec bin/enqueue :task' every 5.minutes do enqueue 'monitoring' end The worker itself should live in...

awsdocs.s3.amazonaws.com

...you have to upload the new certificate : (if you don't have a ca-bundle you can omit the -c www.example.com.ca-bundle) iam-servercertupload --aws-credential-file ./aws-credential.txt -b www.example.com.crt...

...k www.example.com.key -c www.example.com.ca-bundle -s www.example.com-2011 -v The output should look like this and includes the server certificate Amazon Resource Name (ARN) and GUID:

Rubymine 2024.3 bundles Grazie Lite by default. You need to enabled "German" under Settings/Preferences | Editor | Natural Languages. Hunspell (legacy) Install the Hunspell plugin and restart Ruby Mine

getbootstrap.com

Recently I made an upgrade from Bootstrap 3 to Bootstrap 4 in a bigger project. Here are some tips how...

...library should only be loaded for that screen. It should not blow up the bundle size for all screens. You can load code on demand by using import() as a...

Learn more We have another card: Webpack: How to split your bundles Webpack documentation: Code Splitting Unpoly: Loading large libraries on-demand

stackoverflow.com

...with-ruby-include=$rvm_path/src/ruby-1.9.3-p448 Resume what you were doing before (probably a bundle install). Here is how the "full" error looks like when a Bundler installation fails. Gem::Installer...

Results logged to /home/martin/.rvm/gems/ruby-1.9.3-p448/gems/debugger-linecache-1.1.2/ext/trace_nums/gem_make.out An error occurred while installing debugger-linecache (1.1.2), and Bundler cannot continue. Make sure that `gem install debugger-linecache -v '1.1.2'` succeeds before bundling...

This Capistrano task runs a command on all servers. bundle exec cap production app:run cmd='zgrep -P "..." RAILS_ROOT/log/production.log' Code # lib/capistrano/tasks/app.rake namespace :app do # Use e.g. to grep logs...

makandra dev
github.com

...command, e.g. geordi rs or geordi dev[server] command dependencies, e.g. geordi rspec invokes geordi bundle-install (which bundles only if needed) no cluttered /usr/bin, but all commands in one...

...little niceties New commands setup: set up a Rails project for the first time (bundle install, create database.yml, create databases, migrate), optionally run all tests (--test) or load a dump...

...can set the number of processes via ENV variable manually: PARALLEL_TEST_PROCESSORS=1 bundle exec geordi cucumber Alternatively, you can run the vanilla cucumber command with Geordi's VNC...

...it is relevant to run all tests. Single tests are always run single threaded: bundle exec geordi cucumber features/some.feature Use cases: Somewhere in the test run a deprecation warning is...