Gem development: recommended gem metadata

Posted About 2 years ago by Daniel Straßner.

The gemspec for gems allows to add metadata to your gem, some of which have a special meaning and are...

How to get information about a gem (via CLI or at runtime from Ruby)

Posted About 2 years ago by Arne Hartherz.

When you need information about a gem (like version(s) or install path(s)), you can use the gem binary...

Integrating ESLint

Posted Over 2 years ago.

To ensure a consistent code style for JavaScript code, we use ESLint. The workflow is similar to integrating rubocop...

esbuild: Make your Rails application show build errors

Posted Over 2 years ago by Arne Hartherz.

Building application assets with esbuild is the new way to do it, and it's great, especially in combination with...

Deployment: Merge consecutive commits without cherry-picking

Posted Over 2 years ago by Julian.

You want to deploy new features but the latest commits are not ready for production? Then use git merge master...

Nokogiri: How to parse large XML files with a SAX parser

Posted Over 2 years ago by Florian Leinsinger.
dev.to

In my case [...] the catalog is an XML that contains all kinds of possible products, categories and vendors and it...

The TCF 2.0 (Tranparency and Consent Framework) standard, and what you should know about it

Posted Over 2 years ago by Tobias Kraze.

The Interactive Advertising Bureau (IAB) is a European marketing association which has introduced a standard how advertising can be served...

Git shortcut to rebase onto another branch

Posted Over 2 years ago by Michael Leimstädtner.

Inspired by recent "git shortcut" cards I figured it would be nice to have one of these for rebasing a...

Git shortcut to fixup a recent commit

Posted Over 2 years ago.

git --fixup is very handy to amend a change to a previous commit. You can then autosquash your commits with...

RSpec matcher to compare two HTML fragments

Posted Over 2 years ago by Henning Koch.

The RSpec matcher tests if two HTML fragments are equivalent. Equivalency means: Whitespace is ignored Types of attribute quotes are...

Git shortcut to checkout recent branches

Posted Over 2 years ago by Michael Leimstädtner.
dev.to

If you have fzf installed, you may add an alias such as this to your ~/.bashrc: alias recent-branch="git...

Bookmarklet to facilitate generating new git branches for PivotalTracker Stories

Posted Over 2 years ago by Klaus Weidinger.

This bookmarklet grabs a PivotalTracker story title, transforms it into a valid git branch name and automatically prepends your initials...

GitHub Actions: Manually running a workflow

Posted Almost 3 years ago by Henning Koch.

To start a workflow manually it must have a trigger called workflow_dispatch: --- name: Tests on: push: branches: - master

GitHub Actions: Retrying a failing step

Posted Almost 3 years ago by Henning Koch.

If you have a flaky command you can use the nick-invision/retry to re-try a failing command, optionally...

How to checkout submodules in Gitlab CI

Posted Almost 3 years ago by Emanuel.

Accessing other repositories in Gitlab CI is not straight forward, since the access rights of the current pipeline might not...

Geordi 6.0.0 released

Posted Almost 3 years ago by Dominik Schöler.

6.0.0 2021-06-02 Compatible changes geordi commit will continue even if one of the given projects is inaccessible. It...

How to: "git log" with renamed files

Posted Almost 3 years ago by Michael Leimstädtner.

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

Carrierwave: How to remove container directories when deleting a record

Posted About 3 years ago by Arne Hartherz.

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

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

How to push to Git without running CI on GitLab CI, GitHub Actions, or Travis CI

Posted About 3 years ago by Arne Hartherz.

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

Geordi 5.4.0 released

Posted About 3 years ago by Dominik Schöler.

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

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

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