declare_schema 1.0.0 → 1.0.1

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: 65a5d6f6ca6a81d44fe5ff1d1fa0cc73249e2e20f02017e53c9dd3c6a03156b3
4
- data.tar.gz: 167a53b05577190b8bb68b6871c41199ef4a2697fa2bc165fb4ed65355fecfeb
3
+ metadata.gz: 165053edc0bb071619bb898609cd3e8d489589509de8a386e3cfe97c63efd372
4
+ data.tar.gz: '05338b95ee665d86973b61aa36c35189f531660f325c3849890ae38cc356c5b8'
5
5
  SHA512:
6
- metadata.gz: 11722905e9a2761a84124aadf10f20221eb8c5bab9aec35e65a2db216b14607f958db2fe2076920d4bcd6e537ca8dabad5c60ef514a5ff843e6675d4e042ac84
7
- data.tar.gz: 103f1a41b5176b575b60141ed207c8e57d0c4ed8bc55a0235c318f928ff0a2dbf20bc2b889d8a6260c43fd0bcb1549a43581e594f1b2ebb70dc8312f68ab6476
6
+ metadata.gz: f84b58499f9d1e5b4e5d5c74af3c4e3cedbbc839076f09d128be9f92df7f7a61354d5de0531804ce3d2a3b6ec8c437a35c5d777cb44b5c1c2eb7d8a28f310095
7
+ data.tar.gz: 0b2403c1d17d52cecc73ab7be84729cba4979c34c9e48d1099f0ffaf4c97721f698dbced48e7f70571c476e3139829183fcac6b2957a5cea103b9cd8f49ba845
@@ -0,0 +1 @@
1
+ * @Invoca/octothorpe
data/CHANGELOG.md CHANGED
@@ -4,6 +4,10 @@ Inspired by [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
4
4
 
5
5
  Note: this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [1.0.1] - 2022-07-12
8
+ ### Fixed
9
+ - Remove lingering usage of `fallback_find_primary_key` method that was removed in `0.14.0`
10
+
7
11
  ## [1.0.0] - 2022-03-28
8
12
  ### Added
9
13
  - Added support for Ruby 3+
@@ -215,6 +219,7 @@ using the appropriate Rails configuration attributes.
215
219
  ### Added
216
220
  - Initial version from https://github.com/Invoca/hobo_fields v4.1.0.
217
221
 
222
+ [1.0.1]: https://github.com/Invoca/declare_schema/compare/v1.0.0...v1.0.1
218
223
  [1.0.0]: https://github.com/Invoca/declare_schema/compare/v0.14.3...v1.0.0
219
224
  [0.14.3]: https://github.com/Invoca/declare_schema/compare/v0.14.2...v0.14.3
220
225
  [0.14.2]: https://github.com/Invoca/declare_schema/compare/v0.14.1...v0.14.2
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- declare_schema (1.0.0)
4
+ declare_schema (1.0.1)
5
5
  rails (>= 5.0)
6
6
 
7
7
  GEM
@@ -37,7 +37,7 @@ module DeclareSchema
37
37
  def for_model(model, old_table_name = nil)
38
38
  t = old_table_name || model.table_name
39
39
 
40
- primary_key_columns = Array(model.connection.primary_key(t)).presence || fallback_find_primary_key(model, t) or
40
+ primary_key_columns = Array(model.connection.primary_key(t)).presence or
41
41
  raise "could not find primary key for table #{t} in #{model.connection.columns(t).inspect}"
42
42
 
43
43
  primary_key_found = false
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DeclareSchema
4
- VERSION = "1.0.0"
4
+ VERSION = "1.0.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: declare_schema
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
  - Invoca Development adapted from hobo_fields by Tom Locke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-28 00:00:00.000000000 Z
11
+ date: 2022-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -32,6 +32,7 @@ executables:
32
32
  extensions: []
33
33
  extra_rdoc_files: []
34
34
  files:
35
+ - ".github/CODEOWNERS"
35
36
  - ".github/dependabot.yml"
36
37
  - ".github/workflows/declare_schema_build.yml"
37
38
  - ".github/workflows/gem_release.yml"
@@ -141,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
141
142
  - !ruby/object:Gem::Version
142
143
  version: 1.3.6
143
144
  requirements: []
144
- rubygems_version: 3.1.6
145
+ rubygems_version: 3.3.11
145
146
  signing_key:
146
147
  specification_version: 4
147
148
  summary: Database schema declaration and migration generator for Rails