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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fd6a42778f27b98366b646d9792a78881167380259e3a119aaca2050edd1093d
4
- data.tar.gz: c12587b7de5a5bd08be4320df3fd0b14787e0e09820ec49513ca8110cf598f60
3
+ metadata.gz: f0c310e47d2ae686beb6b1c0fc2e241f6637943135a470e4a83803f783240800
4
+ data.tar.gz: 54ed1c800a37cd66057c139e8e03085bf5e639d86fb14a06b30d3451e5b140cb
5
5
  SHA512:
6
- metadata.gz: d172cda7ebd0c06ff672f3cdece7b1fb75702370e2e407ef911dcfbfe9fc02e8c2efff1c75b6af99e2dcdf66ea816271bf29a49cdbadeb6c571be37553c74e84
7
- data.tar.gz: 3d29fd932b240572753f4b1dcc1a17ca8c29c31b6fa7becf59efb52f02bacd40c9057215d69ae3162561df04714e2128c657fa68e1f992efb39c9fc028710200
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 # Defines the files/folders Docker should ignore.
217
- ├── Dockerfile # Defines how to build your production image.
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(boolean) = settings.build_devcontainer = boolean
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
@@ -42,6 +42,7 @@ module Rubysmith
42
42
  Builders::Docker::Build,
43
43
  Builders::Docker::Console,
44
44
  Builders::Docker::Entrypoint,
45
+ Builders::Docker::Compose,
45
46
  Builders::Docker::File,
46
47
  Builders::Docker::Ignore,
47
48
  Extensions::Bundler,
@@ -47,7 +47,7 @@ end
47
47
 
48
48
  group :tools do
49
49
  <% if settings.build_amazing_print %>
50
- gem "amazing_print", "~> 1.7"
50
+ gem "amazing_print", "~> 1.8"
51
51
  <% end %>
52
52
  <% if settings.build_debug %>
53
53
  gem "debug", "~> 1.10"
@@ -0,0 +1,15 @@
1
+ name: "<%= settings.project_name %>"
2
+
3
+ services:
4
+ web:
5
+ init: true
6
+ build:
7
+ context: .
8
+ ports:
9
+ - "2300:2300"
10
+ restart: unless-stopped
11
+ deploy:
12
+ resources:
13
+ limits:
14
+ memory: 1G
15
+ cpus: "1.0"
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 = "8.3.0"
5
+ spec.version = "8.4.0"
6
6
  spec.authors = ["Brooke Kuhlmann"]
7
7
  spec.email = ["brooke@alchemists.io"]
8
8
  spec.homepage = "https://alchemists.io/projects/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: 8.3.0
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.7
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