fixturex 0.1.4 → 0.1.5
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/ruby.yml +3 -6
- data/Gemfile.lock +3 -3
- data/lib/fixturex/tree_builder.rb +2 -6
- data/lib/fixturex/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 404ffc47cf8333c8e253ec3c9a2bc7f503239c4b522583824faf3f39d3181dd6
|
4
|
+
data.tar.gz: a171c81ab51265e86395af98c62935eca28f378d7836afd05462626d8e7af6f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d40f03023164dc2aeed88092b8575eddb5a7196c52a0b75edc9c4a73431a961ddeb95b1f98fe40e9fc40061647398bc3f70177af1e269a89ce84e0b6416b854
|
7
|
+
data.tar.gz: fdaa79ae96ef13a30bb9504184df2e5197a606a1f1ee3896ee2132493c55cf331bd24e0eea05d88b55607fcb5e7464795839f6a754baf425cd90d16337783368
|
data/.github/workflows/ruby.yml
CHANGED
@@ -21,15 +21,12 @@ jobs:
|
|
21
21
|
runs-on: ubuntu-latest
|
22
22
|
strategy:
|
23
23
|
matrix:
|
24
|
-
ruby-version: ['
|
24
|
+
ruby-version: ['3.3']
|
25
25
|
|
26
26
|
steps:
|
27
|
-
- uses: actions/checkout@
|
27
|
+
- uses: actions/checkout@v4
|
28
28
|
- name: Set up Ruby
|
29
|
-
|
30
|
-
# change this to (see https://github.com/ruby/setup-ruby#versioning):
|
31
|
-
# uses: ruby/setup-ruby@v1
|
32
|
-
uses: ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e
|
29
|
+
uses: ruby/setup-ruby@v1
|
33
30
|
with:
|
34
31
|
ruby-version: ${{ matrix.ruby-version }}
|
35
32
|
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
fixturex (0.1.
|
4
|
+
fixturex (0.1.5)
|
5
5
|
rails (>= 6.0)
|
6
6
|
|
7
7
|
GEM
|
@@ -118,7 +118,7 @@ GEM
|
|
118
118
|
mini_mime (1.1.5)
|
119
119
|
mini_portile2 (2.8.8)
|
120
120
|
minitest (5.25.5)
|
121
|
-
net-imap (0.5.
|
121
|
+
net-imap (0.5.8)
|
122
122
|
date
|
123
123
|
net-protocol
|
124
124
|
net-pop (0.1.2)
|
@@ -240,7 +240,7 @@ GEM
|
|
240
240
|
unicode-emoji (4.0.4)
|
241
241
|
uri (1.0.3)
|
242
242
|
useragent (0.16.11)
|
243
|
-
websocket-driver (0.
|
243
|
+
websocket-driver (0.8.0)
|
244
244
|
base64
|
245
245
|
websocket-extensions (>= 0.1.0)
|
246
246
|
websocket-extensions (0.1.5)
|
@@ -91,12 +91,8 @@ module Fixturex
|
|
91
91
|
# rubocop:enable Metrics/AbcSize
|
92
92
|
|
93
93
|
def association_model_class(association)
|
94
|
-
|
95
|
-
|
96
|
-
unless Object.const_defined?(class_name)
|
97
|
-
namespace = association.active_record.name.split('::')[0..-2].join('::')
|
98
|
-
class_name = "#{namespace}::#{class_name}"
|
99
|
-
end
|
94
|
+
namespace = association.active_record.name.split('::')[0..-2].join('::')
|
95
|
+
class_name = [namespace, association.class_name].filter(&:present?).join('::')
|
100
96
|
|
101
97
|
class_name.constantize
|
102
98
|
end
|
data/lib/fixturex/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fixturex
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- artemave
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|