declare_schema 0.13.0 → 0.13.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: dc0328d501bd76426598e121bc75283089a2a1b7c72781ce9b29ae4e60f8dff2
4
- data.tar.gz: a734efaadde7dae50ee1cf512a52858eabc7c7315e6b5dbf3a8f6660eda32da4
3
+ metadata.gz: 4caf19f1ddb0978b9e9bbc5c55d5941a934ded2e4bbd8adfba52c078e599106b
4
+ data.tar.gz: 2a8d9f9434f6acae5cab5bfe4ffc6eee0d6ce0e31a59b471d0c48b63b0c3260c
5
5
  SHA512:
6
- metadata.gz: 697da828c1b2fe88048a4c66cccda205adc809d449361294fc4e0e0c69d229bb97ed8b861979ab85eed6c8bd30d5dd942ed2791b8ded632eb371f084215e56c8
7
- data.tar.gz: 5ff7eb9bc51daba2f0544e093baf38e2b181b2631683d3e2548d2054c4da70036ed98cdc7223658c93f5cb9423a79081c67e600629e0441dd505b09b82039bc1
6
+ metadata.gz: 6edfafddcd596afd63417d2e8f59aec7bfcd637e35d0fb77fc06f39e6e78d461da5c2e0b6752cb8b18785afa0ac81cfb7569fa0be85ba06ad3432d3911a624e5
7
+ data.tar.gz: 7d2d190f0c6928f7b70f96c8ce58517475ce1b512a31a7c33033314bff0405fb51d88c82c72bd0a8a1b25d8558039ef787b0314b60f7fdefbd75975c3320f57e
data/CHANGELOG.md CHANGED
@@ -4,7 +4,12 @@ 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
- ## [0.13.0] - 2020-06-11
7
+ ## [0.13.1] - 2021-08-02
8
+ ### Fixed
9
+ - Fixed migration file indentation bug in Rails 5 where the first line was indented an extra 4 characters.
10
+ And fixed the longstanding triple-spacing bug to use double spacing.
11
+
12
+ ## [0.13.0] - 2021-06-11
8
13
  ### Added
9
14
  - Added support for `default_schema` block to apply a default schema to every model, unless disabled for that model with `default_schema: false`.
10
15
 
@@ -183,6 +188,7 @@ using the appropriate Rails configuration attributes.
183
188
  ### Added
184
189
  - Initial version from https://github.com/Invoca/hobo_fields v4.1.0.
185
190
 
191
+ [0.13.1]: https://github.com/Invoca/declare_schema/compare/v0.13.0...v0.13.1
186
192
  [0.13.0]: https://github.com/Invoca/declare_schema/compare/v0.12.1...v0.13.0
187
193
  [0.12.1]: https://github.com/Invoca/declare_schema/compare/v0.12.0...v0.12.1
188
194
  [0.12.0]: https://github.com/Invoca/declare_schema/compare/v0.11.1...v0.12.0
data/Gemfile.lock CHANGED
@@ -1,49 +1,49 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- declare_schema (0.13.0)
4
+ declare_schema (0.13.1)
5
5
  rails (>= 4.2)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- actioncable (5.2.4.5)
11
- actionpack (= 5.2.4.5)
10
+ actioncable (5.2.6)
11
+ actionpack (= 5.2.6)
12
12
  nio4r (~> 2.0)
13
13
  websocket-driver (>= 0.6.1)
14
- actionmailer (5.2.4.5)
15
- actionpack (= 5.2.4.5)
16
- actionview (= 5.2.4.5)
17
- activejob (= 5.2.4.5)
14
+ actionmailer (5.2.6)
15
+ actionpack (= 5.2.6)
16
+ actionview (= 5.2.6)
17
+ activejob (= 5.2.6)
18
18
  mail (~> 2.5, >= 2.5.4)
19
19
  rails-dom-testing (~> 2.0)
20
- actionpack (5.2.4.5)
21
- actionview (= 5.2.4.5)
22
- activesupport (= 5.2.4.5)
20
+ actionpack (5.2.6)
21
+ actionview (= 5.2.6)
22
+ activesupport (= 5.2.6)
23
23
  rack (~> 2.0, >= 2.0.8)
24
24
  rack-test (>= 0.6.3)
25
25
  rails-dom-testing (~> 2.0)
26
26
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
27
- actionview (5.2.4.5)
28
- activesupport (= 5.2.4.5)
27
+ actionview (5.2.6)
28
+ activesupport (= 5.2.6)
29
29
  builder (~> 3.1)
30
30
  erubi (~> 1.4)
31
31
  rails-dom-testing (~> 2.0)
32
32
  rails-html-sanitizer (~> 1.0, >= 1.0.3)
33
- activejob (5.2.4.5)
34
- activesupport (= 5.2.4.5)
33
+ activejob (5.2.6)
34
+ activesupport (= 5.2.6)
35
35
  globalid (>= 0.3.6)
36
- activemodel (5.2.4.5)
37
- activesupport (= 5.2.4.5)
38
- activerecord (5.2.4.5)
39
- activemodel (= 5.2.4.5)
40
- activesupport (= 5.2.4.5)
36
+ activemodel (5.2.6)
37
+ activesupport (= 5.2.6)
38
+ activerecord (5.2.6)
39
+ activemodel (= 5.2.6)
40
+ activesupport (= 5.2.6)
41
41
  arel (>= 9.0)
42
- activestorage (5.2.4.5)
43
- actionpack (= 5.2.4.5)
44
- activerecord (= 5.2.4.5)
45
- marcel (~> 0.3.1)
46
- activesupport (5.2.4.5)
42
+ activestorage (5.2.6)
43
+ actionpack (= 5.2.6)
44
+ activerecord (= 5.2.6)
45
+ marcel (~> 1.0.0)
46
+ activesupport (5.2.6)
47
47
  concurrent-ruby (~> 1.0, >= 1.0.2)
48
48
  i18n (>= 0.7, < 2)
49
49
  minitest (~> 5.1)
@@ -60,33 +60,31 @@ GEM
60
60
  byebug (11.1.3)
61
61
  climate_control (0.2.0)
62
62
  coderay (1.1.3)
63
- concurrent-ruby (1.1.8)
63
+ concurrent-ruby (1.1.9)
64
64
  crass (1.0.6)
65
65
  diff-lcs (1.4.4)
66
66
  erubi (1.10.0)
67
- ffi (1.14.2)
67
+ ffi (1.15.1)
68
68
  globalid (0.4.2)
69
69
  activesupport (>= 4.2.0)
70
- i18n (1.8.9)
70
+ i18n (1.8.10)
71
71
  concurrent-ruby (~> 1.0)
72
- listen (3.4.1)
72
+ listen (3.5.1)
73
73
  rb-fsevent (~> 0.10, >= 0.10.3)
74
74
  rb-inotify (~> 0.9, >= 0.9.10)
75
- loofah (2.9.0)
75
+ loofah (2.10.0)
76
76
  crass (~> 1.0.2)
77
77
  nokogiri (>= 1.5.9)
78
78
  mail (2.7.1)
79
79
  mini_mime (>= 0.1.1)
80
- marcel (0.3.3)
81
- mimemagic (~> 0.3.2)
80
+ marcel (1.0.1)
82
81
  method_source (1.0.0)
83
- mimemagic (0.3.5)
84
- mini_mime (1.0.2)
85
- mini_portile2 (2.5.0)
86
- minitest (5.14.3)
82
+ mini_mime (1.1.0)
83
+ mini_portile2 (2.5.3)
84
+ minitest (5.14.4)
87
85
  msgpack (1.4.2)
88
- nio4r (2.5.5)
89
- nokogiri (1.11.1)
86
+ nio4r (2.5.7)
87
+ nokogiri (1.11.7)
90
88
  mini_portile2 (~> 2.5.0)
91
89
  racc (~> 1.4)
92
90
  parallel (1.19.2)
@@ -102,33 +100,33 @@ GEM
102
100
  rack (2.2.3)
103
101
  rack-test (1.1.0)
104
102
  rack (>= 1.0, < 3)
105
- rails (5.2.4.5)
106
- actioncable (= 5.2.4.5)
107
- actionmailer (= 5.2.4.5)
108
- actionpack (= 5.2.4.5)
109
- actionview (= 5.2.4.5)
110
- activejob (= 5.2.4.5)
111
- activemodel (= 5.2.4.5)
112
- activerecord (= 5.2.4.5)
113
- activestorage (= 5.2.4.5)
114
- activesupport (= 5.2.4.5)
103
+ rails (5.2.6)
104
+ actioncable (= 5.2.6)
105
+ actionmailer (= 5.2.6)
106
+ actionpack (= 5.2.6)
107
+ actionview (= 5.2.6)
108
+ activejob (= 5.2.6)
109
+ activemodel (= 5.2.6)
110
+ activerecord (= 5.2.6)
111
+ activestorage (= 5.2.6)
112
+ activesupport (= 5.2.6)
115
113
  bundler (>= 1.3.0)
116
- railties (= 5.2.4.5)
114
+ railties (= 5.2.6)
117
115
  sprockets-rails (>= 2.0.0)
118
116
  rails-dom-testing (2.0.3)
119
117
  activesupport (>= 4.2.0)
120
118
  nokogiri (>= 1.6)
121
119
  rails-html-sanitizer (1.3.0)
122
120
  loofah (~> 2.3)
123
- railties (5.2.4.5)
124
- actionpack (= 5.2.4.5)
125
- activesupport (= 5.2.4.5)
121
+ railties (5.2.6)
122
+ actionpack (= 5.2.6)
123
+ activesupport (= 5.2.6)
126
124
  method_source
127
125
  rake (>= 0.8.7)
128
126
  thor (>= 0.19.0, < 2.0)
129
127
  rainbow (3.0.0)
130
128
  rake (13.0.3)
131
- rb-fsevent (0.10.4)
129
+ rb-fsevent (0.11.0)
132
130
  rb-inotify (0.10.1)
133
131
  ffi (~> 1.0)
134
132
  regexp_parser (1.8.0)
@@ -174,7 +172,7 @@ GEM
174
172
  tzinfo (1.2.9)
175
173
  thread_safe (~> 0.1)
176
174
  unicode-display_width (1.7.0)
177
- websocket-driver (0.7.3)
175
+ websocket-driver (0.7.4)
178
176
  websocket-extensions (>= 0.1.0)
179
177
  websocket-extensions (0.1.5)
180
178
  yard (0.9.26)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DeclareSchema
4
- VERSION = "0.13.0"
4
+ VERSION = "0.13.1"
5
5
  end
@@ -299,7 +299,7 @@ module Generators
299
299
  up = migration_commands.map(&:up ).select(&:present?)
300
300
  down = migration_commands.map(&:down).select(&:present?).reverse
301
301
 
302
- [up * "\n\n", down * "\n\n"]
302
+ [up * "\n", down * "\n"]
303
303
  end
304
304
 
305
305
  def create_table_options(model, disable_auto_increment)
@@ -1,9 +1,9 @@
1
1
  class <%= @migration_class_name %> < (ActiveSupport::VERSION::MAJOR >= 5 ? ActiveRecord::Migration[4.2] : ActiveRecord::Migration)
2
2
  def self.up
3
- <%= @up.presence or raise "no @up given!" %>
3
+ <%= @up.presence or raise "no @up given!" %>
4
4
  end
5
5
 
6
6
  def self.down
7
- <%= @down.presence or raise "no @down given!" %>
7
+ <%= @down.presence or raise "no @down given!" %>
8
8
  end
9
9
  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.13.0
4
+ version: 0.13.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: 2021-06-11 00:00:00.000000000 Z
11
+ date: 2021-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails