elevator_pitch_generator 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +17 -0
- data/.rspec +2 -0
- data/.rubocop.yml +4 -0
- data/.travis.yml +8 -0
- data/Epitchfile +9 -0
- data/Gemfile +8 -0
- data/LICENSE.txt +22 -0
- data/README.md +129 -0
- data/Rakefile +8 -0
- data/bin/epitchgen +31 -0
- data/elevator_pitch/README.md +9 -0
- data/elevator_pitch_generator.gemspec +28 -0
- data/lib/elevator_pitch_generator/version.rb +5 -0
- data/lib/elevator_pitch_generator_core.rb +104 -0
- data/lib/elevator_pitch_generator_dsl.rb +36 -0
- data/lib/elevator_pitch_generator_dsl_model.rb +37 -0
- data/spec/elevator_pitch_generator_core_spec.rb +74 -0
- data/spec/spec_helper.rb +8 -0
- metadata +134 -0
data/.gitignore
ADDED
data/.rspec
ADDED
data/.rubocop.yml
ADDED
data/.travis.yml
ADDED
data/Epitchfile
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
needs "For creator"
|
4
|
+
target "who supply some product"
|
5
|
+
product_name "The Elevator Pitch Generator"
|
6
|
+
category "is a generator of Elevator Pitch"
|
7
|
+
merit "that generate Elevator Pitch template automatically"
|
8
|
+
diff_of_competition "Unlike manuall-create that is redundant operation"
|
9
|
+
most_important_point "it provides formated template for Elevator Pitch"
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2014 tbpgr
|
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,129 @@
|
|
1
|
+
# ElevatorPitchGenerator
|
2
|
+
|
3
|
+
[![Build Status](https://travis-ci.org/tbpgr/elevator_pitch_generator.png?branch=master)](https://travis-ci.org/tbpgr/elevator_pitch_generator)
|
4
|
+
|
5
|
+
Elevator Pitch Generator is Elevator Pitch Generator.
|
6
|
+
|
7
|
+
## Elevator Pitch
|
8
|
+
[Elevator Pitch](./elevator_pitch/README.md)
|
9
|
+
|
10
|
+
## Installation
|
11
|
+
|
12
|
+
Add this line to your application's Gemfile:
|
13
|
+
|
14
|
+
gem 'elevator_pitch_generator'
|
15
|
+
|
16
|
+
And then execute:
|
17
|
+
|
18
|
+
$ bundle
|
19
|
+
|
20
|
+
Or install it yourself as:
|
21
|
+
|
22
|
+
$ gem install elevator_pitch_generator
|
23
|
+
|
24
|
+
## Usage
|
25
|
+
### Steps
|
26
|
+
* generate Epitchfile
|
27
|
+
|
28
|
+
~~~bash
|
29
|
+
epitchgen init
|
30
|
+
~~~
|
31
|
+
|
32
|
+
generated File
|
33
|
+
|
34
|
+
~~~ruby
|
35
|
+
# encoding: utf-8
|
36
|
+
|
37
|
+
# For [potential needs or solution]
|
38
|
+
# needs is required
|
39
|
+
# needs allow only String
|
40
|
+
# needs's default value => "For TODO: write potential needs or solution"
|
41
|
+
needs "For TODO: write potential needs or solution"
|
42
|
+
|
43
|
+
# who [target]
|
44
|
+
# target is required
|
45
|
+
# target allow only String
|
46
|
+
# target's default value => "who TODO: write target"
|
47
|
+
target "who TODO: write target"
|
48
|
+
|
49
|
+
# The [product_name]
|
50
|
+
# product_name is required
|
51
|
+
# product_name allow only String
|
52
|
+
# product_name's default value => "The TODO: write product_name"
|
53
|
+
product_name "The TODO: write product_name"
|
54
|
+
|
55
|
+
# is a [category]
|
56
|
+
# category is required
|
57
|
+
# category allow only String
|
58
|
+
# category's default value => "is a TODO: write category"
|
59
|
+
category "is a TODO: write category"
|
60
|
+
|
61
|
+
# that [merit]
|
62
|
+
# merit is required
|
63
|
+
# merit allow only String
|
64
|
+
# merit's default value => "that TODO: write merit"
|
65
|
+
merit "that TODO: write merit"
|
66
|
+
|
67
|
+
# Unlike [difference of competition]
|
68
|
+
# diff_of_competition is required
|
69
|
+
# diff_of_competition allow only String
|
70
|
+
# diff_of_competition's default value => "Unlike TODO: write difference of competition"
|
71
|
+
diff_of_competition "Unlike TODO: write difference of competition"
|
72
|
+
|
73
|
+
# it [most important point]
|
74
|
+
# most_important_point is required
|
75
|
+
# most_important_point allow only String
|
76
|
+
# most_important_point's default value => "it TODO: write most important point"
|
77
|
+
most_important_point "it TODO: write most important point"
|
78
|
+
~~~
|
79
|
+
|
80
|
+
* edit Epitchfile manually.
|
81
|
+
|
82
|
+
~~~ruby
|
83
|
+
# encoding: utf-8
|
84
|
+
|
85
|
+
needs "For creator"
|
86
|
+
target "who supply some product"
|
87
|
+
product_name "The Elevator Pitch Generator"
|
88
|
+
category "is a generator of Elevator Pitch"
|
89
|
+
merit "that generate Elevator Pitch template automatically"
|
90
|
+
diff_of_competition "Unlike manuall-create that is redundant operation"
|
91
|
+
most_important_point "it provides formated template for Elevator Pitch"
|
92
|
+
~~~
|
93
|
+
|
94
|
+
* generate Elevator Pitch from Epitchfile
|
95
|
+
|
96
|
+
~~~bash
|
97
|
+
epitchgen generate
|
98
|
+
~~~
|
99
|
+
|
100
|
+
./elevator_pitch/README.md
|
101
|
+
|
102
|
+
~~~ruby
|
103
|
+
# The Elevator Pitch Generator's Elevator Pitch
|
104
|
+
|
105
|
+
## For creator
|
106
|
+
## who supply some product
|
107
|
+
## The Elevator Pitch Generator
|
108
|
+
## is a generator of Elevator Pitch
|
109
|
+
## that generate Elevator Pitch template automatically
|
110
|
+
## Unlike manuall-create that is redundant operation
|
111
|
+
## it provides formated template for Elevator Pitch
|
112
|
+
~~~
|
113
|
+
|
114
|
+
* append link in your project-root README.md
|
115
|
+
|
116
|
+
~~~markdown
|
117
|
+
[Elevator Pitch](./elevator_pitch/README.md)
|
118
|
+
~~~
|
119
|
+
|
120
|
+
## History
|
121
|
+
* version 0.0.1 : first release.
|
122
|
+
|
123
|
+
## Contributing
|
124
|
+
|
125
|
+
1. Fork it
|
126
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
127
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
128
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
129
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
data/bin/epitchgen
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# encoding: utf-8
|
3
|
+
|
4
|
+
require 'elevator_pitch_generator_core'
|
5
|
+
require 'elevator_pitch_generator/version'
|
6
|
+
require 'thor'
|
7
|
+
|
8
|
+
module ElevatorPitchGenerator
|
9
|
+
# = ElevatorPitchGenerator CLI
|
10
|
+
class CLI < Thor
|
11
|
+
class_option :help, type: :boolean, aliases: '-h', desc: 'help message.'
|
12
|
+
class_option :version, type: :boolean, desc: 'version'
|
13
|
+
|
14
|
+
desc 'generate', 'generate Elevator Pitch to ./elevator_pitch/README.md'
|
15
|
+
def generate
|
16
|
+
ElevatorPitchGenerator::Core.new.execute
|
17
|
+
end
|
18
|
+
|
19
|
+
desc 'init', 'generate Epitchfile'
|
20
|
+
def init
|
21
|
+
ElevatorPitchGenerator::Core.new.init
|
22
|
+
end
|
23
|
+
|
24
|
+
desc 'version', 'version'
|
25
|
+
def version
|
26
|
+
p ElevatorPitchGenerator::VERSION
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
ElevatorPitchGenerator::CLI.start(ARGV)
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# The Elevator Pitch Generator's Elevator Pitch
|
2
|
+
|
3
|
+
## For creator
|
4
|
+
## who supply some product
|
5
|
+
## The Elevator Pitch Generator
|
6
|
+
## is a generator of Elevator Pitch
|
7
|
+
## that generate Elevator Pitch template automatically
|
8
|
+
## Unlike manuall-create that is redundant operation
|
9
|
+
## it provides formated template for Elevator Pitch
|
@@ -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 'elevator_pitch_generator/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "elevator_pitch_generator"
|
8
|
+
spec.version = ElevatorPitchGenerator::VERSION
|
9
|
+
spec.authors = ["tbpgr"]
|
10
|
+
spec.email = ["tbpgr@tbpgr.jp"]
|
11
|
+
spec.description = %q{Elevator Pitch Generator is Elevator Pitch Generator.}
|
12
|
+
spec.summary = %q{Elevator Pitch Generator is Elevator Pitch Generator.}
|
13
|
+
spec.homepage = "https://github.com/tbpgr/elevator_pitch_generator"
|
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_runtime_dependency "activesupport", "~> 4.0.1"
|
22
|
+
spec.add_runtime_dependency "activemodel", "~> 4.0.2"
|
23
|
+
|
24
|
+
spec.add_development_dependency "bundler", "~> 1.3"
|
25
|
+
spec.add_development_dependency "rake"
|
26
|
+
spec.add_development_dependency "rspec", "~> 2.14.1"
|
27
|
+
spec.add_development_dependency "simplecov", "~> 0.8.2"
|
28
|
+
end
|
@@ -0,0 +1,104 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
require 'elevator_pitch_generator_dsl'
|
3
|
+
require 'erb'
|
4
|
+
|
5
|
+
# ElevatorPitchGenerator
|
6
|
+
module ElevatorPitchGenerator
|
7
|
+
# ElevatorPitchGenerator Core
|
8
|
+
class Core
|
9
|
+
ELEVATOR_PITCH_GENERATOR_FILE = 'Epitchfile'
|
10
|
+
ELEVATOR_PITCH_GENERATOR_TEMPLATE = <<-EOS
|
11
|
+
# encoding: utf-8
|
12
|
+
|
13
|
+
# For [potential needs or solution]
|
14
|
+
# needs is required
|
15
|
+
# needs allow only String
|
16
|
+
# needs's default value => "For TODO: write potential needs or solution"
|
17
|
+
needs "For TODO: write potential needs or solution"
|
18
|
+
|
19
|
+
# who [target]
|
20
|
+
# target is required
|
21
|
+
# target allow only String
|
22
|
+
# target's default value => "who TODO: write target"
|
23
|
+
target "who TODO: write target"
|
24
|
+
|
25
|
+
# The [product_name]
|
26
|
+
# product_name is required
|
27
|
+
# product_name allow only String
|
28
|
+
# product_name's default value => "The TODO: write product_name"
|
29
|
+
product_name "The TODO: write product_name"
|
30
|
+
|
31
|
+
# is a [category]
|
32
|
+
# category is required
|
33
|
+
# category allow only String
|
34
|
+
# category's default value => "is a TODO: write category"
|
35
|
+
category "is a TODO: write category"
|
36
|
+
|
37
|
+
# that [merit]
|
38
|
+
# merit is required
|
39
|
+
# merit allow only String
|
40
|
+
# merit's default value => "that TODO: write merit"
|
41
|
+
merit "that TODO: write merit"
|
42
|
+
|
43
|
+
# Unlike [difference of competition]
|
44
|
+
# diff_of_competition is required
|
45
|
+
# diff_of_competition allow only String
|
46
|
+
# diff_of_competition's default value => "Unlike TODO: write difference of competition"
|
47
|
+
diff_of_competition "Unlike TODO: write difference of competition"
|
48
|
+
|
49
|
+
# it [most important point]
|
50
|
+
# most_important_point is required
|
51
|
+
# most_important_point allow only String
|
52
|
+
# most_important_point's default value => "it TODO: write most important point"
|
53
|
+
most_important_point "it TODO: write most important point"
|
54
|
+
EOS
|
55
|
+
|
56
|
+
ELEVATOR_PITCH_OUTPUT_PATH = './elevator_pitch/README.md'
|
57
|
+
ELEVATOR_PITCH_OUTPUT_TEMPLATE = <<-EOS
|
58
|
+
# <%=product_name%>'s Elevator Pitch
|
59
|
+
|
60
|
+
## <%=needs%>
|
61
|
+
## <%=target%>
|
62
|
+
## <%=product_name%>
|
63
|
+
## <%=category%>
|
64
|
+
## <%=merit%>
|
65
|
+
## <%=diff_of_competition%>
|
66
|
+
## <%=most_important_point%>
|
67
|
+
EOS
|
68
|
+
|
69
|
+
# == generate Epitchfile to current directory.
|
70
|
+
def init
|
71
|
+
File.open(ELEVATOR_PITCH_GENERATOR_FILE, 'w') { |f|f.puts ELEVATOR_PITCH_GENERATOR_TEMPLATE }
|
72
|
+
end
|
73
|
+
|
74
|
+
# == generate Elevator Pitch
|
75
|
+
def execute
|
76
|
+
src = read_dsl
|
77
|
+
dsl = ElevatorPitchGenerator::Dsl.new
|
78
|
+
dsl.instance_eval src
|
79
|
+
Dir.mkdir('elevator_pitch') unless Dir.exists?('elevator_pitch')
|
80
|
+
File.open(ELEVATOR_PITCH_OUTPUT_PATH, 'w:UTF-8') { |f|f.print adapt_template(dsl) }
|
81
|
+
end
|
82
|
+
|
83
|
+
private
|
84
|
+
|
85
|
+
def read_dsl
|
86
|
+
File.open(ELEVATOR_PITCH_GENERATOR_FILE) { |f|f.read }
|
87
|
+
end
|
88
|
+
|
89
|
+
# rubocop:disable UselessAssignment
|
90
|
+
def adapt_template(dsl)
|
91
|
+
product_name = dsl.elevator_pitch_generator.product_name
|
92
|
+
needs = dsl.elevator_pitch_generator.needs
|
93
|
+
target = dsl.elevator_pitch_generator.target
|
94
|
+
product_name = dsl.elevator_pitch_generator.product_name
|
95
|
+
category = dsl.elevator_pitch_generator.category
|
96
|
+
merit = dsl.elevator_pitch_generator.merit
|
97
|
+
diff_of_competition = dsl.elevator_pitch_generator.diff_of_competition
|
98
|
+
most_important_point = dsl.elevator_pitch_generator.most_important_point
|
99
|
+
erb = ERB.new(ELEVATOR_PITCH_OUTPUT_TEMPLATE)
|
100
|
+
erb.result(binding)
|
101
|
+
end
|
102
|
+
# rubocop:enable UselessAssignment
|
103
|
+
end
|
104
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
require 'elevator_pitch_generator_dsl_model'
|
3
|
+
|
4
|
+
module ElevatorPitchGenerator
|
5
|
+
# DSL
|
6
|
+
class Dsl
|
7
|
+
attr_accessor :elevator_pitch_generator
|
8
|
+
|
9
|
+
# rubocop:disable Eval
|
10
|
+
# String Define
|
11
|
+
[:needs, :target, :product_name, :category, :merit, :diff_of_competition, :most_important_point].each do |f|
|
12
|
+
define_method f do |value|
|
13
|
+
eval "@elevator_pitch_generator.#{f.to_s} = '#{value}'", binding
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
# Array/Hash/Boolean Define
|
18
|
+
[].each do |f|
|
19
|
+
define_method f do |value|
|
20
|
+
eval "@elevator_pitch_generator.#{f.to_s} = #{value}", binding
|
21
|
+
end
|
22
|
+
end
|
23
|
+
# rubocop:enable Eval
|
24
|
+
|
25
|
+
def initialize
|
26
|
+
@elevator_pitch_generator = ElevatorPitchGenerator::DslModel.new
|
27
|
+
@elevator_pitch_generator.needs = 'For TODO: write potential needs or solution'
|
28
|
+
@elevator_pitch_generator.target = 'who TODO: write target'
|
29
|
+
@elevator_pitch_generator.product_name = 'The TODO: write product_name'
|
30
|
+
@elevator_pitch_generator.category = 'is a TODO: write category'
|
31
|
+
@elevator_pitch_generator.merit = 'that TODO: write merit'
|
32
|
+
@elevator_pitch_generator.diff_of_competition = 'Unlike TODO: write difference of competition'
|
33
|
+
@elevator_pitch_generator.most_important_point = 'it TODO: write most important point'
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
require 'active_model'
|
3
|
+
|
4
|
+
module ElevatorPitchGenerator
|
5
|
+
# DslModel
|
6
|
+
class DslModel
|
7
|
+
include ActiveModel::Model
|
8
|
+
|
9
|
+
# For [potential needs or solution]
|
10
|
+
attr_accessor :needs
|
11
|
+
validates :needs, presence: true
|
12
|
+
|
13
|
+
# who [target]
|
14
|
+
attr_accessor :target
|
15
|
+
validates :target, presence: true
|
16
|
+
|
17
|
+
# The [product_name]
|
18
|
+
attr_accessor :product_name
|
19
|
+
validates :product_name, presence: true
|
20
|
+
|
21
|
+
# is a [category]
|
22
|
+
attr_accessor :category
|
23
|
+
validates :category, presence: true
|
24
|
+
|
25
|
+
# that [merit]
|
26
|
+
attr_accessor :merit
|
27
|
+
validates :merit, presence: true
|
28
|
+
|
29
|
+
# Unlike [difference of competition]
|
30
|
+
attr_accessor :diff_of_competition
|
31
|
+
validates :diff_of_competition, presence: true
|
32
|
+
|
33
|
+
# it [most important point]
|
34
|
+
attr_accessor :most_important_point
|
35
|
+
validates :most_important_point, presence: true
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,74 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
require 'spec_helper'
|
3
|
+
require 'elevator_pitch_generator_core'
|
4
|
+
|
5
|
+
describe ElevatorPitchGenerator::Core do
|
6
|
+
context :execute do
|
7
|
+
OUTPUT_TMP_DIR = 'tmp'
|
8
|
+
INPUT_CASE1 = <<-EOS
|
9
|
+
# encoding: utf-8
|
10
|
+
|
11
|
+
needs "For creator"
|
12
|
+
target "who supply some product"
|
13
|
+
product_name "The Elevator Pitch Generator"
|
14
|
+
category "is a generator of Elevator Pitch"
|
15
|
+
merit "that generate Elevator Pitch template automatically"
|
16
|
+
diff_of_competition "Unlike manuall-create that is redundant operation"
|
17
|
+
most_important_point "it provides formated template for Elevator Pitch"
|
18
|
+
EOS
|
19
|
+
|
20
|
+
EXPECTED_OUTPUT_CASE1 = <<-EOS
|
21
|
+
# The Elevator Pitch Generator's Elevator Pitch
|
22
|
+
|
23
|
+
## For creator
|
24
|
+
## who supply some product
|
25
|
+
## The Elevator Pitch Generator
|
26
|
+
## is a generator of Elevator Pitch
|
27
|
+
## that generate Elevator Pitch template automatically
|
28
|
+
## Unlike manuall-create that is redundant operation
|
29
|
+
## it provides formated template for Elevator Pitch
|
30
|
+
EOS
|
31
|
+
cases = [
|
32
|
+
{
|
33
|
+
case_no: 1,
|
34
|
+
case_title: 'valid elevator pitch',
|
35
|
+
input: INPUT_CASE1,
|
36
|
+
expected_file_name: './elevator_pitch/README.md',
|
37
|
+
expected_file_content: EXPECTED_OUTPUT_CASE1,
|
38
|
+
},
|
39
|
+
]
|
40
|
+
|
41
|
+
cases.each do |c|
|
42
|
+
it "|case_no=#{c[:case_no]}|case_title=#{c[:case_title]}" do
|
43
|
+
begin
|
44
|
+
case_before c
|
45
|
+
|
46
|
+
# -- given --
|
47
|
+
elevator_pitch_generator_core = ElevatorPitchGenerator::Core.new
|
48
|
+
|
49
|
+
# -- when --
|
50
|
+
elevator_pitch_generator_core.execute
|
51
|
+
|
52
|
+
# -- then --
|
53
|
+
file_exists = File.exists?(c[:expected_file_name])
|
54
|
+
expect(file_exists).to be_true
|
55
|
+
actual = File.read(c[:expected_file_name])
|
56
|
+
expect(actual).to eq(c[:expected_file_content])
|
57
|
+
ensure
|
58
|
+
case_after c
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
def case_before(c)
|
63
|
+
Dir.mkdir(OUTPUT_TMP_DIR) unless Dir.exists? OUTPUT_TMP_DIR
|
64
|
+
Dir.chdir(OUTPUT_TMP_DIR)
|
65
|
+
File.open(ElevatorPitchGenerator::Core::ELEVATOR_PITCH_GENERATOR_FILE, 'w:utf-8') { |f|f.print c[:input] }
|
66
|
+
end
|
67
|
+
|
68
|
+
def case_after(c)
|
69
|
+
Dir.chdir('../')
|
70
|
+
FileUtils.rm_rf(OUTPUT_TMP_DIR) if Dir.exists? OUTPUT_TMP_DIR
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
data/spec/spec_helper.rb
ADDED
metadata
ADDED
@@ -0,0 +1,134 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: elevator_pitch_generator
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- tbpgr
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2014-02-10 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: activesupport
|
16
|
+
requirement: &28388292 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 4.0.1
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *28388292
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: activemodel
|
27
|
+
requirement: &28388004 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ~>
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 4.0.2
|
33
|
+
type: :runtime
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *28388004
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: bundler
|
38
|
+
requirement: &28387728 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ~>
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '1.3'
|
44
|
+
type: :development
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *28387728
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: rake
|
49
|
+
requirement: &28387500 !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
type: :development
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: *28387500
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: rspec
|
60
|
+
requirement: &28387176 !ruby/object:Gem::Requirement
|
61
|
+
none: false
|
62
|
+
requirements:
|
63
|
+
- - ~>
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: 2.14.1
|
66
|
+
type: :development
|
67
|
+
prerelease: false
|
68
|
+
version_requirements: *28387176
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: simplecov
|
71
|
+
requirement: &28386876 !ruby/object:Gem::Requirement
|
72
|
+
none: false
|
73
|
+
requirements:
|
74
|
+
- - ~>
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: 0.8.2
|
77
|
+
type: :development
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: *28386876
|
80
|
+
description: Elevator Pitch Generator is Elevator Pitch Generator.
|
81
|
+
email:
|
82
|
+
- tbpgr@tbpgr.jp
|
83
|
+
executables:
|
84
|
+
- epitchgen
|
85
|
+
extensions: []
|
86
|
+
extra_rdoc_files: []
|
87
|
+
files:
|
88
|
+
- .gitignore
|
89
|
+
- .rspec
|
90
|
+
- .rubocop.yml
|
91
|
+
- .travis.yml
|
92
|
+
- Epitchfile
|
93
|
+
- Gemfile
|
94
|
+
- LICENSE.txt
|
95
|
+
- README.md
|
96
|
+
- Rakefile
|
97
|
+
- bin/epitchgen
|
98
|
+
- elevator_pitch/README.md
|
99
|
+
- elevator_pitch_generator.gemspec
|
100
|
+
- lib/elevator_pitch_generator/version.rb
|
101
|
+
- lib/elevator_pitch_generator_core.rb
|
102
|
+
- lib/elevator_pitch_generator_dsl.rb
|
103
|
+
- lib/elevator_pitch_generator_dsl_model.rb
|
104
|
+
- spec/elevator_pitch_generator_core_spec.rb
|
105
|
+
- spec/spec_helper.rb
|
106
|
+
homepage: https://github.com/tbpgr/elevator_pitch_generator
|
107
|
+
licenses:
|
108
|
+
- MIT
|
109
|
+
post_install_message:
|
110
|
+
rdoc_options: []
|
111
|
+
require_paths:
|
112
|
+
- lib
|
113
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
114
|
+
none: false
|
115
|
+
requirements:
|
116
|
+
- - ! '>='
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '0'
|
119
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
120
|
+
none: false
|
121
|
+
requirements:
|
122
|
+
- - ! '>='
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
requirements: []
|
126
|
+
rubyforge_project:
|
127
|
+
rubygems_version: 1.8.11
|
128
|
+
signing_key:
|
129
|
+
specification_version: 3
|
130
|
+
summary: Elevator Pitch Generator is Elevator Pitch Generator.
|
131
|
+
test_files:
|
132
|
+
- spec/elevator_pitch_generator_core_spec.rb
|
133
|
+
- spec/spec_helper.rb
|
134
|
+
has_rdoc:
|