pii_safe_schema 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/CODEOWNERS +1 -0
- data/.github/workflows/stale.yml +20 -0
- data/CHANGELOG.md +4 -0
- data/lib/pii_safe_schema/migration_generator.rb +1 -3
- data/lib/pii_safe_schema/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 733e5ad6453cc621ff61ea9e6f2a1f5cfbe2b478044a7d3ccaa8f2fe8f44413e
|
4
|
+
data.tar.gz: c4856a469688c26252dfb984baab69624d5294da612469302a9e6a82a6e0a107
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa90c42d3f2d0707da7e3ab97199c5c4529ae5e9cbb51a1362935a7d8362ea3814efe69058b47732ae96918447f968a7978fb9a0c7bde18e2e27326fec7c24bb
|
7
|
+
data.tar.gz: 4ee1d2527f53f0b3674e1d6742d434936bec3baf841a74323194b62b64992608b37ea3ee8846cb872539f0574eb9ff2845af0febba269b9bf93d8d20404caa7e
|
data/.github/CODEOWNERS
CHANGED
@@ -0,0 +1,20 @@
|
|
1
|
+
name: 'Close stale PRs'
|
2
|
+
on:
|
3
|
+
schedule:
|
4
|
+
- cron: '30 6 * * *' # 6:30 am UTC: 1:30 am EST
|
5
|
+
|
6
|
+
jobs:
|
7
|
+
stale:
|
8
|
+
runs-on: ubuntu-latest
|
9
|
+
steps:
|
10
|
+
- uses: actions/stale@v4
|
11
|
+
with:
|
12
|
+
days-before-stale: 30
|
13
|
+
days-before-close: 30
|
14
|
+
stale-pr-message: >
|
15
|
+
This issue has been automatically marked as stale because it has not had
|
16
|
+
recent activity. It will be closed if no further activity occurs.
|
17
|
+
close-pr-message: >
|
18
|
+
This issue has been automatically closed because it has had no activity
|
19
|
+
for over 90 days. Please re-open if you feel this was done in error.
|
20
|
+
exempt-pr-labels: 'dependabot,depfu,dependencies,security'
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
5
5
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
6
6
|
|
7
|
+
## 1.4.1 - 2022-04-14
|
8
|
+
### Changed
|
9
|
+
- Fixing lint issues
|
10
|
+
|
7
11
|
## 1.4.0 - 2021-12-31
|
8
12
|
### Changed
|
9
13
|
- Add Ruby 3.0.x support
|
@@ -9,14 +9,13 @@ module PiiSafeSchema
|
|
9
9
|
|
10
10
|
private
|
11
11
|
|
12
|
-
# rubocop:disable Metrics/AbcSize
|
13
12
|
def generate_migration_for(table, columns)
|
14
13
|
generator = ActiveRecord::Generators::MigrationGenerator.new(
|
15
14
|
["change_comments_in_#{table}"],
|
16
15
|
)
|
17
16
|
generated_lines = generate_migration_lines(table, columns)
|
18
17
|
migration_file = generator.create_migration_file
|
19
|
-
file_lines = File.
|
18
|
+
file_lines = File.read(migration_file).split("\n")
|
20
19
|
change_line = file_lines.find_index { |i| /def change/.match(i) }
|
21
20
|
new_contents = file_lines[0..change_line] + generated_lines + file_lines[change_line + 1..]
|
22
21
|
|
@@ -26,7 +25,6 @@ module PiiSafeSchema
|
|
26
25
|
end
|
27
26
|
migration_file
|
28
27
|
end
|
29
|
-
# rubocop:enable Metrics/AbcSize
|
30
28
|
|
31
29
|
def generate_migration_lines(table, columns)
|
32
30
|
migration_lines = columns.map do |c|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pii_safe_schema
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexi Garrow
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-05-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|
@@ -304,6 +304,7 @@ files:
|
|
304
304
|
- ".github/CODEOWNERS"
|
305
305
|
- ".github/PULL_REQUEST_TEMPLATE.md"
|
306
306
|
- ".github/workflows/default.yml"
|
307
|
+
- ".github/workflows/stale.yml"
|
307
308
|
- ".gitignore"
|
308
309
|
- ".rspec"
|
309
310
|
- ".rubocop.yml"
|