conflict_free_schema 0.1.1 → 0.1.2

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: fc315c6a4363efa8e1d8196de883160ff2d5291d3863f50a7b510efffc4803a5
4
- data.tar.gz: 59cdb6d324cc4b1bd35eacb095390f6a50bedfd802eb4ad2076d7f34d46d8338
3
+ metadata.gz: aa98657ef1504d57ccc4573a6b1863881c134a242250f447cb79464b9bcd85e7
4
+ data.tar.gz: f8d03e8ba3f06fd46a5b336bc928fd17c6dbe0360f6625ac63926f98eb4ce708
5
5
  SHA512:
6
- metadata.gz: fc78558084a076a4538a31fbddaea733c2f24636102e9f44fc5348f66169cebdd7073feabfc08e940504ea5970c44e946b7b682c7fd552c738cc039c965d0b94
7
- data.tar.gz: b4e877cf7770bdd5c29ed80d79051b1329e27300d67e28f7d912b52e4fb5cec003354d9eabf39add0509811322f0b899d7949e127a78546caf95e71a6e2c8136
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
@@ -1,5 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
+ Copyright (c) 2011-present GitLab B.V.
3
4
  Copyright (c) 2021 Rafal Wojsznis
4
5
 
5
6
  Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -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(MIGRATION_VERSION_GLOB, base: directory)
61
- directory_versions = directory_migrations.map! { |m| m.split('_').first }
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.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: 2021-04-16 00:00:00.000000000 Z
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.5
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: []