Sha256: 44c000a6acea1ce7294409ce0f0c13bb461c30b6df45daabdc7dc68f5e7a9090
Contents?: true
Size: 1.38 KB
Versions: 1
Compression:
Stored size: 1.38 KB
Contents
# DirGlobIgnore Enable file globbing with a-la-git ignore files management. ## Installation Add this line to your application's Gemfile: ```ruby gem 'dir_glob_ignore' ``` And then execute: $ bundle Or install it yourself as: $ gem install dir_glob_ignore ## Usage Once required this gem patches the `Dir` Ruby core class by adding a new method `glob_with_ignore_file` which allows to specify _a-la-git_ ignore files Like with Git, there can be multiple ignore files in sub-directories ```ruby require 'dir_glob_ignore' Dir.glob_with_ignore_file '.my_ignore_file', '/a/root/directory', *standard_glob_options ``` * The first parameter specifies the name of the ignore files to look for. * The second parameter specifies a root directory for ignore files. This is not a root directory for the glob function but actually defines where to search ignore files. * Then the remaining parameters are identical to the ones you could pass to `Dir::glob` ## Contributing Bug reports and pull requests are welcome on GitHub at https://github.com/lbriais/dir_glob_ignore. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct. ## License The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dir_glob_ignore-0.1.0 | README.md |