Project

difftastic

0.01
The project is in a healthy, maintained state
Integrate Difftastic with the RubyGems infrastructure.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies
 Project Readme

Difftastic Ruby

A Ruby interface and wrapper for the wonderful Difftastic CLI tool.

First create a differ with your config.

MY_DIFFER = Difftastic::Differ.new(
  background: :dark,
  color: :always,
  left_label: "Expected",
  right_label: "Actual"
)

Diff Objects

MY_DIFFER.diff_objects(a, b)

Diff Ruby

MY_DIFFER.diff_ruby(a, b)