easy_yaml 0.2.1 → 0.3.0

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: 668f3030cf251f5e3ea9600ecda67cc6eede17034801135e8c9e6d619f32f9b8
4
- data.tar.gz: 87dc1163da5e976a32afb6a595b0236c0a01f5264f6a6e7fe6e595968e51bba0
3
+ metadata.gz: ae7665068f9e092e4591d59d968776299c7013d3a70a226d7a5d02e7a023efb9
4
+ data.tar.gz: d3d4829f376f03a180b5d7dc7d2f340cfbdc67869e3da5ebaa0290801e69184d
5
5
  SHA512:
6
- metadata.gz: 30c19a37b7a8bdf5ce92ab83b0da1339f0ef713a59bcc86c845152739f8e5d6ff70bbaead85db2aa671c4b181bfcd8471d15b7882a10c49515ce1fc85274392b
7
- data.tar.gz: 9949ccda607ba8d841bd7bf367d7420e97b025e2fc94a9dad42f436534ea4daf748d6d3f088fceeac7dafe74af2a4c00f5222c9db93bc73511689c598b92909f
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: Set up Ruby 2.6
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 rubocop rubocop-performance rubocop-rspec --no-document
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
@@ -7,15 +7,17 @@ jobs:
7
7
  runs-on: ubuntu-latest
8
8
 
9
9
  steps:
10
- - uses: actions/checkout@v1
10
+ - name: Checkout repo
11
+ uses: actions/checkout@master
11
12
 
12
- - name: Set up Ruby 2.6
13
+ - name: Set up Ruby
13
14
  uses: actions/setup-ruby@v1
14
- with:
15
- ruby-version: 2.6.x
16
15
 
17
- - name: Build and test with Rake
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
@@ -2,6 +2,9 @@ require:
2
2
  - rubocop-performance
3
3
  - rubocop-rspec
4
4
 
5
+ AllCops:
6
+ NewCops: enable
7
+
5
8
  Layout/FirstArrayElementIndentation:
6
9
  EnforcedStyle: consistent
7
10
 
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 3.1.3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
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
+
14
+ ## 0.2.2 / 2021-06-29
15
+
16
+ - Fixes
17
+ - [Security] Version bump rexml (CVE-2021-28965)
18
+ - Rubocop updates
19
+
3
20
  ## 0.2.1 / 2020-04-10
4
21
 
5
22
  - Fixes
data/Gemfile CHANGED
@@ -2,3 +2,11 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in easy_yaml.gemspec
4
4
  gemspec
5
+
6
+ gem 'bundler'
7
+ gem 'byebug'
8
+ gem 'rake'
9
+ gem 'rspec'
10
+ gem 'rubocop'
11
+ gem 'rubocop-performance'
12
+ gem 'rubocop-rspec'
data/Gemfile.lock CHANGED
@@ -1,55 +1,67 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- easy_yaml (0.2.1)
4
+ easy_yaml (0.3.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- ast (2.4.0)
10
- byebug (11.1.1)
11
- diff-lcs (1.3)
12
- jaro_winkler (1.5.4)
13
- parallel (1.19.1)
14
- parser (2.7.0.3)
15
- ast (~> 2.4.0)
16
- rainbow (3.0.0)
17
- rake (13.0.1)
18
- rexml (3.2.4)
19
- rspec (3.9.0)
20
- rspec-core (~> 3.9.0)
21
- rspec-expectations (~> 3.9.0)
22
- rspec-mocks (~> 3.9.0)
23
- rspec-core (3.9.0)
24
- rspec-support (~> 3.9.0)
25
- rspec-expectations (3.9.0)
9
+ ast (2.4.2)
10
+ byebug (11.1.3)
11
+ diff-lcs (1.4.4)
12
+ json (2.6.3)
13
+ parallel (1.22.1)
14
+ parser (3.2.0.0)
15
+ ast (~> 2.4.1)
16
+ rainbow (3.1.1)
17
+ rake (13.0.6)
18
+ regexp_parser (2.6.2)
19
+ rexml (3.2.5)
20
+ rspec (3.10.0)
21
+ rspec-core (~> 3.10.0)
22
+ rspec-expectations (~> 3.10.0)
23
+ rspec-mocks (~> 3.10.0)
24
+ rspec-core (3.10.1)
25
+ rspec-support (~> 3.10.0)
26
+ rspec-expectations (3.10.1)
26
27
  diff-lcs (>= 1.2.0, < 2.0)
27
- rspec-support (~> 3.9.0)
28
- rspec-mocks (3.9.0)
28
+ rspec-support (~> 3.10.0)
29
+ rspec-mocks (3.10.2)
29
30
  diff-lcs (>= 1.2.0, < 2.0)
30
- rspec-support (~> 3.9.0)
31
- rspec-support (3.9.0)
32
- rubocop (0.80.0)
33
- jaro_winkler (~> 1.5.1)
31
+ rspec-support (~> 3.10.0)
32
+ rspec-support (3.10.2)
33
+ rubocop (1.44.1)
34
+ json (~> 2.3)
34
35
  parallel (~> 1.10)
35
- parser (>= 2.7.0.1)
36
+ parser (>= 3.2.0.0)
36
37
  rainbow (>= 2.2.2, < 4.0)
37
- rexml
38
+ regexp_parser (>= 1.8, < 3.0)
39
+ rexml (>= 3.2.5, < 4.0)
40
+ rubocop-ast (>= 1.24.1, < 2.0)
38
41
  ruby-progressbar (~> 1.7)
39
- unicode-display_width (>= 1.4.0, < 1.7)
40
- ruby-progressbar (1.10.1)
41
- unicode-display_width (1.6.1)
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)
46
+ rubocop (>= 1.7.0, < 2.0)
47
+ rubocop-ast (>= 0.4.0)
48
+ rubocop-rspec (2.5.0)
49
+ rubocop (~> 1.19)
50
+ ruby-progressbar (1.11.0)
51
+ unicode-display_width (2.4.2)
42
52
 
43
53
  PLATFORMS
44
54
  ruby
45
55
 
46
56
  DEPENDENCIES
47
- bundler (~> 2.0)
57
+ bundler
48
58
  byebug
49
59
  easy_yaml!
50
- rake (~> 13.0)
51
- rspec (~> 3.0)
60
+ rake
61
+ rspec
52
62
  rubocop
63
+ rubocop-performance
64
+ rubocop-rspec
53
65
 
54
66
  BUNDLED WITH
55
- 2.1.4
67
+ 2.4.6
data/README.md CHANGED
@@ -28,7 +28,7 @@ gem install easy_yaml
28
28
  The simplest way to use EasyYAML is:
29
29
 
30
30
  ```ruby
31
- EasyYAML.load('path/to/file.yml')
31
+ EasyYAML.load 'path/to/file.yml'
32
32
  ```
33
33
 
34
34
  EasyYAML makes a few opinionated assumptions.
@@ -106,4 +106,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
106
106
 
107
107
  ## Code of Conduct
108
108
 
109
- Everyone interacting in the EasyYAML project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/hoverinc/easy_yaml/blob/master/CODE_OF_CONDUCT.md).
109
+ Everyone interacting in the EasyYAML project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/hoverinc/easy_yaml/blob/main/CODE_OF_CONDUCT.md).
data/easy_yaml.gemspec CHANGED
@@ -3,6 +3,8 @@ $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 = '>= 3.1.3'
7
+
6
8
  spec.name = 'easy_yaml'
7
9
  spec.version = EasyYAML::VERSION
8
10
  spec.authors = ['Shane Becker']
@@ -30,9 +32,5 @@ Gem::Specification.new do |spec|
30
32
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
31
33
  spec.require_paths = ['lib']
32
34
 
33
- spec.add_development_dependency 'bundler', '~> 2.0'
34
- spec.add_development_dependency 'byebug'
35
- spec.add_development_dependency 'rake', '~> 13.0'
36
- spec.add_development_dependency 'rspec', '~> 3.0'
37
- spec.add_development_dependency 'rubocop'
35
+ spec.metadata['rubygems_mfa_required'] = 'true'
38
36
  end
@@ -1,3 +1,3 @@
1
1
  module EasyYAML
2
- VERSION = '0.2.1'.freeze
2
+ VERSION = '0.3.0'.freeze
3
3
  end
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 path,
8
- allow_aliases: allow_aliases,
9
- allow_erb: allow_erb,
10
- relative_to_rails_root: 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,85 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easy_yaml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shane Becker
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-04-11 00:00:00.000000000 Z
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'
11
+ date: 2023-02-03 00:00:00.000000000 Z
12
+ dependencies: []
83
13
  description: 'EasyYAML reads a file from a path and uses YAML.safe_load to safely
84
14
  load its contents and optionally works with Rails.root '
85
15
  email:
@@ -93,6 +23,7 @@ files:
93
23
  - ".gitignore"
94
24
  - ".rspec"
95
25
  - ".rubocop.yml"
26
+ - ".ruby-version"
96
27
  - CHANGELOG.md
97
28
  - CODE_OF_CONDUCT.md
98
29
  - Gemfile
@@ -113,7 +44,8 @@ metadata:
113
44
  homepage_uri: https://github.com/hoverinc/easy_yaml
114
45
  source_code_uri: https://github.com/hoverinc/easy_yaml
115
46
  changelog_uri: https://github.com/hoverinc/hyperion/blob/master/CHANGELOG.md
116
- post_install_message:
47
+ rubygems_mfa_required: 'true'
48
+ post_install_message:
117
49
  rdoc_options: []
118
50
  require_paths:
119
51
  - lib
@@ -121,15 +53,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
121
53
  requirements:
122
54
  - - ">="
123
55
  - !ruby/object:Gem::Version
124
- version: '0'
56
+ version: 3.1.3
125
57
  required_rubygems_version: !ruby/object:Gem::Requirement
126
58
  requirements:
127
59
  - - ">="
128
60
  - !ruby/object:Gem::Version
129
61
  version: '0'
130
62
  requirements: []
131
- rubygems_version: 3.0.6
132
- signing_key:
63
+ rubygems_version: 3.4.6
64
+ signing_key:
133
65
  specification_version: 4
134
66
  summary: A simple way to safely load a YAML file
135
67
  test_files: []