pronto-rails_migrations 0.11.1 → 0.12.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: b53200ceaae22bfe9e692682f031310b9251db73d16eac16c2d23e20642d1642
4
- data.tar.gz: fffcb07db9b2c4c283cb6b287df9d30d0bab532e701e85fa1f0bfc5b7c5ce450
3
+ metadata.gz: 8db5b78f510070c934af951ae78c743eb6154edd5edc745419e92edd34bf98fd
4
+ data.tar.gz: a0be018d3992149b92bf838f72d3c2bdad7c9d7ccc3b8180e66976414825904e
5
5
  SHA512:
6
- metadata.gz: 28b99384e66625940afda17ae3fab4c9942838c2ad6bb03779e086450bd2b98fc0ec6e2e3fc921fc807e195b167f8cbf7b702c9de657a3cb70a1be947ba4d430
7
- data.tar.gz: '06982bb9e1bcf6a8abeaaac17dc436ae1f48202ad3e95496b56a364d82a184e5eee8e7aa013a21c02f50dccce8843ef9ed90ef7b7644e39215098e5e15c810fb'
6
+ metadata.gz: a123060f772a35c7c27a3eda3be671b9a88640bfd6433712005e330f9e4d60d5366858130075a7e62d9dd02acf4773e4f1caab2dde9c57f471840e7377607e40
7
+ data.tar.gz: 6e406974f8aa0fb4cbc01697c7f426a286fbcacd06c54c9fbe981cbe9d097b463985e89ed19e16c0f10b7bb7495cfb2e2297aa7b8455e6f07610bde8eca9c749
@@ -1,3 +1,3 @@
1
1
  module Pronto
2
- RAILS_MIGRATIONS_VERSION = '0.11.1'
2
+ RAILS_MIGRATIONS_VERSION = '0.12.0'
3
3
  end
@@ -9,7 +9,8 @@ module Pronto
9
9
  patch = migration_patches.first
10
10
  messages << message(
11
11
  patch,
12
- 'Run migrations in a separate PR from application code changes.'
12
+ 'Run migrations in a separate PR from application code changes.',
13
+ level: :warning
13
14
  )
14
15
  end
15
16
 
@@ -63,10 +64,10 @@ module Pronto
63
64
  messages
64
65
  end
65
66
 
66
- def message(patch, text)
67
+ def message(patch, text, level: :error)
67
68
  path = patch.delta.new_file[:path]
68
69
  line = patch.added_lines.first
69
- Message.new(path, line, :warning, text, nil, self.class)
70
+ Message.new(path, line, level, text, nil, self.class)
70
71
  end
71
72
 
72
73
  def structure_sql_patches
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.11.1
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vinted
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-03-17 00:00:00.000000000 Z
11
+ date: 2022-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pronto