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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fa0ff9580763d101d83c2c18833c1f8d042305ae85c078142b8fefc7ef40d75a
4
- data.tar.gz: 8760058c974f122a41e129a6e6cf0454437e69c97795d3c75f686ea53d8adb74
3
+ metadata.gz: ddeae795c28ab037a597938456b5c19a5ebd0e43bb45fde2f69d2c99e4c933bc
4
+ data.tar.gz: 8a4684aa6b1e3fc10ebde81c3479144e14c5da95960fca4da698b327ab514fd7
5
5
  SHA512:
6
- metadata.gz: e5e460c1e8431b1373afd57c781d117114f56a67ca7f101a699f30cc2c5d54bbf5230ebdc4d6b979bd880cad36f8a893eadc5b81d6e62b495aeebf463cffd455
7
- data.tar.gz: 3355bdf1735b36117a9b4e2e63f67bc95339c234cc512066c5ae6b696fd53b885b20f57e515b1dbeefc6b7abd61fb8c85b0b77d0f2e27a610337ec336472f9d1
6
+ metadata.gz: ab4743eca51d3844265d40830696e63eb862b3d6d3f0517df64df56acf2e601de47fb558f50d7f73253d52f51e342614d396786b71d207201bf1a88fadbd35ae
7
+ data.tar.gz: 552c90870af4d4db6ed875d8f06cd7d75484e69edad9ca523e0cb202c4c929754fe2bbefc3207ed3776de19202922eaedaa39c7f65f820112fdfd481cb526293
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pronto-rails_migrations (0.14.4)
4
+ pronto-rails_migrations (0.15.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.14.4'
2
+ RAILS_MIGRATIONS_VERSION = '0.15.0'
3
3
  end
@@ -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[-4, 4] !~ /[^\n]\n\n\n/
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 with 2 empty lines.') if bad_ending
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.14.4
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-07-11 00:00:00.000000000 Z
11
+ date: 2024-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pronto