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 +4 -4
- data/CHANGELOG.md +10 -0
- data/LICENSE.txt +1 -1
- data/README.md +4 -4
- data/lib/gemwork/test/support/much_stub-rails.rb +10 -0
- data/lib/gemwork/test/support/much_stub.rb +4 -13
- data/lib/gemwork/version.rb +1 -1
- data/lib/reek/.reek-rails.yml +3 -0
- data/lib/rubocop/all_cops-rails.yml +1 -1
- data/lib/rubocop/all_cops.yml +1 -1
- data/lib/rubocop/layout-rails.yml +5 -0
- data/lib/rubocop/metrics-rails.yml +1 -0
- data/lib/rubocop/style-rails.yml +4 -0
- metadata +5 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ed68e78a9406c21f06aafa6af2f9ca261f9f1e11c5e0951c95b56b1fd1ed2f1
|
4
|
+
data.tar.gz: 284f9b95dc7468a11e476e3ec90b34c5876a7a0aebe39598160a357625d08207
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
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.
|
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.
|
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
|
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
|
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`
|
@@ -2,18 +2,9 @@
|
|
2
2
|
|
3
3
|
require "much-stub"
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
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
|
data/lib/gemwork/version.rb
CHANGED
data/lib/reek/.reek-rails.yml
CHANGED
@@ -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/**/*
|
data/lib/rubocop/all_cops.yml
CHANGED
data/lib/rubocop/style-rails.yml
CHANGED
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.
|
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:
|
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.
|
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.
|
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: []
|