foobara-empty-ruby-project-generator 0.0.9 → 0.0.11
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e9967e9c730fa29e2425b587c458c12bc5576fcd6102b20ca67a9889ec08c290
|
4
|
+
data.tar.gz: ad33769318233bd172e23c8eed3256fa94b105440ae4b07ddc40a082f92272bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ae1011bd2e6c9c86bd9053fa07c8a4fe05731a6547f251d87691dafe8ee82a0e03291e7f49e118c31eb3ff34b1023ba1d0b45b190cb24149f675a4a97a02742
|
7
|
+
data.tar.gz: c98abcc172819609290b15ce8771041f50eb436ee06b9a6a52197cd9a1e090890c8a87a3a76996e46fbe3a8a5ee3bce1896bf37429044da3bedb05bd61c1b7b4
|
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
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miles Georgi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-12-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: extract-repo
|
@@ -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:
|