live_fixtures 1.0.0 → 1.0.1
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/CHANGELOG.md +7 -0
- data/README.md +3 -0
- data/lib/live_fixtures/import.rb +1 -1
- data/lib/live_fixtures/version.rb +1 -1
- metadata +31 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c62185d78a809ced340e94cea4d55cf2149ffe83f3d01629db553df1b37dd10e
|
4
|
+
data.tar.gz: cea4216a648c7483612dc608ae00d72c0a78bce29b98e53a78534f47506d5f06
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 679e1f0bf3bc5d4d423258ab29b049f81d468889fb17f58de07a3d3bc0a3755466c09b88a853c9dd86b90e475f933c9c102f186fd8405cda0cebec598a6ebae0
|
7
|
+
data.tar.gz: 5417590a883f45a64ce359a79553a9cf1e826696e7b65f5c9ff0d15d3d28b3a05807578e8dad6672a91daaf3b2f53e38bd28a8dc842f28237c8ee044f01cf970
|
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
|
+
## [1.0.1] - 2019-04-10
|
6
|
+
### Fixed
|
7
|
+
- fixed incompatibility with mysql
|
8
|
+
|
9
|
+
### Added
|
10
|
+
- mysql regression test, confirmation that this gem doesn't work with psotgres
|
11
|
+
|
5
12
|
## [1.0.0] - 2019-02-15
|
6
13
|
### Breaking changes
|
7
14
|
- drop support for rails 4.2, ruby < 2.3
|
data/README.md
CHANGED
@@ -13,6 +13,9 @@ LiveFixtures uses a different strategy that means it is safer to use in a live e
|
|
13
13
|
|
14
14
|
For more information, see [the motivation section below](#motivation).
|
15
15
|
|
16
|
+
## Compatibility
|
17
|
+
LiveFixtures is tested against Sqlite3 & mysql. It is known to be incompatible with postgres.
|
18
|
+
|
16
19
|
## Installation
|
17
20
|
|
18
21
|
Add this line to your application's Gemfile:
|
data/lib/live_fixtures/import.rb
CHANGED
@@ -65,7 +65,7 @@ class LiveFixtures::Import
|
|
65
65
|
iterator = @options[:show_progress] ? ProgressBarIterator : SimpleIterator
|
66
66
|
iterator.new(ff).each do |table_name, label, row|
|
67
67
|
conn.insert_fixture(row, table_name)
|
68
|
-
@label_to_id[label] = conn.last_inserted_id
|
68
|
+
@label_to_id[label] = conn.send(:last_inserted_id, table_name) unless label == NO_LABEL
|
69
69
|
end
|
70
70
|
end
|
71
71
|
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: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jleven
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -122,6 +122,34 @@ dependencies:
|
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: 1.3.13
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: mysql2
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: pg
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
125
153
|
- !ruby/object:Gem::Dependency
|
126
154
|
name: yard
|
127
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -185,7 +213,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
185
213
|
- !ruby/object:Gem::Version
|
186
214
|
version: '0'
|
187
215
|
requirements: []
|
188
|
-
rubygems_version: 3.0.
|
216
|
+
rubygems_version: 3.0.3
|
189
217
|
signing_key:
|
190
218
|
specification_version: 4
|
191
219
|
summary: Tools for exporting and importing between databases managed by ActiveRecord.
|