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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5e8c4dd4b29b2e8afac9f923b72b56daf86a73e5bae75285b2af1b604ccc45c0
4
- data.tar.gz: 8fafac6254aa48ccc290f303e02012d906de34e947f2c32e4f9245e8d34e76d9
3
+ metadata.gz: c1f17283eec0996db671512afbc900f11af08f922309834accf9379c4c19b2a2
4
+ data.tar.gz: dfa1a949a4afdeac6ce8ce6ebe80b70871623d167688f0348572f157f7e6352b
5
5
  SHA512:
6
- metadata.gz: 2ee5135257dfcb2096400b1ab15ce501108817606ee30b00bcfb42505106a49a3e0a8fe3fcbbe4543c3d5a01873dada585b3a40861788248b35f44bcf0cabe82
7
- data.tar.gz: 0c9ed43018047dabb368c64190fe65136675a622c49735b1b8f156d21915cf977e3449ab57cf89c19ed67f14592a7ac82f4d5743e803f9cc73a081f9a71e634c
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)
@@ -32,7 +32,6 @@ main:
32
32
  label: "main (%%MAIN_VERSION%%)"
33
33
  asset_pipelines:
34
34
  propshaft: Propshaft (default)
35
- sprockets: Sprockets
36
35
  databases:
37
36
  sqlite3: SQLite3 (default)
38
37
  postgresql: PostgreSQL (recommended)
@@ -1,11 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # kamal is incompatible with the latest version of dotenv, so fall back
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 sprockets"
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
- version_rb = URI.open("https://raw.githubusercontent.com/rails/rails/main/version.rb").read
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Nextgen
4
- VERSION = "0.24.0"
4
+ VERSION = "0.26.0"
5
5
  end
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.24.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-17 00:00:00.000000000 Z
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.16
229
+ rubygems_version: 3.5.19
230
230
  signing_key:
231
231
  specification_version: 4
232
232
  summary: Generate your next Rails app interactively!