factory_bot_instrumentation 3.2.0 → 3.3.0
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/.simplecov +6 -12
- data/CHANGELOG.md +9 -0
- data/Gemfile +1 -1
- data/app/controllers/factory_bot/instrumentation/root_controller.rb +16 -8
- data/gemfiles/rails_8.1.gemfile +1 -1
- data/lib/factory_bot/instrumentation/version.rb +1 -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: f6cb0a2508a5fce9ba25a3891aa668d6765bd0a2189591484df573f25fa03dc1
|
|
4
|
+
data.tar.gz: f86305471ca4e6c7910b77d4da559588aa356f6f951c722becd627a510adf3ee
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2e6525a87cd479a8474a67420066fa44a7eb9413432c875af9ad9418bbca0a26d798633ce2e8df5d81009cabca2c5c066a3ff507d26f2c8d7122ebf81e820ab3
|
|
7
|
+
data.tar.gz: e16988ba17fc501c6f7b2f070a81051d8d0c07e58899778aec6801af0d11053a16c5a00526958d512f4661af7931d7118106dff9300af828fc871fc382eb7fbf
|
data/.simplecov
CHANGED
|
@@ -1,15 +1,9 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
# Fail the run on any deprecated SimpleCov spelling instead of just
|
|
4
|
+
# warning, so an old configuration cannot creep back in unnoticed.
|
|
5
|
+
SimpleCov.deprecations :raise
|
|
5
6
|
|
|
6
|
-
SimpleCov
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
SimpleCov::Formatter::JSONFormatter
|
|
10
|
-
]
|
|
11
|
-
)
|
|
12
|
-
|
|
13
|
-
SimpleCov.start 'test_frameworks' do
|
|
14
|
-
add_filter '/vendor/bundle/'
|
|
15
|
-
end
|
|
7
|
+
# Shared SimpleCov configuration only, the coverage tracking itself is
|
|
8
|
+
# started from the spec helper.
|
|
9
|
+
SimpleCov.formats :html
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
* TODO: Replace this bullet point with an actual description of a change.
|
|
4
4
|
|
|
5
|
+
### 3.3.0 (28 September 2026)
|
|
6
|
+
|
|
7
|
+
* Upgraded the simplecov gem to 1.3 ([#50](https://github.com/hausgold/factory_bot_instrumentation/pull/50))
|
|
8
|
+
|
|
9
|
+
### 3.2.1 (26 June 2026)
|
|
10
|
+
|
|
11
|
+
* Disabled parameter wrapping to silence spurious unpermitted parameter log
|
|
12
|
+
warnings ([#49](https://github.com/hausgold/factory_bot_instrumentation/pull/49))
|
|
13
|
+
|
|
5
14
|
### 3.2.0 (19 June 2026)
|
|
6
15
|
|
|
7
16
|
* Improved the title and navigation title on the Instrumentation UI ([#48](https://github.com/hausgold/factory_bot_instrumentation/pull/48))
|
data/Gemfile
CHANGED
|
@@ -4,6 +4,13 @@ module FactoryBot
|
|
|
4
4
|
module Instrumentation
|
|
5
5
|
# The Instrumentation engine controller with frontend and API actions.
|
|
6
6
|
class RootController < FactoryBot::Instrumentation::ApplicationController
|
|
7
|
+
# Disable Rails' parameter wrapping. For JSON requests it would nest
|
|
8
|
+
# a copy of the request body under a +root+ key (derived from this
|
|
9
|
+
# controller's name). There is no +Root+ model to map onto, so the
|
|
10
|
+
# wrapper only duplicates the parameters and adds a spurious
|
|
11
|
+
# "Unpermitted parameters: :root" log warning.
|
|
12
|
+
wrap_parameters false
|
|
13
|
+
|
|
7
14
|
# Show the instrumentation frontend which features the output of
|
|
8
15
|
# configured dynamic seeds scenarios. The frontend allows humans to
|
|
9
16
|
# generate new seed data on the fly.
|
|
@@ -52,14 +59,15 @@ module FactoryBot
|
|
|
52
59
|
#
|
|
53
60
|
# @return [Array<Mixed>] the FactoryBot options
|
|
54
61
|
def factory_params
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
62
|
+
# Read the open-ended +overwrite+ hash unfiltered, as its keys and
|
|
63
|
+
# values are arbitrary and cannot be described with strong
|
|
64
|
+
# parameters.
|
|
65
|
+
overwrite = params.to_unsafe_h.fetch(:overwrite, {})
|
|
66
|
+
.deep_symbolize_keys
|
|
67
|
+
# Strip +overwrite+ before permitting the rest, otherwise it would
|
|
68
|
+
# be reported as a spurious "Unpermitted parameters: :overwrite"
|
|
69
|
+
# log warning.
|
|
70
|
+
data = params.except(:overwrite).permit(:factory, traits: [])
|
|
63
71
|
|
|
64
72
|
[
|
|
65
73
|
data.fetch(:factory).to_sym,
|
data/gemfiles/rails_8.1.gemfile
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: factory_bot_instrumentation
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.
|
|
4
|
+
version: 3.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Hermann Mayer
|
|
@@ -161,7 +161,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
161
161
|
- !ruby/object:Gem::Version
|
|
162
162
|
version: '0'
|
|
163
163
|
requirements: []
|
|
164
|
-
rubygems_version: 4.0.
|
|
164
|
+
rubygems_version: 4.0.20
|
|
165
165
|
specification_version: 4
|
|
166
166
|
summary: Allow your testers to generate test data on demand
|
|
167
167
|
test_files: []
|