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 +4 -4
- data/CHANGELOG.md +4 -0
- data/src/manifests/project_config.rb +9 -1
- data/templates/Gemfile.erb +3 -3
- data/templates/README.md.erb +10 -25
- data/templates/gemspec.gemspec.erb +1 -1
- metadata +15 -16
- data/templates/.bundle/config +0 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a2be938e5b3deffab94dc479791b2071210c23930e04637c07ac39ff23c12248
|
4
|
+
data.tar.gz: 9f709cb0ff03da216182c1c33a7f80fa8256f3ffe10cde4b6f252942ba5192c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2a3af69340a2306a0c9e136579a9b952666ab630a0288270f3a294e98a15fe74144e26729714ab07c58918cc38a394b6255124963be1899e456e3333975fa51
|
7
|
+
data.tar.gz: 5fb6402ffbe779151d93e180360d772c4a973b3034311743306025e7fd4e95ed43200a49f8a988cae4203475d3aa10a623669de8bac0e4dda06c21eabf36fb1c
|
data/CHANGELOG.md
CHANGED
@@ -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
|
-
|
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
|
data/templates/Gemfile.erb
CHANGED
@@ -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"
|
data/templates/README.md.erb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
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
|
-
|
10
|
+
## Installation
|
20
11
|
|
21
|
-
|
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
|
-
|
19
|
+
```ruby
|
20
|
+
#!/usr/bin/env ruby
|
28
21
|
|
29
|
-
|
22
|
+
require "foobara/load_dotenv"
|
23
|
+
Foobara::LoadDotenv.run!(dir: __dir__)
|
30
24
|
|
31
|
-
|
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
|
30
|
+
at <%= github_url %>
|
46
31
|
|
47
32
|
## License
|
48
33
|
|
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.
|
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-
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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.
|
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: []
|
data/templates/.bundle/config
DELETED