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...
...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...
...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...
We want to move away from jQuery in future projects Motivations are performance, bundle size and general trends for the web platform. The native DOM API is much nicer...
...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'
...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...
...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...
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...
...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...
Recently I made an upgrade from Bootstrap 3 to Bootstrap 4 in a bigger project. Here are some tips how...
...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...
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...
...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...
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
...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
...installed, something is seriously wrong and needs to be fixed. If you accidently executed bundle install some_gem although you wanted bundle update some_gem What is wrong
...Gemfile asks for some-gem which you can see when running gem list but bundle show some-gem just gives you an error: Could not find gem 'some-gem', in...
...integration test container you can run your tests export CHROMEDRIVER_URL=http://localhost:9999 bundle exec rspec specs/system/test_spec.rb # You might need to set remove `--headless` from your chromedriver options in...
...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
...it can happen that there are several version of the same package in your bundle, although one would fulfill your conditions: "@babel/code-frame@^7.0.0": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.8.3.tgz#33e25903d7481181534e12ec0a25f16b6fcf419e" "@babel/code-frame...
...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
On recent/fresh installations of Ruby 1.8.7 you may encounter this error why calling any bundled binary (or just bundle exec): /home/arne/.rvm/gems/ruby-1.8.7-p374@global/gems/rubygems-bundler-1.4.2/lib/rubygems-bundler/noexec.rb:75:in `setup': undefined method `name' for # (NoMethodError...
...from /home/arne/.rvm/rubies/ruby-1.8.7-p374/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `map' ... Apparently, this is due to bundler (or maybe the rubygems-bundler that RVM supplies by default) no longer working on old Rails versions (it seems...
...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...
...rails_root}/tmp/pids/#{w.name}.pid" w.env = {"RAILS_ENV"=>rails_env, 'PIDFILE' => w.pid_file} w.start = "bundle exec rake my_task &" ... end Your Rake task should write its process ID to that...