easy_yaml 0.2.2 → 0.3.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 +4 -4
- data/.github/workflows/linter.yml +9 -10
- data/.github/workflows/test.yml +7 -5
- data/.rubocop.yml +0 -2
- data/.ruby-version +1 -0
- data/CHANGELOG.md +11 -0
- data/Gemfile +8 -0
- data/Gemfile.lock +23 -22
- 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: ae7665068f9e092e4591d59d968776299c7013d3a70a226d7a5d02e7a023efb9
|
|
4
|
+
data.tar.gz: d3d4829f376f03a180b5d7dc7d2f340cfbdc67869e3da5ebaa0290801e69184d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 00c0d4609cd7973af37800eaa3e0f31e049a0eddb695c2febb741950afb927465f309230556a23dd3033dc33de42e881a883df23f599701c367ac95fd1e88221
|
|
7
|
+
data.tar.gz: 3cb34ef87b04dacc69499f8b9bbfca0e9bedac7a7cd489bb9c1cd3a3d1d9e0b4dea367c2b2fc0004d7c55533ce4da36beb62750d8fab7059541f43eead5263ee
|
|
@@ -1,24 +1,23 @@
|
|
|
1
|
-
on: [push]
|
|
2
|
-
|
|
3
1
|
name: Linter
|
|
4
2
|
|
|
3
|
+
on: [push]
|
|
4
|
+
|
|
5
5
|
jobs:
|
|
6
6
|
run:
|
|
7
7
|
runs-on: ubuntu-latest
|
|
8
8
|
|
|
9
9
|
steps:
|
|
10
|
-
- name:
|
|
11
|
-
uses: actions/setup-ruby@v1
|
|
12
|
-
with:
|
|
13
|
-
ruby-version: '2.6.x'
|
|
14
|
-
|
|
15
|
-
- name: Checkout
|
|
10
|
+
- name: Checkout repo
|
|
16
11
|
uses: actions/checkout@master
|
|
17
12
|
|
|
13
|
+
- name: Set up Ruby
|
|
14
|
+
uses: actions/setup-ruby@v1
|
|
15
|
+
|
|
18
16
|
- name: Install dependencies
|
|
19
17
|
run: |
|
|
20
|
-
gem install
|
|
18
|
+
gem install bundler
|
|
19
|
+
bundle install --jobs 4 --retry 3
|
|
21
20
|
|
|
22
21
|
- name: Run linter
|
|
23
22
|
run: |
|
|
24
|
-
rubocop
|
|
23
|
+
bundle exec rubocop
|
data/.github/workflows/test.yml
CHANGED
|
@@ -7,15 +7,17 @@ jobs:
|
|
|
7
7
|
runs-on: ubuntu-latest
|
|
8
8
|
|
|
9
9
|
steps:
|
|
10
|
-
-
|
|
10
|
+
- name: Checkout repo
|
|
11
|
+
uses: actions/checkout@master
|
|
11
12
|
|
|
12
|
-
- name: Set up Ruby
|
|
13
|
+
- name: Set up Ruby
|
|
13
14
|
uses: actions/setup-ruby@v1
|
|
14
|
-
with:
|
|
15
|
-
ruby-version: 2.6.x
|
|
16
15
|
|
|
17
|
-
- name:
|
|
16
|
+
- name: Install dependencies
|
|
18
17
|
run: |
|
|
19
18
|
gem install bundler
|
|
20
19
|
bundle install --jobs 4 --retry 3
|
|
20
|
+
|
|
21
|
+
- name: Run tests
|
|
22
|
+
run: |
|
|
21
23
|
bundle exec rspec
|
data/.rubocop.yml
CHANGED
data/.ruby-version
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.1.3
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Master
|
|
2
2
|
|
|
3
|
+
# Releases
|
|
4
|
+
## 0.3.0
|
|
5
|
+
- Fixes
|
|
6
|
+
- Require Ruby >= 3.1.3
|
|
7
|
+
- Rubocop updates
|
|
8
|
+
- Update `BUNDLED WITH` from 2.2.17 to 2.4.6
|
|
9
|
+
|
|
10
|
+
## 0.2.3 / 2021-10-12
|
|
11
|
+
- Fixes
|
|
12
|
+
- Unpin and version bump all gem dependencies
|
|
13
|
+
|
|
3
14
|
## 0.2.2 / 2021-06-29
|
|
4
15
|
|
|
5
16
|
- Fixes
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
easy_yaml (0.
|
|
4
|
+
easy_yaml (0.3.0)
|
|
5
5
|
|
|
6
6
|
GEM
|
|
7
7
|
remote: https://rubygems.org/
|
|
@@ -9,12 +9,13 @@ GEM
|
|
|
9
9
|
ast (2.4.2)
|
|
10
10
|
byebug (11.1.3)
|
|
11
11
|
diff-lcs (1.4.4)
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
json (2.6.3)
|
|
13
|
+
parallel (1.22.1)
|
|
14
|
+
parser (3.2.0.0)
|
|
14
15
|
ast (~> 2.4.1)
|
|
15
|
-
rainbow (3.
|
|
16
|
-
rake (13.0.
|
|
17
|
-
regexp_parser (2.
|
|
16
|
+
rainbow (3.1.1)
|
|
17
|
+
rake (13.0.6)
|
|
18
|
+
regexp_parser (2.6.2)
|
|
18
19
|
rexml (3.2.5)
|
|
19
20
|
rspec (3.10.0)
|
|
20
21
|
rspec-core (~> 3.10.0)
|
|
@@ -29,38 +30,38 @@ GEM
|
|
|
29
30
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
30
31
|
rspec-support (~> 3.10.0)
|
|
31
32
|
rspec-support (3.10.2)
|
|
32
|
-
rubocop (1.
|
|
33
|
+
rubocop (1.44.1)
|
|
34
|
+
json (~> 2.3)
|
|
33
35
|
parallel (~> 1.10)
|
|
34
|
-
parser (>= 3.
|
|
36
|
+
parser (>= 3.2.0.0)
|
|
35
37
|
rainbow (>= 2.2.2, < 4.0)
|
|
36
38
|
regexp_parser (>= 1.8, < 3.0)
|
|
37
|
-
rexml
|
|
38
|
-
rubocop-ast (>= 1.
|
|
39
|
+
rexml (>= 3.2.5, < 4.0)
|
|
40
|
+
rubocop-ast (>= 1.24.1, < 2.0)
|
|
39
41
|
ruby-progressbar (~> 1.7)
|
|
40
|
-
unicode-display_width (>=
|
|
41
|
-
rubocop-ast (1.
|
|
42
|
-
parser (>= 3.
|
|
43
|
-
rubocop-performance (1.11.
|
|
42
|
+
unicode-display_width (>= 2.4.0, < 3.0)
|
|
43
|
+
rubocop-ast (1.24.1)
|
|
44
|
+
parser (>= 3.1.1.0)
|
|
45
|
+
rubocop-performance (1.11.5)
|
|
44
46
|
rubocop (>= 1.7.0, < 2.0)
|
|
45
47
|
rubocop-ast (>= 0.4.0)
|
|
46
|
-
rubocop-rspec (2.
|
|
47
|
-
rubocop (~> 1.
|
|
48
|
-
rubocop-ast (>= 1.1.0)
|
|
48
|
+
rubocop-rspec (2.5.0)
|
|
49
|
+
rubocop (~> 1.19)
|
|
49
50
|
ruby-progressbar (1.11.0)
|
|
50
|
-
unicode-display_width (2.
|
|
51
|
+
unicode-display_width (2.4.2)
|
|
51
52
|
|
|
52
53
|
PLATFORMS
|
|
53
54
|
ruby
|
|
54
55
|
|
|
55
56
|
DEPENDENCIES
|
|
56
|
-
bundler
|
|
57
|
+
bundler
|
|
57
58
|
byebug
|
|
58
59
|
easy_yaml!
|
|
59
|
-
rake
|
|
60
|
-
rspec
|
|
60
|
+
rake
|
|
61
|
+
rspec
|
|
61
62
|
rubocop
|
|
62
63
|
rubocop-performance
|
|
63
64
|
rubocop-rspec
|
|
64
65
|
|
|
65
66
|
BUNDLED WITH
|
|
66
|
-
2.
|
|
67
|
+
2.4.6
|
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 = '>=
|
|
6
|
+
spec.required_ruby_version = '>= 3.1.3'
|
|
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.3.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-02-03 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:
|
|
56
|
+
version: 3.1.3
|
|
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.6
|
|
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'
|