Deal with certain travis CI failures

Posted Almost 5 years ago by Tobias Kraze.

Travis changed their default distribution from Ubuntu 14.04 (trusty) to 16.04 (precise). This might break your test setup for new...

Bundler: How to install version 1 instead of 2 (latest version)

Posted Almost 5 years ago by Emanuel.

When installing a gem you can use version comparators like >= or ~>. That way it is possible to fetch the latest...

cucumber_factory: How to keep using Cucumber 2 Transforms in Cucumber 3

Posted Almost 5 years ago by Michael Leimstädtner.

Cucumber up to version 2 had a neat feature called Step Argument Transforms which was dropped in favor of Cucumber...

Heads up: Capybara 3's text matchers no longer squish whitespace by default

Posted Almost 5 years ago by Michael Leimstädtner.

Until Capybara 2, node finders that accept a text option were able to find nodes based on rendered text, even...

Webpack: How to split your bundles

Posted Almost 5 years ago by Tobias Kraze.

To keep JavaScript sources small, it can sometimes make sense to split your webpack bundles. For example, if your website...

Webpack(er): Analyze the size of your JavaScript components

Posted Almost 5 years ago by Tobias Kraze.

We're always striving towards keeping our website's JavaScript as small as possible. If you're using webpack(er...

Tod: A Gem for handling daytime without a date

Posted About 5 years ago by Jakob Scholz.

Tod is a gem for working with daytimes. Another additional gem? Thus SQL has a time datatype for storing time...

Migration from the Asset Pipeline to Webpacker

Posted About 5 years ago by Emanuel.

This is a short overview of things that are required to upgrade a project from the Asset Pipeline to Webpacker...

HTML emails with inline stylesheets and webpacker

Posted About 5 years ago by Natalie Zeumann.

Many mail clients do not support external style sheets. Some even require all styling inline, which means you'll have...

During deployment: "You are trying to install in deployment mode after changing your Gemfile"

Posted About 5 years ago by Thomas Eisenbarth.

While deploying an Ruby update to an old application these days, we encountered the following misleading error: *** [err :: some-host.makandra.de] You...

Using local fonts with Webpack / Webpacker

Posted About 5 years ago by Jakob Scholz.

When we want to use our own (or bought) fonts in an application with Webpack(er), we have two options...

Upgrade guide for moving a Rails app from Webpack 3 to Webpack 4

Posted About 5 years ago by Arne Hartherz.

Webpacker is Rails' way of integrating Webpack, and version 4 has been released just a few days ago, allowing us...

We now have our own memoization gem "Memoized"

Posted About 5 years ago by Henning Koch.

We forked trusty memoizer to make two changes: Memoized methods now preserve their arity. Previously all memoized methods had an...

How to install bundler for Ruby < 2.3

Posted Over 5 years ago by Emanuel.

Bundler 2 requires at least Ruby 2.3.0 and RubyGems 2.5.0. You might get the following error when you try to...

JavaScript without jQuery (presentation from 2019-01-21)

Posted Over 5 years ago by Henning Koch.

We want to move away from jQuery in future projects Motivations are performance, bundle size and general trends for...

RubyGems can't find bundle executable although Bundler is installed

Posted Over 5 years ago by Henning Koch.

I had this error: > gem install bundler Successfully installed bundler-2.0.1 1 gem installed > bundle install Traceback (most recent call...

Auto-generating plain-text bodies for HTML e-mails in Rails apps

Posted Over 5 years ago by Arne Hartherz.

When building an application that sends e-mails to users, you want to avoid those e-mails from being classified...

Rails asset pipeline: Using ESNext without a transpiler

Posted Over 5 years ago by Henning Koch.

If your app does not need to support IE11, you can use most ES6 features without a build step. Just...

Upgrading Ruby from 1.8.7 to 2.3.5

Posted Over 5 years ago by Dominik Schöler.

Suggested Workflow Set the ruby version in .ruby-version to 2.3.5, then perform these steps one by one, fixing errors...

Ruby: Reading and writing CSVs

Posted Over 5 years ago by Emanuel.

In ruby you can easily read and write CSVs with the standard CSV library class. On top of this, you...

Cucumber: How to find unused step definitions

Posted Over 5 years ago by Dominik Schöler.

Cucumber has an output format that prints step definitions only. You can use this to find unused ones: Temporarily add...

How to upgrade Rails: Workflow advice

Posted Over 5 years ago by Tobias Kraze.

When upgrading Rails versions -- especially major versions -- you will run into a lot of unique issues, depending on the exact...

Exception notifier: How to provide custom data to fail mails

Posted Over 5 years ago by Emanuel.

The exception_notification gem supports to provide custom data to e.g. the fail mail within foreground or background jobs. ExceptionNotifier.notify...

Katapult 0.5.0 released

Posted Over 5 years ago by Dominik Schöler.
github.com

Deployment ready for Opscomplete Copying view and controller templates over to target application during basics configuration or via...