live_fixtures 2.2.0 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/live_fixtures/import/fixtures.rb +5 -5
- data/lib/live_fixtures/version.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bbf26caa4bc2f3c06841bbca6d9d439a810ad68825ebaae2b75d72d44a7a5d2d
|
4
|
+
data.tar.gz: 4b2f72384af585541e217397ecf02962a9b8e536ec5ea2a0091f832ded92901d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c41c8f75d47f57ab3142808e2ba029fbf99956860577f9a2e8ab1d777d89cd78166f7626644c1922df017eeaea6417e778746953345686b492bc4db6247d6fff
|
7
|
+
data.tar.gz: c28e25054a89c6cc5b16cac8f54279c33dcedab48e92c24cdb14ea1f0958fd543b75207740b423323c2dbfcd564ad004c0f578030b1a6b46cb71b059295180c9
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,13 @@
|
|
2
2
|
All notable changes to this project will be documented in this file.
|
3
3
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
4
4
|
|
5
|
+
## [3.0.0] - 2023-07-24
|
6
|
+
### Added
|
7
|
+
support ruby >= 3.1
|
8
|
+
|
9
|
+
### Removed
|
10
|
+
drop support for ruby < 3.1, rails < 6.0
|
11
|
+
|
5
12
|
## [2.2.0] - 2020-12-09
|
6
13
|
### Added
|
7
14
|
support rails 6, ruby 1.66, 1.7.2
|
@@ -66,12 +66,12 @@ class LiveFixtures::Import
|
|
66
66
|
end
|
67
67
|
|
68
68
|
join_table_rows.each do |table_name, rows|
|
69
|
-
rows.each do |
|
70
|
-
targets.each do |target|
|
69
|
+
rows.each do |row|
|
70
|
+
row[:targets].each do |target|
|
71
71
|
assoc_fk = @label_to_id[target] || target
|
72
|
-
|
73
|
-
|
74
|
-
yield [table_name, NO_LABEL,
|
72
|
+
row_with_fk = { row[:association].foreign_key => fetch_id_for_label(row[:label]),
|
73
|
+
row[:association].association_foreign_key => assoc_fk }
|
74
|
+
yield [table_name, NO_LABEL, row_with_fk]
|
75
75
|
end
|
76
76
|
end
|
77
77
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: live_fixtures
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jleven
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 1980-01-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '6.0'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 7.0.0
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '
|
29
|
+
version: '6.0'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 7.0.0
|
@@ -106,14 +106,14 @@ dependencies:
|
|
106
106
|
requirements:
|
107
107
|
- - "~>"
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: '
|
109
|
+
version: '4.0'
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
112
|
version_requirements: !ruby/object:Gem::Requirement
|
113
113
|
requirements:
|
114
114
|
- - "~>"
|
115
115
|
- !ruby/object:Gem::Version
|
116
|
-
version: '
|
116
|
+
version: '4.0'
|
117
117
|
- !ruby/object:Gem::Dependency
|
118
118
|
name: byebug
|
119
119
|
requirement: !ruby/object:Gem::Requirement
|
@@ -227,14 +227,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
227
227
|
requirements:
|
228
228
|
- - ">="
|
229
229
|
- !ruby/object:Gem::Version
|
230
|
-
version: '
|
230
|
+
version: '3.1'
|
231
231
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
232
232
|
requirements:
|
233
233
|
- - ">="
|
234
234
|
- !ruby/object:Gem::Version
|
235
235
|
version: '0'
|
236
236
|
requirements: []
|
237
|
-
rubygems_version: 3.
|
237
|
+
rubygems_version: 3.4.13
|
238
238
|
signing_key:
|
239
239
|
specification_version: 4
|
240
240
|
summary: Tools for exporting and importing between databases managed by ActiveRecord.
|