porky_lib 0.10.0 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 568cf3209e11d99fee524612407bafd881f4d9e89e3386a72d5289f53e662e68
4
- data.tar.gz: 7c81973288046c5b7e604b50f4d25af8a3ce8412090b1cc9bf81e651b95c5cdd
3
+ metadata.gz: 70a7962acaef46a1b1e4cd9e1decaccbe5bb35867de03bbc8c4d24329f0ef4be
4
+ data.tar.gz: 81cbd165551dcafd6fb595e24a74af691143858bb3d8c9f70c4d8d1cb3d0a580
5
5
  SHA512:
6
- metadata.gz: fe5165454793c9fbd9a74b0a4f9adf8cae0a65b8e8ae1bd190c45c5b770cd6535da21ffdb9f52e71f2a6f59ba3f4a21049cf523ed60329ed75f642bfc8102936
7
- data.tar.gz: 46f45d303ce3f1d3991ec6c3de254218e4c311843ec5d11a6aac9a05b03cb40d0a8bb9a78ff353d77985aceb2f1f51d4752edc3b501132f773436725570873c5
6
+ metadata.gz: f5fbc041473d83b4f4ad03321d3f30ba40990c139f215dc98a388c99999cb747415287a2c822bedb6f3dc2f71d37f1ceb72017ada14b65aba88584555ff448fb
7
+ data.tar.gz: 292725e636df669d3022edb4cd7f566b1b472b60dca17c1e8db1351c107ad06799e4b4b805425a5b58282b9c50bab57519033cf37e39286a3d71098474a5d0f3
@@ -4,7 +4,7 @@ jobs:
4
4
  parallelism: 1
5
5
  working_directory: ~/porky_lib
6
6
  docker:
7
- - image: circleci/ruby:2.7.0
7
+ - image: circleci/ruby:2.7.1
8
8
 
9
9
  steps:
10
10
  - checkout
@@ -10,7 +10,7 @@ AllCops:
10
10
  - output/**/*
11
11
  - vendor/**/*
12
12
  - spec/porky_lib/data/*
13
- TargetRubyVersion: 2.7.0
13
+ TargetRubyVersion: 2.7.1
14
14
  RSpec:
15
15
  Patterns:
16
16
  - _spec.rb
@@ -33,7 +33,7 @@ Security/YAMLLoad:
33
33
  Security/JSONLoad:
34
34
  Enabled: true
35
35
 
36
- Metrics/LineLength:
36
+ Layout/LineLength:
37
37
  Max: 160
38
38
 
39
39
  Metrics/ClassLength:
@@ -59,3 +59,45 @@ RSpec/MultipleExpectations:
59
59
 
60
60
  RSpec/ExampleLength:
61
61
  Max: 10
62
+
63
+ Style/HashEachMethods:
64
+ Enabled: true
65
+
66
+ Style/HashTransformKeys:
67
+ Enabled: true
68
+
69
+ Style/HashTransformValues:
70
+ Enabled: true
71
+
72
+ Lint/RaiseException:
73
+ Enabled: true
74
+
75
+ Lint/StructNewOverride:
76
+ Enabled: true
77
+
78
+ Layout/SpaceAroundMethodCallOperator:
79
+ Enabled: true
80
+
81
+ Style/ExponentialNotation:
82
+ Enabled: true
83
+
84
+ Layout/EmptyLinesAroundAttributeAccessor:
85
+ Enabled: true
86
+
87
+ Lint/DeprecatedOpenSSLConstant:
88
+ Enabled: true
89
+
90
+ Style/SlicingWithRange:
91
+ Enabled: true
92
+
93
+ Lint/MixedRegexpCaptureTypes:
94
+ Enabled: true
95
+
96
+ Style/RedundantRegexpCharacterClass:
97
+ Enabled: true
98
+
99
+ Style/RedundantRegexpEscape:
100
+ Enabled: true
101
+
102
+ Style/RedundantFetchBlock:
103
+ Enabled: true
data/Gemfile CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- ruby '2.7.0'
3
+ ruby '2.7.1'
4
4
 
5
5
  source "https://rubygems.org"
6
6
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- porky_lib (0.10.0)
4
+ porky_lib (0.11.0)
5
5
  aws-sdk-kms
6
6
  aws-sdk-s3
7
7
  msgpack
@@ -11,49 +11,49 @@ PATH
11
11
  GEM
12
12
  remote: https://rubygems.org/
13
13
  specs:
14
- ast (2.4.0)
15
- aws-eventstream (1.0.3)
16
- aws-partitions (1.272.0)
17
- aws-sdk-core (3.90.0)
18
- aws-eventstream (~> 1.0, >= 1.0.2)
14
+ ast (2.4.1)
15
+ aws-eventstream (1.1.0)
16
+ aws-partitions (1.338.0)
17
+ aws-sdk-core (3.103.0)
18
+ aws-eventstream (~> 1, >= 1.0.2)
19
19
  aws-partitions (~> 1, >= 1.239.0)
20
20
  aws-sigv4 (~> 1.1)
21
21
  jmespath (~> 1.0)
22
- aws-sdk-kms (1.29.0)
23
- aws-sdk-core (~> 3, >= 3.71.0)
22
+ aws-sdk-kms (1.36.0)
23
+ aws-sdk-core (~> 3, >= 3.99.0)
24
24
  aws-sigv4 (~> 1.1)
25
- aws-sdk-s3 (1.60.2)
26
- aws-sdk-core (~> 3, >= 3.83.0)
25
+ aws-sdk-s3 (1.73.0)
26
+ aws-sdk-core (~> 3, >= 3.102.1)
27
27
  aws-sdk-kms (~> 1)
28
28
  aws-sigv4 (~> 1.1)
29
- aws-sigv4 (1.1.0)
30
- aws-eventstream (~> 1.0, >= 1.0.2)
31
- bundler-audit (0.6.1)
29
+ aws-sigv4 (1.2.1)
30
+ aws-eventstream (~> 1, >= 1.0.2)
31
+ bundler-audit (0.7.0.1)
32
32
  bundler (>= 1.2.0, < 3)
33
- thor (~> 0.18)
34
- byebug (11.1.1)
33
+ thor (>= 0.18, < 2)
34
+ byebug (11.1.3)
35
35
  codacy-coverage (2.2.1)
36
36
  simplecov
37
- codecov (0.1.16)
37
+ codecov (0.1.17)
38
38
  json
39
39
  simplecov
40
40
  url
41
41
  diff-lcs (1.3)
42
42
  docile (1.3.2)
43
43
  ffi (1.12.2)
44
- jaro_winkler (1.5.4)
45
44
  jmespath (1.4.0)
46
45
  json (2.3.0)
47
46
  msgpack (1.3.3)
48
- parallel (1.19.1)
49
- parser (2.7.0.2)
50
- ast (~> 2.4.0)
47
+ parallel (1.19.2)
48
+ parser (2.7.1.4)
49
+ ast (~> 2.4.1)
51
50
  rainbow (3.0.0)
52
51
  rake (13.0.1)
53
52
  rbnacl (5.0.0)
54
53
  ffi
55
54
  rbnacl-libsodium (1.0.16)
56
55
  rbnacl (>= 3.0.1)
56
+ regexp_parser (1.7.1)
57
57
  rexml (3.2.4)
58
58
  rspec (3.9.0)
59
59
  rspec-core (~> 3.9.0)
@@ -61,38 +61,41 @@ GEM
61
61
  rspec-mocks (~> 3.9.0)
62
62
  rspec-collection_matchers (1.2.0)
63
63
  rspec-expectations (>= 2.99.0.beta1)
64
- rspec-core (3.9.1)
65
- rspec-support (~> 3.9.1)
64
+ rspec-core (3.9.2)
65
+ rspec-support (~> 3.9.3)
66
66
  rspec-expectations (3.9.0)
67
67
  diff-lcs (>= 1.2.0, < 2.0)
68
68
  rspec-support (~> 3.9.0)
69
69
  rspec-mocks (3.9.1)
70
70
  diff-lcs (>= 1.2.0, < 2.0)
71
71
  rspec-support (~> 3.9.0)
72
- rspec-support (3.9.2)
72
+ rspec-support (3.9.3)
73
73
  rspec_junit_formatter (0.4.1)
74
74
  rspec-core (>= 2, < 4, != 2.12.0)
75
- rubocop (0.80.0)
76
- jaro_winkler (~> 1.5.1)
75
+ rubocop (0.86.0)
77
76
  parallel (~> 1.10)
78
77
  parser (>= 2.7.0.1)
79
78
  rainbow (>= 2.2.2, < 4.0)
79
+ regexp_parser (>= 1.7)
80
80
  rexml
81
+ rubocop-ast (>= 0.0.3, < 1.0)
81
82
  ruby-progressbar (~> 1.7)
82
- unicode-display_width (>= 1.4.0, < 1.7)
83
- rubocop-performance (1.5.2)
83
+ unicode-display_width (>= 1.4.0, < 2.0)
84
+ rubocop-ast (0.0.3)
85
+ parser (>= 2.7.0.1)
86
+ rubocop-performance (1.6.1)
84
87
  rubocop (>= 0.71.0)
85
- rubocop-rspec (1.38.1)
88
+ rubocop-rspec (1.40.0)
86
89
  rubocop (>= 0.68.1)
87
90
  rubocop_runner (2.2.0)
88
91
  ruby-progressbar (1.10.1)
89
- simplecov (0.18.2)
92
+ simplecov (0.18.5)
90
93
  docile (~> 1.1)
91
94
  simplecov-html (~> 0.11)
92
- simplecov-html (0.12.0)
93
- thor (0.20.3)
95
+ simplecov-html (0.12.2)
96
+ thor (1.0.1)
94
97
  timecop (0.9.1)
95
- unicode-display_width (1.6.1)
98
+ unicode-display_width (1.7.0)
96
99
  url (0.3.2)
97
100
 
98
101
  PLATFORMS
@@ -123,7 +126,7 @@ DEPENDENCIES
123
126
  timecop
124
127
 
125
128
  RUBY VERSION
126
- ruby 2.7.0p0
129
+ ruby 2.7.1p83
127
130
 
128
131
  BUNDLED WITH
129
132
  2.1.4
data/README.md CHANGED
@@ -273,13 +273,19 @@ the likelihood of the pull request being accepted.
273
273
 
274
274
  This application requires:
275
275
 
276
- * Ruby version: 2.7.0
276
+ * Ruby version: 2.7.1
277
+
278
+ Ruby 2.7.1 and greater requires OpenSSL 1.1+. To link to Homebrew's upgraded version of OpenSSL, add the following to your bash profile
279
+
280
+ ```shell script
281
+ export RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix openssl@1.1)"
282
+ ```
277
283
 
278
284
  If you do not have Ruby installed, it is recommended you use ruby-install and chruby to manage Ruby versions.
279
285
 
280
286
  ```bash
281
287
  brew install ruby-install chruby
282
- ruby-install ruby 2.7.0
288
+ ruby-install ruby 2.7.1
283
289
  ```
284
290
 
285
291
  Add the following lines to ~/.bash_profile:
@@ -289,11 +295,11 @@ source /usr/local/opt/chruby/share/chruby/chruby.sh
289
295
  source /usr/local/opt/chruby/share/chruby/auto.sh
290
296
  ```
291
297
 
292
- Set Ruby version to 2.7.0:
298
+ Set Ruby version to 2.7.1:
293
299
 
294
300
  ```bash
295
301
  source ~/.bash_profile
296
- chruby 2.7.0
302
+ chruby 2.7.1
297
303
  ```
298
304
 
299
305
  ### Running Tests
@@ -72,7 +72,7 @@ class Aws::KMS::Client
72
72
 
73
73
  def decrypt(ciphertext_blob:, encryption_context: nil)
74
74
  key_id, decoded_context, plaintext = MessagePack.unpack(ciphertext_blob.reverse)
75
- decoded_context = Hash[decoded_context.map { |k, v| [k.to_sym, v] }] if decoded_context
75
+ decoded_context = decoded_context.transform_keys(&:to_sym) if decoded_context
76
76
  raise Aws::KMS::Errors::InvalidCiphertextException.new(nil, nil) unless decoded_context == encryption_context
77
77
 
78
78
  Aws::KMS::Types::DecryptResponse.new(
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PorkyLib
4
- VERSION = "0.10.0"
4
+ VERSION = "0.11.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: porky_lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Greg Fletcher
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-02-20 00:00:00.000000000 Z
11
+ date: 2020-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-kms