gemwork 0.7.6 → 0.7.7

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: 518474bba4d215372d68b99b93961f00a8511fa92181d52e5c9e2e30630940c3
4
- data.tar.gz: 48f0e1b3d6c33348f429d7460f80cd51a5730893351fd671e342823b6ccfa07f
3
+ metadata.gz: 53e0a979a4a9e12370ace1a65b0c53a8ccd7f8e07fff3eada0a11a24701a1ea4
4
+ data.tar.gz: 7a4576651a7939626209b54665e37da21e606414cead6108bf596f1b430307df
5
5
  SHA512:
6
- metadata.gz: 90216df5432e04bef1056e591a83c2d7bc93d69e70263760b5963e03ad9cd3ee879331ca2a0fad6d53f7c5e9c70a402e81a2f1f965e0c7a1ab4ba7048502fffb
7
- data.tar.gz: 0abfa9508e952192d48612d11dfbc3e89f9e545e74e1ae02885ca5de0fa626027d091ca5d55a2b822381ea859aaaf3c6ad35abad51aefbffdabb4a0c829d97cc
6
+ metadata.gz: 87366957867ad99de2e1dc9fcace44b1514ab50e9fc8d13212e8f6c0131cf8f4c03ac57063a3a5cb8608b0b6117d3a595c5f4d2f10757905b1fa06745c3cf938
7
+ data.tar.gz: 1271b425d47de67a42cc132113cb285dec1a1acdbe566b0e3291a1347b87cc488c3217440f31833c8976376c39a394d447d37a04deadfbd36da1dd6585c699b4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.7.7] - 2025-2-4
4
+
5
+ - Add Rake task for: `brakeman`
6
+
3
7
  ## [0.7.6] - 2025-2-1
4
8
 
5
9
  - Update RuboCop config to allow long lines of deeply namespaced class comments
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`, 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 tasks, such as `eslint`, `prettier`, `brakeman`, and `test:system`.
62
62
 
63
63
  ```ruby
64
64
  # frozen_string_literal: true
@@ -70,7 +70,7 @@ spec = Gem::Specification.find_by_name("gemwork")
70
70
  # Load additional tasks defined by Gemwork.
71
71
  Dir.glob(
72
72
  Pathname.new(spec.gem_dir).
73
- join("lib", "tasks", "{util,rubocop,reek,eslint,prettier}.rake")) do |task|
73
+ join("lib", "tasks", "{util,rubocop,reek,eslint,prettier,brakeman}.rake")) do |task|
74
74
  load(task)
75
75
  end
76
76
 
@@ -83,6 +83,7 @@ task :default do
83
83
  reek
84
84
  eslint
85
85
  prettier
86
+ brakeman
86
87
  test:system
87
88
  ])
88
89
  end
@@ -230,17 +231,9 @@ The below fixes eslint linting errors in Rails (7+, ...) projects.
230
231
  "ecmaVersion": "latest",
231
232
  "sourceType": "module"
232
233
  },
233
- "overrides": [
234
- {
235
- "files": ["config/tailwind.config.js"],
236
- "env": {
237
- "node": true
238
- },
239
- "rules": {
240
- "no-unused-vars": ["error", { "varsIgnorePattern": "defaultTheme" }]
241
- }
242
- }
243
- ]
234
+ "globals": {
235
+ "Turbo": "readonly"
236
+ }
244
237
  }
245
238
  ```
246
239
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Gemwork
4
- VERSION = "0.7.6"
4
+ VERSION = "0.7.7"
5
5
  end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ desc "Run Brakeman"
4
+ task(:brakeman, :output_files) do |_task, args|
5
+ require "brakeman"
6
+
7
+ files = args[:output_files].split if args[:output_files]
8
+ Brakeman.run(
9
+ app_path: ".",
10
+ quiet: true,
11
+ output_files: files,
12
+ print_report: true,
13
+ pager: false)
14
+ 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.6
4
+ version: 0.7.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul DobbinSchmaltz
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-02-02 00:00:00.000000000 Z
10
+ date: 2025-02-04 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: rake
@@ -229,6 +229,7 @@ files:
229
229
  - lib/rubocop/rails.yml
230
230
  - lib/rubocop/style-rails.yml
231
231
  - lib/rubocop/style.yml
232
+ - lib/tasks/brakeman.rake
232
233
  - lib/tasks/eslint.rake
233
234
  - lib/tasks/prettier.rake
234
235
  - lib/tasks/reek.rake