gemwork 0.6.0 → 0.7.1

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: c91820eba811f86523e00689d992d8c1cc0e350590a523c2aa81e428b48ce71c
4
- data.tar.gz: 9dc933263f0566026a1d619fa27e81fb63bd3226f16b497ac9b02af0f96bc420
3
+ metadata.gz: fe8acf8b9b48dcfae2a50c4e735355c6a1da0b1845132b119692f6fdadc8455b
4
+ data.tar.gz: b28e8ee7ae469f81295322f228065f9f4e84c17f88748cb1abab3034a7e80f06
5
5
  SHA512:
6
- metadata.gz: 5de44ccbd9ac0866f7e23d2b41113fbc64c8408004b83eb502ab98a05472d416dc3bdd111f5bb326be3a8fd03be8a70c1503a880c9e37e2fe6fdfbb1f0cc3f0a
7
- data.tar.gz: 30f7ae391a501f736752981febc7b20af556dbee1f99f89103bacf173d130f0c8278ad2b8f8615bc770944bbf5d6d1baa703c0765f0546f14dff1c924f2abd23
6
+ metadata.gz: 8b3a4c870b3d569d465bf0b1eca85a30b03a4208a07a090e659649422307c3a04edd817aabc2ea0947f24ea2a971bec5da93ad609ae0fdc7417b387ea5a04733
7
+ data.tar.gz: f983ce1ef7d49f57a6927cef0858103ebd92e27b62c98a594864cc4fee961c83104b99d51cb87b2f5caa23f840527779feb2b4455d310993e4b6cc61d4359862
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.7.1] - 2024-11-21
4
+
5
+ - Auto-detect ActiveSupport::TestCase vs Minitest::Spec (rails vs non-rails) in test/support/much_stub.rb.
6
+
7
+ ## [0.7.0] - 2024-11-21
8
+
9
+ - Update minimum Ruby version from 2.7 -> 3.1
10
+ - Update RuboCop Styles
11
+
3
12
  ## [0.6.0] - 2024-10-9
4
13
 
5
14
  - Update RuboCop Styles, especially for Rails projects
data/README.md CHANGED
@@ -144,7 +144,7 @@ inherit_gem:
144
144
 
145
145
  # Override values from gemwork's lib/rubocop/all_cops.yml config.
146
146
  AllCops:
147
- TargetRubyVersion: 2.7
147
+ TargetRubyVersion: 3.1
148
148
  ```
149
149
 
150
150
  See also: [RuboCop's Configuration Guide on Inheritance](https://github.com/rubocop/rubocop/blob/master/docs/modules/ROOT/pages/configuration.adoc#inheriting-configuration-from-a-dependency-gem).
@@ -2,9 +2,18 @@
2
2
 
3
3
  require "much-stub"
4
4
 
5
- # Augment the existing ActiveSupport::TestCase class.
6
- class ActiveSupport::TestCase
7
- after do
8
- MuchStub.unstub!
5
+ if defined?(ActiveSupport::TestCase)
6
+ # Augment the existing ActiveSupport::TestCase class.
7
+ class ActiveSupport::TestCase
8
+ after do
9
+ MuchStub.unstub!
10
+ end
11
+ end
12
+ else
13
+ # Augment the existing Minitest::Spec class.
14
+ class Minitest::Spec
15
+ after do
16
+ MuchStub.unstub!
17
+ end
9
18
  end
10
19
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Gemwork
4
- VERSION = "0.6.0"
4
+ VERSION = "0.7.1"
5
5
  end
@@ -3,7 +3,7 @@ AllCops:
3
3
  DisplayStyleGuide: true
4
4
  ExtraDetails: true
5
5
  NewCops: enable
6
- TargetRubyVersion: 2.7
6
+ TargetRubyVersion: 3.1
7
7
  UseCache: true
8
8
  Exclude:
9
9
  # Rubocop Defaults
@@ -1,3 +1,9 @@
1
+ Layout/FirstMethodArgumentLineBreak:
2
+ Enabled: true
3
+ AllowMultilineFinalElement: true
4
+ AllowedMethods:
5
+ - t
6
+
1
7
  Layout/LineLength:
2
8
  Exclude:
3
9
  - Gemfile
data/lib/rubocop/lint.yml CHANGED
@@ -7,5 +7,9 @@ Lint/HeredocMethodCallPosition:
7
7
  Lint/NumberConversion:
8
8
  Enabled: false
9
9
 
10
+ Lint/UselessAccessModifier:
11
+ ContextCreatingMethods:
12
+ - concerning
13
+
10
14
  Lint/Void:
11
15
  CheckForMethodsWithNoSideEffects: true
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gemwork
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul DobbinSchmaltz
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-10-10 00:00:00.000000000 Z
11
+ date: 2024-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -253,14 +253,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
253
253
  requirements:
254
254
  - - ">="
255
255
  - !ruby/object:Gem::Version
256
- version: '2.7'
256
+ version: '3.1'
257
257
  required_rubygems_version: !ruby/object:Gem::Requirement
258
258
  requirements:
259
259
  - - ">="
260
260
  - !ruby/object:Gem::Version
261
261
  version: '0'
262
262
  requirements: []
263
- rubygems_version: 3.5.18
263
+ rubygems_version: 3.5.23
264
264
  signing_key:
265
265
  specification_version: 4
266
266
  summary: Common gem framework code used by pdobb's Ruby Gems.