pronto-rails_migrations 0.14.4 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/pronto/rails_migrations/version.rb +1 -1
- data/lib/pronto/rails_migrations.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ddeae795c28ab037a597938456b5c19a5ebd0e43bb45fde2f69d2c99e4c933bc
|
4
|
+
data.tar.gz: 8a4684aa6b1e3fc10ebde81c3479144e14c5da95960fca4da698b327ab514fd7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab4743eca51d3844265d40830696e63eb862b3d6d3f0517df64df56acf2e601de47fb558f50d7f73253d52f51e342614d396786b71d207201bf1a88fadbd35ae
|
7
|
+
data.tar.gz: 552c90870af4d4db6ed875d8f06cd7d75484e69edad9ca523e0cb202c4c929754fe2bbefc3207ed3776de19202922eaedaa39c7f65f820112fdfd481cb526293
|
data/Gemfile.lock
CHANGED
@@ -37,12 +37,12 @@ module Pronto
|
|
37
37
|
|
38
38
|
structure_sql = File.read(patch.new_file_full_path)
|
39
39
|
inserts = structure_sql.split("\n").grep(/\('\d+'\)/)
|
40
|
-
unordered_inserts = (inserts.sort != inserts)
|
40
|
+
unordered_inserts = (inserts.sort.reverse != inserts)
|
41
41
|
|
42
42
|
*all_but_tail, tail = inserts
|
43
43
|
bad_semicolons = all_but_tail.any? { |line| line.end_with?(';') } || !tail.end_with?(';')
|
44
44
|
|
45
|
-
bad_ending = structure_sql[-
|
45
|
+
bad_ending = structure_sql[-2, 2] !~ /[^\n]\n/
|
46
46
|
|
47
47
|
messages = []
|
48
48
|
|
@@ -59,7 +59,7 @@ module Pronto
|
|
59
59
|
'last insert must end with semicolon (`;`).'
|
60
60
|
)
|
61
61
|
end
|
62
|
-
messages << message(patch, '`db/structure.sql` must end
|
62
|
+
messages << message(patch, '`db/structure.sql` must end without extra empty lines.') if bad_ending
|
63
63
|
|
64
64
|
messages
|
65
65
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pronto-rails_migrations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.15.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vinted
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-09-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pronto
|