pronto-rails_migrations 0.15.0 → 0.16.0

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: ddeae795c28ab037a597938456b5c19a5ebd0e43bb45fde2f69d2c99e4c933bc
4
- data.tar.gz: 8a4684aa6b1e3fc10ebde81c3479144e14c5da95960fca4da698b327ab514fd7
3
+ metadata.gz: 04e17296cd3c9e0dd6cc8997c07651eac73b26e285bb9e6bbf712ae0862f88dd
4
+ data.tar.gz: ddd059a5d69151bbaede97740bab84c914226817fe0530dad103a50f1c3295c4
5
5
  SHA512:
6
- metadata.gz: ab4743eca51d3844265d40830696e63eb862b3d6d3f0517df64df56acf2e601de47fb558f50d7f73253d52f51e342614d396786b71d207201bf1a88fadbd35ae
7
- data.tar.gz: 552c90870af4d4db6ed875d8f06cd7d75484e69edad9ca523e0cb202c4c929754fe2bbefc3207ed3776de19202922eaedaa39c7f65f820112fdfd481cb526293
6
+ metadata.gz: d7ef457809db5b77290944bb52f5827d52a387fe7d7e8cda07843f9be4adbddfdacc514742566b9d92b53a99d65e598868d67a226b30f051e970bffc939a1b74
7
+ data.tar.gz: a612bbc3f94e766ac337be55e92018f986f1216e3840fbf09921df23c2ddbebe2679238351cf77f0cc53ee919c2520d26e073efc5ed0755b10cd8c32b5072ec1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pronto-rails_migrations (0.15.0)
4
+ pronto-rails_migrations (0.16.0)
5
5
  faraday (>= 1.10.3)
6
6
  multipart-post (>= 2.1.1)
7
7
  pronto (>= 0.11.1)
@@ -1,3 +1,3 @@
1
1
  module Pronto
2
- RAILS_MIGRATIONS_VERSION = '0.15.0'
2
+ RAILS_MIGRATIONS_VERSION = '0.16.0'
3
3
  end
@@ -42,7 +42,7 @@ module Pronto
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[-2, 2] !~ /[^\n]\n/
45
+ bad_ending = structure_sql[-4, 4] !~ /[^\n]\n\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 without extra empty lines.') if bad_ending
62
+ messages << message(patch, '`db/structure.sql` must end with 2 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.15.0
4
+ version: 0.16.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-09-11 00:00:00.000000000 Z
11
+ date: 2024-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pronto