textmerge 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a3a9291c8f90717018c3736df163de340d4856d8
4
- data.tar.gz: b7c8c64cedafd985ab6359a561c81456ced8145b
3
+ metadata.gz: a6217090ac00259d857d4ef998ce718d59c86a65
4
+ data.tar.gz: 374a4298efa86e8240306c5b68b8672e003f5ee4
5
5
  SHA512:
6
- metadata.gz: 7c442c89d76e93eca9ffdafa98eaf7ff67d50ee8b477ab94b8cda370870659b7fff4366cdd9c6b12a4a6bb96726826fcc0a19f952c8f76ef180e443ff194506e
7
- data.tar.gz: 1b07021b079e60ecb5311f3b3b73247dedce9f7710d824bac085116ca81caf5ca17cd46d478117f11a7693a3993e49a6c0175bb371f8f812cc6ffa95cb2729ae
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 that I use to generate reptitive config files from either an input file or generated questions.
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}..., then you can have other areas in the
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
- (optional, will prompt for answers otherwise)
58
+ (optional, will prompt for answers otherwise)
51
59
  -o, --output=Output File #
52
60
 
53
61
 
@@ -54,7 +54,7 @@ module Textmerge
54
54
  end
55
55
 
56
56
  def array_to_hash(array)
57
- sorted = array.sort_by { |m,e| m }
57
+ sorted = array.sort_by { |m,e| m.to_i }
58
58
  sorted.inject({}) {|m,e| m[e[0].to_i] = e[1]; m}
59
59
  end
60
60
 
@@ -1,3 +1,3 @@
1
1
  module Textmerge
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
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.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-07 00:00:00.000000000 Z
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: