live_fixtures 2.1.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: 9414f9b5a408acaff1c2749f0f3127412f23f6d364988fcf1f75ce9a15b0cbe4
4
- data.tar.gz: f6304bcef06ba8b4e153d7ff19744e9af837592ea0aa72a758a5446e3933055c
3
+ metadata.gz: bbf26caa4bc2f3c06841bbca6d9d439a810ad68825ebaae2b75d72d44a7a5d2d
4
+ data.tar.gz: 4b2f72384af585541e217397ecf02962a9b8e536ec5ea2a0091f832ded92901d
5
5
  SHA512:
6
- metadata.gz: 348ebda33ef0e11062c823ab14d64dc5b5c5947686f91d2a094836b7a1499061ff7e306a1e943824a27e958dad4e8ed4581b5626b835c191a5409a2d735f557b
7
- data.tar.gz: 03eb2d921c1de9d75f144c99dd5166298d2ed67d79844bb5b2aac1b44acb31a00a2076ef4ec27e2a50a72b5f41de68d6168bb517786fb1fef7aadec8d610199f
6
+ metadata.gz: c41c8f75d47f57ab3142808e2ba029fbf99956860577f9a2e8ab1d777d89cd78166f7626644c1922df017eeaea6417e778746953345686b492bc4db6247d6fff
7
+ data.tar.gz: c28e25054a89c6cc5b16cac8f54279c33dcedab48e92c24cdb14ea1f0958fd543b75207740b423323c2dbfcd564ad004c0f578030b1a6b46cb71b059295180c9
data/CHANGELOG.md CHANGED
@@ -2,6 +2,21 @@
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
+
12
+ ## [2.2.0] - 2020-12-09
13
+ ### Added
14
+ support rails 6, ruby 1.66, 1.7.2
15
+
16
+ ### Removed
17
+ drop support for legacy rubies. Chose not to do a major version bump BUT MAYBE I WAS WRONG!
18
+
19
+
5
20
  ## [2.1.0] - 2020-12-09
6
21
  ### Added
7
22
  support for selectively import tables with custom callbacks per table (#34)
@@ -1,3 +1,4 @@
1
+ require 'fileutils'
1
2
  # This module is meant to be `include`ed into your export class.
2
3
  #
3
4
  # 1. Call #set_export_dir to set the dir where files should be created.
@@ -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.1.0"
2
+ VERSION = "3.0.0"
3
3
  end
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: live_fixtures
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.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: 1970-01-01 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
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '6.0'
20
+ - - "<"
18
21
  - !ruby/object:Gem::Version
19
- version: '5.2'
22
+ version: 7.0.0
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '6.0'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: '5.2'
32
+ version: 7.0.0
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: ruby-progressbar
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -38,62 +44,76 @@ dependencies:
38
44
  - - ">="
39
45
  - !ruby/object:Gem::Version
40
46
  version: '0'
47
+ - !ruby/object:Gem::Dependency
48
+ name: appraisal
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: 2.3.0
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - "~>"
59
+ - !ruby/object:Gem::Version
60
+ version: 2.3.0
41
61
  - !ruby/object:Gem::Dependency
42
62
  name: bundler
43
63
  requirement: !ruby/object:Gem::Requirement
44
64
  requirements:
45
65
  - - "~>"
46
66
  - !ruby/object:Gem::Version
47
- version: '2.0'
67
+ version: '2.1'
48
68
  type: :development
49
69
  prerelease: false
50
70
  version_requirements: !ruby/object:Gem::Requirement
51
71
  requirements:
52
72
  - - "~>"
53
73
  - !ruby/object:Gem::Version
54
- version: '2.0'
74
+ version: '2.1'
55
75
  - !ruby/object:Gem::Dependency
56
76
  name: rake
57
77
  requirement: !ruby/object:Gem::Requirement
58
78
  requirements:
59
79
  - - "~>"
60
80
  - !ruby/object:Gem::Version
61
- version: '12.3'
81
+ version: '13.0'
62
82
  type: :development
63
83
  prerelease: false
64
84
  version_requirements: !ruby/object:Gem::Requirement
65
85
  requirements:
66
86
  - - "~>"
67
87
  - !ruby/object:Gem::Version
68
- version: '12.3'
88
+ version: '13.0'
69
89
  - !ruby/object:Gem::Dependency
70
90
  name: rspec
71
91
  requirement: !ruby/object:Gem::Requirement
72
92
  requirements:
73
93
  - - "~>"
74
94
  - !ruby/object:Gem::Version
75
- version: '3.8'
95
+ version: '3.10'
76
96
  type: :development
77
97
  prerelease: false
78
98
  version_requirements: !ruby/object:Gem::Requirement
79
99
  requirements:
80
100
  - - "~>"
81
101
  - !ruby/object:Gem::Version
82
- version: '3.8'
102
+ version: '3.10'
83
103
  - !ruby/object:Gem::Dependency
84
104
  name: temping
85
105
  requirement: !ruby/object:Gem::Requirement
86
106
  requirements:
87
107
  - - "~>"
88
108
  - !ruby/object:Gem::Version
89
- version: '3.10'
109
+ version: '4.0'
90
110
  type: :development
91
111
  prerelease: false
92
112
  version_requirements: !ruby/object:Gem::Requirement
93
113
  requirements:
94
114
  - - "~>"
95
115
  - !ruby/object:Gem::Version
96
- version: '3.10'
116
+ version: '4.0'
97
117
  - !ruby/object:Gem::Dependency
98
118
  name: byebug
99
119
  requirement: !ruby/object:Gem::Requirement
@@ -114,14 +134,14 @@ dependencies:
114
134
  requirements:
115
135
  - - "~>"
116
136
  - !ruby/object:Gem::Version
117
- version: 1.3.13
137
+ version: '1.4'
118
138
  type: :development
119
139
  prerelease: false
120
140
  version_requirements: !ruby/object:Gem::Requirement
121
141
  requirements:
122
142
  - - "~>"
123
143
  - !ruby/object:Gem::Version
124
- version: 1.3.13
144
+ version: '1.4'
125
145
  - !ruby/object:Gem::Dependency
126
146
  name: mysql2
127
147
  requirement: !ruby/object:Gem::Requirement
@@ -207,14 +227,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
207
227
  requirements:
208
228
  - - ">="
209
229
  - !ruby/object:Gem::Version
210
- version: '2.1'
230
+ version: '3.1'
211
231
  required_rubygems_version: !ruby/object:Gem::Requirement
212
232
  requirements:
213
233
  - - ">="
214
234
  - !ruby/object:Gem::Version
215
235
  version: '0'
216
236
  requirements: []
217
- rubygems_version: 3.1.4
237
+ rubygems_version: 3.4.13
218
238
  signing_key:
219
239
  specification_version: 4
220
240
  summary: Tools for exporting and importing between databases managed by ActiveRecord.