gemwork 0.7.1 → 0.7.3

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: fe8acf8b9b48dcfae2a50c4e735355c6a1da0b1845132b119692f6fdadc8455b
4
- data.tar.gz: b28e8ee7ae469f81295322f228065f9f4e84c17f88748cb1abab3034a7e80f06
3
+ metadata.gz: 5ed68e78a9406c21f06aafa6af2f9ca261f9f1e11c5e0951c95b56b1fd1ed2f1
4
+ data.tar.gz: 284f9b95dc7468a11e476e3ec90b34c5876a7a0aebe39598160a357625d08207
5
5
  SHA512:
6
- metadata.gz: 8b3a4c870b3d569d465bf0b1eca85a30b03a4208a07a090e659649422307c3a04edd817aabc2ea0947f24ea2a971bec5da93ad609ae0fdc7417b387ea5a04733
7
- data.tar.gz: f983ce1ef7d49f57a6927cef0858103ebd92e27b62c98a594864cc4fee961c83104b99d51cb87b2f5caa23f840527779feb2b4455d310993e4b6cc61d4359862
6
+ metadata.gz: 4eee5e0d79a24ed708ef72f95cc3804ca8a023d4df74c430595077ca2ac910b95ce748f7c57a70e268b5fee1c8e1b15d4f346703e54648a04fc96a7c77ac1f00
7
+ data.tar.gz: 200b8283a161b7ee524682fc1165206034c3e32bd41cfb52c6249b2015ccd39a809e1ec20adb401cdfd33023262032e9fc8c8bd685deb6d84af3a339afd9063c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.7.3] - 2025-1-4
4
+
5
+ - Update minimum Ruby version from 3.1 -> 3.2
6
+ - Update RuboCop config to exclude db/seeds.rb from a few of the more restrictive Style/Layout/Metrics cops
7
+ - Update reek config to altogether exclude db/seeds.rb
8
+
9
+ ## [0.7.2] - 2024-11-22
10
+
11
+ - Remove auto-detect of ActiveSupport::TestCase vs Minitest::Spec in favor of manual selection of test/support/much_stub.rb vs test/support/much_stub-rails.rb. This fixes incorrect auto-detection of "Rails" env in gems that include a Rails test dummy.
12
+
3
13
  ## [0.7.1] - 2024-11-21
4
14
 
5
15
  - Auto-detect ActiveSupport::TestCase vs Minitest::Spec (rails vs non-rails) in test/support/much_stub.rb.
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2023 Paul DobbinSchmaltz
3
+ Copyright (c) 2025 Paul DobbinSchmaltz
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
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: 3.1
147
+ TargetRubyVersion: 3.4
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).
@@ -177,7 +177,7 @@ inherit_gem:
177
177
 
178
178
  # Override values from gemwork's lib/rubocop/all_cops.yml config.
179
179
  AllCops:
180
- TargetRubyVersion: 3.3
180
+ TargetRubyVersion: 3.4
181
181
  Exclude:
182
182
  - bin/bundle
183
183
  ```
@@ -327,7 +327,7 @@ REBUILD_GEMWORK=1 bin/setup
327
327
 
328
328
  ### Testing
329
329
 
330
- To test this gem (gemwork):
330
+ To test this gem:
331
331
 
332
332
  ```bash
333
333
  rake
@@ -346,7 +346,7 @@ npx prettier . --write
346
346
 
347
347
  ### Releases
348
348
 
349
- To release a new version of Gemwork to RubyGems:
349
+ To release a new version of this gem to RubyGems:
350
350
 
351
351
  1. Update the version number in `version.rb`
352
352
  2. Update `CHANGELOG.md`
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "much-stub"
4
+
5
+ # Augment the existing ActiveSupport::TestCase class.
6
+ class ActiveSupport::TestCase
7
+ after do
8
+ MuchStub.unstub!
9
+ end
10
+ end
@@ -2,18 +2,9 @@
2
2
 
3
3
  require "much-stub"
4
4
 
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
5
+ # Augment the existing Minitest::Spec class.
6
+ class Minitest::Spec
7
+ after do
8
+ MuchStub.unstub!
18
9
  end
19
10
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Gemwork
4
- VERSION = "0.7.1"
4
+ VERSION = "0.7.3"
5
5
  end
@@ -17,6 +17,8 @@ directories:
17
17
  app/controllers:
18
18
  IrresponsibleModule:
19
19
  enabled: false
20
+ InstanceVariableAssumption:
21
+ enabled: false
20
22
  app/helpers:
21
23
  IrresponsibleModule:
22
24
  enabled: false
@@ -47,5 +49,6 @@ directories:
47
49
 
48
50
  exclude_paths:
49
51
  - db/migrate/*
52
+ - db/seeds.rb
50
53
  - test/**/*
51
54
  - lib/templates/**/*
@@ -3,7 +3,7 @@ AllCops:
3
3
  DisplayStyleGuide: true
4
4
  ExtraDetails: true
5
5
  NewCops: enable
6
- TargetRubyVersion: 3.3
6
+ TargetRubyVersion: 3.4
7
7
  UseCache: true
8
8
  Exclude:
9
9
  # Rubocop Defaults
@@ -3,7 +3,7 @@ AllCops:
3
3
  DisplayStyleGuide: true
4
4
  ExtraDetails: true
5
5
  NewCops: enable
6
- TargetRubyVersion: 3.1
6
+ TargetRubyVersion: 3.2
7
7
  UseCache: true
8
8
  Exclude:
9
9
  # Rubocop Defaults
@@ -8,3 +8,8 @@ Layout/LineLength:
8
8
  Exclude:
9
9
  - Gemfile
10
10
  - config/environments/*.rb
11
+ - db/seeds.rb
12
+
13
+ Layout/MultilineArrayLineBreaks:
14
+ Exclude:
15
+ - db/seeds.rb
@@ -11,4 +11,5 @@ Metrics/BlockLength:
11
11
  - config/environments/*.rb
12
12
  - config/routes.rb
13
13
  - db/migrate/*.rb
14
+ - db/seeds.rb
14
15
  - test/**/*
@@ -12,3 +12,7 @@ Style/FrozenStringLiteralComment:
12
12
  Exclude:
13
13
  - config.ru
14
14
  - bin/*
15
+
16
+ Style/MultielineBlockChain:
17
+ Exclude:
18
+ - db/seeds.rb
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gemwork
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul DobbinSchmaltz
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2024-11-21 00:00:00.000000000 Z
10
+ date: 2025-01-04 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: rake
@@ -205,6 +204,7 @@ files:
205
204
  - lib/.DS_Store
206
205
  - lib/gemwork.rb
207
206
  - lib/gemwork/.DS_Store
207
+ - lib/gemwork/test/support/much_stub-rails.rb
208
208
  - lib/gemwork/test/support/much_stub.rb
209
209
  - lib/gemwork/test/support/reporters.rb
210
210
  - lib/gemwork/test/support/simplecov.rb
@@ -245,7 +245,6 @@ metadata:
245
245
  source_code_uri: https://github.com/pdobb/gemwork
246
246
  homepage_uri: https://github.com/pdobb/gemwork
247
247
  rubygems_mfa_required: 'true'
248
- post_install_message:
249
248
  rdoc_options: []
250
249
  require_paths:
251
250
  - lib
@@ -253,15 +252,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
253
252
  requirements:
254
253
  - - ">="
255
254
  - !ruby/object:Gem::Version
256
- version: '3.1'
255
+ version: '3.2'
257
256
  required_rubygems_version: !ruby/object:Gem::Requirement
258
257
  requirements:
259
258
  - - ">="
260
259
  - !ruby/object:Gem::Version
261
260
  version: '0'
262
261
  requirements: []
263
- rubygems_version: 3.5.23
264
- signing_key:
262
+ rubygems_version: 3.6.2
265
263
  specification_version: 4
266
264
  summary: Common gem framework code used by pdobb's Ruby Gems.
267
265
  test_files: []