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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 93ba335ddd745ea212b2ae3e571dbdbbefec8da1cf04a5030e0b19d13263ceb8
4
- data.tar.gz: f7f71ce691eb351791186c274cb5a451bab674d477bb1ff644ef7fec79767f92
3
+ metadata.gz: a7bf89dba94c235b7d83f0e7e26f91afb59762e03a24db47eb8919d574ec6c02
4
+ data.tar.gz: 0cf93a363aa180e6837cbbe9a1601612b3a71306efe336c1107f64b2eb8aaa0d
5
5
  SHA512:
6
- metadata.gz: 3f620a78bc2b11f464763e61c303dc042a0e4f7c395bd426ad75fbec578c049070fc3b7e05c3320f7b31bbf167fbf279d0c3dc54d2899482b28b770b37e4cfb6
7
- data.tar.gz: '038102e33b4b884e1647743e6e6b2a37bb832f1563ad1234c7222c6a36b0e037bf6ed619798ac5a6738d16bbeea8322ca2f97b1da5267262bb5ded2f8f879178'
6
+ metadata.gz: bfa6ec502d59661980b01e93dfc70ee991eca5e6ab8e7ef7024817ffb6dd01a92980d3019e5e26d2d9808f663a9ef8352aff8ac6cca2b763a72b26015ffb440b
7
+ data.tar.gz: e917ba41af24f487360993b817899271c8e358e1018e6f7b9ab88db034b0bde0d16b81b936648c6e39a955c69ca97e2c306bd6276bed53fae55a9f5d3fa1fb94
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [0.0.10] - 2024-11-14
2
+
3
+ - Create an empty module
4
+
1
5
  ## [0.0.9] - 2024-11-13
2
6
 
3
7
  - Allow choosing different licenses: MIT, Apache-2.0, MPL-2.0, Apache-2.0 OR MIT, none
@@ -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
@@ -14,6 +14,7 @@ module Foobara
14
14
  Generators::CiYamlGenerator,
15
15
  Generators::GemspecGenerator,
16
16
  Generators::GitignoreGenerator,
17
+ Generators::InitialModuleGenerator,
17
18
  Generators::InitialSpecGenerator,
18
19
  Generators::LibGenerator,
19
20
  Generators::LicenseGenerator,
@@ -0,0 +1,7 @@
1
+ <% module_path.each do |part| %>
2
+ module <%= part %>
3
+ <% end %>
4
+
5
+ <% module_path.size.times do %>
6
+ end
7
+ <% 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.9
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: