gemwork 0.7.8 → 0.7.9

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: 5814942677e2ae7070660fc2bf0b3d3dae6fd08744f15b8e74fb997b7e1d4382
4
- data.tar.gz: 7e672645c76d464a3458dcf086182e102761df89031326ac01d36319c4e124a3
3
+ metadata.gz: b459cf2c0d2687e90166dd85a609e10e18e506cac0526dcda5d2f2a56ea9d36c
4
+ data.tar.gz: 66a1ed2aed09441916679b66b02d9e39d50246a09f5a6dc5d1feae096154ca6c
5
5
  SHA512:
6
- metadata.gz: 506f5bbf2f788b11ce8258c2c376695881ab19f89435df05896be4c8b8b8bdabcdc4977339d2a5c2e450c9e97a0b00f090452e6b0e63e88f602ef6fc5d7b6c77
7
- data.tar.gz: d15d91a6345c8254dd4b8f8754f275f53ccdb9eee91cea5bde579885e75277ef524146059f3b52ba0357b89968a3ebc679178133f766e0b1a334cb117bb9690f
6
+ metadata.gz: 48a20df477c63e4d756083dacfc3e819f0a65e683bd2fada00ccdd674e26c4eeb1dd125bfbc46e082a2b3c8cd7520b77d913f671c0031b49296c1e1c320daf60
7
+ data.tar.gz: 7051f6562676d243f9e501de09014c71ea0e5e1a261947bfc4855e1063b6623427bb8ea5af0fd8b6db8dc26b14797e794bfe6d178405b0fcb03f1732aa7b8b85
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.7.9] - 2025-2-13
4
+
5
+ - Add rake task for `erb_lint` for Rails apps
6
+
3
7
  ## [0.7.8] - 2025-2-12
4
8
 
5
9
  - Ignore `create` and `update` methods (controller actions) for Metrics/MethodLength cop
data/README.md CHANGED
@@ -58,7 +58,7 @@ Running `rake -T` after this will reveal the additional tasks defined by Gemwork
58
58
 
59
59
  ### Rails
60
60
 
61
- For a Rails project, you may need to conditionally run the above by returning early unless the current environment is development. Further, you may want to include other tasks, such as `eslint`, `prettier`, `brakeman`, and `test:system`.
61
+ For a Rails project, you may need to conditionally run the above by returning early unless the current environment is development. Further, you may want to include other gems & their rake tasks, such as: `erb_lint`, `eslint`, `prettier`, `brakeman`, and `test:system`.
62
62
 
63
63
  ```ruby
64
64
  # frozen_string_literal: true
@@ -69,8 +69,9 @@ spec = Gem::Specification.find_by_name("gemwork")
69
69
 
70
70
  # Load additional tasks defined by Gemwork.
71
71
  Dir.glob(
72
- Pathname.new(spec.gem_dir).
73
- join("lib", "tasks", "{util,rubocop,reek,eslint,prettier,brakeman}.rake")) do |task|
72
+ Pathname.new(spec.gem_dir).join(
73
+ "lib/tasks",
74
+ "{util,rubocop,erb_lint,reek,eslint,prettier,brakeman}.rake")) do |task|
74
75
  load(task)
75
76
  end
76
77
 
@@ -80,6 +81,7 @@ task :default do
80
81
  run_tasks(%i[
81
82
  test
82
83
  rubocop
84
+ erb_lint
83
85
  reek
84
86
  eslint
85
87
  prettier
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Gemwork
4
- VERSION = "0.7.8"
4
+ VERSION = "0.7.9"
5
5
  end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ desc "Run erb_lint on **/*.html.erb"
4
+ task :erb_lint do
5
+ system("bundle exec erb_lint --format=compact --lint-all") ||
6
+ exit($CHILD_STATUS.exitstatus)
7
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gemwork
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.8
4
+ version: 0.7.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul DobbinSchmaltz
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-02-12 00:00:00.000000000 Z
10
+ date: 2025-02-14 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: rake
@@ -230,6 +230,7 @@ files:
230
230
  - lib/rubocop/style-rails.yml
231
231
  - lib/rubocop/style.yml
232
232
  - lib/tasks/brakeman.rake
233
+ - lib/tasks/erb_lint.rake
233
234
  - lib/tasks/eslint.rake
234
235
  - lib/tasks/prettier.rake
235
236
  - lib/tasks/reek.rake