gemwork 0.7.15 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 47557445e423d20f345f326b200ddfe229df350f82f854af8fae69a37648e163
4
- data.tar.gz: 797a9f2f2bf6c1ad648ba0fd0a408e46be96fc8a72ee77ed63800dc903b36ff8
3
+ metadata.gz: e459ae34fcb57932b898bb1fb99b5ef296e4d4724dd3e532af083b348fd51b59
4
+ data.tar.gz: 63462ad9ea0238661bc9e57a5a48d981e0a58509ba5e341033c24dbf7a49cbe7
5
5
  SHA512:
6
- metadata.gz: ed8fa62c7b5f5226f48c4ede1e0b3d5bc2f658805d40989189809e73b6f69fb17f9705af18caee760943b8920824572368ad7987221a0eea407b5b195120ec70
7
- data.tar.gz: 14548612b26692fed0953852ed3d5a209ff4e06679929f9d37d4b947dbb7e56ab2fd11e42e0bc4ca010235c4a1d76195393b5e675529b280a8e41dbb354a9f4b
6
+ metadata.gz: 6c4396abf1462b040a62d37507a2ed7e631311f20e052d1d4e46f20be3aec88ff9e7876c28372440de9f00469c0c1f948f40c05573d44408d93659601b5e2990
7
+ data.tar.gz: 91b73181367d3b52a31458c38f14067f6323c02a3161689a13b5b6975075a46a3914060d50db23e392771bbd71892a3a3ed484b6efee651235425410397e40eb
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
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
+
3
8
  ## [0.7.15] - 2025-3-23
4
9
 
5
10
  - Improve output on error in `rake prettier` task
@@ -1,5 +1,21 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- def context(...)
4
- describe(...)
5
- end
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(...)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Gemwork
4
- VERSION = "0.7.15"
4
+ VERSION = "0.7.16"
5
5
  end
@@ -1,15 +1,15 @@
1
1
  AllCops:
2
- DisplayCopNames: true
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
@@ -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/**/*"
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.15
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-03-23 00:00:00.000000000 Z
10
+ date: 2025-04-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: rake