Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unnecessary dependency #12

Merged
merged 3 commits into from
Feb 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'
ruby-version: '3.3'

- name: Install dependencies
run: bundle install
Expand All @@ -29,10 +29,7 @@ jobs:
fail-fast: false # don't fail all matrix builds if one fails
matrix:
ruby:
- '2.7'
- '3.0'
- '3.1'
- '3.2'
- '3.3'
continue-on-error: ${{ endsWith(matrix.ruby, 'head') }}
steps:
Expand Down
6 changes: 1 addition & 5 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
PATH
remote: .
specs:
activeyaml (1.2.3)
psych (~> 5.1)
activeyaml (1.3.0)

GEM
remote: https://rubygems.org/
Expand All @@ -23,8 +22,6 @@ GEM
parser (3.2.2.4)
ast (~> 2.4.1)
racc
psych (5.1.2)
stringio
racc (1.7.3)
rainbow (3.1.1)
rake (13.1.0)
Expand All @@ -46,7 +43,6 @@ GEM
rubocop-minitest (0.33.0)
rubocop (>= 1.39, < 2.0)
ruby-progressbar (1.13.0)
stringio (3.1.0)
unicode-display_width (2.5.0)

PLATFORMS
Expand Down
3 changes: 1 addition & 2 deletions activeyaml.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ Gem::Specification.new do |s|
s.files = Dir.glob('lib/**/*')
s.homepage = 'https://github.com/leonovk/activeyaml'
s.license = 'MIT'
s.required_ruby_version = '>= 2.4'
s.required_ruby_version = '>= 3.0'
s.metadata['homepage_uri'] = s.homepage
s.metadata['source_code_uri'] = s.homepage
s.metadata['documentation_uri'] = s.homepage
s.add_dependency 'psych', '~> 5.1'
end
4 changes: 2 additions & 2 deletions lib/active_yaml/parser.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# frozen_string_literal: true

require 'psych'
require 'yaml'

module ActiveYaml
# The main parser of Yaml files, uses psych under the hood
class Parser
def self.parse(file_path)
Psych.safe_load_file(file_path)
YAML.safe_load_file(file_path)
end
end
end
2 changes: 1 addition & 1 deletion lib/active_yaml/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module ActiveYaml
VERSION = '1.2.3'
VERSION = '1.3.0'
end
Loading