Pre-releasing an npm package

Posted About 3 years ago by Henning Koch.

You can publish pre-release versions of an npm package. Naming convention for pre-release versions An npm package must...

Pre-releasing a Ruby gem

Posted About 3 years ago by Henning Koch.

When a Ruby version gem has a letter in its version number, it is considered a pre-release:

Webpacker: Loading code on demand

Posted About 3 years ago by Henning Koch.

Sometimes you want to load code on demand. For instance, when a a large library is only used on a...

Limiting GitLab CI runner to specific branches or events

Posted About 3 years ago by Florian Leinsinger.
docs.gitlab.com

Use rules to include or exclude jobs in pipelines. Rules are evaluated in order until the first match. When a...

Bundler: Packaging gems into the git repository (offline installation)

Posted About 3 years ago by Emanuel.

Installing gems on a server that has no access to the internet (especially rubygems.org) requires to bundle the gems into...

Capistrano: Deployment issue undefined method `[]' for nil:NilClass

Posted About 3 years ago by Julian.

In newer passenger versions the output of passenger -v has changed. capistrano-passenger tries to parse the version and now...

Changes to positional and keyword args in Ruby 3.0

Posted About 3 years ago by Tobias Kraze.
ruby-lang.org

Ruby 3.0 introduced a breaking change in how it treats keyword arguments. There is an excellent blog post on the...

makandra/capybara-lockstep

Posted About 3 years ago by Henning Koch.
github.com

capybara-lockstep can help you with flaky end-to-end tests: This Ruby gem synchronizes Capybara commands with client-side...

Parsing JSON with edge cases

Posted About 3 years ago.
labs.bishopfox.com

The linked article shows that there are unclear parts in the JSON specification and that different parsers treat them differently...

Webmock < 3.12.1 cannot handle IPv6 addresses correctly

Posted About 3 years ago.

We had the issue, that a VCR spec failed, after updating CarrierWave from version 0.11.0 to 1.3.2. In this version...

Too many parallel test processes may amplify flaky tests

Posted About 3 years ago by Henning Koch.

By default parallel_tests will spawn as many test processes as you have CPUs. If you have issues with flaky...

How to fix: WrongScopeError when using rspec_rails with Rails 6.1

Posted About 3 years ago by Florian Leinsinger.

tl;dr: Upgrade the gem to at least 4.0.1 When you use rspec_rails in a version < 4 with Rails...

How to list updateable dependencies with Bundler and Yarn

Posted About 3 years ago by Michael Leimstädtner.

bundle outdated [--filter-major|--filter-minor|--filter-patch] Example output for bundle outdated --filter-major Other examples

Some tips for upgrading Bootstrap from 3 to 4

Posted About 3 years ago by Florian Leinsinger.
getbootstrap.com

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

How to fix "Command "webpack" not found"

Posted Over 3 years ago by Michael Leimstädtner.

I just ran into this deployment error after switching from the asset pipeline to webpack: 01:05 deploy:assets:precompile...

Using the Truemail gem to validate e-mail addresses

Posted Over 3 years ago by Arne Hartherz.

The Truemail gem (not to be confused with truemail.io) allows validating email addresses, e.g. when users enter them into a...

Capybara: Running tests with headless Chrome

Posted Over 3 years ago by Henning Koch.

Headless Chrome is a way to run the Chrome browser without a visible window. Configuring Capybara Configure the Capybara driver...

SSHKit 1.9.0 failure for Capistrano deploy

Posted Over 3 years ago by Emanuel.

SSHKit 1.9.0 might fail with the following error, when trying to deploy a Rail application. Upgrading the gem to version...

Whenever requires you to set the application attribute in the Capistrano config

Posted Over 3 years ago by Emanuel.

Whenever requires you to set the application attribute in your Capistrano configuration. Otherwise your cronjobs are created multiple times.

Missing certificates for rubygems and bundler in Ruby 1.8.7

Posted Over 3 years ago by Emanuel.

Using Ruby 1.8.7 you will not be able to use the maximum versions Rubygems 1.8.30 and Bundler 1.17.3 with https://...

Configuring Webpacker deployments with Capistrano

Posted Over 3 years ago by Dominik Schöler.

When deploying a Rails application that is using Webpacker and Capistrano, there are a few configuration tweaks that optimize the...

Show/Hide Rubocop marking in RubyMine

Posted Over 3 years ago by Bruno Sedler.

If you have installed Rubocop in your project, RubyMine can show you Rubocop violations immediately in your editor. You probably...

How to configure file watchers in RubyMine

Posted Over 3 years ago by Michael Leimstädtner.

You need to install the official plugin, it is not bundled with RubyMine by default. Example: Setup a watcher...

Migrate gem tests from Travis CI to Github Actions with gemika

Posted Over 3 years ago by Tobias Kraze.

We currently test most of our gems on Travis CI, but want to migrate those tests to Github Actions. This...