textmerge 0.1.1 → 0.1.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.
- checksums.yaml +4 -4
- data/README.md +18 -10
- data/lib/textmerge/merge.rb +1 -1
- data/lib/textmerge/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a6217090ac00259d857d4ef998ce718d59c86a65
|
|
4
|
+
data.tar.gz: 374a4298efa86e8240306c5b68b8672e003f5ee4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: abaed3ecc4462d2a5848cec6f333ffaef524dbd3e6c1ba169eff56278e7904c17c1dcfe2e3f42f68f77c7e1fd9a1e3d4b86125e65906ac3e1656d26c49b126d5
|
|
7
|
+
data.tar.gz: bebc264a4512e9f7beb235a962f50138abf263f10dd159f0b133b20adf4b34866cbc91c0ed575bd7584e609de8381039661c8c418ae4e8ed5716245e33f1b419
|
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#Textmerge
|
|
2
2
|
|
|
3
|
-
A custom tool
|
|
3
|
+
A custom tool to generate reptitive config files from either an input file or generated questions.
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
Installation
|
|
@@ -9,6 +9,15 @@ Installation
|
|
|
9
9
|
▸ gem install textmerge
|
|
10
10
|
|
|
11
11
|
|
|
12
|
+
Need to Install Rubygems?
|
|
13
|
+
-------------------------
|
|
14
|
+
|
|
15
|
+
https://rubygems.org/pages/download
|
|
16
|
+
|
|
17
|
+
1. Download from http://production.cf.rubygems.org/rubygems/rubygems-2.4.6.tgz or download most recent version from above link
|
|
18
|
+
2. Unpack into a directory and cd there `tar -xzvf rubygems-2.4.6.tgz`
|
|
19
|
+
3. Install with: ruby setup.rb (you may need admin/root privilege)
|
|
20
|
+
|
|
12
21
|
Help output
|
|
13
22
|
-----------
|
|
14
23
|
|
|
@@ -24,22 +33,21 @@ Merge Command
|
|
|
24
33
|
|
|
25
34
|
DESCRIPTION
|
|
26
35
|
|
|
27
|
-
This utility will take a template that you have created with certain fields that are used to merge in data.
|
|
36
|
+
>This utility will take a template that you have created with certain fields that are used to merge in data.
|
|
28
37
|
Format for fields are as follows :
|
|
29
|
-
{1:Question}
|
|
30
|
-
document that replace the same data using {1}.
|
|
38
|
+
`{1:Question}`, then you can have other areas in the document that replace the same data using `{1:}`.
|
|
31
39
|
|
|
32
40
|
EXAMPLE TEMPLATE
|
|
33
41
|
|
|
34
|
-
This is the text for your template. You can include anything.
|
|
35
|
-
{1:What is your name}. Great, {1}...now I know your name.
|
|
36
|
-
I can see that you live in {2:Where do you live}. {2} is a great place to live.
|
|
42
|
+
This is the text for your template. You can include anything.
|
|
43
|
+
{1:What is your name}. Great, {1:}...now I know your name.
|
|
44
|
+
I can see that you live in {2:Where do you live}. {2:} is a great place to live.
|
|
37
45
|
|
|
38
46
|
|
|
39
47
|
EXAMPLE INPUT FILE
|
|
40
48
|
|
|
41
|
-
1:Chris<br/>
|
|
42
|
-
2:Mountain View, Ca.
|
|
49
|
+
1:Chris<br/>
|
|
50
|
+
2:Mountain View, Ca.
|
|
43
51
|
|
|
44
52
|
**If no input file is provided, then you are prompted with each question individually, in order**
|
|
45
53
|
|
|
@@ -47,7 +55,7 @@ GLOBAL OPTIONS
|
|
|
47
55
|
|
|
48
56
|
-t, --template=Template #path to your template (required)
|
|
49
57
|
-i, --input=Input File #path to your input file for preloading data
|
|
50
|
-
|
|
58
|
+
(optional, will prompt for answers otherwise)
|
|
51
59
|
-o, --output=Output File #
|
|
52
60
|
|
|
53
61
|
|
data/lib/textmerge/merge.rb
CHANGED
data/lib/textmerge/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: textmerge
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chris Simpson
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-05-
|
|
11
|
+
date: 2015-05-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -155,3 +155,4 @@ test_files:
|
|
|
155
155
|
- spec/lib/test_input.txt
|
|
156
156
|
- spec/lib/textmerge_spec.rb
|
|
157
157
|
- spec/spec_helper.rb
|
|
158
|
+
has_rdoc:
|