factory_bot_instrumentation 2.2.0 → 2.4.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 166d24c0a99e8dd9dca1a06a195cdc9c9a89d2ec4aca5eeb1978e8bc9168bbcb
4
- data.tar.gz: 8dbd9b962528fdb0f033a508dee1c63dbe4cd0eed0f564384bd74aad44e7a1c9
3
+ metadata.gz: e0e576ab6cd95c1f4a40e53b8211fdf01eb57b61ad05b94bb639ccc1689c647e
4
+ data.tar.gz: ab46c8def6e2a90a4be49c6b620a1f0f21baebb113b08ce957ea1ef8a31b50b5
5
5
  SHA512:
6
- metadata.gz: ba0e5b5ca4302c6025ca5b0247aac5bdca259999e58954f6f8e3fcf32e0ed998848138a75c2ec665f6398b1e57f0e0355d51d030ee591321077457c55873ff60
7
- data.tar.gz: 63f212c7d2ef904b0bd82cac15a374a3c1f3f478c93dbf4ca6f157c0e2ad242da029011a353dba103788b826a29b1185938e3559fc441b37f1b71b8932e86659
6
+ metadata.gz: 527a109624d13ee7c0c3f3f0118a298ddb879dc8b992590cb47694311423bfb42b2463e9d67bbff7b7d488e3b5f43d0dcd1deb3fcddd40f95be45a5a6a5235a1
7
+ data.tar.gz: 414603f97d6a8603de044ea9874be6e3ea3017e37dda9e60ab81b2f6d9dce1131c203e2955c5aa6ee9242a7b435f21f6a06503e91eff772aa2d59865ab219ce7
@@ -15,26 +15,24 @@ concurrency:
15
15
  jobs:
16
16
  docs:
17
17
  name: Release the gem
18
- runs-on: ubuntu-22.04
18
+ runs-on: ubuntu-24.04
19
19
  timeout-minutes: 10
20
20
  steps:
21
- - uses: actions/checkout@v4
22
-
23
- - name: Install Ruby 3.2
24
- uses: ruby/setup-ruby@v1
25
- with:
26
- ruby-version: 3.2
27
- bundler-cache: true
28
- rubygems: '3.6.9'
29
-
30
- - name: Prepare the virtual environment
31
- uses: hausgold/actions/ci@master
21
+ - name: Prepare the environment
22
+ uses: hausgold/actions/ci@v2
32
23
  with:
33
24
  clone_token: '${{ secrets.CLONE_TOKEN }}'
34
25
  settings_secret_key: '${{ secrets.SETTINGS_SECRET_KEY }}'
35
26
  settings: '${{ github.repository }}'
36
27
  target: ci/gem-test
37
28
 
29
+ - name: Install Ruby 3.3
30
+ uses: ruby/setup-ruby@v1
31
+ with:
32
+ ruby-version: 3.3
33
+ bundler-cache: true
34
+ rubygems: '3.6.9'
35
+
38
36
  - name: Switch to SSH remotes for the Git repository
39
37
  run: git-ssh-remotes
40
38
 
@@ -13,17 +13,23 @@ concurrency:
13
13
  jobs:
14
14
  test:
15
15
  name: 'Test the gem (Ruby ${{ matrix.ruby }}, Rails ${{ matrix.rails }})'
16
- runs-on: ubuntu-22.04
16
+ runs-on: ubuntu-24.04
17
17
  timeout-minutes: 5
18
18
  strategy:
19
19
  fail-fast: false
20
20
  matrix:
21
- ruby: ['3.2', '3.3', '3.4']
22
- rails: ['7.1', '7.2', '8.0', '8.1']
21
+ ruby: ['3.3', '3.4', '4.0']
22
+ rails: ['7.2', '8.0', '8.1']
23
23
  env:
24
24
  BUNDLE_GEMFILE: 'gemfiles/rails_${{ matrix.rails }}.gemfile'
25
25
  steps:
26
- - uses: actions/checkout@v4
26
+ - name: Prepare the environment
27
+ uses: hausgold/actions/ci@v2
28
+ with:
29
+ clone_token: '${{ secrets.CLONE_TOKEN }}'
30
+ settings_secret_key: '${{ secrets.SETTINGS_SECRET_KEY }}'
31
+ settings: '${{ github.repository }}'
32
+ target: ci/gem-test
27
33
 
28
34
  - name: Install the correct Ruby version
29
35
  uses: ruby/setup-ruby@v1
@@ -32,14 +38,6 @@ jobs:
32
38
  bundler-cache: true
33
39
  rubygems: '3.6.9'
34
40
 
35
- - name: Prepare the virtual environment
36
- uses: hausgold/actions/ci@master
37
- with:
38
- clone_token: '${{ secrets.CLONE_TOKEN }}'
39
- settings_secret_key: '${{ secrets.SETTINGS_SECRET_KEY }}'
40
- settings: '${{ github.repository }}'
41
- target: ci/gem-test
42
-
43
41
  - name: Run the gem tests
44
42
  run: make test
45
43
 
data/.rubocop.yml CHANGED
@@ -2,6 +2,10 @@ inherit_from:
2
2
  - https://potpourri.hausgold.de/config/rubocop.yml
3
3
  - https://potpourri.hausgold.de/config/rubocop-gem.yml
4
4
 
5
+ inherit_mode:
6
+ merge:
7
+ - Exclude
8
+
5
9
  plugins:
6
10
  - rubocop-rspec
7
11
  - rubocop-rails
@@ -13,8 +17,8 @@ AllCops:
13
17
  NewCops: enable
14
18
  SuggestExtensions: false
15
19
  DisplayCopNames: true
16
- TargetRubyVersion: 3.2
17
- TargetRailsVersion: 7.1
20
+ TargetRubyVersion: 3.3
21
+ TargetRailsVersion: 7.2
18
22
  Exclude:
19
23
  - bin/**/*
20
24
  - vendor/**/*
data/Appraisals CHANGED
@@ -1,9 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- appraise 'rails-7.1' do
4
- gem 'rails', '~> 7.1.0'
5
- end
6
-
7
3
  appraise 'rails-7.2' do
8
4
  gem 'rails', '~> 7.2.0'
9
5
  end
data/CHANGELOG.md CHANGED
@@ -2,6 +2,16 @@
2
2
 
3
3
  * TODO: Replace this bullet point with an actual description of a change.
4
4
 
5
+ ### 2.4.0 (7 January 2026)
6
+
7
+ * Upgraded to Ubuntu 24.04 on Github Actions ([#41](https://github.com/hausgold/factory_bot_instrumentation/pull/41))
8
+ * Migrated to hausgold/actions@v2 ([#40](https://github.com/hausgold/factory_bot_instrumentation/pull/40))
9
+
10
+ ### 2.3.0 (26 December 2025)
11
+
12
+ * Added Ruby 4.0 support ([#39](https://github.com/hausgold/factory_bot_instrumentation/pull/39))
13
+ * Dropped Ruby 3.2 and Rails 7.1 support ([#38](https://github.com/hausgold/factory_bot_instrumentation/pull/38))
14
+
5
15
  ### 2.2.0 (19 December 2025)
6
16
 
7
17
  * Migrated to a shared Rubocop configuration for HAUSGOLD gems ([#37](https://github.com/hausgold/factory_bot_instrumentation/pull/37))
data/Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM hausgold/ruby:3.2
1
+ FROM hausgold/ruby:3.3
2
2
  LABEL org.opencontainers.image.authors="containers@hausgold.de"
3
3
 
4
4
  # Update system gem
data/Gemfile CHANGED
@@ -9,11 +9,11 @@ gemspec
9
9
 
10
10
  # Development dependencies
11
11
  gem 'appraisal', '~> 2.4'
12
- gem 'bundler', '~> 2.6'
12
+ gem 'bundler', '>= 2.6', '< 5'
13
13
  gem 'countless', '~> 2.2'
14
14
  gem 'factory_bot_rails', '~> 6.2'
15
15
  gem 'guard-rspec', '~> 4.7'
16
- gem 'railties', '>= 7.1'
16
+ gem 'railties', '>= 7.2'
17
17
  gem 'rspec-rails', '~> 7.1'
18
18
  gem 'rubocop'
19
19
  gem 'rubocop-rails'
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2025 HAUSGOLD | talocasa GmbH
3
+ Copyright (c) 2026 HAUSGOLD | talocasa GmbH
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/Makefile CHANGED
@@ -88,7 +88,8 @@ all:
88
88
  install:
89
89
  # Install the dependencies
90
90
  @$(MKDIR) -p $(VENDOR_DIR)
91
- @$(call run-shell,$(BUNDLE) check || $(BUNDLE) install --path $(VENDOR_DIR))
91
+ @$(call run-shell,$(BUNDLE) config set --local path '$(VENDOR_DIR)')
92
+ @$(call run-shell,$(BUNDLE) check || $(BUNDLE) install)
92
93
  @$(call run-shell,$(BUNDLE) exec $(APPRAISAL) install)
93
94
 
94
95
  update:
@@ -120,7 +121,7 @@ test-style: \
120
121
  test-style-ruby:
121
122
  # Run the static code analyzer (rubocop)
122
123
  @$(call run-shell,$(BUNDLE) exec $(RUBOCOP) -a \
123
- || ($(TEST) $$($(RUBY_VERSION)) != '3.2' && true))
124
+ || ($(TEST) $$($(RUBY_VERSION)) != '3.3' && true))
124
125
 
125
126
  clean:
126
127
  # Clean the dependencies
@@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
31
31
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
32
32
  spec.require_paths = ['lib']
33
33
 
34
- spec.required_ruby_version = '>= 3.2'
34
+ spec.required_ruby_version = '>= 3.3'
35
35
 
36
36
  spec.add_dependency 'bigdecimal', '~> 3.1'
37
37
  spec.add_dependency 'drb', '~> 2.2'
@@ -3,11 +3,11 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "appraisal", "~> 2.4"
6
- gem "bundler", "~> 2.6"
6
+ gem "bundler", ">= 2.6", "< 5"
7
7
  gem "countless", "~> 2.2"
8
8
  gem "factory_bot_rails", "~> 6.2"
9
9
  gem "guard-rspec", "~> 4.7"
10
- gem "railties", ">= 7.1"
10
+ gem "railties", ">= 7.2"
11
11
  gem "rspec-rails", "~> 7.1"
12
12
  gem "rubocop"
13
13
  gem "rubocop-rails"
@@ -3,11 +3,11 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "appraisal", "~> 2.4"
6
- gem "bundler", "~> 2.6"
6
+ gem "bundler", ">= 2.6", "< 5"
7
7
  gem "countless", "~> 2.2"
8
8
  gem "factory_bot_rails", "~> 6.2"
9
9
  gem "guard-rspec", "~> 4.7"
10
- gem "railties", ">= 7.1"
10
+ gem "railties", ">= 7.2"
11
11
  gem "rspec-rails", "~> 7.1"
12
12
  gem "rubocop"
13
13
  gem "rubocop-rails"
@@ -3,11 +3,11 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "appraisal", "~> 2.4"
6
- gem "bundler", "~> 2.6"
6
+ gem "bundler", ">= 2.6", "< 5"
7
7
  gem "countless", "~> 2.2"
8
8
  gem "factory_bot_rails", "~> 6.2"
9
9
  gem "guard-rspec", "~> 4.7"
10
- gem "railties", ">= 7.1"
10
+ gem "railties", ">= 7.2"
11
11
  gem "rspec-rails", "~> 7.1"
12
12
  gem "rubocop"
13
13
  gem "rubocop-rails"
@@ -4,7 +4,7 @@ module FactoryBot
4
4
  # The gem version details.
5
5
  module Instrumentation
6
6
  # The version of the +factory_bot_instrumentation+ gem
7
- VERSION = '2.2.0'
7
+ VERSION = '2.4.0'
8
8
 
9
9
  class << self
10
10
  # Returns the version of gem as a string.
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: 2.2.0
4
+ version: 2.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hermann Mayer
@@ -165,8 +165,6 @@ files:
165
165
  - doc/assets/regular.png
166
166
  - docker-compose.yml
167
167
  - factory_bot_instrumentation.gemspec
168
- - gemfiles/rails_6.1.gemfile
169
- - gemfiles/rails_7.1.gemfile
170
168
  - gemfiles/rails_7.2.gemfile
171
169
  - gemfiles/rails_8.0.gemfile
172
170
  - gemfiles/rails_8.1.gemfile
@@ -190,7 +188,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
190
188
  requirements:
191
189
  - - ">="
192
190
  - !ruby/object:Gem::Version
193
- version: '3.2'
191
+ version: '3.3'
194
192
  required_rubygems_version: !ruby/object:Gem::Requirement
195
193
  requirements:
196
194
  - - ">="
@@ -1,22 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "appraisal", "~> 2.4"
6
- gem "bundler", "~> 2.3"
7
- gem "countless", "~> 1.1"
8
- gem "factory_bot_rails", "~> 6.2"
9
- gem "guard-rspec", "~> 4.7"
10
- gem "railties", ">= 6.1"
11
- gem "rspec-rails", "~> 5.1"
12
- gem "rubocop"
13
- gem "rubocop-rails"
14
- gem "rubocop-rspec"
15
- gem "simplecov", ">= 0.22"
16
- gem "sqlite3", "~> 1.5"
17
- gem "timecop", ">= 0.9.6"
18
- gem "yard", ">= 0.9.28"
19
- gem "yard-activesupport-concern", ">= 0.0.1"
20
- gem "rails", "~> 6.1.0"
21
-
22
- gemspec path: "../"
@@ -1,22 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "appraisal", "~> 2.4"
6
- gem "bundler", "~> 2.6"
7
- gem "countless", "~> 2.2"
8
- gem "factory_bot_rails", "~> 6.2"
9
- gem "guard-rspec", "~> 4.7"
10
- gem "railties", ">= 7.1"
11
- gem "rspec-rails", "~> 7.1"
12
- gem "rubocop"
13
- gem "rubocop-rails"
14
- gem "rubocop-rspec"
15
- gem "simplecov", ">= 0.22"
16
- gem "sqlite3", "~> 2.7"
17
- gem "timecop", ">= 0.9.6"
18
- gem "yard", ">= 0.9.28"
19
- gem "yard-activesupport-concern", ">= 0.0.1"
20
- gem "rails", "~> 7.1.0"
21
-
22
- gemspec path: "../"