seed-snapshot 0.3.0 → 0.4.0
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/lib/seed/configuration.rb +4 -1
- data/lib/seed_snapshot/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8512d5e57f07a3cfb04a207a8b56cd6a05b850fae598c24d3e263ff6566de613
|
|
4
|
+
data.tar.gz: 3385c0eedecfa2451fefdb088b3ff98a5fbe1f41254baaf387197c019bc7155c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1725747fea9e450d1ad025cf58b600105c50afd02e1c1509da33448b53d7738a16e1cdffa87ad33824392d5215fb3cabfa7eb1b870ab1b945b580e77893724e7
|
|
7
|
+
data.tar.gz: a25b69dd1e508c9b507ffce260a26fea3a276fb9fc4d483c4e561f5ecd929800ea60a9aad83045cf317dff1c0be4173a9dae614a1abc6ba4369632df5d79d381
|
data/lib/seed/configuration.rb
CHANGED
|
@@ -37,7 +37,10 @@ module Seed
|
|
|
37
37
|
private
|
|
38
38
|
|
|
39
39
|
def get_all_versions
|
|
40
|
-
if ::Gem::Version.new(::ActiveRecord::VERSION::STRING) >= ::Gem::Version.new('
|
|
40
|
+
if ::Gem::Version.new(::ActiveRecord::VERSION::STRING) >= ::Gem::Version.new('6.0')
|
|
41
|
+
migration_paths = ::ActiveRecord::Migrator.migrations_paths
|
|
42
|
+
::ActiveRecord::MigrationContext.new(migration_paths, ::ActiveRecord::SchemaMigration).get_all_versions
|
|
43
|
+
elsif ::Gem::Version.new(::ActiveRecord::VERSION::STRING) >= ::Gem::Version.new('5.2')
|
|
41
44
|
migration_paths = ::ActiveRecord::Migrator.migrations_paths
|
|
42
45
|
::ActiveRecord::MigrationContext.new(migration_paths).get_all_versions
|
|
43
46
|
else
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: seed-snapshot
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- yo_waka
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2021-10-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -156,8 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
156
156
|
- !ruby/object:Gem::Version
|
|
157
157
|
version: '0'
|
|
158
158
|
requirements: []
|
|
159
|
-
|
|
160
|
-
rubygems_version: 2.7.6
|
|
159
|
+
rubygems_version: 3.1.2
|
|
161
160
|
signing_key:
|
|
162
161
|
specification_version: 4
|
|
163
162
|
summary: Easy dump/restore tool for ActiveRecord.
|