factory_bot_instrumentation 1.6.1 → 1.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 +4 -4
- data/.github/workflows/test.yml +1 -1
- data/.rubocop.yml +2 -2
- data/CHANGELOG.md +35 -25
- data/Gemfile +3 -3
- data/app/assets/javascripts/factory_bot_instrumentation/create.js +2 -2
- data/app/controllers/factory_bot/instrumentation/root_controller.rb +2 -2
- data/factory_bot_instrumentation.gemspec +3 -0
- data/gemfiles/rails_6.1.gemfile +3 -3
- data/gemfiles/rails_7.1.gemfile +3 -3
- data/lib/factory_bot/instrumentation/version.rb +1 -1
- metadata +45 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 751602a2065d2c6e7354c1b5cbd9b55ba20ca4175e86a12662e9b3c65cec898f
|
4
|
+
data.tar.gz: 4246d4e2b53a0827a4bdb129bbe9ac53e19e6419192e09af497037d2d5724f53
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1bb36faf754f78d752c8832dbf55512fe08aab5391e7730b1955e04f2355636051f007d7adfcb7040ea280e0c9be5ec64199149fa5d55c24048b725ed032d9de
|
7
|
+
data.tar.gz: b5182a3f0a84780b8a5f13f1724872f58ae8d4ad0e24ebf0f763e2ea284f9b030d36501315f73e91d8b34f7c9e0a701195ecfbd19a8675abc41d7efe78b657b7
|
data/.github/workflows/test.yml
CHANGED
data/.rubocop.yml
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
plugins:
|
2
2
|
- rubocop-rspec
|
3
3
|
- rubocop-rails
|
4
4
|
|
@@ -59,7 +59,7 @@ RSpec/NestedGroups:
|
|
59
59
|
Max: 4
|
60
60
|
|
61
61
|
# Disable regular Rails spec paths.
|
62
|
-
|
62
|
+
Rails/FilePath:
|
63
63
|
Enabled: false
|
64
64
|
|
65
65
|
# Because we just implemented the ActiveRecord API.
|
data/CHANGELOG.md
CHANGED
@@ -2,38 +2,48 @@
|
|
2
2
|
|
3
3
|
* TODO: Replace this bullet point with an actual description of a change.
|
4
4
|
|
5
|
+
### 1.7.1 (14 March 2025)
|
6
|
+
|
7
|
+
* Corrected some RuboCop glitches ([#30](https://github.com/hausgold/factory_bot_instrumentation/pull/30))
|
8
|
+
* Upgraded the rubocop dependencies ([#31](https://github.com/hausgold/factory_bot_instrumentation/pull/31))
|
9
|
+
* Corrected a frontend error typo ([#32](https://github.com/hausgold/factory_bot_instrumentation/pull/32))
|
10
|
+
|
11
|
+
### 1.7.0 (30 January 2025)
|
12
|
+
|
13
|
+
* Added all versions up to Ruby 3.4 to the CI matrix ([#29](https://github.com/hausgold/factory_bot_instrumentation/pull/29))
|
14
|
+
|
5
15
|
### 1.6.1 (17 January 2025)
|
6
16
|
|
7
|
-
* Added the logger dependency (#28)
|
17
|
+
* Added the logger dependency ([#28](https://github.com/hausgold/factory_bot_instrumentation/pull/28))
|
8
18
|
|
9
19
|
### 1.6.0 (12 January 2025)
|
10
20
|
|
11
|
-
* Switched to Zeitwerk as autoloader (#27)
|
21
|
+
* Switched to Zeitwerk as autoloader ([#27](https://github.com/hausgold/factory_bot_instrumentation/pull/27))
|
12
22
|
|
13
23
|
### 1.5.1 (9 January 2025)
|
14
24
|
|
15
25
|
* Sometimes the classic Rails autoloader is confused our engines
|
16
26
|
`RootController` does not inherit our engines `ApplicationController`, but
|
17
|
-
the one from host application, so we specify our dependency explicitly (#26)
|
27
|
+
the one from host application, so we specify our dependency explicitly ([#26](https://github.com/hausgold/factory_bot_instrumentation/pull/26))
|
18
28
|
|
19
29
|
### 1.5.0 (7 January 2025)
|
20
30
|
|
21
31
|
* Switched from `ActionController::API` to `ActionController::Base` for the
|
22
|
-
engine's `ApplicationController` (#25)
|
32
|
+
engine's `ApplicationController` ([#25](https://github.com/hausgold/factory_bot_instrumentation/pull/25))
|
23
33
|
|
24
34
|
### 1.4.1 (6 January 2025)
|
25
35
|
|
26
|
-
* Reverted (#23) as it causes errors for unknown reasons (#24)
|
36
|
+
* Reverted (#23) as it causes errors for unknown reasons ([#24](https://github.com/hausgold/factory_bot_instrumentation/pull/24))
|
27
37
|
|
28
38
|
### 1.4.0 (6 January 2025)
|
29
39
|
|
30
40
|
* Moved the instrumentation methods (`#instrumentation`, `#scenarios`,
|
31
41
|
`#groups`, `#scenario_group`) from the `RootController` to the
|
32
|
-
`ApplicationController` (#23)
|
42
|
+
`ApplicationController` ([#23](https://github.com/hausgold/factory_bot_instrumentation/pull/23))
|
33
43
|
|
34
44
|
### 1.3.0 (3 January 2025)
|
35
45
|
|
36
|
-
* Raised minimum supported Ruby/Rails version to 2.7/6.1 (#22)
|
46
|
+
* Raised minimum supported Ruby/Rails version to 2.7/6.1 ([#22](https://github.com/hausgold/factory_bot_instrumentation/pull/22))
|
37
47
|
|
38
48
|
### 1.2.4 (15 August 2024)
|
39
49
|
|
@@ -49,30 +59,30 @@
|
|
49
59
|
|
50
60
|
### 1.2.1 (9 August 2024)
|
51
61
|
|
52
|
-
* Added API docs building to continuous integration (#21)
|
62
|
+
* Added API docs building to continuous integration ([#21](https://github.com/hausgold/factory_bot_instrumentation/pull/21))
|
53
63
|
|
54
64
|
### 1.2.0 (8 July 2024)
|
55
65
|
|
56
|
-
* Dropped support for Ruby <2.7 (#20)
|
66
|
+
* Dropped support for Ruby <2.7 ([#20](https://github.com/hausgold/factory_bot_instrumentation/pull/20))
|
57
67
|
|
58
68
|
### 1.1.5 (18 February 2024)
|
59
69
|
|
60
|
-
* Added fallbacks for configuration processing (#19)
|
70
|
+
* Added fallbacks for configuration processing ([#19](https://github.com/hausgold/factory_bot_instrumentation/pull/19))
|
61
71
|
|
62
72
|
### 1.1.4 (5 January 2024)
|
63
73
|
|
64
|
-
* Pinned factory_bot down to < 6.4.5 in order to support Ruby 2.5 (#18)
|
65
|
-
* Added handling to support Psych 4 and 5 (#18)
|
74
|
+
* Pinned factory_bot down to < 6.4.5 in order to support Ruby 2.5 ([#18](https://github.com/hausgold/factory_bot_instrumentation/pull/18))
|
75
|
+
* Added handling to support Psych 4 and 5 ([#18](https://github.com/hausgold/factory_bot_instrumentation/pull/18))
|
66
76
|
|
67
77
|
### 1.1.3 (18 December 2023)
|
68
78
|
|
69
|
-
* Corrected the fallback view path configuration (#17)
|
79
|
+
* Corrected the fallback view path configuration ([#17](https://github.com/hausgold/factory_bot_instrumentation/pull/17))
|
70
80
|
|
71
81
|
### 1.1.2 (18 December 2023)
|
72
82
|
|
73
|
-
* Moved the development dependencies from the gemspec to the Gemfile (#15)
|
83
|
+
* Moved the development dependencies from the gemspec to the Gemfile ([#15](https://github.com/hausgold/factory_bot_instrumentation/pull/15))
|
74
84
|
* Added a fallback view path handling in case an Rails application cannot
|
75
|
-
find our engine templates correctly (#16)
|
85
|
+
find our engine templates correctly ([#16](https://github.com/hausgold/factory_bot_instrumentation/pull/16))
|
76
86
|
|
77
87
|
### 1.1.1 (24 February 2023)
|
78
88
|
|
@@ -86,20 +96,20 @@
|
|
86
96
|
|
87
97
|
* When used in combination with the `factory_bot_rails` gem (>= 6.0) we do not
|
88
98
|
force a `FactoryBot.reload` at Rails engine initialization as it breaks with
|
89
|
-
an `FactoryBot::DuplicateDefinitionError` (#14)
|
99
|
+
an `FactoryBot::DuplicateDefinitionError` ([#14](https://github.com/hausgold/factory_bot_instrumentation/pull/14))
|
90
100
|
|
91
101
|
### 1.0.1 (15 February 2023)
|
92
102
|
|
93
103
|
* Added a retry logic to the FactoryBot reloading on the POST/create endpoint
|
94
|
-
in order to handle parallel requests properly (#13)
|
104
|
+
in order to handle parallel requests properly ([#13](https://github.com/hausgold/factory_bot_instrumentation/pull/13))
|
95
105
|
|
96
106
|
### 1.0.0 (18 January 2023)
|
97
107
|
|
98
|
-
* Bundler >= 2.3 is from now on required as minimal version (#12)
|
99
|
-
* Dropped support for Ruby < 2.5 (#12)
|
100
|
-
* Dropped support for Rails < 5.2 (#12)
|
108
|
+
* Bundler >= 2.3 is from now on required as minimal version ([#12](https://github.com/hausgold/factory_bot_instrumentation/pull/12))
|
109
|
+
* Dropped support for Ruby < 2.5 ([#12](https://github.com/hausgold/factory_bot_instrumentation/pull/12))
|
110
|
+
* Dropped support for Rails < 5.2 ([#12](https://github.com/hausgold/factory_bot_instrumentation/pull/12))
|
101
111
|
* Updated all development/runtime gems to their latest
|
102
|
-
Ruby 2.5 compatible version (#12)
|
112
|
+
Ruby 2.5 compatible version ([#12](https://github.com/hausgold/factory_bot_instrumentation/pull/12))
|
103
113
|
|
104
114
|
### 0.8.0 (10 December 2021)
|
105
115
|
|
@@ -118,19 +128,19 @@
|
|
118
128
|
### 0.6.0 (21 September 2020)
|
119
129
|
|
120
130
|
* Added support for custom error handling and improved the default error
|
121
|
-
handling on FactoryBot usage (#9)
|
131
|
+
handling on FactoryBot usage ([#9](https://github.com/hausgold/factory_bot_instrumentation/pull/9))
|
122
132
|
|
123
133
|
### 0.5.1 (12 May 2020)
|
124
134
|
|
125
|
-
* Corrected a bug on the scenario description update (#8)
|
135
|
+
* Corrected a bug on the scenario description update ([#8](https://github.com/hausgold/factory_bot_instrumentation/pull/8))
|
126
136
|
|
127
137
|
### 0.5.0 (20 January 2020)
|
128
138
|
|
129
|
-
* Added support for custom before action logics (#7)
|
139
|
+
* Added support for custom before action logics ([#7](https://github.com/hausgold/factory_bot_instrumentation/pull/7))
|
130
140
|
|
131
141
|
### 0.4.0 (9 December 2019)
|
132
142
|
|
133
|
-
* Added support for configurable rendering (#6)
|
143
|
+
* Added support for configurable rendering ([#6](https://github.com/hausgold/factory_bot_instrumentation/pull/6))
|
134
144
|
|
135
145
|
### 0.3.0 (15 July 2019)
|
136
146
|
|
data/Gemfile
CHANGED
@@ -15,9 +15,9 @@ gem 'factory_bot_rails', '~> 6.2'
|
|
15
15
|
gem 'guard-rspec', '~> 4.7'
|
16
16
|
gem 'railties', '>= 6.1'
|
17
17
|
gem 'rspec-rails', '~> 5.1'
|
18
|
-
gem 'rubocop'
|
19
|
-
gem 'rubocop-rails'
|
20
|
-
gem 'rubocop-rspec'
|
18
|
+
gem 'rubocop'
|
19
|
+
gem 'rubocop-rails'
|
20
|
+
gem 'rubocop-rspec'
|
21
21
|
gem 'simplecov', '>= 0.22'
|
22
22
|
gem 'sqlite3', '~> 1.5'
|
23
23
|
gem 'timecop', '>= 0.9.6'
|
@@ -14,8 +14,8 @@ window.CreateForm = CreateForm = function()
|
|
14
14
|
data: {
|
15
15
|
alert: `An unexpected error occured. Looks like something went wrong
|
16
16
|
while generating your new entity. This migth be a bug, or an
|
17
|
-
unexpected feature. It could be a temporary issue. When
|
18
|
-
persistent contact your friendly API Instrumentation
|
17
|
+
unexpected feature. It could be a temporary issue. When this
|
18
|
+
is persistent contact your friendly API Instrumentation
|
19
19
|
administrator.`,
|
20
20
|
output: output,
|
21
21
|
payload: payload,
|
@@ -52,8 +52,8 @@ module FactoryBot
|
|
52
52
|
#
|
53
53
|
# @return [Array<Mixed>] the FactoryBot options
|
54
54
|
#
|
55
|
-
# rubocop:disable Metrics/MethodLength because of the Rails
|
56
|
-
#
|
55
|
+
# rubocop:disable Metrics/MethodLength -- because of the Rails version
|
56
|
+
# handling
|
57
57
|
def factory_params
|
58
58
|
data = params.permit(:factory, traits: [])
|
59
59
|
|
@@ -33,7 +33,10 @@ Gem::Specification.new do |spec|
|
|
33
33
|
|
34
34
|
spec.required_ruby_version = '>= 2.7'
|
35
35
|
|
36
|
+
spec.add_dependency 'bigdecimal', '~> 3.1'
|
37
|
+
spec.add_dependency 'drb', '~> 2.2'
|
36
38
|
spec.add_dependency 'factory_bot', '~> 6.2'
|
39
|
+
spec.add_dependency 'mutex_m', '~> 0.3.0'
|
37
40
|
spec.add_dependency 'rails', '>= 6.1'
|
38
41
|
spec.add_dependency 'retries', '>= 0.0.5'
|
39
42
|
spec.add_dependency 'zeitwerk', '~> 2.6'
|
data/gemfiles/rails_6.1.gemfile
CHANGED
@@ -9,9 +9,9 @@ gem "factory_bot_rails", "~> 6.2"
|
|
9
9
|
gem "guard-rspec", "~> 4.7"
|
10
10
|
gem "railties", ">= 6.1"
|
11
11
|
gem "rspec-rails", "~> 5.1"
|
12
|
-
gem "rubocop"
|
13
|
-
gem "rubocop-rails"
|
14
|
-
gem "rubocop-rspec"
|
12
|
+
gem "rubocop"
|
13
|
+
gem "rubocop-rails"
|
14
|
+
gem "rubocop-rspec"
|
15
15
|
gem "simplecov", ">= 0.22"
|
16
16
|
gem "sqlite3", "~> 1.5"
|
17
17
|
gem "timecop", ">= 0.9.6"
|
data/gemfiles/rails_7.1.gemfile
CHANGED
@@ -9,9 +9,9 @@ gem "factory_bot_rails", "~> 6.2"
|
|
9
9
|
gem "guard-rspec", "~> 4.7"
|
10
10
|
gem "railties", ">= 6.1"
|
11
11
|
gem "rspec-rails", "~> 5.1"
|
12
|
-
gem "rubocop"
|
13
|
-
gem "rubocop-rails"
|
14
|
-
gem "rubocop-rspec"
|
12
|
+
gem "rubocop"
|
13
|
+
gem "rubocop-rails"
|
14
|
+
gem "rubocop-rspec"
|
15
15
|
gem "simplecov", ">= 0.22"
|
16
16
|
gem "sqlite3", "~> 1.5"
|
17
17
|
gem "timecop", ">= 0.9.6"
|
metadata
CHANGED
@@ -1,15 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: factory_bot_instrumentation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hermann Mayer
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-03-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bigdecimal
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.1'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.1'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: drb
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '2.2'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '2.2'
|
13
41
|
- !ruby/object:Gem::Dependency
|
14
42
|
name: factory_bot
|
15
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -24,6 +52,20 @@ dependencies:
|
|
24
52
|
- - "~>"
|
25
53
|
- !ruby/object:Gem::Version
|
26
54
|
version: '6.2'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: mutex_m
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.3.0
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.3.0
|
27
69
|
- !ruby/object:Gem::Dependency
|
28
70
|
name: rails
|
29
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -155,7 +197,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
155
197
|
- !ruby/object:Gem::Version
|
156
198
|
version: '0'
|
157
199
|
requirements: []
|
158
|
-
rubygems_version: 3.
|
200
|
+
rubygems_version: 3.4.22
|
159
201
|
signing_key:
|
160
202
|
specification_version: 4
|
161
203
|
summary: Allow your testers to generate test data on demand
|