rubysmith 3.0.1 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/README.adoc +26 -13
- data/lib/rubysmith/builders/git_hub.rb +9 -0
- data/lib/rubysmith/cli/parsers/build.rb +9 -0
- data/lib/rubysmith/configuration/content.rb +4 -0
- data/lib/rubysmith/configuration/defaults.yml +2 -0
- data/lib/rubysmith/templates/%project_name%/.github/FUNDING.yml.erb +1 -0
- data/rubysmith.gemspec +2 -1
- data.tar.gz.sig +0 -0
- metadata +5 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 76c37515f88d8baea764f0781f857dc37edf3fe5ae607957d04cc43bdabf5fa2
|
4
|
+
data.tar.gz: a102d5287ac1ea8eeba349a7b9d394fb9b59e6ac844730881d4b5c40468204ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 615396e6c2681e163103be22bc6e4ef5e2393786016ae5746b7323ff67e268e6d9b84c913a08f753c14c94930c1f6d277a33a78ad0357aa2ae5031ed36bf85e4
|
7
|
+
data.tar.gz: 072c81c1253073b146900a243318c3e184d6b0722af9ac2082766e4ecc8c485caef660f39fda596e5faff33c64efcfe60dd243f7c2a6d297ea0ad28c87c7b784
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/README.adoc
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
:gemsmith_link: link:https://www.alchemists.io/projects/gemsmith[Gemsmith]
|
2
|
+
|
1
3
|
:toc: macro
|
2
4
|
:toclevels: 5
|
3
5
|
:figure-caption!:
|
@@ -8,11 +10,10 @@ Rubysmith is a command line interface for smithing Ruby projects.
|
|
8
10
|
|
9
11
|
This gem is useful in situations in which you need something more sophisticated than a
|
10
12
|
link:https://bundler.io/guides/bundler_in_a_single_file_ruby_script.html[Bundler Inline] script but
|
11
|
-
less than a
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
others.
|
13
|
+
less than a {gemsmith_link} gem. Rubysmith is the foundation of Gemsmith and provides much of the
|
14
|
+
same functionality as Gemsmith but is solely tailored for pure Ruby projects. Again, this is a great
|
15
|
+
tool for spiking quick Ruby implementations, sharing code snippets with others, or building full
|
16
|
+
blown Ruby projects for collaboration with others.
|
16
17
|
|
17
18
|
toc::[]
|
18
19
|
|
@@ -99,6 +100,7 @@ BUILD OPTIONS:
|
|
99
100
|
--[no-]console Add console script. Default: true.
|
100
101
|
--[no-]contributions Add contributions documentation. Default: true.
|
101
102
|
--[no-]debug Add Debug gem. Default: true.
|
103
|
+
--[no-]funding Add GitHub funding configuration. Default: false.
|
102
104
|
--[no-]git Add Git. Default: true.
|
103
105
|
--[no-]git_hub Add GitHub templates. Default: false.
|
104
106
|
--[no-]git-lint Add Git Lint gem. Default: true.
|
@@ -229,6 +231,12 @@ The `--debug` option allows you add the link:https://github.com/ruby/debug[Debug
|
|
229
231
|
project for debugging your code by setting breakpoints, remotely connecting to running code, and
|
230
232
|
much more.
|
231
233
|
|
234
|
+
==== Funding
|
235
|
+
|
236
|
+
The `--funding` option allows you add a link:https://github.com[GitHub] funding configuration to
|
237
|
+
your project so you can attract link:https://docs.github.com/en/sponsors[sponsors]. This option
|
238
|
+
doesn't require use of the `--git_hub` option but is encouraged.
|
239
|
+
|
232
240
|
==== Git
|
233
241
|
|
234
242
|
The `--git` option allows you add link:https://git-scm.com[Git] repository support.
|
@@ -363,6 +371,7 @@ variables. The default configuration is as follows:
|
|
363
371
|
:console: true
|
364
372
|
:contributions: true
|
365
373
|
:debug: true
|
374
|
+
:funding: false
|
366
375
|
:git: true
|
367
376
|
:git_hub: false
|
368
377
|
:git_lint: true
|
@@ -428,6 +437,7 @@ variables. The default configuration is as follows:
|
|
428
437
|
:conduct:
|
429
438
|
:contributions:
|
430
439
|
:download:
|
440
|
+
:funding:
|
431
441
|
:home:
|
432
442
|
:issues:
|
433
443
|
:license:
|
@@ -463,11 +473,11 @@ custom values as desired. The URL is the only value that can't be automatically
|
|
463
473
|
==== Build
|
464
474
|
|
465
475
|
All build options accept booleans values only and can be customized as desired. When changing your
|
466
|
-
build options, they will dynamically render when
|
467
|
-
these options
|
476
|
+
build options, they will dynamically render when displaying usage (i.e. `rubysmith --help`). All of
|
477
|
+
these options have been explained in greater detail in the _Usage_ section.
|
468
478
|
|
469
|
-
ℹ️
|
470
|
-
|
479
|
+
ℹ️ The `cli` option is provided to support the {gemsmith_link} gem but is not, currently, used by
|
480
|
+
this project.
|
471
481
|
|
472
482
|
==== Citations
|
473
483
|
|
@@ -498,7 +508,7 @@ Follow the above links to learn more about each extension's gem configuration.
|
|
498
508
|
==== GitHub
|
499
509
|
|
500
510
|
Your GitHub user is the handle you setup when creating your GitHub account. This information is used
|
501
|
-
for template and/or URL construction purposes.
|
511
|
+
for template, funding, and/or URL construction purposes.
|
502
512
|
|
503
513
|
==== License
|
504
514
|
|
@@ -512,8 +522,11 @@ license are available:
|
|
512
522
|
==== Project
|
513
523
|
|
514
524
|
There are two sub-categories within this section: URLs and version. The URLs allow you to link to
|
515
|
-
specific documentation related to your project. You'll
|
516
|
-
|
525
|
+
specific documentation related to your project. You'll want to customize these URLs since they are
|
526
|
+
used for documentation, citations, and general project information. Some of the URLs are also used
|
527
|
+
by the {gemsmith_link} gem.
|
528
|
+
|
529
|
+
You
|
517
530
|
can also use `%project_name%` as a placeholder anywhere in your URL and Rubysmith will ensure your
|
518
531
|
place holder is replaced with your project name when generating a new project. Example:
|
519
532
|
|
@@ -574,5 +587,5 @@ bundle exec rake
|
|
574
587
|
|
575
588
|
== Credits
|
576
589
|
|
577
|
-
* Built with
|
590
|
+
* Built with {gemsmith_link}.
|
578
591
|
* Engineered by link:https://www.alchemists.io/team/brooke_kuhlmann[Brooke Kuhlmann].
|
@@ -16,6 +16,8 @@ module Rubysmith
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def call
|
19
|
+
render_funding
|
20
|
+
|
19
21
|
return configuration unless configuration.build_git_hub
|
20
22
|
|
21
23
|
builder.call(with_issue_template).render
|
@@ -27,6 +29,13 @@ module Rubysmith
|
|
27
29
|
|
28
30
|
attr_reader :configuration, :builder
|
29
31
|
|
32
|
+
def render_funding
|
33
|
+
return unless configuration.build_funding
|
34
|
+
|
35
|
+
configuration.merge(template_path: "%project_name%/.github/FUNDING.yml.erb")
|
36
|
+
.then { |updated_configuration| builder.call(updated_configuration).render }
|
37
|
+
end
|
38
|
+
|
30
39
|
def with_issue_template
|
31
40
|
configuration.merge template_path: "%project_name%/.github/ISSUE_TEMPLATE.md.erb"
|
32
41
|
end
|
@@ -124,6 +124,15 @@ module Rubysmith
|
|
124
124
|
end
|
125
125
|
end
|
126
126
|
|
127
|
+
def add_funding
|
128
|
+
client.on(
|
129
|
+
"--[no-]funding",
|
130
|
+
"Add GitHub funding configuration. #{default __method__}."
|
131
|
+
) do |value|
|
132
|
+
configuration.merge! build_funding: value
|
133
|
+
end
|
134
|
+
end
|
135
|
+
|
127
136
|
def add_git
|
128
137
|
client.on(
|
129
138
|
"--[no-]git",
|
@@ -33,6 +33,7 @@ module Rubysmith
|
|
33
33
|
:build_console,
|
34
34
|
:build_contributions,
|
35
35
|
:build_debug,
|
36
|
+
:build_funding,
|
36
37
|
:build_git,
|
37
38
|
:build_git_hub,
|
38
39
|
:build_git_lint,
|
@@ -71,6 +72,7 @@ module Rubysmith
|
|
71
72
|
:project_url_conduct,
|
72
73
|
:project_url_contributions,
|
73
74
|
:project_url_download,
|
75
|
+
:project_url_funding,
|
74
76
|
:project_url_home,
|
75
77
|
:project_url_issues,
|
76
78
|
:project_url_license,
|
@@ -129,6 +131,8 @@ module Rubysmith
|
|
129
131
|
|
130
132
|
def computed_project_url_download = format_url(__method__)
|
131
133
|
|
134
|
+
def computed_project_url_funding = format_url(__method__)
|
135
|
+
|
132
136
|
def computed_project_url_home = format_url(__method__)
|
133
137
|
|
134
138
|
def computed_project_url_issues = format_url(__method__)
|
@@ -0,0 +1 @@
|
|
1
|
+
github: [<%= configuration.git_hub_user %>]
|
data/rubysmith.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = "rubysmith"
|
5
|
-
spec.version = "3.0
|
5
|
+
spec.version = "3.1.0"
|
6
6
|
spec.authors = ["Brooke Kuhlmann"]
|
7
7
|
spec.email = ["brooke@alchemists.io"]
|
8
8
|
spec.homepage = "https://github.com/bkuhlmann/rubysmith"
|
@@ -13,6 +13,7 @@ Gem::Specification.new do |spec|
|
|
13
13
|
"bug_tracker_uri" => "https://github.com/bkuhlmann/rubysmith/issues",
|
14
14
|
"changelog_uri" => "https://www.alchemists.io/projects/rubysmith/versions",
|
15
15
|
"documentation_uri" => "https://www.alchemists.io/projects/rubysmith",
|
16
|
+
"funding_uri" => "https://github.com/sponsors/bkuhlmann",
|
16
17
|
"label" => "Rubysmith",
|
17
18
|
"rubygems_mfa_required" => "true",
|
18
19
|
"source_code_uri" => "https://github.com/bkuhlmann/rubysmith"
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubysmith
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0
|
4
|
+
version: 3.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brooke Kuhlmann
|
@@ -28,7 +28,7 @@ cert_chain:
|
|
28
28
|
CxDe2+VuChj4I1nvIHdu+E6XoEVlanUPKmSg6nddhkKn2gC45Kyzh6FZqnzH/CRp
|
29
29
|
RFE=
|
30
30
|
-----END CERTIFICATE-----
|
31
|
-
date: 2022-04-
|
31
|
+
date: 2022-04-30 00:00:00.000000000 Z
|
32
32
|
dependencies:
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: auto_injector
|
@@ -274,6 +274,7 @@ files:
|
|
274
274
|
- lib/rubysmith/renderers/erb.rb
|
275
275
|
- lib/rubysmith/renderers/namespace.rb
|
276
276
|
- lib/rubysmith/templates/%project_name%/.circleci/config.yml.erb
|
277
|
+
- lib/rubysmith/templates/%project_name%/.github/FUNDING.yml.erb
|
277
278
|
- lib/rubysmith/templates/%project_name%/.github/ISSUE_TEMPLATE.md.erb
|
278
279
|
- lib/rubysmith/templates/%project_name%/.github/PULL_REQUEST_TEMPLATE.md.erb
|
279
280
|
- lib/rubysmith/templates/%project_name%/.gitignore.erb
|
@@ -310,6 +311,7 @@ metadata:
|
|
310
311
|
bug_tracker_uri: https://github.com/bkuhlmann/rubysmith/issues
|
311
312
|
changelog_uri: https://www.alchemists.io/projects/rubysmith/versions
|
312
313
|
documentation_uri: https://www.alchemists.io/projects/rubysmith
|
314
|
+
funding_uri: https://github.com/sponsors/bkuhlmann
|
313
315
|
label: Rubysmith
|
314
316
|
rubygems_mfa_required: 'true'
|
315
317
|
source_code_uri: https://github.com/bkuhlmann/rubysmith
|
@@ -328,7 +330,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
328
330
|
- !ruby/object:Gem::Version
|
329
331
|
version: '0'
|
330
332
|
requirements: []
|
331
|
-
rubygems_version: 3.3.
|
333
|
+
rubygems_version: 3.3.12
|
332
334
|
signing_key:
|
333
335
|
specification_version: 4
|
334
336
|
summary: A command line interface for smithing Ruby projects.
|
metadata.gz.sig
CHANGED
Binary file
|