fixtury 1.0.0.beta7 → 1.0.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: fbbb9952c697ebe0db7cb60e4fde3f3a24933200ad88f3ca13ba1d66f67af898
4
- data.tar.gz: 81811a758a2b6384287dba64997ed5097a39214d1357640725d6e85a191023a8
3
+ metadata.gz: 2dad3194d36ce43bfc6331ae5f8ed37abbf7509496f8b6d6344313f9512f22f8
4
+ data.tar.gz: d0c0324b038362cda1f2f12ad100fef087edb931c2aeb417d6ea04e0292aa4fa
5
5
  SHA512:
6
- metadata.gz: c25d11f8cc41d4ebcb93b1d597d357619ebcf6e419b3a83a9fe0659c5b5cc34ec486aed5195c74b9dbc04963b55d55c1956b5a652eccf8992d60611d478cbadb
7
- data.tar.gz: 586c0512f4f470b816e0307aff6b6e22d9eb11e7271be292d73579023811ad671898de8b0c5ffd47557da61e1fc1bf61e54ec0884265ebd5531c2e9fac0255a5
6
+ metadata.gz: c7a86120bf86a3cddc62c1d36294683fe2cd280d7aa8fa2e05af1d4b81f5c9fe99e7f5086b5028173c3d580c15b50665591f8377d153a098030ca317bfab839c
7
+ data.tar.gz: d8a18793cee0e6f4172e3d64826fd218c028e0b3ad1a9c33496877e5c5841cefd4741adf55bdf7ea119074822e0ea0f7c87134f565147ab71ffd82b09f2cf667
@@ -0,0 +1,24 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "github-actions"
4
+ directory: "/"
5
+ open-pull-requests-limit: 20
6
+ schedule:
7
+ interval: "daily"
8
+ time: "09:00"
9
+ timezone: "America/New_York"
10
+ commit-message:
11
+ prefix: "[github-actions] "
12
+ - package-ecosystem: "bundler"
13
+ directory: "/"
14
+ schedule:
15
+ interval: "daily"
16
+ time: "08:30"
17
+ timezone: "America/New_York"
18
+ allow:
19
+ - dependency-type: "all"
20
+ versioning-strategy: increase
21
+ open-pull-requests-limit: 20
22
+ insecure-external-code-execution: deny
23
+ commit-message:
24
+ prefix: "[bundler] "
@@ -0,0 +1,23 @@
1
+ name: build
2
+ on:
3
+ pull_request:
4
+ push:
5
+ branches:
6
+ - main
7
+ jobs:
8
+ build:
9
+ runs-on: ubuntu-latest
10
+ strategy:
11
+ fail-fast: false
12
+ matrix:
13
+ ruby-version: [3.2.2]
14
+ experimental: [false]
15
+ steps:
16
+ - uses: actions/checkout@v4
17
+ with:
18
+ show-progress: 'false'
19
+ - uses: ruby/setup-ruby@v1
20
+ with:
21
+ ruby-version: ${{ matrix.ruby-version }}
22
+ bundler-cache: true # runs `bundle install` and caches installed gems automatically
23
+ - run: bundle exec rake
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fixtury (1.0.0.beta7)
4
+ fixtury (1.0.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -23,7 +23,7 @@ GEM
23
23
  mutex_m
24
24
  tzinfo (~> 2.0)
25
25
  base64 (0.2.0)
26
- bigdecimal (3.1.6)
26
+ bigdecimal (3.1.7)
27
27
  byebug (11.1.3)
28
28
  concurrent-ruby (1.2.3)
29
29
  connection_pool (2.4.1)
@@ -35,13 +35,13 @@ GEM
35
35
  m (1.6.2)
36
36
  method_source (>= 0.6.7)
37
37
  rake (>= 0.9.2.2)
38
- method_source (1.0.0)
39
- mini_portile2 (2.8.5)
40
- minitest (5.22.2)
41
- mocha (2.1.0)
38
+ method_source (1.1.0)
39
+ mini_portile2 (2.8.6)
40
+ minitest (5.22.3)
41
+ mocha (2.2.0)
42
42
  ruby2_keywords (>= 0.0.5)
43
43
  mutex_m (0.2.0)
44
- rake (13.1.0)
44
+ rake (13.2.1)
45
45
  ruby2_keywords (0.0.5)
46
46
  sqlite3 (1.7.2)
47
47
  mini_portile2 (~> 2.8.0)
@@ -144,7 +144,8 @@ module Fixtury
144
144
  def fixtury_database_connections
145
145
  return [] unless defined?(ActiveRecord::Base)
146
146
 
147
- ActiveRecord::Base.connection_handler.connection_pool_list(:writing).map(&:connection)
147
+ pools = ActiveRecord::Base.connection_handler.connection_pool_list(:writing)
148
+ pools.map { |pool| pool.respond_to?(:lease_connection) ? pool.lease_connection : pool.connection }
148
149
  end
149
150
 
150
151
  # Load all dependenct fixtures and begin a transaction for each database connection.
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Fixtury
4
4
 
5
- VERSION = "1.0.0.beta7"
5
+ VERSION = "1.0.0"
6
6
 
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fixtury
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.beta7
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Nelson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-03-13 00:00:00.000000000 Z
11
+ date: 2024-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -143,6 +143,8 @@ executables: []
143
143
  extensions: []
144
144
  extra_rdoc_files: []
145
145
  files:
146
+ - ".github/dependabot.yml"
147
+ - ".github/workflows/build.yml"
146
148
  - ".gitignore"
147
149
  - ".ruby-version"
148
150
  - ".travis.yml"
@@ -196,7 +198,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
196
198
  - !ruby/object:Gem::Version
197
199
  version: '0'
198
200
  requirements: []
199
- rubygems_version: 3.5.6
201
+ rubygems_version: 3.5.15
200
202
  signing_key:
201
203
  specification_version: 4
202
204
  summary: Treat fixtures like factories and factories like fixtures