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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a5a9abd519262fb092e04490f3b99c5f7e0293a777b1e29ee9a87b3fe0827728
4
- data.tar.gz: 43c6fc045b82b8075bb73f345d0d60a3f6384a4981edc6c9472fbd8c04e2a9d7
3
+ metadata.gz: 733e5ad6453cc621ff61ea9e6f2a1f5cfbe2b478044a7d3ccaa8f2fe8f44413e
4
+ data.tar.gz: c4856a469688c26252dfb984baab69624d5294da612469302a9e6a82a6e0a107
5
5
  SHA512:
6
- metadata.gz: 26ab3012c6310654ef6a3d8b7f0cd99129105ecee059fa1611f3803da96efba70b1c0bdff854086ff7cc446ce7e84676887dc4299b035fe89507169730c0c68d
7
- data.tar.gz: 7153c208b0ca0574e61eaa186be393d20bec4cab360531f0c8644a1bd68da78695bcd513194477f73713c44839355e715e754f9da6e8259bdb46c9178695d0b1
6
+ metadata.gz: fa90c42d3f2d0707da7e3ab97199c5c4529ae5e9cbb51a1362935a7d8362ea3814efe69058b47732ae96918447f968a7978fb9a0c7bde18e2e27326fec7c24bb
7
+ data.tar.gz: 4ee1d2527f53f0b3674e1d6742d434936bec3baf841a74323194b62b64992608b37ea3ee8846cb872539f0574eb9ff2845af0febba269b9bf93d8d20404caa7e
data/.github/CODEOWNERS CHANGED
@@ -1 +1,2 @@
1
1
  * @wealthsimple/platform-security
2
+ .github/workflows/* @wealthsimple/developer-tools @wealthsimple/platform-security
@@ -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.open(migration_file, 'r').read.split("\n")
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|
@@ -1,3 +1,3 @@
1
1
  module PiiSafeSchema
2
- VERSION = '1.4.0'.freeze
2
+ VERSION = '1.4.1'.freeze
3
3
  end
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.0
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-01-04 00:00:00.000000000 Z
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"