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 +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +6 -13
- data/lib/gemwork/version.rb +1 -1
- data/lib/tasks/brakeman.rake +14 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 53e0a979a4a9e12370ace1a65b0c53a8ccd7f8e07fff3eada0a11a24701a1ea4
|
4
|
+
data.tar.gz: 7a4576651a7939626209b54665e37da21e606414cead6108bf596f1b430307df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87366957867ad99de2e1dc9fcace44b1514ab50e9fc8d13212e8f6c0131cf8f4c03ac57063a3a5cb8608b0b6117d3a595c5f4d2f10757905b1fa06745c3cf938
|
7
|
+
data.tar.gz: 1271b425d47de67a42cc132113cb285dec1a1acdbe566b0e3291a1347b87cc488c3217440f31833c8976376c39a394d447d37a04deadfbd36da1dd6585c699b4
|
data/CHANGELOG.md
CHANGED
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
|
-
"
|
234
|
-
|
235
|
-
|
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
|
|
data/lib/gemwork/version.rb
CHANGED
@@ -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.
|
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-
|
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
|