Registry / utility / pattern-patch

pattern-patch

JSON →
library1.1.0rbrubygemsunverified

Identifies positions in text using regular expressions and inserts or replaces patch text, with revert capability.

gem install pattern_patch
INSTALL
IMPORT
SIG · PATTERN-PATCH
P
pattern-patch
utilityrubyv1.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

PatternPatch
require 'pattern_patch'

Patches text in a file using a pattern

require 'pattern_patch' patcher = PatternPatch::Patcher.new patcher.patch('file.txt', :before => /old_text/, :with => 'new_text') patcher.apply
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.1.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
pattern-patch — gem install pattern-patch · libregistry