passpartu 1.2.1 → 1.2.2

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: 396d094c919ae767cf6653747b219b0018a95c0672fd8beb9da5c1f0c64fd7c6
4
- data.tar.gz: fdca15a751308a1c2a6bcf818f21572b7cb1a8e95a8f59c8f363d5431758375a
3
+ metadata.gz: 172ad6a276a5b27cafa024e776e3363de78b82fc5606e9f2eb92689323898269
4
+ data.tar.gz: 1e343e86551faab902c18eee6faaa9ee85cea5980102a1bd2448f1e4f23abbbf
5
5
  SHA512:
6
- metadata.gz: 9e548a9a7493741c606bfdb93f6bbe90a082496e76b739645d658e91b531671170053fb1342272d76e5116093184d548aef593c11cbb1e715227427be295d637
7
- data.tar.gz: e945766a4d0157bc22ce976a4552fd72b62c2ffc5a153c1e1c44fd9dc5996c88f729bc2eba49b6fbc90d6f6472aaf6e46fedc7c52db687aed8d2aa433bc20708
6
+ metadata.gz: 8b0cbed99bb314138bb993f303d7f1eed70e2160fd051d7eb358252dcb80c4accc3059c029bc5fcc297a80feb498eb6bfcc34c9d3a7ca41377240e71b2b0c621
7
+ data.tar.gz: 5c65e2c58397b1ce5f80e2cdc7c6d3e4bc0aca4746f536444c05bb4ec29ed48eefc98ef63a9d13d32d474524f3d47afa0dc50874291826eb76640856dc0b6890
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Passpartu
4
- VERSION = '1.2.1'
4
+ VERSION = '1.2.2'
5
5
  end
data/lib/passpartu.rb CHANGED
@@ -66,7 +66,17 @@ module Passpartu
66
66
  private
67
67
 
68
68
  def load_policy_file(path)
69
- RUBY_VERSION.to_f >= 3.1 ? YAML.load_file(path, aliases: true) : YAML.load_file(path)
69
+ yaml = File.read(path)
70
+
71
+ if RUBY_VERSION.to_f >= 3.1
72
+ YAML.safe_load(
73
+ yaml,
74
+ permitted_classes: [Symbol],
75
+ aliases: true
76
+ )
77
+ else
78
+ YAML.load_file(yaml)
79
+ end
70
80
  end
71
81
 
72
82
  def policy=(value)
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: passpartu
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - OrestF
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2023-10-30 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: bundler
@@ -130,7 +129,6 @@ homepage: https://github.com/coaxsoft/passpartu
130
129
  licenses:
131
130
  - MIT
132
131
  metadata: {}
133
- post_install_message:
134
132
  rdoc_options: []
135
133
  require_paths:
136
134
  - lib
@@ -145,8 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
145
143
  - !ruby/object:Gem::Version
146
144
  version: '0'
147
145
  requirements: []
148
- rubygems_version: 3.4.21
149
- signing_key:
146
+ rubygems_version: 3.6.7
150
147
  specification_version: 4
151
148
  summary: Passpartu makes policies great again
152
149
  test_files: []