regex_replace 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. data/History.txt +6 -0
  2. data/README.txt +24 -22
  3. data/lib/rr.rb +1 -1
  4. metadata +5 -5
data/History.txt CHANGED
@@ -1,3 +1,9 @@
1
+ === 1.0.2 / 2008-12-06
2
+
3
+ * 1 minor enhancements to the documentation
4
+
5
+ * Cleaned README
6
+
1
7
  === 1.0.1 / 2008-06-29
2
8
 
3
9
  * 1 minor enhancement
data/README.txt CHANGED
@@ -10,36 +10,38 @@ to appear in the replacement text.
10
10
 
11
11
  == FEATURES/PROBLEMS:
12
12
 
13
- <pre>usage: rr [options] find replace [filenames]
14
- rr [options] s/find/replace/ [filenames]
15
- rr [options] find
16
- find - a regular expression to be run on the entire file as one string
17
- the final usage defaults the replacement to the empty string
18
- replace - replacement text, \1-\9 and metachars (\n, etc.) are allowed
19
- filenames - names of the input files to be parsed, if blank uses STDIN
13
+ usage: rr [options] find replace [filenames]
14
+ rr [options] s/find/replace/ [filenames]
15
+ rr [options] find
16
+ find - a regular expression to be run on the entire file as one string
17
+ the final usage defaults the replacement to the empty string
18
+ replace - replacement text, \1-\9 and metachars (\n, etc.) are allowed
19
+ filenames - names of the input files to be parsed, if blank uses STDIN
20
+
21
+ options:
22
+ --line or -l process line by line instead of all at once (not default)
23
+ --case or -c makes the regular expression case sensitive (not default)
24
+ --global or -g process all occurrences in the text (default)
25
+ --modify or -m changes will directly modify the original file (not default)
20
26
 
21
- options:
22
- --line or -l process line by line instead of all at once (not default)
23
- --case or -c makes the regular expression case sensitive (not default)
24
- --global or -g process all occurrences in the text (default)
25
- --modify or -m changes will directly modify the original file (not default)
26
-
27
- negated options are done by adding 'not' or 'n' in switches like so:
28
- --notline or -nl
27
+ negated options are done by adding 'not' or 'n' in switches like so:
28
+ --notline or -nl
29
+
30
+ special note:
31
+ When using bash, if you want backslashes in the replace portion make sure
32
+ to use the multiple argument usage with single quotes for the replacement.
29
33
 
30
- special note:
31
- When using bash, if you want backslashes in the replace portion make sure
32
- to use the multiple argument usage with single quotes for the replacement.
33
- </pre>
34
34
 
35
35
  == SYNOPSIS:
36
36
 
37
37
  Replace all a's with e's
38
- rr s/a/e/ file
39
- rr a e file
38
+
39
+ rr s/a/e/ file
40
+ rr a e file
40
41
 
41
42
  Doubles the last character on each line and doubles the newline.
42
- rr "(.)\n" "\1\1\n\n" file
43
+
44
+ rr "(.)\n" "\1\1\n\n" file
43
45
 
44
46
  == REQUIREMENTS:
45
47
 
data/lib/rr.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Rr
2
- VERSION = '1.0.1'
2
+ VERSION = '1.0.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: regex_replace
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joseph Pecoraro
@@ -9,18 +9,18 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-06-29 00:00:00 -04:00
12
+ date: 2008-12-06 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: hoe
17
- type: :runtime
17
+ type: :development
18
18
  version_requirement:
19
19
  version_requirements: !ruby/object:Gem::Requirement
20
20
  requirements:
21
21
  - - ">="
22
22
  - !ruby/object:Gem::Version
23
- version: 1.6.0
23
+ version: 1.8.2
24
24
  version:
25
25
  description: A multi-line search and replace utility that uses Ruby regular expressions for searching and allows back references to captured groups from the pattern to appear in the replacement text.
26
26
  email:
@@ -64,7 +64,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
64
64
  requirements: []
65
65
 
66
66
  rubyforge_project: bogojoker
67
- rubygems_version: 1.2.0
67
+ rubygems_version: 1.3.1
68
68
  signing_key:
69
69
  specification_version: 2
70
70
  summary: A multi-line search and replace utility that uses Ruby regular expressions for searching and allows back references to captured groups from the pattern to appear in the replacement text.