nextgen 0.7.0 → 0.9.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: b31a321aa0243167ed862371f377d8441ce4e6f16ea2955bf9b836757f1f6cb8
4
- data.tar.gz: c2069575c1e14b9d4adf3fbf8fc6d6fb6ce0052356acb396a71250e430dc9334
3
+ metadata.gz: b80094f25dff39bd1bc1a02e3f97b5b9734f1b4181cc296859a27d99dc67eec0
4
+ data.tar.gz: e69e83394de1775fbdb3f47281ed94c551335b19ed30799cbd4588b94e457540
5
5
  SHA512:
6
- metadata.gz: 2e40eb8dd637109e523e76de594c91a5738429dbe96caef55b08901f7790e55ce47c034236807d750a8a9315edfa38b11c61ff66e084edba1b74c66b812b5459
7
- data.tar.gz: 7c898079fab24493ee417a3f91887eef927135ae07fe22a42c22c582e1eb16a6eb58e096812b0424cf2da112cab657c14b304cc52911f03439a6a7078eb7a596
6
+ metadata.gz: f94e12485984ea85094337ef65a53885933c7261d7e3a5af072d24d34c2bdfac1bdb25be2d9d080d0abf687d1d2750aa01a7e40dfb0329520103ff7dfb465b15
7
+ data.tar.gz: 8170d1bc83bfa96f3392a2b72275ead5b66c1e9fe9b2be29479ec1023c9921b4627cebb48871b62fdf8b5d12a716ca15c255c6d796802b5d8dbe84617224cf20
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2023 Matt Brictson
3
+ Copyright (c) 2024 Matt Brictson
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -1,9 +1,9 @@
1
1
  say_git "Install stylelint"
2
2
  add_yarn_packages(
3
- "stylelint@^15",
4
- "stylelint-config-standard@^34",
5
- "stylelint-declaration-strict-value@^1",
6
- "stylelint-prettier@^4",
3
+ "stylelint",
4
+ "stylelint-config-standard",
5
+ "stylelint-declaration-strict-value",
6
+ "stylelint-prettier",
7
7
  "prettier",
8
8
  "npm-run-all",
9
9
  dev: true
@@ -14,7 +14,7 @@ add_package_json_scripts(
14
14
  lint: "npm-run-all lint:**",
15
15
  fix: "npm-run-all fix:**"
16
16
  )
17
- copy_file ".stylelintrc.cjs"
17
+ copy_file ".stylelintrc.js"
18
18
 
19
19
  say_git "Add stylelint to default rake task"
20
20
  copy_file "lib/tasks/stylelint.rake"
@@ -8,7 +8,7 @@ module Nextgen
8
8
  YAML.load_file(yaml_path).each do |name, options|
9
9
  options ||= {}
10
10
  requirements = Array(options["requires"])
11
- next unless requirements.all? { |req| rails_opts.public_send("#{req}?") }
11
+ next unless requirements.all? { |req| rails_opts.public_send(:"#{req}?") }
12
12
 
13
13
  g.add(
14
14
  name.to_sym,
@@ -1,3 +1,3 @@
1
1
  module Nextgen
2
- VERSION = "0.7.0".freeze
2
+ VERSION = "0.9.0".freeze
3
3
  end
@@ -63,7 +63,7 @@ PreCommit:
63
63
  on_warn: fail
64
64
  <% end -%>
65
65
 
66
- <% if File.exist?(".stylelintrc.cjs") -%>
66
+ <% if File.exist?(".stylelintrc.js") -%>
67
67
  Stylelint:
68
68
  enabled: true
69
69
  required_executable: npx
@@ -1,5 +1,7 @@
1
- module.exports = {
2
- plugins: ["stylelint-declaration-strict-value"],
1
+ import strictValuePlugin from "stylelint-declaration-strict-value";
2
+
3
+ export default {
4
+ plugins: [strictValuePlugin],
3
5
  extends: ["stylelint-config-standard", "stylelint-prettier/recommended"],
4
6
  rules: {
5
7
  "color-hex-length": null,
data/template/bin/setup CHANGED
@@ -4,12 +4,12 @@
4
4
  # This script is idempotent, so that you can run it at any time and get an expectable outcome.
5
5
  # Add necessary setup steps to this method.
6
6
  def setup!
7
+ env ".env", from: ".env.sample"
7
8
  run "bundle install" if bundle_needed?
8
9
  run "overcommit --install" if overcommit_installable?
9
10
  run "bin/rails db:prepare" if database_present?
10
11
  run "yarn install" if yarn_needed?
11
12
  run "bin/rails tmp:create" if tmp_missing?
12
- env ".env", from: ".env.sample"
13
13
  run "bin/rails restart"
14
14
 
15
15
  if git_safe_needed?
@@ -84,7 +84,7 @@ end
84
84
 
85
85
  def say_status(label, message, color = :green)
86
86
  label = label.to_s.rjust(12)
87
- puts [colorize(label, color), message].join(" ")
87
+ puts [colorize(label, color), message.gsub(/^/, " " * 13).strip].join(" ")
88
88
  end
89
89
 
90
90
  def colorize(str, color)
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.7.0
4
+ version: 0.9.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: 2023-12-19 00:00:00.000000000 Z
11
+ date: 2024-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -152,7 +152,7 @@ files:
152
152
  - template/.overcommit.yml.tt
153
153
  - template/.prettierrc.cjs
154
154
  - template/.rubocop.yml.tt
155
- - template/.stylelintrc.cjs
155
+ - template/.stylelintrc.js
156
156
  - template/DEPLOYMENT.md
157
157
  - template/Procfile.tt
158
158
  - template/README.md.tt
@@ -219,7 +219,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
219
219
  - !ruby/object:Gem::Version
220
220
  version: '0'
221
221
  requirements: []
222
- rubygems_version: 3.4.22
222
+ rubygems_version: 3.5.3
223
223
  signing_key:
224
224
  specification_version: 4
225
225
  summary: Generate your next Rails app interactively!