Skip to content

Release 1.0.0

Latest

Choose a tag to compare

@jdee jdee released this 14 May 00:39
· 25 commits to master since this release

Added Methods#patch_config to simplify configuration when including the Methods module.

include PatternPatch::Methods

patch_config do |c|
  c.patch_dir = File.expand_path '../assets/patches', __dir__
  c.trim_mode = '<>'
end

patch(:my_patch).apply '/path/to/target/file'

or

include PatternPatch::Methods

patch_config.patch_dir = File.expand_path '../assets/patches', __dir__
patch_config.trim_mode = '<>'

patch(:my_patch).apply '/path/to/target/file'

Some dependency updates.