gemwork 0.7.14 → 0.7.16
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 +10 -0
- data/lib/gemwork/test/support/spec_dsl.rb +19 -3
- data/lib/gemwork/version.rb +1 -1
- data/lib/rubocop/all_cops-rails.yml +4 -4
- data/lib/rubocop/all_cops.yml +3 -4
- data/lib/rubocop/naming.yml +1 -0
- data/lib/tasks/prettier.rake +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e459ae34fcb57932b898bb1fb99b5ef296e4d4724dd3e532af083b348fd51b59
|
4
|
+
data.tar.gz: 63462ad9ea0238661bc9e57a5a48d981e0a58509ba5e341033c24dbf7a49cbe7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c4396abf1462b040a62d37507a2ed7e631311f20e052d1d4e46f20be3aec88ff9e7876c28372440de9f00469c0c1f948f40c05573d44408d93659601b5e2990
|
7
|
+
data.tar.gz: 91b73181367d3b52a31458c38f14067f6323c02a3161689a13b5b6975075a46a3914060d50db23e392771bbd71892a3a3ed484b6efee651235425410397e40eb
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,15 @@
|
|
1
1
|
## [Unreleased]
|
2
2
|
|
3
|
+
## [0.7.16] - 2025-4-1
|
4
|
+
|
5
|
+
- Add `given` to test/support/spec_dsl.rb. Similar to `context` but includes "GIVEN " in the test description
|
6
|
+
- Update Rubocop config to ignore all files in the .gitignore spec
|
7
|
+
|
8
|
+
## [0.7.15] - 2025-3-23
|
9
|
+
|
10
|
+
- Improve output on error in `rake prettier` task
|
11
|
+
- Allow `id` as a named parameter in Naming/MethodParameterName
|
12
|
+
|
3
13
|
## [0.7.14] - 2025-3-22
|
4
14
|
|
5
15
|
- Enable all cops by default + Update config for new additions
|
@@ -1,5 +1,21 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
3
|
+
# Use #given to setup the prerequisites/context of a set of test examples.
|
4
|
+
#
|
5
|
+
# @example
|
6
|
+
# describe "#<method_name>" do
|
7
|
+
# given "<condition>" do
|
8
|
+
# before { <setup condition here> }
|
9
|
+
#
|
10
|
+
# it "<result>" do
|
11
|
+
# _(subject.<method_name>).must_equal(<result>)
|
12
|
+
# end
|
13
|
+
#
|
14
|
+
# it ...
|
15
|
+
# end
|
16
|
+
# end
|
17
|
+
#
|
18
|
+
# # => <...Test>::#<method_name>::GIVEN <description>...
|
19
|
+
def given(description, ...) = describe("GIVEN #{description}", ...)
|
20
|
+
|
21
|
+
def context(...) = describe(...)
|
data/lib/gemwork/version.rb
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
AllCops:
|
2
|
-
|
2
|
+
ActiveSupportExtensionsEnabled: true
|
3
3
|
DisplayStyleGuide: true
|
4
4
|
EnabledByDefault: true
|
5
5
|
ExtraDetails: true
|
6
6
|
NewCops: enable
|
7
|
-
TargetRubyVersion: 3.4
|
8
7
|
UseCache: true
|
9
8
|
Exclude:
|
9
|
+
<% `git status --ignored --porcelain`.lines.grep(/^!! /).each do |path| %>
|
10
|
+
- <%= path.sub(/^!! /, '').sub(/\/$/, '/**/*') %>
|
11
|
+
<% end %>
|
10
12
|
# Rubocop Defaults
|
11
|
-
- "node_modules/**/*"
|
12
|
-
- "tmp/**/*"
|
13
13
|
- "vendor/**/*"
|
14
14
|
- ".git/**/*"
|
15
15
|
# Custom additions
|
data/lib/rubocop/all_cops.yml
CHANGED
@@ -1,16 +1,15 @@
|
|
1
1
|
AllCops:
|
2
|
-
DisplayCopNames: true
|
3
2
|
DisplayStyleGuide: true
|
4
3
|
EnabledByDefault: true
|
5
4
|
ExtraDetails: true
|
6
5
|
NewCops: enable
|
7
|
-
TargetRubyVersion: 3.2
|
8
6
|
UseCache: true
|
9
7
|
Exclude:
|
8
|
+
<% `git status --ignored --porcelain`.lines.grep(/^!! /).each do |path| %>
|
9
|
+
- <%= path.sub(/^!! /, '').sub(/\/$/, '/**/*') %>
|
10
|
+
<% end %>
|
10
11
|
# Rubocop Defaults
|
11
|
-
- "node_modules/**/*"
|
12
12
|
- "tmp/**/*"
|
13
|
-
- "vendor/**/*"
|
14
13
|
- ".git/**/*"
|
15
14
|
# Custom additions
|
16
15
|
- "script/**/*"
|
data/lib/rubocop/naming.yml
CHANGED
data/lib/tasks/prettier.rake
CHANGED
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.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul DobbinSchmaltz
|
8
8
|
bindir: exe
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-
|
10
|
+
date: 2025-04-02 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: rake
|