declare_schema 0.14.0 → 0.14.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: 444a7dd7bb3bac5706b293e51e2fa97bfa7e774cf0a5ef317b77122d991f10f2
4
- data.tar.gz: 5c0d39fa31c10cb994bffc88fc312682896cb422f5b9bda45a7d5fa5cd64c131
3
+ metadata.gz: fd53a96307dce4b6f8c1ab3372820991af20afdb91f78dc28a022ccd4edc6867
4
+ data.tar.gz: b8a2a17a17b6df4fd4f6b5915386734cdc439613a65b60e490dd5d906fd4e457
5
5
  SHA512:
6
- metadata.gz: c39f52e48a8e79e75c97133aaac82f481c85e6fc762cba834021cc4dd5d77e8f9e4b78b551f73c9b2c28f9e83818cdc4cb142323a64146d6961ec52df4974382
7
- data.tar.gz: 82b743c5c2e387e6a0b0f0c112fa24b699873412242a1cefea5c842c441d3e4169b8ed6a6364b667194d1b2fcfd35ba3567bfdac0ab8e5858e5ee0c04e770f53
6
+ metadata.gz: 64cf2d70ecb330394607241f4a4094c37ad0ee1291df3b1ce8e652f82c8e1ebdd96fc0adffa48bdcfe2e641a8be0197541cce19d46b89460aef3b656718a4d5b
7
+ data.tar.gz: afcdcc1e94a8504797d9e5b986009d7f932e9822e717ce33fb4588a53039ae9e53a389642c98c0be38b3c922c10de1314fba663f1a9badc739fdb69357772e24
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.6.5
1
+ 2.7.0
data/CHANGELOG.md CHANGED
@@ -3,8 +3,13 @@
3
3
  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
+
7
+ ## [0.14.1] - 2021-09-01
8
+ ### Fixed
9
+ - Fixed Ruby 2.7 warning about needing `**options` when calling a method that has `**options` in its signature.
10
+
6
11
  ## [0.14.0] - 2021-08-10
7
- ### Deprecated
12
+ ### Removed
8
13
  - Dropped support for Rails versions less than 5.
9
14
 
10
15
  ## [0.13.2] - 2021-08-04
@@ -195,6 +200,7 @@ using the appropriate Rails configuration attributes.
195
200
  ### Added
196
201
  - Initial version from https://github.com/Invoca/hobo_fields v4.1.0.
197
202
 
203
+ [0.14.1]: https://github.com/Invoca/declare_schema/compare/v0.14.0...v0.14.1
198
204
  [0.14.0]: https://github.com/Invoca/declare_schema/compare/v0.13.1...v0.14.0
199
205
  [0.13.1]: https://github.com/Invoca/declare_schema/compare/v0.13.0...v0.13.1
200
206
  [0.13.0]: https://github.com/Invoca/declare_schema/compare/v0.12.1...v0.13.0
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- declare_schema (0.14.0)
4
+ declare_schema (0.14.1)
5
5
  rails (>= 5.0)
6
6
 
7
7
  GEM
@@ -152,7 +152,7 @@ module DeclareSchema
152
152
  end
153
153
  end
154
154
 
155
- declare_field(fkey.to_sym, :bigint, fkey_id_column_options)
155
+ declare_field(fkey.to_sym, :bigint, **fkey_id_column_options)
156
156
 
157
157
  if refl.options[:polymorphic]
158
158
  foreign_type = options[:foreign_type] || "#{name}_type"
@@ -214,7 +214,7 @@ module DeclareSchema
214
214
  # Declares the "foo_type" field that accompanies the "foo_id"
215
215
  # field for a polymorphic belongs_to
216
216
  def _declare_polymorphic_type_field(foreign_type, column_options)
217
- declare_field(foreign_type, :string, column_options.merge(limit: 255))
217
+ declare_field(foreign_type, :string, **column_options.merge(limit: 255))
218
218
  # FIXME: Before declare_schema was extracted, this used to now do:
219
219
  # never_show(type_col)
220
220
  # That needs doing somewhere
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DeclareSchema
4
- VERSION = "0.14.0"
4
+ VERSION = "0.14.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: 0.14.0
4
+ version: 0.14.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Invoca Development adapted from hobo_fields by Tom Locke
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-10 00:00:00.000000000 Z
11
+ date: 2021-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -126,7 +126,7 @@ homepage: https://github.com/Invoca/declare_schema
126
126
  licenses: []
127
127
  metadata:
128
128
  allowed_push_host: https://rubygems.org
129
- post_install_message:
129
+ post_install_message:
130
130
  rdoc_options: []
131
131
  require_paths:
132
132
  - lib
@@ -141,8 +141,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
141
141
  - !ruby/object:Gem::Version
142
142
  version: 1.3.6
143
143
  requirements: []
144
- rubygems_version: 3.0.3
145
- signing_key:
144
+ rubygems_version: 3.1.2
145
+ signing_key:
146
146
  specification_version: 4
147
147
  summary: Database schema declaration and migration generator for Rails
148
148
  test_files: []