0.0
No commit activity in last 3 years
No release in over 3 years
A Ruby binding around gitignore.rs, a Rust implementation of .gitignore file parsing and glob testing. This library is designed to allow extremely performant testing of file paths against the rules contained in a .gitignore file.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0.8.22
>= 1.1.1, ~> 1.1
>= 3.6.0, ~> 3.6
>= 3.8.0, ~> 3.8
~> 0.59.2
>= 1.29.1, ~> 1.29

Runtime

>= 1.9.25, ~> 1.9
 Project Readme

gitignore.rb Build Status RubyGems Version Of gitignore_rb

This is an implementation of .gitignore parsing and matching in Rust. Use this library if you want to check whether a given path would be excluded by a .gitignore file.

This library wraps my Rust implementation of .gitignore semantics for performance.

Usage

The Gem is called gitignore_rb and you can it is available via RubyGems:

gem install gitignore_rb

Examples

A simple example is as follows:

require 'gitignore'

gi = GitIgnore.new('/path/to/.gitignore')
gi.included_files #=> ['foo', 'bar', 'lux/win', ...]