pronto-rails_migrations 0.10.4 → 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: 5cefbfc63cd234afd1eb5341b765f25b716d95e4b219abd8cada9591bdf5d885
4
- data.tar.gz: 76f016c3ddc9f11e8d18a13f4056babdcbb65a734290e4399e765711bfb02697
3
+ metadata.gz: 8db5b78f510070c934af951ae78c743eb6154edd5edc745419e92edd34bf98fd
4
+ data.tar.gz: a0be018d3992149b92bf838f72d3c2bdad7c9d7ccc3b8180e66976414825904e
5
5
  SHA512:
6
- metadata.gz: 6a9c17485cc28c461c0a3d9be9050c34c39e3a4b9d61eac3fd24980458f4deb3c26af69ad32efdecb62418c4fb389232149cfdf515dad17d383f39b6f873e547
7
- data.tar.gz: 9233b1af3c14348186ebd2fdeffde3805fe011a65ce8df4894c639770fb895ba66f3bc2c0b1ff0c1a9f3dee0cb066d5854854df4be4db91ac36f285ff45972c6
6
+ metadata.gz: a123060f772a35c7c27a3eda3be671b9a88640bfd6433712005e330f9e4d60d5366858130075a7e62d9dd02acf4773e4f1caab2dde9c57f471840e7377607e40
7
+ data.tar.gz: 6e406974f8aa0fb4cbc01697c7f426a286fbcacd06c54c9fbe981cbe9d097b463985e89ed19e16c0f10b7bb7495cfb2e2297aa7b8455e6f07610bde8eca9c749
data/CODEOWNERS ADDED
@@ -0,0 +1,2 @@
1
+ # Ruby upgrades
2
+ .ruby-version @vinted/platform-backend
@@ -0,0 +1,3 @@
1
+ module Pronto
2
+ RAILS_MIGRATIONS_VERSION = '0.12.0'
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
@@ -1,17 +1,17 @@
1
1
  # coding: utf-8
2
2
  lib = File.expand_path("../lib", __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'pronto/version'
4
+ require 'pronto/rails_migrations/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "pronto-rails_migrations"
8
- spec.version = Pronto::RailsMigrations::VERSION
8
+ spec.version = Pronto::RAILS_MIGRATIONS_VERSION
9
9
  spec.authors = ["Vinted"]
10
10
  spec.email = ["backend@vinted.com"]
11
11
 
12
12
  spec.summary = %q{Validate migration and application code change seperation}
13
13
  spec.description = %q{This pronto runner warns when migrations are run and application code is changed at the same time}
14
- spec.homepage = "https://github.com/tomasv/pronto-rails_migrations"
14
+ spec.homepage = "https://github.com/vinted/pronto-rails_migrations"
15
15
  spec.license = "MIT"
16
16
 
17
17
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
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.10.4
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: 2021-04-13 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
@@ -63,6 +63,7 @@ files:
63
63
  - ".github/workflows/build_release_pipeline.yaml"
64
64
  - ".gitignore"
65
65
  - ".ruby-version"
66
+ - CODEOWNERS
66
67
  - Gemfile
67
68
  - LICENSE.txt
68
69
  - README.md
@@ -70,9 +71,9 @@ files:
70
71
  - bin/console
71
72
  - bin/setup
72
73
  - lib/pronto/rails_migrations.rb
73
- - lib/pronto/version.rb
74
+ - lib/pronto/rails_migrations/version.rb
74
75
  - pronto-rails_migrations.gemspec
75
- homepage: https://github.com/tomasv/pronto-rails_migrations
76
+ homepage: https://github.com/vinted/pronto-rails_migrations
76
77
  licenses:
77
78
  - MIT
78
79
  metadata: {}
@@ -1,5 +0,0 @@
1
- module Pronto
2
- class RailsMigrations
3
- VERSION = '0.10.4'
4
- end
5
- end