nextgen 0.24.0 → 0.26.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/config/rails_versions.yml +0 -1
- data/lib/nextgen/generators/dotenv.rb +1 -7
- data/lib/nextgen/generators/vite.rb +1 -2
- data/lib/nextgen/rails_options.rb +1 -1
- data/lib/nextgen/rails_version.rb +1 -3
- data/lib/nextgen/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1f17283eec0996db671512afbc900f11af08f922309834accf9379c4c19b2a2
|
4
|
+
data.tar.gz: dfa1a949a4afdeac6ce8ce6ebe80b70871623d167688f0348572f157f7e6352b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c03e8e7fb944e64a5d5f1c07bd16cc7332a7c80f8ecf3c7c57714ee185d133d6e462ebe92fea7597ecd1b9f30a6184af2d773037386789fd9eef299eb80daf87
|
7
|
+
data.tar.gz: 958604869b9991b4650c811ba68833c9b245b1a7a5ec14f16d33fc7f8929d0a4772b7ad9519014e1d50a14de1d95b5b2917c05f56fd404fd4e8e31c5e212af6e
|
data/README.md
CHANGED
@@ -28,7 +28,7 @@ Nextgen is an **interactive** and flexible alternative to `rails new` that inclu
|
|
28
28
|
|
29
29
|
Nextgen generates apps using **Rails 7.2**.
|
30
30
|
|
31
|
-
- **Ruby 3.1+** is required
|
31
|
+
- **Ruby 3.1+** is required (Ruby 3.2 if you choose a Rails 8 pre-release)
|
32
32
|
- **Rubygems 3.4.8+** is required (run `gem update --system` to get it)
|
33
33
|
- **Node 18.12+ and Yarn** are required if you choose Vite or other Node-based options
|
34
34
|
- Additional tools may be required depending on the options you select (e.g. PostgreSQL)
|
data/config/rails_versions.yml
CHANGED
@@ -1,11 +1,5 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
4
|
-
# to using the legacy dotenv-rails gem in that case.
|
5
|
-
if File.read("Gemfile.lock").match?(/\bkamal\b/)
|
6
|
-
install_gem "dotenv-rails", group: %i[development test]
|
7
|
-
else
|
8
|
-
install_gem "dotenv", version: ">= 3.0", group: %i[development test]
|
9
|
-
end
|
3
|
+
install_gem "dotenv", version: ">= 3.0", group: %i[development test]
|
10
4
|
copy_file ".env.sample"
|
11
5
|
gitignore "/.env*", "!/.env.sample"
|
@@ -113,13 +113,12 @@ RUBY
|
|
113
113
|
say_git "Remove jsbundling-rails"
|
114
114
|
remove_gem "jsbundling-rails"
|
115
115
|
|
116
|
-
say_git "Remove
|
116
|
+
say_git "Remove asset pipeline"
|
117
117
|
remove_file "config/initializers/assets.rb"
|
118
118
|
comment_lines "config/environments/development.rb", /^\s*config\.assets\./
|
119
119
|
comment_lines "config/environments/production.rb", /^\s*config\.assets\./
|
120
120
|
gsub_file "app/views/layouts/application.html.erb", /^.*<%= javascript_include_tag.*\n/, ""
|
121
121
|
gsub_file "app/views/layouts/application.html.erb", /^.*<%= stylesheet_link_tag.*\n/, ""
|
122
|
-
remove_gem "sprockets-rails"
|
123
122
|
|
124
123
|
if File.exist?(".github/workflows/ci.yml")
|
125
124
|
say_git "Add Node steps to CI workflow"
|
@@ -198,7 +198,7 @@ module Nextgen
|
|
198
198
|
args << "--skip-javascript" if skip_javascript?
|
199
199
|
args << "--skip-test" if skip_test?
|
200
200
|
args << "--skip-system-test" if skip_system_test?
|
201
|
-
args << "--asset-pipeline=#{asset_pipeline}" if asset_pipeline
|
201
|
+
args << "--asset-pipeline=#{asset_pipeline}" if asset_pipeline && asset_pipeline != asset_pipelines.keys.first
|
202
202
|
args << "--database=#{database}" if database
|
203
203
|
args << "--css=#{css}" if css
|
204
204
|
args << "--javascript=#{javascript}" if javascript
|
@@ -46,9 +46,7 @@ module Nextgen
|
|
46
46
|
|
47
47
|
def main_version
|
48
48
|
@main_version ||= begin
|
49
|
-
|
50
|
-
version_pattern = /\s+MAJOR\s+= (\d+)\n\s*MINOR\s+= (\d+)\n\s*TINY\s+= (\d+)\n\s*PRE\s+= "(\w+)"/
|
51
|
-
version_rb.match(version_pattern)&.captures&.join(".")
|
49
|
+
URI.open("https://raw.githubusercontent.com/rails/rails/main/RAILS_VERSION").read.strip
|
52
50
|
rescue OpenURI::HTTPError
|
53
51
|
"unknown"
|
54
52
|
end
|
data/lib/nextgen/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nextgen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.26.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Brictson
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-09-
|
11
|
+
date: 2024-09-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -226,7 +226,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
226
226
|
- !ruby/object:Gem::Version
|
227
227
|
version: '0'
|
228
228
|
requirements: []
|
229
|
-
rubygems_version: 3.5.
|
229
|
+
rubygems_version: 3.5.19
|
230
230
|
signing_key:
|
231
231
|
specification_version: 4
|
232
232
|
summary: Generate your next Rails app interactively!
|