foobara-empty-ruby-project-generator 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/src/generators/initial_module_generator.rb +27 -0
- data/src/generators/project_generator.rb +1 -0
- data/templates/src/initial_module.rb.erb +7 -0
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7bf89dba94c235b7d83f0e7e26f91afb59762e03a24db47eb8919d574ec6c02
|
4
|
+
data.tar.gz: 0cf93a363aa180e6837cbbe9a1601612b3a71306efe336c1107f64b2eb8aaa0d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bfa6ec502d59661980b01e93dfc70ee991eca5e6ab8e7ef7024817ffb6dd01a92980d3019e5e26d2d9808f663a9ef8352aff8ac6cca2b763a72b26015ffb440b
|
7
|
+
data.tar.gz: e917ba41af24f487360993b817899271c8e358e1018e6f7b9ab88db034b0bde0d16b81b936648c6e39a955c69ca97e2c306bd6276bed53fae55a9f5d3fa1fb94
|
data/CHANGELOG.md
CHANGED
@@ -0,0 +1,27 @@
|
|
1
|
+
require_relative "project_generator"
|
2
|
+
|
3
|
+
module Foobara
|
4
|
+
module Generators
|
5
|
+
module EmptyRubyProjectGenerator
|
6
|
+
module Generators
|
7
|
+
class InitialModuleGenerator < ProjectGenerator
|
8
|
+
def template_path
|
9
|
+
["src", "initial_module.rb.erb"]
|
10
|
+
end
|
11
|
+
|
12
|
+
def target_path
|
13
|
+
*path, file = full_project_path.map { |part| Util.underscore(part) }
|
14
|
+
|
15
|
+
file = "#{file}.rb"
|
16
|
+
|
17
|
+
["src", *path, file]
|
18
|
+
end
|
19
|
+
|
20
|
+
def module_path
|
21
|
+
full_project_path.map { |part| Util.classify(part) }
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foobara-empty-ruby-project-generator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miles Georgi
|
@@ -73,6 +73,7 @@ files:
|
|
73
73
|
- src/generators/ci_yaml_generator.rb
|
74
74
|
- src/generators/gemspec_generator.rb
|
75
75
|
- src/generators/gitignore_generator.rb
|
76
|
+
- src/generators/initial_module_generator.rb
|
76
77
|
- src/generators/initial_spec_generator.rb
|
77
78
|
- src/generators/lib_generator.rb
|
78
79
|
- src/generators/license_generator.rb
|
@@ -112,6 +113,7 @@ files:
|
|
112
113
|
- templates/spec/support/simplecov.rb
|
113
114
|
- templates/spec/support/term_trap.rb
|
114
115
|
- templates/spec/support/vcr.rb
|
116
|
+
- templates/src/initial_module.rb.erb
|
115
117
|
- templates/version.rb.erb
|
116
118
|
homepage: https://github.com/foobara/empty-ruby-project-generator
|
117
119
|
licenses:
|