easy_yaml 0.2.2 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/linter.yml +10 -15
- data/.github/workflows/test.yml +10 -12
- data/.rubocop.yml +0 -2
- data/.ruby-version +1 -0
- data/CHANGELOG.md +18 -0
- data/Gemfile +7 -0
- data/Gemfile.lock +42 -37
- data/easy_yaml.gemspec +2 -8
- data/lib/easy_yaml/version.rb +1 -1
- data/lib/easy_yaml.rb +4 -4
- metadata +7 -104
- data/.rubocop_todo.yml +0 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a894c6086d723faf05e84ef64d5acfb562a12a2b975c7189d3e4c8cef7e5f9bd
|
4
|
+
data.tar.gz: c14c5776a6fec76bee6f4e24d88babe640c7685d47c4d4fa50b1941d4f95ca93
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 396025970a3cf3d472a65ba7134df6ba10ab2eed28aca1d7adb7fdbbc823cf674f0b1556e3d2fa3a8a7506060632fa9f5a79a5feebaa7e8c20788f7f38591b09
|
7
|
+
data.tar.gz: 15f6ecaa72b639dd844dfde126c62df71e8bd3a2f2ebce61d6643330c09de99cf57469ae37c9774cfba089f2c345009acee4703ac051af625b09064b3d29d5a0
|
@@ -1,24 +1,19 @@
|
|
1
1
|
on: [push]
|
2
2
|
|
3
|
-
name:
|
3
|
+
name: Ruby linter (Rubocop)
|
4
4
|
|
5
5
|
jobs:
|
6
|
-
|
6
|
+
linter_rubocop:
|
7
7
|
runs-on: ubuntu-latest
|
8
8
|
|
9
9
|
steps:
|
10
|
-
- name:
|
11
|
-
uses: actions/
|
12
|
-
with:
|
13
|
-
ruby-version: '2.6.x'
|
14
|
-
|
15
|
-
- name: Checkout
|
16
|
-
uses: actions/checkout@master
|
10
|
+
- name: Checkout repo
|
11
|
+
uses: actions/checkout@main
|
17
12
|
|
18
|
-
- name:
|
19
|
-
|
20
|
-
|
13
|
+
- name: Set up Ruby
|
14
|
+
uses: ruby/setup-ruby@master
|
15
|
+
with:
|
16
|
+
bundler-cache: true
|
21
17
|
|
22
|
-
- name: Run
|
23
|
-
run:
|
24
|
-
rubocop
|
18
|
+
- name: Run Rubocop
|
19
|
+
run: bundle exec rubocop --parallel
|
data/.github/workflows/test.yml
CHANGED
@@ -1,21 +1,19 @@
|
|
1
|
-
name: Tests
|
2
|
-
|
3
1
|
on: [push]
|
4
2
|
|
3
|
+
name: Tests
|
4
|
+
|
5
5
|
jobs:
|
6
|
-
|
6
|
+
test:
|
7
7
|
runs-on: ubuntu-latest
|
8
8
|
|
9
9
|
steps:
|
10
|
-
-
|
10
|
+
- name: Checkout repo
|
11
|
+
uses: actions/checkout@main
|
11
12
|
|
12
|
-
- name: Set up Ruby
|
13
|
-
uses:
|
13
|
+
- name: Set up Ruby
|
14
|
+
uses: ruby/setup-ruby@master
|
14
15
|
with:
|
15
|
-
|
16
|
+
bundler-cache: true
|
16
17
|
|
17
|
-
- name:
|
18
|
-
run:
|
19
|
-
gem install bundler
|
20
|
-
bundle install --jobs 4 --retry 3
|
21
|
-
bundle exec rspec
|
18
|
+
- name: Run tests
|
19
|
+
run: bundle exec rspec
|
data/.rubocop.yml
CHANGED
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
3.2.2
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,23 @@
|
|
1
1
|
# Master
|
2
2
|
|
3
|
+
# Releases
|
4
|
+
|
5
|
+
## 0.4.0
|
6
|
+
- Fixes
|
7
|
+
- Require Ruby >= 3.2.2
|
8
|
+
- Rubocop updates
|
9
|
+
- Update `BUNDLED WITH` from 2.4.6 to 2.4.13
|
10
|
+
|
11
|
+
## 0.3.0
|
12
|
+
- Fixes
|
13
|
+
- Require Ruby >= 3.1.3
|
14
|
+
- Rubocop updates
|
15
|
+
- Update `BUNDLED WITH` from 2.2.17 to 2.4.6
|
16
|
+
|
17
|
+
## 0.2.3 / 2021-10-12
|
18
|
+
- Fixes
|
19
|
+
- Unpin and version bump all gem dependencies
|
20
|
+
|
3
21
|
## 0.2.2 / 2021-06-29
|
4
22
|
|
5
23
|
- Fixes
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,66 +1,71 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
easy_yaml (0.
|
4
|
+
easy_yaml (0.4.0)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
9
|
ast (2.4.2)
|
10
|
-
|
11
|
-
|
12
|
-
parallel (1.
|
13
|
-
parser (3.
|
10
|
+
diff-lcs (1.5.0)
|
11
|
+
json (2.6.3)
|
12
|
+
parallel (1.23.0)
|
13
|
+
parser (3.2.2.1)
|
14
14
|
ast (~> 2.4.1)
|
15
|
-
rainbow (3.
|
16
|
-
rake (13.0.
|
17
|
-
regexp_parser (2.
|
15
|
+
rainbow (3.1.1)
|
16
|
+
rake (13.0.6)
|
17
|
+
regexp_parser (2.8.0)
|
18
18
|
rexml (3.2.5)
|
19
|
-
rspec (3.
|
20
|
-
rspec-core (~> 3.
|
21
|
-
rspec-expectations (~> 3.
|
22
|
-
rspec-mocks (~> 3.
|
23
|
-
rspec-core (3.
|
24
|
-
rspec-support (~> 3.
|
25
|
-
rspec-expectations (3.
|
19
|
+
rspec (3.12.0)
|
20
|
+
rspec-core (~> 3.12.0)
|
21
|
+
rspec-expectations (~> 3.12.0)
|
22
|
+
rspec-mocks (~> 3.12.0)
|
23
|
+
rspec-core (3.12.2)
|
24
|
+
rspec-support (~> 3.12.0)
|
25
|
+
rspec-expectations (3.12.3)
|
26
26
|
diff-lcs (>= 1.2.0, < 2.0)
|
27
|
-
rspec-support (~> 3.
|
28
|
-
rspec-mocks (3.
|
27
|
+
rspec-support (~> 3.12.0)
|
28
|
+
rspec-mocks (3.12.5)
|
29
29
|
diff-lcs (>= 1.2.0, < 2.0)
|
30
|
-
rspec-support (~> 3.
|
31
|
-
rspec-support (3.
|
32
|
-
rubocop (1.
|
30
|
+
rspec-support (~> 3.12.0)
|
31
|
+
rspec-support (3.12.0)
|
32
|
+
rubocop (1.51.0)
|
33
|
+
json (~> 2.3)
|
33
34
|
parallel (~> 1.10)
|
34
|
-
parser (>= 3.
|
35
|
+
parser (>= 3.2.0.0)
|
35
36
|
rainbow (>= 2.2.2, < 4.0)
|
36
37
|
regexp_parser (>= 1.8, < 3.0)
|
37
|
-
rexml
|
38
|
-
rubocop-ast (>= 1.
|
38
|
+
rexml (>= 3.2.5, < 4.0)
|
39
|
+
rubocop-ast (>= 1.28.0, < 2.0)
|
39
40
|
ruby-progressbar (~> 1.7)
|
40
|
-
unicode-display_width (>=
|
41
|
-
rubocop-ast (1.
|
42
|
-
parser (>= 3.
|
43
|
-
rubocop-
|
41
|
+
unicode-display_width (>= 2.4.0, < 3.0)
|
42
|
+
rubocop-ast (1.28.1)
|
43
|
+
parser (>= 3.2.1.0)
|
44
|
+
rubocop-capybara (2.18.0)
|
45
|
+
rubocop (~> 1.41)
|
46
|
+
rubocop-factory_bot (2.23.1)
|
47
|
+
rubocop (~> 1.33)
|
48
|
+
rubocop-performance (1.18.0)
|
44
49
|
rubocop (>= 1.7.0, < 2.0)
|
45
50
|
rubocop-ast (>= 0.4.0)
|
46
|
-
rubocop-rspec (2.
|
47
|
-
rubocop (~> 1.
|
48
|
-
rubocop-
|
49
|
-
|
50
|
-
|
51
|
+
rubocop-rspec (2.22.0)
|
52
|
+
rubocop (~> 1.33)
|
53
|
+
rubocop-capybara (~> 2.17)
|
54
|
+
rubocop-factory_bot (~> 2.22)
|
55
|
+
ruby-progressbar (1.13.0)
|
56
|
+
unicode-display_width (2.4.2)
|
51
57
|
|
52
58
|
PLATFORMS
|
53
59
|
ruby
|
54
60
|
|
55
61
|
DEPENDENCIES
|
56
|
-
bundler
|
57
|
-
byebug
|
62
|
+
bundler
|
58
63
|
easy_yaml!
|
59
|
-
rake
|
60
|
-
rspec
|
64
|
+
rake
|
65
|
+
rspec
|
61
66
|
rubocop
|
62
67
|
rubocop-performance
|
63
68
|
rubocop-rspec
|
64
69
|
|
65
70
|
BUNDLED WITH
|
66
|
-
2.
|
71
|
+
2.4.13
|
data/easy_yaml.gemspec
CHANGED
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
3
3
|
require 'easy_yaml/version'
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
|
-
spec.required_ruby_version = '>= 2.
|
6
|
+
spec.required_ruby_version = '>= 3.2.2'
|
7
7
|
|
8
8
|
spec.name = 'easy_yaml'
|
9
9
|
spec.version = EasyYAML::VERSION
|
@@ -32,11 +32,5 @@ Gem::Specification.new do |spec|
|
|
32
32
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
33
33
|
spec.require_paths = ['lib']
|
34
34
|
|
35
|
-
spec.
|
36
|
-
spec.add_development_dependency 'byebug'
|
37
|
-
spec.add_development_dependency 'rake', '~> 13.0'
|
38
|
-
spec.add_development_dependency 'rspec', '~> 3.0'
|
39
|
-
spec.add_development_dependency 'rubocop'
|
40
|
-
spec.add_development_dependency 'rubocop-performance'
|
41
|
-
spec.add_development_dependency 'rubocop-rspec'
|
35
|
+
spec.metadata['rubygems_mfa_required'] = 'true'
|
42
36
|
end
|
data/lib/easy_yaml/version.rb
CHANGED
data/lib/easy_yaml.rb
CHANGED
@@ -4,10 +4,10 @@ require 'easy_yaml/yaml_loader'
|
|
4
4
|
module EasyYAML
|
5
5
|
class << self
|
6
6
|
def load path, allow_aliases: true, allow_erb: true, relative_to_rails_root: true
|
7
|
-
loaded_yaml = EasyYAML::YAMLLoader.new
|
8
|
-
allow_aliases
|
9
|
-
allow_erb
|
10
|
-
relative_to_rails_root:
|
7
|
+
loaded_yaml = EasyYAML::YAMLLoader.new(path,
|
8
|
+
allow_aliases:,
|
9
|
+
allow_erb:,
|
10
|
+
relative_to_rails_root:)
|
11
11
|
|
12
12
|
loaded_yaml.to_h
|
13
13
|
end
|
metadata
CHANGED
@@ -1,113 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: easy_yaml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shane Becker
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
12
|
-
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: bundler
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '2.0'
|
20
|
-
type: :development
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '2.0'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: byebug
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: rake
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '13.0'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '13.0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: rspec
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '3.0'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '3.0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: rubocop
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: rubocop-performance
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ">="
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - ">="
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: rubocop-rspec
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - ">="
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '0'
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - ">="
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '0'
|
11
|
+
date: 2023-05-31 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
111
13
|
description: 'EasyYAML reads a file from a path and uses YAML.safe_load to safely
|
112
14
|
load its contents and optionally works with Rails.root '
|
113
15
|
email:
|
@@ -121,7 +23,7 @@ files:
|
|
121
23
|
- ".gitignore"
|
122
24
|
- ".rspec"
|
123
25
|
- ".rubocop.yml"
|
124
|
-
- ".
|
26
|
+
- ".ruby-version"
|
125
27
|
- CHANGELOG.md
|
126
28
|
- CODE_OF_CONDUCT.md
|
127
29
|
- Gemfile
|
@@ -142,6 +44,7 @@ metadata:
|
|
142
44
|
homepage_uri: https://github.com/hoverinc/easy_yaml
|
143
45
|
source_code_uri: https://github.com/hoverinc/easy_yaml
|
144
46
|
changelog_uri: https://github.com/hoverinc/hyperion/blob/master/CHANGELOG.md
|
47
|
+
rubygems_mfa_required: 'true'
|
145
48
|
post_install_message:
|
146
49
|
rdoc_options: []
|
147
50
|
require_paths:
|
@@ -150,14 +53,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
150
53
|
requirements:
|
151
54
|
- - ">="
|
152
55
|
- !ruby/object:Gem::Version
|
153
|
-
version: 2.
|
56
|
+
version: 3.2.2
|
154
57
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
155
58
|
requirements:
|
156
59
|
- - ">="
|
157
60
|
- !ruby/object:Gem::Version
|
158
61
|
version: '0'
|
159
62
|
requirements: []
|
160
|
-
rubygems_version: 3.
|
63
|
+
rubygems_version: 3.4.13
|
161
64
|
signing_key:
|
162
65
|
specification_version: 4
|
163
66
|
summary: A simple way to safely load a YAML file
|
data/.rubocop_todo.yml
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
# This configuration was generated by
|
2
|
-
# `rubocop --auto-gen-config`
|
3
|
-
# on 2021-06-29 23:17:05 UTC using RuboCop version 1.18.0.
|
4
|
-
# The point is for the user to remove these configuration records
|
5
|
-
# one by one as the offenses are removed from the code base.
|
6
|
-
# Note that changes in the inspected code, or installation of new
|
7
|
-
# versions of RuboCop, may require this file to be generated again.
|
8
|
-
|
9
|
-
# Offense count: 1
|
10
|
-
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
|
11
|
-
# IgnoredMethods: refine
|
12
|
-
Metrics/BlockLength:
|
13
|
-
Max: 28
|
14
|
-
|
15
|
-
# Offense count: 1
|
16
|
-
# Configuration parameters: CheckIdentifiers, CheckConstants, CheckVariables, CheckStrings, CheckSymbols, CheckComments, CheckFilepaths, FlaggedTerms.
|
17
|
-
Naming/InclusiveLanguage:
|
18
|
-
Exclude:
|
19
|
-
- 'easy_yaml.gemspec'
|