textmerge 0.0.3

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 30f4a41741f4feccf2f820eeb2597224acf4852d
4
+ data.tar.gz: bd08ae4fa5f8ceb776afd137c6d4ff1af0c24fa5
5
+ SHA512:
6
+ metadata.gz: ae1b5d25ff5b2d9f0aed30ece807d26fdd6b4d3347ee8755f09145bfdbcd286252a432899e3335b41a5b6587edc105b8240b81cf2edf556ec17e15ad44142a77
7
+ data.tar.gz: 8bb1e0fee7a42d6ef6a2199c8b2d8e0306168f2e1678a78d09250157524a38a809abea92d95332378a1abdaf8664fe7d6db8d815b5c8fdd993a9fd928a0fd754
data/.gitignore ADDED
@@ -0,0 +1,13 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ doc/
7
+ lib/bundler/man
8
+ pkg
9
+ rdoc
10
+ spec/reports
11
+ tmp
12
+ .DS_Store
13
+
data/Gemfile ADDED
@@ -0,0 +1,10 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in Textmerge.gemspec
4
+ gemspec
5
+
6
+ group :development do
7
+ gem 'guard-rspec', require: false
8
+ end
9
+
10
+ gem 'highline'
data/Gemfile.lock ADDED
@@ -0,0 +1,60 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ textmerge (0.0.3)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ celluloid (0.15.2)
10
+ timers (~> 1.1.0)
11
+ coderay (1.1.0)
12
+ diff-lcs (1.1.3)
13
+ ffi (1.9.3)
14
+ formatador (0.2.4)
15
+ guard (2.2.5)
16
+ formatador (>= 0.2.4)
17
+ listen (~> 2.1)
18
+ lumberjack (~> 1.0)
19
+ pry (>= 0.9.12)
20
+ thor (>= 0.18.1)
21
+ guard-rspec (2.3.1)
22
+ guard (>= 1.1)
23
+ rspec (~> 2.11)
24
+ highline (1.6.20)
25
+ listen (2.4.0)
26
+ celluloid (>= 0.15.2)
27
+ rb-fsevent (>= 0.9.3)
28
+ rb-inotify (>= 0.9)
29
+ lumberjack (1.0.2)
30
+ method_source (0.8.1)
31
+ pry (0.9.12.4)
32
+ coderay (~> 1.0)
33
+ method_source (~> 0.8)
34
+ slop (~> 3.4)
35
+ rake (10.1.0)
36
+ rb-fsevent (0.9.3)
37
+ rb-inotify (0.9.2)
38
+ ffi (>= 0.5.0)
39
+ rspec (2.14.1)
40
+ rspec-core (~> 2.14.0)
41
+ rspec-expectations (~> 2.14.0)
42
+ rspec-mocks (~> 2.14.0)
43
+ rspec-core (2.14.7)
44
+ rspec-expectations (2.14.4)
45
+ diff-lcs (>= 1.1.3, < 2.0)
46
+ rspec-mocks (2.14.4)
47
+ slop (3.4.7)
48
+ thor (0.18.1)
49
+ timers (1.1.0)
50
+
51
+ PLATFORMS
52
+ ruby
53
+
54
+ DEPENDENCIES
55
+ bundler (~> 1.3)
56
+ guard-rspec
57
+ highline
58
+ rake
59
+ rspec (~> 2.1)
60
+ textmerge!
data/Guardfile ADDED
@@ -0,0 +1,24 @@
1
+ # A sample Guardfile
2
+ # More info at https://github.com/guard/guard#readme
3
+
4
+ guard 'rspec' do
5
+ watch(%r{^spec/.+_spec\.rb$})
6
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
7
+ watch('spec/spec_helper.rb') { "spec" }
8
+
9
+ # Rails example
10
+ watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
11
+ watch(%r{^app/(.*)(\.erb|\.haml)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
12
+ watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] }
13
+ watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
14
+ watch('config/routes.rb') { "spec/routing" }
15
+ watch('app/controllers/application_controller.rb') { "spec/controllers" }
16
+
17
+ # Capybara features specs
18
+ watch(%r{^app/views/(.+)/.*\.(erb|haml)$}) { |m| "spec/features/#{m[1]}_spec.rb" }
19
+
20
+ # Turnip features and steps
21
+ watch(%r{^spec/acceptance/(.+)\.feature$})
22
+ watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'spec/acceptance' }
23
+ end
24
+
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 Chris Simpson
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,65 @@
1
+ #Textmerge
2
+
3
+ A custom tool that I use to generate reptitive config files from either an input file or generated questions.
4
+
5
+
6
+ Installation
7
+ ------------
8
+
9
+ ▸ gem install textmerge
10
+
11
+
12
+ Help output
13
+ -----------
14
+
15
+ SYNOPSIS
16
+
17
+ * textmerge help [COMMAND] # Describe available commands or one specific command
18
+ * textmerge merge -t, --template=TEMPLATE # Merge input with your custom template
19
+ * textmerge version # Version of Textmerge
20
+
21
+
22
+ Merge Command
23
+ -------------
24
+
25
+ DESCRIPTION
26
+
27
+ This utility will take a template that you have created with certain fields that are used to merge in data.
28
+ 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}.
31
+
32
+ EXAMPLE TEMPLATE
33
+
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.
37
+
38
+
39
+ EXAMPLE INPUT FILE
40
+
41
+ 1:Chris<br/>
42
+ 2:Mountain View, Ca.
43
+
44
+ **If no input file is provided, then you are prompted with each question individually, in order**
45
+
46
+ GLOBAL OPTIONS
47
+
48
+ -t, --template=Template #path to your template (required)
49
+ -i, --input=Input File #path to your input file for preloading data
50
+ (optional, will prompt for answers otherwise)
51
+ -o, --output=Output File #
52
+
53
+
54
+ Sample Usage
55
+ ------------
56
+
57
+ Basic Usage
58
+
59
+ textmerge merge -t template.txt
60
+
61
+ Using an input file and specifying an output file
62
+
63
+ textmerge merge -t template.txt -i inputfile.txt -o outputfile.txt
64
+
65
+
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
data/bin/textmerge ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ $:.unshift(File.expand_path(File.dirname(__FILE__) + '/../lib'))
4
+
5
+ require 'textmerge'
6
+ require 'cli'
7
+
8
+ Textmerge::CLI::Main.start
data/lib/cli.rb ADDED
@@ -0,0 +1,44 @@
1
+ require 'thor'
2
+ require 'thor/runner'
3
+
4
+ module Textmerge
5
+ module CLI
6
+ class Main < Thor
7
+
8
+ desc 'version', 'Version of the Merge utility'
9
+ def version
10
+ require 'textmerge/version'
11
+ say Textmerge::VERSION
12
+ end
13
+
14
+ desc 'merge', 'Merge input with your custom template'
15
+ method_option :template, aliases: '-t', type: 'string', default: '', :required => true, desc: 'path to your template file'
16
+ method_option :input, aliases: '-i', type: 'string', default: '', desc: 'path to your input file that feeds the template'
17
+ method_option :output, aliases: '-o', type: 'string', default: '', desc: 'path to your output file'
18
+ def merge
19
+ begin
20
+ raise ArgumentError, "Missing template" unless !options[:template].empty?
21
+ template = ""
22
+ requests,answers = []
23
+ merge = Textmerge::Merge.new(options)
24
+ template = merge.read_template
25
+ if options[:input] && File.exists?(options[:input])
26
+ puts "Building from input file"
27
+ answers = merge.get_responses_from_input_file
28
+ else
29
+ requests = merge.get_requests(template)
30
+ answers = merge.get_responses(requests)
31
+ end
32
+ output = merge.merge_responses(answers,template)
33
+ if !options[:output].empty?
34
+ merge.write_file(output)
35
+ else
36
+ puts output
37
+ end
38
+ rescue Exception => e
39
+ say e.message, :red
40
+ end
41
+ end
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,62 @@
1
+ require 'highline/import'
2
+
3
+ module Textmerge
4
+ class Merge
5
+
6
+ def initialize(options)
7
+ @template_file = options[:template]
8
+ @input_file = options[:input]
9
+ @output_file = options[:output]
10
+ end
11
+
12
+ def read_template
13
+ file = File.open(@template_file, "rb")
14
+ file.read
15
+ end
16
+
17
+ def get_responses_from_input_file(data_file = @input_file)
18
+ collection = []
19
+ File.open(data_file, 'r') do |file|
20
+ collection = file.map { |line| line.chomp.split(':') }
21
+ end
22
+ collection.sort!
23
+ array_to_hash(collection)
24
+ end
25
+
26
+ def get_requests(data)
27
+ regex = /\{(\d)\:(.*?)\}/
28
+ collection = data.scan(regex)
29
+ collection.sort!
30
+ array_to_hash(collection)
31
+ end
32
+
33
+ def get_responses(requests)
34
+ requests.each do |k,v|
35
+ requests[k] = ask_basic_question(v)
36
+ end
37
+ requests
38
+ end
39
+
40
+ def merge_responses(responses,data)
41
+ responses.each do |k,v|
42
+ data.gsub!(/\{#{k}.*?\}/,v)
43
+ end
44
+ data
45
+ end
46
+
47
+ def write_file(contents)
48
+ File.open(@output_file, 'w') {|f| f.write(contents)}
49
+ end
50
+
51
+ protected
52
+
53
+ def ask_basic_question(question)
54
+ ask("#{question} ?")
55
+ end
56
+
57
+ def array_to_hash(array)
58
+ array.inject({}) {|m,e| m[e[0].to_i] = e[1]; m}
59
+ end
60
+
61
+ end
62
+ end
@@ -0,0 +1,3 @@
1
+ module Textmerge
2
+ VERSION = "0.0.3"
3
+ end
data/lib/textmerge.rb ADDED
@@ -0,0 +1 @@
1
+ require 'textmerge/merge'
@@ -0,0 +1,3 @@
1
+ 1:Answer 1
2
+ 2:answer 2
3
+ 3:answer 3
@@ -0,0 +1,57 @@
1
+ require 'spec_helper'
2
+
3
+ describe Textmerge::Merge do
4
+ merge = ''
5
+
6
+ before(:each) do
7
+ options = {:template => "template.txt",:input=>"in.txt", :output=> "out.txt"}
8
+ merge = Textmerge::Merge.new(options)
9
+ end
10
+
11
+ let(:data) { "{1:First question} This is some text to ignore
12
+ this would be some additional text, and then {2:Second question}
13
+ and we have some more text before ending {3:Third question}
14
+ Links are {1}, {2}, {3}." }
15
+
16
+ let(:result) {{1=>"First question",2=>"Second question",3=>"Third question"}}
17
+
18
+ let(:answers) {{1=>"Answer 1", 2=>"answer 2",3=>"answer 3"}}
19
+
20
+ let(:output) { "Answer 1 This is some text to ignore
21
+ this would be some additional text, and then answer 2
22
+ and we have some more text before ending answer 3
23
+ Links are Answer 1, answer 2, answer 3." }
24
+
25
+ context "when reading from input" do
26
+ it "should read from an input file and output a hash of responses" do
27
+ test_file_path = File.join(File.dirname(__FILE__), "test_input.txt")
28
+ expect(merge.get_responses_from_input_file(test_file_path)).to eq(answers)
29
+ end
30
+
31
+ it "should read a file and return an array of questions" do
32
+ merge.get_requests(data).should eq(result)
33
+ expect(merge.get_requests(data)[2]).to eq("Second question")
34
+ end
35
+
36
+ it "should order questions properly" do
37
+ text = "{2:Second question} and the {1:First question}"
38
+ expect(merge.get_requests(text)[1]).to eq("First question")
39
+ end
40
+
41
+ it "should raise an exception when there is a blank question" do
42
+ pending "exception testing"
43
+ end
44
+ end
45
+
46
+ context "when handling input" do
47
+ it "should build responses from our hash of questions" do
48
+ Textmerge::Merge.any_instance.stub(:ask_basic_question).and_return("Answer 1")
49
+ merge.get_responses({1=>"Question 1"}).should eq({1=>"Answer 1"})
50
+ end
51
+
52
+ it "should merge the responses into our content" do
53
+ merge.merge_responses(answers,data).should eq(output)
54
+ end
55
+ end
56
+ end
57
+
@@ -0,0 +1,21 @@
1
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
2
+
3
+ require 'Textmerge'
4
+ require 'rspec'
5
+
6
+ # This file was generated by the `rspec --init` command. Conventionally, all
7
+ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
8
+ # Require this file using `require "spec_helper"` to ensure that it is only
9
+ # loaded once.
10
+ #
11
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
12
+ RSpec.configure do |config|
13
+ config.run_all_when_everything_filtered = true
14
+ config.filter_run :focus
15
+
16
+ # Run specs in random order to surface order dependencies. If you find an
17
+ # order dependency and want to debug it, you can fix the order by providing
18
+ # the seed, which is printed after each run.
19
+ # --seed 1234
20
+ config.order = 'random'
21
+ end
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/textmerge/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in textmerge.gemspec
4
+ gemspec
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2014 Chris Simpson
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,29 @@
1
+ # Textmerge
2
+
3
+ TODO: Write a gem description
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'textmerge'
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install textmerge
18
+
19
+ ## Usage
20
+
21
+ TODO: Write usage instructions here
22
+
23
+ ## Contributing
24
+
25
+ 1. Fork it
26
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
27
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
28
+ 4. Push to the branch (`git push origin my-new-feature`)
29
+ 5. Create new Pull Request
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,3 @@
1
+ module Textmerge
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,5 @@
1
+ require "textmerge/version"
2
+
3
+ module Textmerge
4
+ # Your code goes here...
5
+ end
@@ -0,0 +1,23 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'textmerge/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "textmerge"
8
+ spec.version = Textmerge::VERSION
9
+ spec.authors = ["Chris Simpson"]
10
+ spec.email = ["ctsimpson@gmail.com"]
11
+ spec.description = %q{TODO: Write a gem description}
12
+ spec.summary = %q{TODO: Write a gem summary}
13
+ spec.homepage = ""
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files`.split($/)
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_development_dependency "bundler", "~> 1.3"
22
+ spec.add_development_dependency "rake"
23
+ end
data/textmerge.gemspec ADDED
@@ -0,0 +1,28 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'textmerge/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "textmerge"
8
+ spec.version = Textmerge::VERSION
9
+ spec.authors = ["Chris Simpson"]
10
+ spec.email = ["ctsimpson@gmail.com"]
11
+ spec.description = "Merge Text using customized templates"
12
+ spec.summary = "Good for configuration files and whatever"
13
+ spec.homepage = "http://www.ctsimpson.com"
14
+ spec.license = "MIT"
15
+
16
+ spec.bindir = "bin"
17
+ spec.files = `git ls-files`.split($/)
18
+ spec.executables << 'textmerge'
19
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
20
+ spec.require_paths = ["lib"]
21
+
22
+ spec.add_development_dependency "bundler", "~> 1.3"
23
+ spec.add_development_dependency "rake"
24
+ spec.add_development_dependency "rspec", "~> 2.1"
25
+ spec.add_development_dependency "guard-rspec", "~> 4.2"
26
+ spec.add_dependency "thor"
27
+ spec.add_dependency "highline", "~> 1.6"
28
+ end
metadata ADDED
@@ -0,0 +1,156 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: textmerge
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.3
5
+ platform: ruby
6
+ authors:
7
+ - Chris Simpson
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-03-04 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1.3'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: '2.1'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: '2.1'
55
+ - !ruby/object:Gem::Dependency
56
+ name: guard-rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '4.2'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: '4.2'
69
+ - !ruby/object:Gem::Dependency
70
+ name: thor
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '>='
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: highline
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ~>
88
+ - !ruby/object:Gem::Version
89
+ version: '1.6'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ~>
95
+ - !ruby/object:Gem::Version
96
+ version: '1.6'
97
+ description: Merge Text using customized templates
98
+ email:
99
+ - ctsimpson@gmail.com
100
+ executables:
101
+ - textmerge
102
+ extensions: []
103
+ extra_rdoc_files: []
104
+ files:
105
+ - .gitignore
106
+ - Gemfile
107
+ - Gemfile.lock
108
+ - Guardfile
109
+ - LICENSE.txt
110
+ - README.md
111
+ - Rakefile
112
+ - bin/textmerge
113
+ - lib/cli.rb
114
+ - lib/textmerge.rb
115
+ - lib/textmerge/merge.rb
116
+ - lib/textmerge/version.rb
117
+ - spec/lib/test_input.txt
118
+ - spec/lib/textmerge_spec.rb
119
+ - spec/spec_helper.rb
120
+ - textmerge.gemspec
121
+ - textmerge/.gitignore
122
+ - textmerge/Gemfile
123
+ - textmerge/LICENSE.txt
124
+ - textmerge/README.md
125
+ - textmerge/Rakefile
126
+ - textmerge/lib/textmerge.rb
127
+ - textmerge/lib/textmerge/version.rb
128
+ - textmerge/textmerge.gemspec
129
+ homepage: http://www.ctsimpson.com
130
+ licenses:
131
+ - MIT
132
+ metadata: {}
133
+ post_install_message:
134
+ rdoc_options: []
135
+ require_paths:
136
+ - lib
137
+ required_ruby_version: !ruby/object:Gem::Requirement
138
+ requirements:
139
+ - - '>='
140
+ - !ruby/object:Gem::Version
141
+ version: '0'
142
+ required_rubygems_version: !ruby/object:Gem::Requirement
143
+ requirements:
144
+ - - '>='
145
+ - !ruby/object:Gem::Version
146
+ version: '0'
147
+ requirements: []
148
+ rubyforge_project:
149
+ rubygems_version: 2.1.11
150
+ signing_key:
151
+ specification_version: 4
152
+ summary: Good for configuration files and whatever
153
+ test_files:
154
+ - spec/lib/test_input.txt
155
+ - spec/lib/textmerge_spec.rb
156
+ - spec/spec_helper.rb