foobara-empty-ruby-project-generator 0.0.14 → 0.0.15

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: 19cd84cd08933d8e04ad23b06e2599d7830457b17a39226306ea1d40b9f4462a
4
- data.tar.gz: 4352afd26444e91dddcf218986c80b31620676cf6b7bf75bbf5df7cfcf8d3522
3
+ metadata.gz: a2be938e5b3deffab94dc479791b2071210c23930e04637c07ac39ff23c12248
4
+ data.tar.gz: 9f709cb0ff03da216182c1c33a7f80fa8256f3ffe10cde4b6f252942ba5192c7
5
5
  SHA512:
6
- metadata.gz: de5e98645b90f47673eb1000f0ee8e25c713f7d337f275f142d31cbf97acb2aaece20d8d26f5d5616b65651a68d6912f2e451847152d0fae7fad97c242c33042
7
- data.tar.gz: 702a6b4e95723135b355ba69a34ec583d95e728d954f65ebfbd68e0ee19241838d1e16f04957fbbb40f2e2237aafa9002642eafcbb6b3da58969a54b7c4e0da7
6
+ metadata.gz: a2a3af69340a2306a0c9e136579a9b952666ab630a0288270f3a294e98a15fe74144e26729714ab07c58918cc38a394b6255124963be1899e456e3333975fa51
7
+ data.tar.gz: 5fb6402ffbe779151d93e180360d772c4a973b3034311743306025e7fd4e95ed43200a49f8a988cae4203475d3aa10a623669de8bac0e4dda06c21eabf36fb1c
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [0.0.15] - 2025-04-08
2
+
3
+ - Improve generated README.md
4
+
1
5
  ## [0.0.14] - 2025-02-19
2
6
 
3
7
  - Bump Ruby to 3.4.2
@@ -31,6 +31,10 @@ module Foobara
31
31
  Util.kebab_case(full_project_path.join)
32
32
  end
33
33
 
34
+ def gem_name
35
+ kebab_case_full_project_name
36
+ end
37
+
34
38
  def org_slash_project_kebab(organization_name = self.organization_name, project_name = self.project_name)
35
39
  org_part = Util.kebab_case(organization_name)&.gsub("::", "-")
36
40
  project_part = Util.kebab_case(project_name).gsub("::", "-")
@@ -120,7 +124,11 @@ module Foobara
120
124
  end
121
125
 
122
126
  def homepage_url
123
- @homepage_url ||= "https://github.com/#{org_slash_project_kebab(organization_name, project_module_name)}"
127
+ github_url
128
+ end
129
+
130
+ def github_url
131
+ @github_url ||= "https://github.com/#{org_slash_project_kebab(organization_name, project_module_name)}"
124
132
  end
125
133
 
126
134
  private
@@ -5,13 +5,13 @@ ruby <%= full_project_name %>::MINIMUM_RUBY_VERSION
5
5
 
6
6
  gemspec
7
7
 
8
- gem "foobara-dotenv-loader"
8
+ gem "foobara-dotenv-loader", "~> 0.0.1"
9
9
 
10
10
  gem "rake"
11
11
 
12
12
  group :development do
13
13
  gem "foob"
14
- gem "foobara-rubocop-rules"
14
+ gem "foobara-rubocop-rules", "~> 0.0.1"
15
15
  gem "guard-rspec"
16
16
  gem "rubocop-rake"
17
17
  gem "rubocop-rspec"
@@ -26,7 +26,7 @@ group :development, :test do
26
26
  end
27
27
 
28
28
  group :test do
29
- gem "foobara-spec-helpers"
29
+ gem "foobara-spec-helpers", "~> 0.0.1"
30
30
  gem "rspec"
31
31
  gem "rspec-its"
32
32
  gem "ruby-prof"
@@ -1,4 +1,4 @@
1
- # Foobara::EmptyRubyProjectGenerator
1
+ # <%= full_module_name %>
2
2
 
3
3
  TODO: Delete this and the text below, and describe your gem
4
4
 
@@ -6,43 +6,28 @@ Welcome to your new gem! In this directory, you'll find the files you need to be
6
6
  into a gem. Put your Ruby code in the file `lib/foobara/empty_ruby_project_generator`. To experiment with that code,
7
7
  run `bin/console` for an interactive prompt.
8
8
 
9
- ## Installation
10
-
11
- TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it
12
- to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with
13
- instructions to install your gem from git if you don't plan to release to RubyGems.org.
14
-
15
- Install the gem and add to the application's Gemfile by executing:
16
-
17
- $ bundle add UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
18
9
 
19
- If bundler is not being used to manage dependencies, install the gem by executing:
10
+ ## Installation
20
11
 
21
- $ gem install UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
12
+ Typical stuff: add `gem "<%= gem_name %>"` to your Gemfile or .gemspec file. Or even just
13
+ `gem install <%= gem_name %>` if just playing with it directly in scripts.
22
14
 
23
15
  ## Usage
24
16
 
25
17
  TODO: Write usage instructions here
26
18
 
27
- ## Development
19
+ ```ruby
20
+ #!/usr/bin/env ruby
28
21
 
29
- If using Foobara locally, then run the following (TODO: make this no-longer necessary.)
22
+ require "foobara/load_dotenv"
23
+ Foobara::LoadDotenv.run!(dir: __dir__)
30
24
 
31
- ```bash
32
- bundle config set disable_local_branch_check true
25
+ TODO: some example code
33
26
  ```
34
-
35
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can
36
- also run `bin/console` for an interactive prompt that will allow you to experiment.
37
-
38
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the
39
- version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version,
40
- push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
41
-
42
27
  ## Contributing
43
28
 
44
29
  Bug reports and pull requests are welcome on GitHub
45
- at https://github.com/[USERNAME]/foobara-empty_ruby_project_generator.
30
+ at <%= github_url %>
46
31
 
47
32
  ## License
48
33
 
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
23
23
  "CHANGELOG.md"
24
24
  ]
25
25
 
26
- spec.add_dependency "foobara"
26
+ spec.add_dependency "foobara", "~> 0.0.94"
27
27
 
28
28
  spec.require_paths = ["lib"]
29
29
  spec.metadata["rubygems_mfa_required"] = "true"
metadata CHANGED
@@ -1,56 +1,56 @@
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.14
4
+ version: 0.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Georgi
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-02-19 00:00:00.000000000 Z
10
+ date: 2025-04-08 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: extract-repo
14
14
  requirement: !ruby/object:Gem::Requirement
15
15
  requirements:
16
- - - ">="
16
+ - - "~>"
17
17
  - !ruby/object:Gem::Version
18
- version: '0'
18
+ version: 0.0.1
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
- - - ">="
23
+ - - "~>"
24
24
  - !ruby/object:Gem::Version
25
- version: '0'
25
+ version: 0.0.1
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: foobara
28
28
  requirement: !ruby/object:Gem::Requirement
29
29
  requirements:
30
- - - ">="
30
+ - - "~>"
31
31
  - !ruby/object:Gem::Version
32
- version: '0'
32
+ version: 0.0.94
33
33
  type: :runtime
34
34
  prerelease: false
35
35
  version_requirements: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - ">="
37
+ - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '0'
39
+ version: 0.0.94
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: foobara-files-generator
42
42
  requirement: !ruby/object:Gem::Requirement
43
43
  requirements:
44
- - - ">="
44
+ - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: '0'
46
+ version: 0.0.1
47
47
  type: :runtime
48
48
  prerelease: false
49
49
  version_requirements: !ruby/object:Gem::Requirement
50
50
  requirements:
51
- - - ">="
51
+ - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: '0'
53
+ version: 0.0.1
54
54
  email:
55
55
  - azimux@gmail.com
56
56
  executables: []
@@ -85,7 +85,6 @@ files:
85
85
  - src/manifests/project_config.rb
86
86
  - src/types/extract_inputs.rb
87
87
  - src/write_empty_ruby_project_to_disk.rb
88
- - templates/.bundle/config
89
88
  - templates/.github/workflows/ci.yml.erb
90
89
  - templates/.gitignore.erb
91
90
  - templates/.rspec
@@ -139,7 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
139
138
  - !ruby/object:Gem::Version
140
139
  version: '0'
141
140
  requirements: []
142
- rubygems_version: 3.6.3
141
+ rubygems_version: 3.6.2
143
142
  specification_version: 4
144
143
  summary: Generates empty ruby project boilerplate code from a template
145
144
  test_files: []
@@ -1,2 +0,0 @@
1
- ---
2
- BUNDLE_DISABLE_LOCAL_BRANCH_CHECK: "true"