declare_schema 0.13.0 → 0.13.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4caf19f1ddb0978b9e9bbc5c55d5941a934ded2e4bbd8adfba52c078e599106b
|
4
|
+
data.tar.gz: 2a8d9f9434f6acae5cab5bfe4ffc6eee0d6ce0e31a59b471d0c48b63b0c3260c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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.
|
11
|
-
actionpack (= 5.2.
|
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.
|
15
|
-
actionpack (= 5.2.
|
16
|
-
actionview (= 5.2.
|
17
|
-
activejob (= 5.2.
|
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.
|
21
|
-
actionview (= 5.2.
|
22
|
-
activesupport (= 5.2.
|
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.
|
28
|
-
activesupport (= 5.2.
|
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.
|
34
|
-
activesupport (= 5.2.
|
33
|
+
activejob (5.2.6)
|
34
|
+
activesupport (= 5.2.6)
|
35
35
|
globalid (>= 0.3.6)
|
36
|
-
activemodel (5.2.
|
37
|
-
activesupport (= 5.2.
|
38
|
-
activerecord (5.2.
|
39
|
-
activemodel (= 5.2.
|
40
|
-
activesupport (= 5.2.
|
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.
|
43
|
-
actionpack (= 5.2.
|
44
|
-
activerecord (= 5.2.
|
45
|
-
marcel (~> 0.
|
46
|
-
activesupport (5.2.
|
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.
|
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.
|
67
|
+
ffi (1.15.1)
|
68
68
|
globalid (0.4.2)
|
69
69
|
activesupport (>= 4.2.0)
|
70
|
-
i18n (1.8.
|
70
|
+
i18n (1.8.10)
|
71
71
|
concurrent-ruby (~> 1.0)
|
72
|
-
listen (3.
|
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.
|
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.
|
81
|
-
mimemagic (~> 0.3.2)
|
80
|
+
marcel (1.0.1)
|
82
81
|
method_source (1.0.0)
|
83
|
-
|
84
|
-
|
85
|
-
|
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.
|
89
|
-
nokogiri (1.11.
|
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.
|
106
|
-
actioncable (= 5.2.
|
107
|
-
actionmailer (= 5.2.
|
108
|
-
actionpack (= 5.2.
|
109
|
-
actionview (= 5.2.
|
110
|
-
activejob (= 5.2.
|
111
|
-
activemodel (= 5.2.
|
112
|
-
activerecord (= 5.2.
|
113
|
-
activestorage (= 5.2.
|
114
|
-
activesupport (= 5.2.
|
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.
|
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.
|
124
|
-
actionpack (= 5.2.
|
125
|
-
activesupport (= 5.2.
|
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.
|
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.
|
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)
|
@@ -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
|
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
|
-
|
3
|
+
<%= @up.presence or raise "no @up given!" %>
|
4
4
|
end
|
5
5
|
|
6
6
|
def self.down
|
7
|
-
|
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.
|
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-
|
11
|
+
date: 2021-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|