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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5eeba979242569ec0f94e990bae7d73b5dc35bac27b15ad7efff6f073de3589e
4
- data.tar.gz: 54cebba2b0a73a58c916e4e416d66127e3fa0d625c2eaf1cfdac83e2cab2c441
3
+ metadata.gz: bbf26caa4bc2f3c06841bbca6d9d439a810ad68825ebaae2b75d72d44a7a5d2d
4
+ data.tar.gz: 4b2f72384af585541e217397ecf02962a9b8e536ec5ea2a0091f832ded92901d
5
5
  SHA512:
6
- metadata.gz: 1373aa766f1c8772a3d6e72f501320efd919396876ec276c50c4a661ac714b99a65fa815e86b01a41943bcc5323530bd52a72e5a98f29ba4188cacef25c4b57f
7
- data.tar.gz: 70d4d8b975c414de07b1255416f6ef7128a4a622db16afd00a670e3879fe1f48ad5e16fc9d92ffba3c8803d500d303e5faac8d705d50734c416609767bdf3cec
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 |targets:, association:, label:|
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
- row = { association.foreign_key => fetch_id_for_label(label),
73
- association.association_foreign_key => assoc_fk }
74
- yield [table_name, NO_LABEL, row]
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
@@ -1,3 +1,3 @@
1
1
  module LiveFixtures
2
- VERSION = "2.2.0"
2
+ VERSION = "3.0.0"
3
3
  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: 2.2.0
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: 2020-12-09 00:00:00.000000000 Z
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: '5.2'
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: '5.2'
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: '3.10'
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: '3.10'
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: '2.1'
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.1.5
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.