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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 28eb3efe0fc464ccf35c6a42a156623528438ef7253c8d44c64731f006588342
4
- data.tar.gz: 0ef6a9d067294eda78fc74f5192c860ae4427613feb8ab17f117972011af528e
3
+ metadata.gz: c62185d78a809ced340e94cea4d55cf2149ffe83f3d01629db553df1b37dd10e
4
+ data.tar.gz: cea4216a648c7483612dc608ae00d72c0a78bce29b98e53a78534f47506d5f06
5
5
  SHA512:
6
- metadata.gz: f3ae95224c87a6bd3e1b8ef4c2c1bb5bce6b761dd720e0bbbdd59c626adc66dc4fd50a97c0c092e73314bf1457a16f03165b79962b119e72af40daa6dc97701d
7
- data.tar.gz: 95347d531c13835df9fb9198c9695e182c9fc46e62b3cad89864539d8cc76655a2dd0bb06c53929f6c0fa685cde66d79eb758bbad691ccd41effbe496c796ef3
6
+ metadata.gz: 679e1f0bf3bc5d4d423258ab29b049f81d468889fb17f58de07a3d3bc0a3755466c09b88a853c9dd86b90e475f933c9c102f186fd8405cda0cebec598a6ebae0
7
+ data.tar.gz: 5417590a883f45a64ce359a79553a9cf1e826696e7b65f5c9ff0d15d3d28b3a05807578e8dad6672a91daaf3b2f53e38bd28a8dc842f28237c8ee044f01cf970
@@ -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:
@@ -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(table_name) unless label == NO_LABEL
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
@@ -1,3 +1,3 @@
1
1
  module LiveFixtures
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
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: 1.0.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-02-15 00:00:00.000000000 Z
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.2
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.