foobara-empty-ruby-project-generator 0.0.19 → 0.0.20

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ee5a04e4065cfa11933993dcd5f18f8c8827e67003cc3dae230b970fb1a6e44b
4
- data.tar.gz: 68f85120e9f5ad5d877b0cb8ce4d39de30772f6c6ec387a2b644f8bffff27e2c
3
+ metadata.gz: e82a8d6af3338fe69f43a3a4573720791a5d93064c50d2fa3d1e1f95a42f12aa
4
+ data.tar.gz: 4d788a75115bf60b4bbb89089d3cfab7393fd95a3acb7b035f1e10fef6c93bf3
5
5
  SHA512:
6
- metadata.gz: bb4b4d4d233d637b87e769a703886601963477b0ce13e92a264939623c46f000db6624a1cbd8d5a356c6a32ff7f55f745691fdc9d3c92e0b1f6bed2279ce2748
7
- data.tar.gz: 2b7eaef91dd9906014c8e0d1897693587ea535e83caf2aa3367cb1dc43aef579fa894adf9e495a16197b8c17a14fd33fcb806800a51b0ef2bad360b54ab46c76
6
+ metadata.gz: 875efa4b26a347baf98f9c4b347f15b472cc24bc1226691fe60cad7cf284db329b7df5d4c0ae8d73d486d6f0ceeeec4642f5e13550eb05128b4cf4425bd2310e
7
+ data.tar.gz: f2ff5fbb32e62bf21d33ace1292257524f0023e35a6b1960561187529c7245ec21881cc570b06782c461622dfd7171cf2a276af4ece464e575dbfae8af9f8c2f
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [0.0.20] - 2025-05-03
2
+
3
+ - Add use_git, push_to_github, and turn_on_rbenv_bundler options and default them to false
4
+
1
5
  ## [0.0.19] - 2025-05-03
2
6
 
3
7
  - Do not fail just because gh isn't installed
@@ -19,7 +19,9 @@ module Foobara
19
19
  author_names [:string]
20
20
  author_emails [:string]
21
21
  homepage_url :string
22
- # Probably need a better default such as not licensed.
22
+ use_git :boolean, default: false
23
+ push_to_github :boolean, default: false
24
+ turn_on_rbenv_bundler :boolean, default: false
23
25
  license :string, :allow_nil, one_of: ["MIT", "Apache-2.0", "MPL-2.0", "Apache-2.0 OR MIT"]
24
26
  end
25
27
 
@@ -61,6 +61,18 @@ module Foobara
61
61
  project_config.org_slash_project_kebab
62
62
  end
63
63
 
64
+ def push_to_github?
65
+ project_config.push_to_github
66
+ end
67
+
68
+ def turn_on_rbenv_bundler?
69
+ project_config.turn_on_rbenv_bundler
70
+ end
71
+
72
+ def use_git?
73
+ project_config.use_git
74
+ end
75
+
64
76
  def generate_file_contents
65
77
  puts "generating..."
66
78
  # TODO: just pass this in as the inputs instead of the command??
@@ -72,14 +84,23 @@ module Foobara
72
84
  bundle_install
73
85
  make_bin_files_executable
74
86
  rubocop_autocorrect
75
- git_init unless extract_from_another_repo?
76
- git_add_all
77
- git_commit
78
- github_create_repo
79
- git_add_remote_origin
80
- git_branch_main
81
- push_to_github
82
- rbenv_bundler_on
87
+
88
+ if use_git?
89
+ git_init unless extract_from_another_repo?
90
+ git_add_all
91
+ git_commit
92
+ git_branch_main
93
+
94
+ if push_to_github?
95
+ github_create_repo
96
+ git_add_remote_origin
97
+ push_to_github
98
+ end
99
+
100
+ if turn_on_rbenv_bundler?
101
+ rbenv_bundler_on
102
+ end
103
+ end
83
104
  end
84
105
  end
85
106
 
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.19
4
+ version: 0.0.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Georgi