pronto-rails_migrations 0.10.2 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/build_release_pipeline.yaml +51 -0
- data/.ruby-version +1 -1
- data/CODEOWNERS +2 -0
- data/Gemfile +0 -2
- data/Rakefile +5 -0
- data/lib/pronto/rails_migrations/version.rb +3 -0
- data/lib/pronto/rails_migrations.rb +1 -1
- data/pronto-rails_migrations.gemspec +5 -4
- metadata +10 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 763055853018769fdc17b77efd93170beefee7c73a8f114b9443579505eaadaf
|
4
|
+
data.tar.gz: a04c3abe2be51de0f6ff2ffdb7bf26654eed32ee89d39a70f181ef03f67e2f42
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4336189ddb0a3ea0845745996b30c6136fe3475dd894c6ee3ff286f5cac739dcbb16527b4a76c7edf6d19f9833d53be31d86351d7f3fa3e94474a25b77d08d0d
|
7
|
+
data.tar.gz: 62a0a8516d5f231ed99bc249ce8f6ad78fa4bba63258ab0d83992fc556474868304d71b0ac9c32f8c2c1a3e5ebb8c62b17668564aa1154fb18cd2a4d3cc23fd8
|
@@ -0,0 +1,51 @@
|
|
1
|
+
name: Build and release ruby gem
|
2
|
+
|
3
|
+
on:
|
4
|
+
pull_request:
|
5
|
+
branches: [ master ]
|
6
|
+
push:
|
7
|
+
workflow_dispatch:
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
build-release-pipeline:
|
11
|
+
runs-on: ubuntu-latest
|
12
|
+
container: ruby:2.7.2
|
13
|
+
steps:
|
14
|
+
- uses: actions/checkout@v2
|
15
|
+
- name: Setup
|
16
|
+
run: |
|
17
|
+
apt-get update -y && apt-get install -y --no-install-recommends cmake=3.13.4-1
|
18
|
+
gem install bundler
|
19
|
+
bundle install
|
20
|
+
|
21
|
+
- name: Build
|
22
|
+
id: build
|
23
|
+
if: success() && github.ref == 'refs/heads/master'
|
24
|
+
run: |
|
25
|
+
bundle exec rake build
|
26
|
+
echo "::set-output name=gem_version::v$(bundle exec rake version)"
|
27
|
+
|
28
|
+
- name: Release
|
29
|
+
if: success() && github.ref == 'refs/heads/master'
|
30
|
+
run: |
|
31
|
+
mkdir -p $HOME/.gem
|
32
|
+
touch $HOME/.gem/credentials
|
33
|
+
chmod 600 $HOME/.gem/credentials
|
34
|
+
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
35
|
+
gem push pkg/*
|
36
|
+
env:
|
37
|
+
GEM_HOST_API_KEY: "${{ secrets.RUBYGEMS_AUTH_TOKEN }}"
|
38
|
+
|
39
|
+
- name: Tag repo with new gem version
|
40
|
+
if: success() && github.ref == 'refs/heads/master'
|
41
|
+
uses: actions/github-script@v3
|
42
|
+
with:
|
43
|
+
github-token: ${{ github.token }}
|
44
|
+
script: |
|
45
|
+
github.git.createRef({
|
46
|
+
owner: context.repo.owner,
|
47
|
+
repo: context.repo.repo,
|
48
|
+
ref: "refs/tags/${{ steps.build.outputs.gem_version }}",
|
49
|
+
sha: context.sha
|
50
|
+
})
|
51
|
+
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.7.2
|
data/CODEOWNERS
ADDED
data/Gemfile
CHANGED
data/Rakefile
CHANGED
@@ -1,12 +1,13 @@
|
|
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/rails_migrations/version'
|
4
5
|
|
5
6
|
Gem::Specification.new do |spec|
|
6
7
|
spec.name = "pronto-rails_migrations"
|
7
|
-
spec.version =
|
8
|
-
spec.authors = ["
|
9
|
-
spec.email = ["
|
8
|
+
spec.version = Pronto::RAILS_MIGRATIONS_VERSION
|
9
|
+
spec.authors = ["Vinted"]
|
10
|
+
spec.email = ["backend@vinted.com"]
|
10
11
|
|
11
12
|
spec.summary = %q{Validate migration and application code change seperation}
|
12
13
|
spec.description = %q{This pronto runner warns when migrations are run and application code is changed at the same time}
|
@@ -22,6 +23,6 @@ Gem::Specification.new do |spec|
|
|
22
23
|
|
23
24
|
spec.add_dependency('pronto', '>= 0.10.0')
|
24
25
|
|
25
|
-
spec.add_development_dependency "bundler"
|
26
|
+
spec.add_development_dependency "bundler"
|
26
27
|
spec.add_development_dependency "rake", "~> 12.0"
|
27
28
|
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.
|
4
|
+
version: 0.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Vinted
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pronto
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -55,13 +55,15 @@ dependencies:
|
|
55
55
|
description: This pronto runner warns when migrations are run and application code
|
56
56
|
is changed at the same time
|
57
57
|
email:
|
58
|
-
-
|
58
|
+
- backend@vinted.com
|
59
59
|
executables: []
|
60
60
|
extensions: []
|
61
61
|
extra_rdoc_files: []
|
62
62
|
files:
|
63
|
+
- ".github/workflows/build_release_pipeline.yaml"
|
63
64
|
- ".gitignore"
|
64
65
|
- ".ruby-version"
|
66
|
+
- CODEOWNERS
|
65
67
|
- Gemfile
|
66
68
|
- LICENSE.txt
|
67
69
|
- README.md
|
@@ -69,6 +71,7 @@ files:
|
|
69
71
|
- bin/console
|
70
72
|
- bin/setup
|
71
73
|
- lib/pronto/rails_migrations.rb
|
74
|
+
- lib/pronto/rails_migrations/version.rb
|
72
75
|
- pronto-rails_migrations.gemspec
|
73
76
|
homepage: https://github.com/tomasv/pronto-rails_migrations
|
74
77
|
licenses:
|
@@ -89,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
89
92
|
- !ruby/object:Gem::Version
|
90
93
|
version: '0'
|
91
94
|
requirements: []
|
92
|
-
rubygems_version: 3.
|
95
|
+
rubygems_version: 3.1.4
|
93
96
|
signing_key:
|
94
97
|
specification_version: 4
|
95
98
|
summary: Validate migration and application code change seperation
|