pronto-rails_migrations 0.14.3 → 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: 75f9963ac72a398ac0c51a62756ebf5f3919780756668df0977d090102e562aa
4
- data.tar.gz: 04b7571fb117414767c7720681a0b76a234e311e57910ecac339fcbde9e3b47c
3
+ metadata.gz: ddeae795c28ab037a597938456b5c19a5ebd0e43bb45fde2f69d2c99e4c933bc
4
+ data.tar.gz: 8a4684aa6b1e3fc10ebde81c3479144e14c5da95960fca4da698b327ab514fd7
5
5
  SHA512:
6
- metadata.gz: 713b44e7480dd514bddf547cfce571108b9ca3e811f51a7c80655e4c0af7c7699f63d19b25415566a3e73f4ed873987cea2c31b9946b9aba7dd9788cc6d5ebe2
7
- data.tar.gz: 7fe22c2f7eafb127c988106335988754b629a11148342fec7138dbba9b8400270924bb3fce6872a3c14ca7b5c15d3a40509a1ec54985c38cfca71f182b8ed258
6
+ metadata.gz: ab4743eca51d3844265d40830696e63eb862b3d6d3f0517df64df56acf2e601de47fb558f50d7f73253d52f51e342614d396786b71d207201bf1a88fadbd35ae
7
+ data.tar.gz: 552c90870af4d4db6ed875d8f06cd7d75484e69edad9ca523e0cb202c4c929754fe2bbefc3207ed3776de19202922eaedaa39c7f65f820112fdfd481cb526293
@@ -1,7 +1,7 @@
1
1
  name: Build and release ruby gem
2
2
 
3
3
  on:
4
- pull_request:
4
+ pull_request:
5
5
  branches: [ master ]
6
6
  push:
7
7
  workflow_dispatch:
@@ -9,12 +9,12 @@ on:
9
9
  jobs:
10
10
  build-release-pipeline:
11
11
  runs-on: ubuntu-latest
12
- container: ruby:2.7.2
12
+ container: ruby:3.0.4
13
13
  steps:
14
14
  - uses: actions/checkout@v2
15
15
  - name: Setup
16
16
  run: |
17
- apt-get update -y && apt-get install -y --no-install-recommends cmake=3.13.4-1
17
+ apt-get update -y && apt-get install -y --no-install-recommends cmake
18
18
  gem install bundler
19
19
  bundle install
20
20
 
data/CODEOWNERS CHANGED
@@ -1,2 +1,2 @@
1
1
  # Ruby upgrades
2
- .ruby-version @vinted/platform-backend
2
+ .ruby-version @vinted/backend-technologies
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pronto-rails_migrations (0.14.3)
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)
@@ -10,64 +10,53 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- addressable (2.8.4)
14
- public_suffix (>= 2.0.2, < 6.0)
15
- faraday (1.10.3)
16
- faraday-em_http (~> 1.0)
17
- faraday-em_synchrony (~> 1.0)
18
- faraday-excon (~> 1.1)
19
- faraday-httpclient (~> 1.0)
20
- faraday-multipart (~> 1.0)
21
- faraday-net_http (~> 1.0)
22
- faraday-net_http_persistent (~> 1.0)
23
- faraday-patron (~> 1.0)
24
- faraday-rack (~> 1.0)
25
- faraday-retry (~> 1.0)
26
- ruby2_keywords (>= 0.0.4)
27
- faraday-em_http (1.0.0)
28
- faraday-em_synchrony (1.0.0)
29
- faraday-excon (1.1.0)
30
- faraday-httpclient (1.0.1)
31
- faraday-multipart (1.0.4)
32
- multipart-post (~> 2)
33
- faraday-net_http (1.0.1)
34
- faraday-net_http_persistent (1.2.0)
35
- faraday-patron (1.0.0)
36
- faraday-rack (1.0.0)
37
- faraday-retry (1.0.3)
38
- gitlab (4.19.0)
13
+ addressable (2.8.7)
14
+ public_suffix (>= 2.0.2, < 7.0)
15
+ csv (3.3.0)
16
+ faraday (2.10.0)
17
+ faraday-net_http (>= 2.0, < 3.2)
18
+ logger
19
+ faraday-net_http (3.1.0)
20
+ net-http
21
+ gitlab (4.20.1)
39
22
  httparty (~> 0.20)
40
23
  terminal-table (>= 1.5.1)
41
- httparty (0.21.0)
24
+ httparty (0.22.0)
25
+ csv
42
26
  mini_mime (>= 1.0.0)
43
27
  multi_xml (>= 0.5.2)
44
- mini_mime (1.1.2)
28
+ logger (1.6.0)
29
+ mini_mime (1.1.5)
45
30
  multi_xml (0.6.0)
46
- multipart-post (2.1.1)
47
- octokit (6.1.1)
31
+ multipart-post (2.4.1)
32
+ net-http (0.4.1)
33
+ uri
34
+ octokit (7.2.0)
48
35
  faraday (>= 1, < 3)
49
36
  sawyer (~> 0.9)
50
- pronto (0.11.1)
37
+ pronto (0.11.2)
51
38
  gitlab (>= 4.4.0, < 5.0)
52
39
  httparty (>= 0.13.7, < 1.0)
53
- octokit (>= 4.7.0, < 7.0)
40
+ octokit (>= 4.7.0, < 8.0)
54
41
  rainbow (>= 2.2, < 4.0)
55
42
  rexml (>= 3.2.5, < 4.0)
56
43
  rugged (>= 0.23.0, < 2.0)
57
44
  thor (>= 0.20.3, < 2.0)
58
- public_suffix (5.0.3)
45
+ public_suffix (6.0.0)
59
46
  rainbow (3.1.1)
60
47
  rake (12.3.3)
61
- rexml (3.2.6)
62
- ruby2_keywords (0.0.5)
63
- rugged (1.6.3)
48
+ rexml (3.3.1)
49
+ strscan
50
+ rugged (1.7.2)
64
51
  sawyer (0.9.2)
65
52
  addressable (>= 2.3.5)
66
53
  faraday (>= 0.17.3, < 3)
54
+ strscan (3.1.0)
67
55
  terminal-table (3.0.2)
68
56
  unicode-display_width (>= 1.1.1, < 3)
69
- thor (1.2.2)
70
- unicode-display_width (2.4.2)
57
+ thor (1.3.1)
58
+ unicode-display_width (2.5.0)
59
+ uri (0.13.0)
71
60
 
72
61
  PLATFORMS
73
62
  ruby
@@ -1,3 +1,3 @@
1
1
  module Pronto
2
- RAILS_MIGRATIONS_VERSION = '0.14.3'
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,14 +59,14 @@ 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
66
66
 
67
67
  def message(patch, text, level: :error)
68
68
  path = patch.delta.new_file[:path]
69
- line = patch.added_lines.first
69
+ line = patch.added_lines.last
70
70
  Message.new(path, line, level, text, nil, self.class)
71
71
  end
72
72
 
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.3
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: 2023-07-31 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
@@ -135,7 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
135
135
  - !ruby/object:Gem::Version
136
136
  version: '0'
137
137
  requirements: []
138
- rubygems_version: 3.1.4
138
+ rubygems_version: 3.2.33
139
139
  signing_key:
140
140
  specification_version: 4
141
141
  summary: Validate migration and application code change seperation