factory_bot_instrumentation 1.1.5 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5e200ee9b6c940652aa1655e8be54bc38815e8ed59678315984320d34292e7c6
4
- data.tar.gz: 0a74dd73fecc873a368010fdb6e445dda7d3be012452553bc552de1968140965
3
+ metadata.gz: 1499c25b1b236fdbc39ab9a3e410a34d93741bc11cc9dabb3a2dc9764e5ba1e0
4
+ data.tar.gz: 94b23f771a4cc3ad31ab0c77b0c21b482cb6e2fc4a28f12c98d623d295f02864
5
5
  SHA512:
6
- metadata.gz: c79689fbe92b67f676532e0876b88352011193220409019dc630efdc75b6da971809a7d15333c8b6789f627e5b0239964ae0834c0f6748a71ae7860469f8b94b
7
- data.tar.gz: d2bdbbf8c0e74e6335fa68a9b58f62dc48685e8a835bbcaaaca117e80cbfd89e61f48656030802afffd9ce202ee41f83ac9c245fbc2ddccf60cb0081c905f3e6
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@v3
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.5
20
+ ruby-version: 2.7
21
21
  bundler-cache: true
22
- rubygems: '3.3.26'
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@v3
21
+ - uses: actions/checkout@v4
22
22
 
23
- - name: Install Ruby 2.5
23
+ - name: Install Ruby 2.7
24
24
  uses: ruby/setup-ruby@v1
25
25
  with:
26
- ruby-version: 2.5
26
+ ruby-version: 2.7
27
27
  bundler-cache: true
28
- rubygems: '3.3.26'
28
+ rubygems: '3.4.22'
29
29
 
30
30
  - name: Prepare the virtual environment
31
31
  uses: hausgold/actions/ci@master
@@ -18,19 +18,19 @@ jobs:
18
18
  strategy:
19
19
  fail-fast: false
20
20
  matrix:
21
- ruby: ['2.5', '2.7']
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@v3
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.3.26'
33
+ rubygems: '3.4.22'
34
34
 
35
35
  - name: Prepare the virtual environment
36
36
  uses: hausgold/actions/ci@master
data/.gitignore CHANGED
@@ -6,6 +6,7 @@
6
6
  /pkg/
7
7
  /spec/reports/
8
8
  /tmp/
9
+ /log/
9
10
  /vendor/
10
11
  /gemfiles/vendor/
11
12
  /Gemfile.lock
data/.rubocop.yml CHANGED
@@ -12,7 +12,7 @@ AllCops:
12
12
  NewCops: enable
13
13
  SuggestExtensions: false
14
14
  DisplayCopNames: true
15
- TargetRubyVersion: 2.5
15
+ TargetRubyVersion: 2.7
16
16
  TargetRailsVersion: 5.2
17
17
  Exclude:
18
18
  - bin/**/*
data/Appraisals CHANGED
@@ -3,3 +3,11 @@
3
3
  appraise 'rails-5.2' do
4
4
  gem 'rails', '~> 5.2.0'
5
5
  end
6
+
7
+ appraise 'rails-6.1' do
8
+ gem 'rails', '~> 6.1.0'
9
+ end
10
+
11
+ appraise 'rails-7.1' do
12
+ gem 'rails', '~> 7.1.0'
13
+ end
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  * TODO: Replace this bullet point with an actual description of a change.
4
4
 
5
+ ### 1.2.0
6
+
7
+ * Dropped support for Ruby <2.7 (#20)
8
+
5
9
  ### 1.1.5
6
10
 
7
11
  * Added fallbacks for configuration processing (#19)
data/Dockerfile CHANGED
@@ -1,8 +1,8 @@
1
- FROM hausgold/ruby:2.5
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.3.26'
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.3.0' --no-document --no-prerelease
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.5' && true))
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 = (instrumentation['scenarios'] || [])
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
@@ -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 sleep 1; done
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.5'
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: "../"
@@ -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 = '1.1.5'
7
+ VERSION = '1.2.0'
8
8
 
9
9
  class << self
10
10
  # Returns the version of gem as a string.
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.1.5
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-02-18 00:00:00.000000000 Z
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.5'
144
+ version: '2.7'
143
145
  required_rubygems_version: !ruby/object:Gem::Requirement
144
146
  requirements:
145
147
  - - ">="