insert_from_file 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -3
- data/lib/insert_from_file.rb +1 -0
- data/lib/insert_from_file/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4162ccc4f31905bc2174adad0abcd9a3e4883020
|
4
|
+
data.tar.gz: 46be56f2287346a623d51847a7b098d4f9268dde
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa90f5bdcc29c383f05d1c6b7ca79386556a60689353b5b530ba6f3eaa2b88151d6b0678f7e651651df12e6122a7cfa754f99b803075529cddab4d06e02020c5
|
7
|
+
data.tar.gz: 1959edc0d6ae282c526d783b5579cf15404defc58b118b6ae35a5b645b04e91ee84a5926c0e40802b28c642601c406d3c0e91f5658610e7519896b169b69ecee
|
data/README.md
CHANGED
@@ -70,17 +70,18 @@ InsertFromFile.replace('tmp/file6.txt', 'tmp/file5.txt', 'sixteen')
|
|
70
70
|
```
|
71
71
|
one two three
|
72
72
|
four five six
|
73
|
-
|
73
|
+
nineteen twenty twenty-one
|
74
74
|
thirteen fourteen fifteen
|
75
|
+
sixteen seventeen eighteen
|
75
76
|
```
|
76
77
|
* tmp/file12.txt:
|
77
78
|
```
|
78
79
|
seven eight nine
|
79
80
|
ten eleven twelve
|
80
81
|
```
|
81
|
-
* Adding the contents of tmp/file12.txt into tmp/file11.txt and replacing everything after the line containing "five" and before the line containing "
|
82
|
+
* Adding the contents of tmp/file12.txt into tmp/file11.txt and replacing everything after the line containing "five" and before the line containing "fourteen":
|
82
83
|
```
|
83
|
-
InsertFromFile.replace_between('tmp/file12.txt', 'tmp/file11.txt', 'five', '
|
84
|
+
InsertFromFile.replace_between('tmp/file12.txt', 'tmp/file11.txt', 'five', 'fourteen')
|
84
85
|
```
|
85
86
|
|
86
87
|
### add_beginning
|
data/lib/insert_from_file.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: insert_from_file
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Hsu
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-05-
|
11
|
+
date: 2017-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -230,7 +230,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
230
230
|
version: '0'
|
231
231
|
requirements: []
|
232
232
|
rubyforge_project:
|
233
|
-
rubygems_version: 2.6.
|
233
|
+
rubygems_version: 2.6.12
|
234
234
|
signing_key:
|
235
235
|
specification_version: 4
|
236
236
|
summary: Insert the contents of one file into another file.
|