makandra dev

While renaming a file sometimes feels like "dropping its history", that is not true: Just use git log --follow on...

When deleting a record in your Rails app, Carrierwave automatically takes care of removing all associated files. However, the file...

docs.gitlab.com

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

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

If a project ist configured to spawn CI runners for tests or deployment when pushing to the Repo, a habit...

makandra dev

5.4.0 2021-02-01 Compatible changes Add geordi branch command that checks out a feature branch based on a story...

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

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

stackoverflow.blog

A rough guide how to implement a REST API. The discussion here includes some interesting points as well: Timestamps: ISO8601...

If your project depends on an old version of ImageMagick that you can no longer install in your system, you...

You can use git worktree to manage multiple working trees attached to the same repository. But why should I use...

makandra dev

Rails 6 includes a WYSIWYG editor, Action Text. It works out of the box quite well, but chances are that...

makandra dev

I just finished migrating a project from the Asset Pipeline to Webpacker, this is what my diff to master looks...

In long diffs, it can become impossible to spot small changes in larger blocks of moved code. This may be...

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

tekin.co.uk

Git diffs show the surrounding contexts for diff hunks. It does so by applying regular expressions to find the beginning...

Here is a short summary of Cucumber hooks in Ruby taken from https://github.com/cucumber/cucumber-ruby. Note that the BeforeStep is...

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

On some of our older projects, we use the mysql2 gem. Unfortunately, versions 0.2.x (required for Rails 2.3) and...

Installing old Rubies (<= 2.3) with a standard rbenv + ruby-build is no longer possible on Ubuntu 20.04. This is because...

When loading a database dump created with pg_dump into your database, you might run into an error like

It sometimes happen that a database dump, that would want to insert into your development database, does not match the...

To find a version containing the regular expression foo in the history of any branch: git grep foo $(git rev...

In interactive commands, Git allows the user to provide one-letter input with a single key without hitting enter (docs...