ore 0.10.0 → 0.11.0
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 +7 -0
- data/.gitignore +4 -5
- data/.gitmodules +54 -0
- data/ChangeLog.md +90 -21
- data/Gemfile +12 -0
- data/LICENSE.txt +1 -1
- data/README.md +61 -27
- data/Rakefile +23 -24
- data/data/ore/abbreviations.txt +47 -0
- data/data/ore/common_namespaces.yml +13 -0
- data/data/ore/templates/apache/LICENSE.txt +202 -0
- data/data/ore/templates/apache/NOTICE.txt.erb +5 -0
- data/data/ore/templates/apache/lib/[namespace_path]/_copyright.erb +18 -0
- data/data/ore/templates/apache/template.yml +3 -0
- data/data/ore/templates/bsd/LICENSE.txt.erb +23 -0
- data/data/ore/templates/bsd/template.yml +6 -0
- data/data/ore/templates/bundler/Gemfile.erb +1 -1
- data/data/ore/templates/bundler/_tasks.erb +3 -0
- data/data/ore/templates/bundler/template.yml +5 -4
- data/data/ore/templates/code_climate/_badges.erb +1 -0
- data/data/ore/templates/code_climate/template.yml +2 -0
- data/data/ore/templates/{base → gem}/ChangeLog.md.erb +0 -0
- data/data/ore/templates/{base → gem}/ChangeLog.rdoc.erb +0 -0
- data/data/ore/templates/{base → gem}/ChangeLog.tt.erb +0 -0
- data/data/ore/templates/{base → gem}/README.md.erb +10 -4
- data/data/ore/templates/{base → gem}/README.rdoc.erb +12 -2
- data/data/ore/templates/{base → gem}/README.tt.erb +10 -4
- data/data/ore/templates/gem/Rakefile.erb +15 -0
- data/data/ore/templates/{gemspec → gem}/[name].gemspec.erb +21 -1
- data/data/ore/templates/{base → gem}/lib/[namespace_path].rb.erb +0 -0
- data/data/ore/templates/{base → gem}/lib/[namespace_path]/version.rb.erb +4 -0
- data/data/ore/templates/gem/template.yml +5 -0
- data/data/ore/templates/gem_package_task/template.yml +3 -0
- data/data/ore/templates/gemspec_yml/[name].gemspec.erb +1 -1
- data/data/ore/templates/gpl/COPYING.txt +674 -0
- data/data/ore/templates/gpl/lib/[namespace_path]/_copyright.erb +20 -0
- data/data/ore/templates/gpl/template.yml +7 -0
- data/data/ore/templates/lgpl/COPYING.txt +165 -0
- data/data/ore/templates/lgpl/lib/[namespace_path]/_copyright.erb +20 -0
- data/data/ore/templates/lgpl/template.yml +6 -0
- data/data/ore/templates/minitest/_tasks.erb +7 -0
- data/data/ore/templates/minitest/template.yml +6 -0
- data/data/ore/templates/minitest/test/helper.rb.erb +11 -0
- data/data/ore/templates/{mini_test → minitest}/test/test_[name].rb.erb +1 -1
- data/data/ore/templates/{base → mit}/LICENSE.txt.erb +0 -0
- data/data/ore/templates/mit/template.yml +8 -0
- data/data/ore/templates/rdoc/.document.erb +6 -0
- data/data/ore/templates/rdoc/.rdoc_options.erb +16 -0
- data/data/ore/templates/rdoc/_tasks.erb +5 -9
- data/data/ore/templates/rdoc/template.yml +2 -5
- data/data/ore/templates/rspec/_tasks.erb +1 -2
- data/data/ore/templates/rspec/spec/[namespace_dir]_spec.rb.erb +1 -1
- data/data/ore/templates/rspec/spec/spec_helper.rb.erb +0 -3
- data/data/ore/templates/rspec/template.yml +2 -2
- data/data/ore/templates/rubygems_tasks/_tasks.erb +0 -1
- data/data/ore/templates/rubygems_tasks/template.yml +3 -0
- data/data/ore/templates/test_unit/template.yml +1 -1
- data/data/ore/templates/test_unit/test/helper.rb.erb +3 -13
- data/data/ore/templates/travis/.travis.yml +6 -0
- data/data/ore/templates/travis/_badges.erb +1 -0
- data/data/ore/templates/yard/.document.erb +3 -1
- data/data/ore/templates/yard/_tasks.erb +2 -3
- data/data/ore/templates/yard/template.yml +2 -1
- data/gemspec.yml +6 -7
- data/lib/ore/actions.rb +1 -1
- data/lib/ore/cli.rb +1 -0
- data/lib/ore/config.rb +33 -41
- data/lib/ore/generator.rb +104 -66
- data/lib/ore/naming.rb +12 -19
- data/lib/ore/options.rb +71 -40
- data/lib/ore/template/directory.rb +3 -9
- data/lib/ore/template/helpers.rb +26 -2
- data/lib/ore/template/helpers/markdown.rb +96 -0
- data/lib/ore/template/helpers/rdoc.rb +96 -0
- data/lib/ore/template/helpers/textile.rb +106 -0
- data/lib/ore/template/markup.rb +19 -0
- data/lib/ore/version.rb +1 -1
- data/ore.gemspec +11 -0
- data/spec/gemspec_examples.rb +8 -8
- data/spec/generator_spec.rb +231 -181
- data/spec/helpers/generator.rb +5 -1
- data/spec/naming_spec.rb +11 -11
- data/spec/spec_helper.rb +0 -1
- data/spec/template/helpers/markdown_spec.rb +84 -0
- data/spec/template/helpers/rdoc_spec.rb +84 -0
- data/spec/template/helpers/textile_spec.rb +92 -0
- metadata +84 -85
- data/.gemtest +0 -0
- data/data/ore/templates/base/Rakefile.erb +0 -25
- data/data/ore/templates/base/template.yml +0 -2
- data/data/ore/templates/bundler_tasks/_tasks.erb +0 -1
- data/data/ore/templates/bundler_tasks/template.yml +0 -6
- data/data/ore/templates/gemspec/template.yml +0 -2
- data/data/ore/templates/gemspec_yml/template.yml +0 -2
- data/data/ore/templates/mini_test/template.yml +0 -3
- data/data/ore/templates/mini_test/test/helper.rb.erb +0 -26
- data/data/ore/templates/rdoc/.document +0 -4
data/spec/helpers/generator.rb
CHANGED
@@ -12,7 +12,7 @@ module Helpers
|
|
12
12
|
|
13
13
|
@generator = Ore::Generator.new(
|
14
14
|
[path],
|
15
|
-
options.merge(:
|
15
|
+
options.merge(quiet: true)
|
16
16
|
)
|
17
17
|
@generator.invoke_all
|
18
18
|
|
@@ -22,6 +22,10 @@ module Helpers
|
|
22
22
|
end
|
23
23
|
end
|
24
24
|
|
25
|
+
def rakefile
|
26
|
+
@path.join('Rakefile').read
|
27
|
+
end
|
28
|
+
|
25
29
|
def rspec_opts
|
26
30
|
@path.join('.rspec').read
|
27
31
|
end
|
data/spec/naming_spec.rb
CHANGED
@@ -10,47 +10,47 @@ describe Naming do
|
|
10
10
|
|
11
11
|
describe "underscore" do
|
12
12
|
it "should underscore CamelCase names" do
|
13
|
-
subject.underscore('FooBar').
|
13
|
+
expect(subject.underscore('FooBar')).to eq('foo_bar')
|
14
14
|
end
|
15
15
|
|
16
16
|
it "should not add leading underscores to Capitalized names" do
|
17
|
-
subject.underscore('Foo').
|
17
|
+
expect(subject.underscore('Foo')).to eq('foo')
|
18
18
|
end
|
19
19
|
|
20
20
|
it "should not add tailing underscores to CamelCase names" do
|
21
|
-
subject.underscore('FooX').
|
21
|
+
expect(subject.underscore('FooX')).to eq('foox')
|
22
22
|
end
|
23
23
|
|
24
24
|
it "should not add underscores when they already exist" do
|
25
|
-
subject.underscore('Foo_Bar').
|
25
|
+
expect(subject.underscore('Foo_Bar')).to eq('foo_bar')
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
29
29
|
it "should guess the module names from a project name" do
|
30
|
-
subject.modules_of('foo-bar').
|
30
|
+
expect(subject.modules_of('foo-bar')).to eq(['Foo', 'Bar'])
|
31
31
|
end
|
32
32
|
|
33
33
|
it "should filter out obvious names from the module names" do
|
34
|
-
subject.modules_of('ruby-foo').
|
34
|
+
expect(subject.modules_of('ruby-foo')).to eq(['Foo'])
|
35
35
|
end
|
36
36
|
|
37
37
|
it "should recognize common acronyms in project names" do
|
38
|
-
subject.modules_of('ffi-bar').
|
38
|
+
expect(subject.modules_of('ffi-bar')).to eq(['FFI', 'Bar'])
|
39
39
|
end
|
40
40
|
|
41
41
|
it "should guess the namespace from a project name" do
|
42
|
-
subject.namespace_of('foo-bar').
|
42
|
+
expect(subject.namespace_of('foo-bar')).to eq('Foo::Bar')
|
43
43
|
end
|
44
44
|
|
45
45
|
it "should guess the namespace directories from a project name" do
|
46
|
-
subject.namespace_dirs_of('foo-bar').
|
46
|
+
expect(subject.namespace_dirs_of('foo-bar')).to eq(['foo', 'bar'])
|
47
47
|
end
|
48
48
|
|
49
49
|
it "should filter out namespaces that are rarely used in directory names" do
|
50
|
-
subject.namespace_dirs_of('ruby-foo').
|
50
|
+
expect(subject.namespace_dirs_of('ruby-foo')).to eq(['foo'])
|
51
51
|
end
|
52
52
|
|
53
53
|
it "should guess the namespace directory from a project name" do
|
54
|
-
subject.namespace_path_of('foo-bar').
|
54
|
+
expect(subject.namespace_path_of('foo-bar')).to eq('foo/bar')
|
55
55
|
end
|
56
56
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -0,0 +1,84 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'ore/template/helpers/markdown'
|
3
|
+
|
4
|
+
describe Ore::Template::Helpers::Markdown do
|
5
|
+
subject do
|
6
|
+
Object.new.extend described_class
|
7
|
+
end
|
8
|
+
|
9
|
+
describe "#link_to" do
|
10
|
+
let(:text) { "foo bar" }
|
11
|
+
let(:url) { "https://example.com/foo/bar" }
|
12
|
+
|
13
|
+
it "should return a link with the text and url" do
|
14
|
+
expect(subject.link_to(text,url)).to be == "[#{text}](#{url})"
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
describe "#image" do
|
19
|
+
let(:url) { "https://example.com/foo/bar.png" }
|
20
|
+
|
21
|
+
context "with alt text" do
|
22
|
+
let(:alt) { "foo bar" }
|
23
|
+
|
24
|
+
it "should return a link with the alt text and url" do
|
25
|
+
expect(subject.image(url,alt)).to be == ""
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
context "without alt text" do
|
30
|
+
it "should return a link with the alt text and url" do
|
31
|
+
expect(subject.image(url)).to be == ""
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
describe "#h1" do
|
37
|
+
let(:title) { "Foo Bar" }
|
38
|
+
|
39
|
+
it "should return a h1 header" do
|
40
|
+
expect(subject.h1(title)).to be == "# #{title}"
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
describe "#h2" do
|
45
|
+
let(:title) { "Foo Bar" }
|
46
|
+
|
47
|
+
it "should return a h2 header" do
|
48
|
+
expect(subject.h2(title)).to be == "## #{title}"
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
describe "#h3" do
|
53
|
+
let(:title) { "Foo Bar" }
|
54
|
+
|
55
|
+
it "should return a h3 header" do
|
56
|
+
expect(subject.h3(title)).to be == "### #{title}"
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
describe "#h4" do
|
61
|
+
let(:title) { "Foo Bar" }
|
62
|
+
|
63
|
+
it "should return a h4 header" do
|
64
|
+
expect(subject.h4(title)).to be == "#### #{title}"
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
describe "#pre" do
|
69
|
+
let(:lines) do
|
70
|
+
[
|
71
|
+
%{puts "hello"},
|
72
|
+
%{},
|
73
|
+
%{puts "world"}
|
74
|
+
]
|
75
|
+
end
|
76
|
+
let(:code) { lines.join($/) }
|
77
|
+
|
78
|
+
it "should indent each line" do
|
79
|
+
expect(subject.pre(code)).to be == lines.map { |line|
|
80
|
+
" #{line}"
|
81
|
+
}.join($/)
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
@@ -0,0 +1,84 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'ore/template/helpers/rdoc'
|
3
|
+
|
4
|
+
describe Ore::Template::Helpers::RDoc do
|
5
|
+
subject do
|
6
|
+
Object.new.extend described_class
|
7
|
+
end
|
8
|
+
|
9
|
+
describe "#link_to" do
|
10
|
+
let(:text) { "foo bar" }
|
11
|
+
let(:url) { "https://example.com/foo/bar" }
|
12
|
+
|
13
|
+
it "should return a link with the text and url" do
|
14
|
+
expect(subject.link_to(text,url)).to be == %{{#{text}}[#{url}]}
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
describe "#image" do
|
19
|
+
let(:url) { "https://example.com/foo/bar.png" }
|
20
|
+
|
21
|
+
context "with alt text" do
|
22
|
+
let(:alt) { "foo bar" }
|
23
|
+
|
24
|
+
it "should return a link with the alt text and url" do
|
25
|
+
expect(subject.image(url,alt)).to be == "{#{alt}}[rdoc-image:#{url}]"
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
context "without alt text" do
|
30
|
+
it "should return a link with the alt text and url" do
|
31
|
+
expect(subject.image(url)).to be == "{}[rdoc-image:#{url}]"
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
describe "#h1" do
|
37
|
+
let(:title) { "Foo Bar" }
|
38
|
+
|
39
|
+
it "should return a h1 header" do
|
40
|
+
expect(subject.h1(title)).to be == "= #{title}"
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
describe "#h2" do
|
45
|
+
let(:title) { "Foo Bar" }
|
46
|
+
|
47
|
+
it "should return a h2 header" do
|
48
|
+
expect(subject.h2(title)).to be == "== #{title}"
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
describe "#h3" do
|
53
|
+
let(:title) { "Foo Bar" }
|
54
|
+
|
55
|
+
it "should return a h3 header" do
|
56
|
+
expect(subject.h3(title)).to be == "=== #{title}"
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
describe "#h4" do
|
61
|
+
let(:title) { "Foo Bar" }
|
62
|
+
|
63
|
+
it "should return a h4 header" do
|
64
|
+
expect(subject.h4(title)).to be == "==== #{title}"
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
describe "#pre" do
|
69
|
+
let(:lines) do
|
70
|
+
[
|
71
|
+
%{puts "hello"},
|
72
|
+
%{},
|
73
|
+
%{puts "world"}
|
74
|
+
]
|
75
|
+
end
|
76
|
+
let(:code) { lines.join($/) }
|
77
|
+
|
78
|
+
it "should indent each line" do
|
79
|
+
expect(subject.pre(code)).to be == lines.map { |line|
|
80
|
+
" #{line}"
|
81
|
+
}.join($/)
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
@@ -0,0 +1,92 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'ore/template/helpers/textile'
|
3
|
+
|
4
|
+
describe Ore::Template::Helpers::Textile do
|
5
|
+
subject do
|
6
|
+
Object.new.extend described_class
|
7
|
+
end
|
8
|
+
|
9
|
+
describe "#link_to" do
|
10
|
+
let(:text) { "foo bar" }
|
11
|
+
let(:url) { "https://example.com/foo/bar" }
|
12
|
+
|
13
|
+
it "should return a link with the text and url" do
|
14
|
+
expect(subject.link_to(text,url)).to be == %{"#{text}":#{url}}
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
describe "#image" do
|
19
|
+
let(:url) { "https://example.com/foo/bar.png" }
|
20
|
+
|
21
|
+
context "with alt text" do
|
22
|
+
let(:alt) { "foo bar" }
|
23
|
+
|
24
|
+
it "should return a link with the alt text and url" do
|
25
|
+
expect(subject.image(url,alt)).to be == "!#{url}(#{alt})!"
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
context "without alt text" do
|
30
|
+
it "should return a link with the alt text and url" do
|
31
|
+
expect(subject.image(url)).to be == "!#{url}!"
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
describe "#h1" do
|
37
|
+
let(:title) { "Foo Bar" }
|
38
|
+
|
39
|
+
it "should return a h1 header" do
|
40
|
+
expect(subject.h1(title)).to be == "h1. #{title}"
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
describe "#h2" do
|
45
|
+
let(:title) { "Foo Bar" }
|
46
|
+
|
47
|
+
it "should return a h2 header" do
|
48
|
+
expect(subject.h2(title)).to be == "h2. #{title}"
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
describe "#h3" do
|
53
|
+
let(:title) { "Foo Bar" }
|
54
|
+
|
55
|
+
it "should return a h3 header" do
|
56
|
+
expect(subject.h3(title)).to be == "h3. #{title}"
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
describe "#h4" do
|
61
|
+
let(:title) { "Foo Bar" }
|
62
|
+
|
63
|
+
it "should return a h4 header" do
|
64
|
+
expect(subject.h4(title)).to be == "h4. #{title}"
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
describe "#pre" do
|
69
|
+
context "with a single line" do
|
70
|
+
let(:code) { %{puts "hello world"} }
|
71
|
+
|
72
|
+
it "should prepend bc." do
|
73
|
+
expect(subject.pre(code)).to be == "bc. #{code}"
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
context "with multiple lines" do
|
78
|
+
let(:lines) do
|
79
|
+
[
|
80
|
+
%{puts "hello"},
|
81
|
+
%{},
|
82
|
+
%{puts "world"}
|
83
|
+
]
|
84
|
+
end
|
85
|
+
let(:code) { lines.join($/) }
|
86
|
+
|
87
|
+
it "should prepend bc.." do
|
88
|
+
expect(subject.pre(code)).to be == "bc.. #{code}"
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
metadata
CHANGED
@@ -1,83 +1,45 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ore
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.11.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Postmodern
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2015-08-26 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: thor
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- - ~>
|
17
|
+
- - "~>"
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0.15'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- - ~>
|
24
|
+
- - "~>"
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '0.15'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
|
-
name:
|
28
|
+
name: bundler
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- - ~>
|
31
|
+
- - "~>"
|
36
32
|
- !ruby/object:Gem::Version
|
37
|
-
version: '0
|
33
|
+
version: '1.0'
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- - ~>
|
38
|
+
- - "~>"
|
44
39
|
- !ruby/object:Gem::Version
|
45
|
-
version: '0
|
46
|
-
|
47
|
-
|
48
|
-
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
|
-
requirements:
|
51
|
-
- - ~>
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: '2.4'
|
54
|
-
type: :development
|
55
|
-
prerelease: false
|
56
|
-
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
|
-
requirements:
|
59
|
-
- - ~>
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '2.4'
|
62
|
-
- !ruby/object:Gem::Dependency
|
63
|
-
name: yard
|
64
|
-
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
|
-
requirements:
|
67
|
-
- - ~>
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: '0.8'
|
70
|
-
type: :development
|
71
|
-
prerelease: false
|
72
|
-
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
|
-
requirements:
|
75
|
-
- - ~>
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
version: '0.8'
|
78
|
-
description: Ore is a flexible Ruby project generator. Unlike other Ruby project generators,
|
79
|
-
Ore provides many builtin templates and allows custom templates to be installed
|
80
|
-
from Git repositories.
|
40
|
+
version: '1.0'
|
41
|
+
description: Ore is a fully configurable and extendable Ruby gem generator. With Ore
|
42
|
+
you spend less time editing files, and more time writing code.
|
81
43
|
email: postmodern.mod3@gmail.com
|
82
44
|
executables:
|
83
45
|
- mine
|
@@ -89,49 +51,66 @@ extra_rdoc_files:
|
|
89
51
|
- LICENSE.txt
|
90
52
|
- README.md
|
91
53
|
files:
|
92
|
-
- .document
|
93
|
-
- .
|
94
|
-
- .
|
95
|
-
- .rspec
|
96
|
-
- .yardopts
|
54
|
+
- ".document"
|
55
|
+
- ".gitignore"
|
56
|
+
- ".gitmodules"
|
57
|
+
- ".rspec"
|
58
|
+
- ".yardopts"
|
97
59
|
- ChangeLog.md
|
60
|
+
- Gemfile
|
98
61
|
- GemspecYML.md
|
99
62
|
- LICENSE.txt
|
100
63
|
- README.md
|
101
64
|
- Rakefile
|
102
65
|
- bin/mine
|
103
66
|
- bin/ore
|
104
|
-
- data/ore/
|
105
|
-
- data/ore/
|
106
|
-
- data/ore/templates/
|
107
|
-
- data/ore/templates/
|
108
|
-
- data/ore/templates/
|
109
|
-
- data/ore/templates/
|
110
|
-
- data/ore/templates/base/README.tt.erb
|
111
|
-
- data/ore/templates/base/Rakefile.erb
|
112
|
-
- data/ore/templates/base/lib/[namespace_path].rb.erb
|
113
|
-
- data/ore/templates/base/lib/[namespace_path]/version.rb.erb
|
114
|
-
- data/ore/templates/base/template.yml
|
67
|
+
- data/ore/abbreviations.txt
|
68
|
+
- data/ore/common_namespaces.yml
|
69
|
+
- data/ore/templates/apache/LICENSE.txt
|
70
|
+
- data/ore/templates/apache/NOTICE.txt.erb
|
71
|
+
- data/ore/templates/apache/lib/[namespace_path]/_copyright.erb
|
72
|
+
- data/ore/templates/apache/template.yml
|
115
73
|
- data/ore/templates/bin/bin/[name].erb
|
74
|
+
- data/ore/templates/bsd/LICENSE.txt.erb
|
75
|
+
- data/ore/templates/bsd/template.yml
|
116
76
|
- data/ore/templates/bundler/Gemfile.erb
|
77
|
+
- data/ore/templates/bundler/_tasks.erb
|
117
78
|
- data/ore/templates/bundler/template.yml
|
118
|
-
- data/ore/templates/
|
119
|
-
- data/ore/templates/
|
79
|
+
- data/ore/templates/code_climate/_badges.erb
|
80
|
+
- data/ore/templates/code_climate/template.yml
|
81
|
+
- data/ore/templates/gem/ChangeLog.md.erb
|
82
|
+
- data/ore/templates/gem/ChangeLog.rdoc.erb
|
83
|
+
- data/ore/templates/gem/ChangeLog.tt.erb
|
84
|
+
- data/ore/templates/gem/README.md.erb
|
85
|
+
- data/ore/templates/gem/README.rdoc.erb
|
86
|
+
- data/ore/templates/gem/README.tt.erb
|
87
|
+
- data/ore/templates/gem/Rakefile.erb
|
88
|
+
- data/ore/templates/gem/[name].gemspec.erb
|
89
|
+
- data/ore/templates/gem/lib/[namespace_path].rb.erb
|
90
|
+
- data/ore/templates/gem/lib/[namespace_path]/version.rb.erb
|
91
|
+
- data/ore/templates/gem/template.yml
|
120
92
|
- data/ore/templates/gem_package_task/_tasks.erb
|
121
93
|
- data/ore/templates/gem_package_task/template.yml
|
122
|
-
- data/ore/templates/gemspec/[name].gemspec.erb
|
123
|
-
- data/ore/templates/gemspec/template.yml
|
124
94
|
- data/ore/templates/gemspec_yml/[name].gemspec.erb
|
125
95
|
- data/ore/templates/gemspec_yml/gemspec.yml.erb
|
126
|
-
- data/ore/templates/gemspec_yml/template.yml
|
127
96
|
- data/ore/templates/git/.gitignore.erb
|
128
97
|
- data/ore/templates/git/template.yml
|
98
|
+
- data/ore/templates/gpl/COPYING.txt
|
99
|
+
- data/ore/templates/gpl/lib/[namespace_path]/_copyright.erb
|
100
|
+
- data/ore/templates/gpl/template.yml
|
129
101
|
- data/ore/templates/hg/.hgignore.erb
|
130
102
|
- data/ore/templates/hg/template.yml
|
131
|
-
- data/ore/templates/
|
132
|
-
- data/ore/templates/
|
133
|
-
- data/ore/templates/
|
134
|
-
- data/ore/templates/
|
103
|
+
- data/ore/templates/lgpl/COPYING.txt
|
104
|
+
- data/ore/templates/lgpl/lib/[namespace_path]/_copyright.erb
|
105
|
+
- data/ore/templates/lgpl/template.yml
|
106
|
+
- data/ore/templates/minitest/_tasks.erb
|
107
|
+
- data/ore/templates/minitest/template.yml
|
108
|
+
- data/ore/templates/minitest/test/helper.rb.erb
|
109
|
+
- data/ore/templates/minitest/test/test_[name].rb.erb
|
110
|
+
- data/ore/templates/mit/LICENSE.txt.erb
|
111
|
+
- data/ore/templates/mit/template.yml
|
112
|
+
- data/ore/templates/rdoc/.document.erb
|
113
|
+
- data/ore/templates/rdoc/.rdoc_options.erb
|
135
114
|
- data/ore/templates/rdoc/_tasks.erb
|
136
115
|
- data/ore/templates/rdoc/template.yml
|
137
116
|
- data/ore/templates/rspec/.rspec
|
@@ -145,6 +124,8 @@ files:
|
|
145
124
|
- data/ore/templates/test_unit/template.yml
|
146
125
|
- data/ore/templates/test_unit/test/helper.rb.erb
|
147
126
|
- data/ore/templates/test_unit/test/test_[name].rb.erb
|
127
|
+
- data/ore/templates/travis/.travis.yml
|
128
|
+
- data/ore/templates/travis/_badges.erb
|
148
129
|
- data/ore/templates/yard/.document.erb
|
149
130
|
- data/ore/templates/yard/.yardopts.erb
|
150
131
|
- data/ore/templates/yard/_gemfile_development.erb
|
@@ -163,7 +144,11 @@ files:
|
|
163
144
|
- lib/ore/template/exceptions.rb
|
164
145
|
- lib/ore/template/exceptions/invalid_template.rb
|
165
146
|
- lib/ore/template/helpers.rb
|
147
|
+
- lib/ore/template/helpers/markdown.rb
|
148
|
+
- lib/ore/template/helpers/rdoc.rb
|
149
|
+
- lib/ore/template/helpers/textile.rb
|
166
150
|
- lib/ore/template/interpolations.rb
|
151
|
+
- lib/ore/template/markup.rb
|
167
152
|
- lib/ore/template/template.rb
|
168
153
|
- lib/ore/version.rb
|
169
154
|
- ore.gemspec
|
@@ -173,31 +158,45 @@ files:
|
|
173
158
|
- spec/helpers/matchers.rb
|
174
159
|
- spec/naming_spec.rb
|
175
160
|
- spec/spec_helper.rb
|
161
|
+
- spec/template/helpers/markdown_spec.rb
|
162
|
+
- spec/template/helpers/rdoc_spec.rb
|
163
|
+
- spec/template/helpers/textile_spec.rb
|
176
164
|
homepage: https://github.com/ruby-ore/ore#readme
|
177
165
|
licenses:
|
178
166
|
- MIT
|
179
|
-
|
180
|
-
|
181
|
-
|
167
|
+
metadata: {}
|
168
|
+
post_install_message: |
|
169
|
+
**************************************************************************
|
170
|
+
Generate a new Ruby library:
|
171
|
+
|
172
|
+
$ mine my_library --rspec --yard
|
173
|
+
|
174
|
+
Build the library:
|
175
|
+
|
176
|
+
$ rake build
|
177
|
+
|
178
|
+
Release the library to rubygems.org:
|
179
|
+
|
180
|
+
$ rake release
|
181
|
+
|
182
|
+
**************************************************************************
|
182
183
|
rdoc_options: []
|
183
184
|
require_paths:
|
184
185
|
- lib
|
185
186
|
required_ruby_version: !ruby/object:Gem::Requirement
|
186
|
-
none: false
|
187
187
|
requirements:
|
188
|
-
- -
|
188
|
+
- - ">="
|
189
189
|
- !ruby/object:Gem::Version
|
190
|
-
version:
|
190
|
+
version: 1.9.1
|
191
191
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
192
|
-
none: false
|
193
192
|
requirements:
|
194
|
-
- -
|
193
|
+
- - ">="
|
195
194
|
- !ruby/object:Gem::Version
|
196
195
|
version: '0'
|
197
196
|
requirements: []
|
198
197
|
rubyforge_project:
|
199
|
-
rubygems_version:
|
198
|
+
rubygems_version: 2.4.7
|
200
199
|
signing_key:
|
201
|
-
specification_version:
|
202
|
-
summary:
|
200
|
+
specification_version: 4
|
201
|
+
summary: Generate perfect Ruby gems
|
203
202
|
test_files: []
|