factory_bot_instrumentation 1.1.5 → 1.2.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/.github/workflows/documentation.yml +3 -3
- data/.github/workflows/release.yml +4 -4
- data/.github/workflows/test.yml +4 -4
- data/.gitignore +1 -0
- data/.rubocop.yml +1 -1
- data/Appraisals +8 -0
- data/CHANGELOG.md +4 -0
- data/Dockerfile +3 -3
- data/Makefile +1 -1
- data/app/controllers/factory_bot/instrumentation/root_controller.rb +1 -1
- data/config/docker/.bashrc +3 -1
- data/factory_bot_instrumentation.gemspec +1 -1
- data/gemfiles/rails_6.1.gemfile +22 -0
- data/gemfiles/rails_7.1.gemfile +22 -0
- data/lib/factory_bot/instrumentation/version.rb +1 -1
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1499c25b1b236fdbc39ab9a3e410a34d93741bc11cc9dabb3a2dc9764e5ba1e0
|
4
|
+
data.tar.gz: 94b23f771a4cc3ad31ab0c77b0c21b482cb6e2fc4a28f12c98d623d295f02864
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7912b58231c9580d40c7bc012c79be35497f45b6a0c26e0fe0b128deeb8d006251d6fdf8d35056eb365353c3e9c2d3296d28c3a1591853c6fa383770641a34ff
|
7
|
+
data.tar.gz: 07b190052b9e64db90020e0aecc0211b3bec93e0f4e273dcd44a26765e62828d473a7f760a26e6f6514c142527833ef55a49ab741399a1f094f9f4f2731ebb01
|
@@ -12,14 +12,14 @@ jobs:
|
|
12
12
|
runs-on: ubuntu-22.04
|
13
13
|
timeout-minutes: 5
|
14
14
|
steps:
|
15
|
-
- uses: actions/checkout@
|
15
|
+
- uses: actions/checkout@v4
|
16
16
|
|
17
17
|
- name: Install the correct Ruby version
|
18
18
|
uses: ruby/setup-ruby@v1
|
19
19
|
with:
|
20
|
-
ruby-version: 2.
|
20
|
+
ruby-version: 2.7
|
21
21
|
bundler-cache: true
|
22
|
-
rubygems: '3.
|
22
|
+
rubygems: '3.4.22'
|
23
23
|
|
24
24
|
- name: Prepare the virtual environment
|
25
25
|
uses: hausgold/actions/ci@master
|
@@ -18,14 +18,14 @@ jobs:
|
|
18
18
|
runs-on: ubuntu-22.04
|
19
19
|
timeout-minutes: 5
|
20
20
|
steps:
|
21
|
-
- uses: actions/checkout@
|
21
|
+
- uses: actions/checkout@v4
|
22
22
|
|
23
|
-
- name: Install Ruby 2.
|
23
|
+
- name: Install Ruby 2.7
|
24
24
|
uses: ruby/setup-ruby@v1
|
25
25
|
with:
|
26
|
-
ruby-version: 2.
|
26
|
+
ruby-version: 2.7
|
27
27
|
bundler-cache: true
|
28
|
-
rubygems: '3.
|
28
|
+
rubygems: '3.4.22'
|
29
29
|
|
30
30
|
- name: Prepare the virtual environment
|
31
31
|
uses: hausgold/actions/ci@master
|
data/.github/workflows/test.yml
CHANGED
@@ -18,19 +18,19 @@ jobs:
|
|
18
18
|
strategy:
|
19
19
|
fail-fast: false
|
20
20
|
matrix:
|
21
|
-
ruby: ['2.
|
22
|
-
rails: ['5.2']
|
21
|
+
ruby: ['2.7']
|
22
|
+
rails: ['5.2', '6.1', '7.1']
|
23
23
|
env:
|
24
24
|
BUNDLE_GEMFILE: 'gemfiles/rails_${{ matrix.rails }}.gemfile'
|
25
25
|
steps:
|
26
|
-
- uses: actions/checkout@
|
26
|
+
- uses: actions/checkout@v4
|
27
27
|
|
28
28
|
- name: Install the correct Ruby version
|
29
29
|
uses: ruby/setup-ruby@v1
|
30
30
|
with:
|
31
31
|
ruby-version: ${{ matrix.ruby }}
|
32
32
|
bundler-cache: true
|
33
|
-
rubygems: '3.
|
33
|
+
rubygems: '3.4.22'
|
34
34
|
|
35
35
|
- name: Prepare the virtual environment
|
36
36
|
uses: hausgold/actions/ci@master
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
data/Appraisals
CHANGED
data/CHANGELOG.md
CHANGED
data/Dockerfile
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
FROM hausgold/ruby:2.
|
1
|
+
FROM hausgold/ruby:2.7
|
2
2
|
MAINTAINER Hermann Mayer <hermann.mayer@hausgold.de>
|
3
3
|
|
4
4
|
# Update system gem
|
5
|
-
RUN gem update --system '3.
|
5
|
+
RUN gem update --system '3.4.22'
|
6
6
|
|
7
7
|
# Install system packages and the latest bundler
|
8
8
|
RUN apt-get update -yqqq && \
|
@@ -11,7 +11,7 @@ RUN apt-get update -yqqq && \
|
|
11
11
|
ca-certificates \
|
12
12
|
bash-completion inotify-tools && \
|
13
13
|
echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen && /usr/sbin/locale-gen && \
|
14
|
-
gem install bundler -v '~> 2.
|
14
|
+
gem install bundler -v '~> 2.4.22' --no-document --no-prerelease
|
15
15
|
|
16
16
|
# Add new web user
|
17
17
|
RUN mkdir /app && \
|
data/Makefile
CHANGED
@@ -120,7 +120,7 @@ test-style: \
|
|
120
120
|
test-style-ruby:
|
121
121
|
# Run the static code analyzer (rubocop)
|
122
122
|
@$(call run-shell,$(BUNDLE) exec $(RUBOCOP) -a \
|
123
|
-
|| ($(TEST) $$($(RUBY_VERSION)) != '2.
|
123
|
+
|| ($(TEST) $$($(RUBY_VERSION)) != '2.7' && true))
|
124
124
|
|
125
125
|
clean:
|
126
126
|
# Clean the dependencies
|
@@ -96,7 +96,7 @@ module FactoryBot
|
|
96
96
|
#
|
97
97
|
# @return [Hash{String => Array}] the grouped scenarios
|
98
98
|
def scenarios
|
99
|
-
res =
|
99
|
+
res = instrumentation['scenarios'] || []
|
100
100
|
res.each_with_object({}) do |scenario, memo|
|
101
101
|
group = scenario_group(scenario['name'])
|
102
102
|
scenario['group'] = group
|
data/config/docker/.bashrc
CHANGED
@@ -16,7 +16,9 @@ sudo sed -i 's/autostart=.*/autostart=false/g' /etc/supervisor/conf.d/*
|
|
16
16
|
sudo supervisord >/dev/null 2>&1 &
|
17
17
|
|
18
18
|
# Wait for supervisord
|
19
|
-
while ! supervisorctl status >/dev/null 2>&1; do
|
19
|
+
while ! (sudo supervisorctl status | grep avahi) >/dev/null 2>&1; do
|
20
|
+
sleep 1
|
21
|
+
done
|
20
22
|
|
21
23
|
# Boot the mDNS stack
|
22
24
|
echo '# Start the mDNS stack'
|
@@ -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 = '>= 2.
|
34
|
+
spec.required_ruby_version = '>= 2.7'
|
35
35
|
|
36
36
|
# TODO: Remove the upper lock when
|
37
37
|
# https://github.com/thoughtbot/factory_bot/issues/1614 is solved.
|
@@ -0,0 +1,22 @@
|
|
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", ">= 5.2"
|
11
|
+
gem "rspec-rails", "~> 5.1"
|
12
|
+
gem "rubocop", "~> 1.28"
|
13
|
+
gem "rubocop-rails", "~> 2.14"
|
14
|
+
gem "rubocop-rspec", "~> 2.10"
|
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: "../"
|
@@ -0,0 +1,22 @@
|
|
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", ">= 5.2"
|
11
|
+
gem "rspec-rails", "~> 5.1"
|
12
|
+
gem "rubocop", "~> 1.28"
|
13
|
+
gem "rubocop-rails", "~> 2.14"
|
14
|
+
gem "rubocop-rspec", "~> 2.10"
|
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", "~> 7.1.0"
|
21
|
+
|
22
|
+
gemspec path: "../"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hermann Mayer
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: factory_bot
|
@@ -118,6 +118,8 @@ files:
|
|
118
118
|
- docker-compose.yml
|
119
119
|
- factory_bot_instrumentation.gemspec
|
120
120
|
- gemfiles/rails_5.2.gemfile
|
121
|
+
- gemfiles/rails_6.1.gemfile
|
122
|
+
- gemfiles/rails_7.1.gemfile
|
121
123
|
- lib/factory_bot/instrumentation/configuration.rb
|
122
124
|
- lib/factory_bot/instrumentation/engine.rb
|
123
125
|
- lib/factory_bot/instrumentation/version.rb
|
@@ -139,7 +141,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
139
141
|
requirements:
|
140
142
|
- - ">="
|
141
143
|
- !ruby/object:Gem::Version
|
142
|
-
version: '2.
|
144
|
+
version: '2.7'
|
143
145
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
144
146
|
requirements:
|
145
147
|
- - ">="
|