pii_safe_schema 1.4.1 → 1.4.2

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: 733e5ad6453cc621ff61ea9e6f2a1f5cfbe2b478044a7d3ccaa8f2fe8f44413e
4
- data.tar.gz: c4856a469688c26252dfb984baab69624d5294da612469302a9e6a82a6e0a107
3
+ metadata.gz: 433073ad99b049c37e16a022442070d149fbe0c9c3a7583f1889e2c61d862de5
4
+ data.tar.gz: 6fa3b54cf2af939e1cf26e807a99023a9b1d77cb81994293bc065e95f666bfe9
5
5
  SHA512:
6
- metadata.gz: fa90c42d3f2d0707da7e3ab97199c5c4529ae5e9cbb51a1362935a7d8362ea3814efe69058b47732ae96918447f968a7978fb9a0c7bde18e2e27326fec7c24bb
7
- data.tar.gz: 4ee1d2527f53f0b3674e1d6742d434936bec3baf841a74323194b62b64992608b37ea3ee8846cb872539f0574eb9ff2845af0febba269b9bf93d8d20404caa7e
6
+ metadata.gz: fbaf01bfb0222feabe9eaec16c4d12b7a208311659960a4f321bd03e8871534b1202e4ccd803805de0132ea06970e64103ab1d930556c5e83f217b8f33153256
7
+ data.tar.gz: c440c21ecc60a6a2d32bdfda90ba54ae00252c69013af129e75b89405d72e649500e7101cbe2130848244cd031a4929f981007d598ae36608149b36f8029bf82
@@ -6,8 +6,6 @@ name: Default
6
6
  # pushes to the branch will provide PR information of any open PRs.
7
7
  on:
8
8
  push:
9
- pull_request:
10
- types: [opened, reopened]
11
9
 
12
10
  concurrency:
13
11
  group: default-${{ github.ref }}
@@ -33,14 +31,13 @@ jobs:
33
31
  ruby-version: ${{ matrix.ruby-version }}
34
32
 
35
33
  - name: Lint
36
- uses: wealthsimple/toolbox-script@v1
37
- with:
38
- script: toolbox.ruby.lint.run();
34
+ run: |
35
+ bundle exec rubocop
36
+ bundle exec bundle-audit update
37
+ bundle exec bundle-audit check
39
38
 
40
39
  - name: Test
41
- uses: wealthsimple/toolbox-script@v1
42
- with:
43
- script: toolbox.ruby.test.run();
40
+ run: bundle exec rspec
44
41
 
45
42
  publish:
46
43
  name: Publish package
data/.gitignore CHANGED
@@ -4,4 +4,6 @@ coverage/
4
4
  pkg/
5
5
 
6
6
  .rspec_status
7
+
7
8
  Gemfile.lock
9
+ vendor/
data/CHANGELOG.md CHANGED
@@ -4,6 +4,11 @@ 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.2 - 2023-02-23
8
+ ### Changed
9
+ - Remove references to toolbox-script in workflows
10
+ - Updated Gemfile.lock
11
+
7
12
  ## 1.4.1 - 2022-04-14
8
13
  ### Changed
9
14
  - Fixing lint issues
@@ -16,7 +16,7 @@ module PiiSafeSchema
16
16
  generated_lines = generate_migration_lines(table, columns)
17
17
  migration_file = generator.create_migration_file
18
18
  file_lines = File.read(migration_file).split("\n")
19
- change_line = file_lines.find_index { |i| /def change/.match(i) }
19
+ change_line = file_lines.find_index { |i| i.include?('def change') }
20
20
  new_contents = file_lines[0..change_line] + generated_lines + file_lines[change_line + 1..]
21
21
 
22
22
  File.open(migration_file, 'w') do |f|
@@ -28,9 +28,9 @@ module PiiSafeSchema
28
28
 
29
29
  def generate_migration_lines(table, columns)
30
30
  migration_lines = columns.map do |c|
31
- "#{' ' * (safety_assured? ? 6 : 4)}"\
32
- "change_column :#{table}, :#{c.column.name}, :#{c.column.type}, "\
33
- "comment: \'#{c.suggestion.to_json}\'"\
31
+ "#{' ' * (safety_assured? ? 6 : 4)}" \
32
+ "change_column :#{table}, :#{c.column.name}, :#{c.column.type}, " \
33
+ "comment: \'#{c.suggestion.to_json}\'" \
34
34
  end
35
35
  wrap_in_safety_assured(migration_lines)
36
36
  end
@@ -1,3 +1,3 @@
1
1
  module PiiSafeSchema
2
- VERSION = '1.4.1'.freeze
2
+ VERSION = '1.4.2'.freeze
3
3
  end
@@ -3,22 +3,22 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
  require 'pii_safe_schema/version'
4
4
 
5
5
  Gem::Specification.new do |s|
6
- s.name = 'pii_safe_schema'
7
- s.version = PiiSafeSchema::VERSION
8
- s.authors = ['Alexi Garrow']
9
- s.email = ['agarrow@wealthsimple.com']
6
+ s.name = 'pii_safe_schema'
7
+ s.version = PiiSafeSchema::VERSION
8
+ s.authors = ['Alexi Garrow']
9
+ s.email = ['agarrow@wealthsimple.com']
10
10
 
11
- s.summary = 'Schema migration tool for checking and adding comments on PII columns.'
12
- s.homepage = 'https://github.com/wealthsimple/pii_safe_schema'
13
- s.license = "MIT"
11
+ s.summary = 'Schema migration tool for checking and adding comments on PII columns.'
12
+ s.homepage = 'https://github.com/wealthsimple/pii_safe_schema'
13
+ s.license = "MIT"
14
14
  s.required_ruby_version = Gem::Requirement.new(">= 2.6")
15
15
 
16
16
  s.files = `git ls-files -z`.split("\x0").reject do |f|
17
17
  f.match(%r{^(test|spec|features)/})
18
18
  end
19
19
 
20
- s.bindir = 'exe'
21
- s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
+ s.bindir = 'exe'
21
+ s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
22
  s.require_paths = ['lib']
23
23
 
24
24
  s.add_dependency 'colorize'
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.1
4
+ version: 1.4.2
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-05-18 00:00:00.000000000 Z
11
+ date: 2023-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize