rubysmith 8.3.0 → 8.4.0
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
- checksums.yaml.gz.sig +0 -0
- data/README.adoc +5 -4
- data/lib/rubysmith/builders/docker/compose.rb +21 -0
- data/lib/rubysmith/cli/actions/dev_container.rb +7 -2
- data/lib/rubysmith/cli/commands/build.rb +1 -0
- data/lib/rubysmith/templates/%project_name%/Gemfile.erb +1 -1
- data/lib/rubysmith/templates/%project_name%/compose.yml.erb +15 -0
- data/rubysmith.gemspec +1 -1
- data.tar.gz.sig +0 -0
- metadata +4 -2
- 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: f0c310e47d2ae686beb6b1c0fc2e241f6637943135a470e4a83803f783240800
|
4
|
+
data.tar.gz: 54ed1c800a37cd66057c139e8e03085bf5e639d86fb14a06b30d3451e5b140cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 196983d315c48684545b51764ed412b21072288534badc1166f937094a67951c3cb2bc02f034dff8f8024ed47b4837cad61aa3016d020b95e6f2beb50463b7eb
|
7
|
+
data.tar.gz: d15fb29e97c80134ca48dda5ce022867a57724a5ee405c13c5e7bed809f76bf776bc15836f91c4e1026c4c93d5b6604ecc0713b5f1a47d218d694d5e7945a7eb
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/README.adoc
CHANGED
@@ -3,7 +3,6 @@
|
|
3
3
|
:figure-caption!:
|
4
4
|
|
5
5
|
:bundler_inline_link: link:https://alchemists.io/articles/ruby_bundler_inline[Bundler Inline]
|
6
|
-
:development_containers_link: link:https://containers.dev[Development Containers]
|
7
6
|
:docker_alpine_ruby_link: link:https://alchemists.io/projects/docker-alpine-ruby[Docker Alpine Ruby]
|
8
7
|
:docker_link: link:https://www.docker.com[Docker]
|
9
8
|
:gemsmith_link: link:https://alchemists.io/projects/gemsmith[Gemsmith]
|
@@ -31,7 +30,6 @@ toc::[]
|
|
31
30
|
* Supports link:https://orcid.org[Citations (ORCID)].
|
32
31
|
* Supports console script for local development.
|
33
32
|
* Supports link:https://github.com/ruby/debug[Debug].
|
34
|
-
* Supports {development_containers_link}.
|
35
33
|
* Supports {docker_link}.
|
36
34
|
* Supports link:https://git-scm.com[Git].
|
37
35
|
* Supports link:https://github.com[GitHub].
|
@@ -213,12 +211,15 @@ The `--docker` option allows you add {docker_link} to your project so you can bu
|
|
213
211
|
│ │ ├── build # Use to build your production image for local use.
|
214
212
|
│ │ ├── console # Use to interact with your production image.
|
215
213
|
│ │ └── entrypoint # Conditionally enables jemalloc support.
|
216
|
-
├── .dockerignore #
|
217
|
-
├──
|
214
|
+
├── .dockerignore # Specifies files/folders Docker should ignore.
|
215
|
+
├── compose.yml # Provides the Docker Compose configuration.
|
216
|
+
├── Dockerfile # Provides the production build configuration for your image.
|
218
217
|
....
|
219
218
|
|
220
219
|
===== Development Containers
|
221
220
|
|
221
|
+
⚠️ DEPRECATED: Will be removed in Version 9.0.0.
|
222
|
+
|
222
223
|
The `--devcontainer` option allows you add {development_containers_link} support to your project so you can develop locally by running your project within a {docker_link} container. When enabled, these files will be added to your project:
|
223
224
|
|
224
225
|
....
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "refinements/struct"
|
4
|
+
|
5
|
+
module Rubysmith
|
6
|
+
module Builders
|
7
|
+
module Docker
|
8
|
+
# Builds Docker compose configuration.
|
9
|
+
class Compose < Abstract
|
10
|
+
using Refinements::Struct
|
11
|
+
|
12
|
+
def call
|
13
|
+
return false unless settings.build_docker
|
14
|
+
|
15
|
+
builder.call(settings.merge(template_path: "%project_name%/compose.yml.erb")).render
|
16
|
+
true
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -7,15 +7,20 @@ module Rubysmith
|
|
7
7
|
module Actions
|
8
8
|
# Stores Development Container flag.
|
9
9
|
class DevContainer < Sod::Action
|
10
|
-
include Dependencies[:settings]
|
10
|
+
include Dependencies[:settings, :logger]
|
11
11
|
|
12
12
|
description "Add Development Container support."
|
13
13
|
|
14
|
+
ancillary "DEPRECATED: Will be removed in Version 9.0.0."
|
15
|
+
|
14
16
|
on "--[no-]devcontainer"
|
15
17
|
|
16
18
|
default { Container[:settings].build_devcontainer }
|
17
19
|
|
18
|
-
def call
|
20
|
+
def call boolean
|
21
|
+
logger.warn { "Dev Container support will be removed in Version 9.0.0." }
|
22
|
+
settings.build_devcontainer = boolean
|
23
|
+
end
|
19
24
|
end
|
20
25
|
end
|
21
26
|
end
|
data/rubysmith.gemspec
CHANGED
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: 8.
|
4
|
+
version: 8.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brooke Kuhlmann
|
@@ -283,6 +283,7 @@ files:
|
|
283
283
|
- lib/rubysmith/builders/dev_container/configuration.rb
|
284
284
|
- lib/rubysmith/builders/dev_container/dockerfile.rb
|
285
285
|
- lib/rubysmith/builders/docker/build.rb
|
286
|
+
- lib/rubysmith/builders/docker/compose.rb
|
286
287
|
- lib/rubysmith/builders/docker/console.rb
|
287
288
|
- lib/rubysmith/builders/docker/entrypoint.rb
|
288
289
|
- lib/rubysmith/builders/docker/file.rb
|
@@ -397,6 +398,7 @@ files:
|
|
397
398
|
- lib/rubysmith/templates/%project_name%/bin/rspec.erb
|
398
399
|
- lib/rubysmith/templates/%project_name%/bin/rubocop.erb
|
399
400
|
- lib/rubysmith/templates/%project_name%/bin/setup.erb
|
401
|
+
- lib/rubysmith/templates/%project_name%/compose.yml.erb
|
400
402
|
- lib/rubysmith/templates/%project_name%/lib/%project_path%.rb.erb
|
401
403
|
- lib/rubysmith/templates/%project_name%/spec/lib/%project_path%_spec.rb.erb
|
402
404
|
- lib/rubysmith/templates/%project_name%/spec/spec_helper.rb.erb
|
@@ -428,7 +430,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
428
430
|
- !ruby/object:Gem::Version
|
429
431
|
version: '0'
|
430
432
|
requirements: []
|
431
|
-
rubygems_version: 3.6.
|
433
|
+
rubygems_version: 3.6.9
|
432
434
|
specification_version: 4
|
433
435
|
summary: A command line interface for smithing Ruby projects.
|
434
436
|
test_files: []
|
metadata.gz.sig
CHANGED
Binary file
|