conflict_free_schema 0.1.1 → 0.1.2
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 +6 -0
- data/LICENSE.txt +1 -0
- data/lib/conflict_free_schema/database/schema_version_files.rb +9 -3
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa98657ef1504d57ccc4573a6b1863881c134a242250f447cb79464b9bcd85e7
|
4
|
+
data.tar.gz: f8d03e8ba3f06fd46a5b336bc928fd17c6dbe0360f6625ac63926f98eb4ce708
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bfad41e683dc23c5217251e79db69bc297ce9f5b124cb166ccae86cb2ecd1f28272dd9bcd5df738ea7aed462b857fec97a9a419c46780573f7583da05255fe54
|
7
|
+
data.tar.gz: 2ed2b512edde3a9349a89ed0dab8455ecb64e719c4085677948d3faa92ab252983506e580b746eccfdfd6cf3cbf0bfc1a441a15ad72d3a1eec1c28b1e5abffc7
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
### 0.1.2
|
2
|
+
|
3
|
+
- do a recursive search for migrations - use `db/migrate/**/*` pattern ([@Ivanov-Anton](https://github.com/Ivanov-Anton))
|
4
|
+
- test on latest Rails 6.0 / 6.1
|
5
|
+
- exclude Ruby 3.1 in CI matrix for now ([6.x required workarounds](https://github.com/rails/rails/issues/43998))
|
6
|
+
|
1
7
|
### 0.1.1
|
2
8
|
|
3
9
|
- explicitly declares files for gem package
|
data/LICENSE.txt
CHANGED
@@ -44,7 +44,7 @@ module ConflictFreeSchema
|
|
44
44
|
end
|
45
45
|
|
46
46
|
def self.migration_directories
|
47
|
-
@migration_directories ||= MIGRATION_DIRECTORIES.map { |dir| Rails.root.join(dir) }
|
47
|
+
@migration_directories ||= MIGRATION_DIRECTORIES.map { |dir| Rails.root.join(dir, '**', '*') }
|
48
48
|
end
|
49
49
|
|
50
50
|
def self.find_version_filenames
|
@@ -57,8 +57,14 @@ module ConflictFreeSchema
|
|
57
57
|
|
58
58
|
def self.find_versions_from_migration_files
|
59
59
|
migration_directories.each_with_object([]) do |directory, migration_versions|
|
60
|
-
directory_migrations = Dir.glob(
|
61
|
-
directory_versions = directory_migrations.map
|
60
|
+
directory_migrations = Dir.glob(directory)
|
61
|
+
directory_versions = directory_migrations.map do |migration|
|
62
|
+
item = Pathname.new(migration)
|
63
|
+
next if item.directory?
|
64
|
+
next unless item.basename.fnmatch?(MIGRATION_VERSION_GLOB)
|
65
|
+
|
66
|
+
item.basename.to_s.split('_').first
|
67
|
+
end.compact
|
62
68
|
|
63
69
|
migration_versions.concat(directory_versions)
|
64
70
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: conflict_free_schema
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rafal Wojsznis
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pg
|
@@ -118,7 +118,7 @@ metadata:
|
|
118
118
|
homepage_uri: https://github.com/stolen-ruby/conflict-free-schema
|
119
119
|
source_code_uri: https://github.com/stolen-ruby/conflict-free-schema
|
120
120
|
changelog_uri: https://github.com/stolen-ruby/conflict_free_schema/blob/main/CHANGELOG.md
|
121
|
-
post_install_message:
|
121
|
+
post_install_message:
|
122
122
|
rdoc_options: []
|
123
123
|
require_paths:
|
124
124
|
- lib
|
@@ -133,8 +133,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
133
133
|
- !ruby/object:Gem::Version
|
134
134
|
version: '0'
|
135
135
|
requirements: []
|
136
|
-
rubygems_version: 3.2.
|
137
|
-
signing_key:
|
136
|
+
rubygems_version: 3.2.27
|
137
|
+
signing_key:
|
138
138
|
specification_version: 4
|
139
139
|
summary: Conflict-free schema version handling
|
140
140
|
test_files: []
|