rails_steroids 0.3.0 → 0.3.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ce6fbe0a8cf0bdac91965f3a73e05a01b415a68358d81899ed9745bc1777115
|
4
|
+
data.tar.gz: 9eefd09397f43fa4d36a6cb50989afdeb1b1902638f097765c8e9d9cb0fa7892
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 624785f5c35d1b51368c5629c94b16ab96b62528f4e003c26ca9f0707a1d9b3ac5c1f540ed4e1995eca01c8782b25653298b24fb459517e7254c164935356572
|
7
|
+
data.tar.gz: 186c3eac0b2e7368ae0b6da42cb67618ead70105f72db44ab0a16adc2c3813277d4a6c08e8cab44310617468b1349b20cf110141c3e1b981eda9b45245d5b815
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
## [Unreleased]
|
2
2
|
|
3
|
+
## [0.3.1] - 2024-02-06
|
4
|
+
|
5
|
+
- Improvement in steroid recipe new_project : Code improvement (variable name for boolean_choices)
|
6
|
+
- Improvement in steroid generator : Add `require 'tty/prompt'` by default
|
7
|
+
|
3
8
|
## [0.3.0] - 2024-02-05
|
4
9
|
|
5
10
|
- Improvement in steroid recipe new_project : Use of TTY-prompt for better interaction
|
@@ -44,16 +44,17 @@ module Steroid
|
|
44
44
|
js = prompt.select("Choose JavaScript approach:", %w(importmap bun webpack esbuild rollup))
|
45
45
|
cmd << "--javascript #{js}"
|
46
46
|
|
47
|
-
boolean_choices =
|
48
|
-
cmd << "--api" if prompt.select("API only application?",
|
49
|
-
cmd << "--skip-jbuilder" if prompt.select("Skip jbuilder?",
|
50
|
-
cmd << "--skip-git" if prompt.select("Skip git init, .gitignore and .gitattributes?",
|
51
|
-
cmd << "--skip-docker" if prompt.select("Skip Dockerfile, .dockerignore and bin/docker-entrypoint?",
|
52
|
-
cmd << "--skip-action-cable" if prompt.select("Skip Action Cable files?",
|
53
|
-
cmd << "--skip-hotwire" if prompt.select("Skip Hotwire integration?",
|
54
|
-
cmd << "--skip-test" if prompt.select("Skip test files?",
|
55
|
-
cmd << "--skip-system-test" if prompt.select("Skip system test files?",
|
56
|
-
cmd << "--no-rc"
|
47
|
+
boolean_choices = [{name: "yes", value: true}, {name: "no", value: false}]
|
48
|
+
cmd << "--api" if prompt.select("API only application?", boolean_choices)
|
49
|
+
cmd << "--skip-jbuilder" if prompt.select("Skip jbuilder?", boolean_choices)
|
50
|
+
cmd << "--skip-git" if prompt.select("Skip git init, .gitignore and .gitattributes?", boolean_choices)
|
51
|
+
cmd << "--skip-docker" if prompt.select("Skip Dockerfile, .dockerignore and bin/docker-entrypoint?", boolean_choices)
|
52
|
+
cmd << "--skip-action-cable" if prompt.select("Skip Action Cable files?", boolean_choices)
|
53
|
+
cmd << "--skip-hotwire" if prompt.select("Skip Hotwire integration?", boolean_choices)
|
54
|
+
cmd << "--skip-test" if prompt.select("Skip test files?", boolean_choices)
|
55
|
+
cmd << "--skip-system-test" if prompt.select("Skip system test files?", boolean_choices)
|
56
|
+
cmd << "--no-rc" # To skip configurations from .railsrc
|
57
|
+
cmd << "--skip" # To skip overriding existing files
|
57
58
|
run cmd.join(" ")
|
58
59
|
end
|
59
60
|
end
|
@@ -5,6 +5,8 @@ class SteroidGenerator < Rails::Generators::NamedBase
|
|
5
5
|
create_file "lib/generators/steroid/#{name}/#{name}_generator.rb", <<~RUBY
|
6
6
|
# frozen_string_literal: true
|
7
7
|
|
8
|
+
require 'tty/prompt'
|
9
|
+
|
8
10
|
module Steroid
|
9
11
|
class #{name.camelize}Generator < Rails::Generators::Base
|
10
12
|
desc "Adds #{name.titlecase} to the application"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_steroids
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anand Bait
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-02-
|
11
|
+
date: 2024-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|