diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6fb6544..49a2f08 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,7 +22,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - ruby-version: ['3.0', '3.1', '3.2', '3.3'] + ruby-version: ['3.1', '3.2', '3.3'] steps: - uses: actions/checkout@v3 diff --git a/.rubocop.yml b/.rubocop.yml index 9907b52..04c4b0c 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -7,7 +7,7 @@ require: AllCops: NewCops: enable - TargetRubyVersion: 3.0 + TargetRubyVersion: 3.1 Layout/ArgumentAlignment: EnforcedStyle: with_fixed_indentation diff --git a/README.md b/README.md index 0b43773..4d44cff 100644 --- a/README.md +++ b/README.md @@ -46,9 +46,9 @@ then Nokogiri, and finally REXML. This library aims to support and is tested against the following Ruby implementations: -* 3.0 * 3.1 * 3.2 +* 3.3 If something doesn't work on one of these versions, it's a bug. diff --git a/lib/multi_xml.rb b/lib/multi_xml.rb index 7b32a66..87e66d0 100644 --- a/lib/multi_xml.rb +++ b/lib/multi_xml.rb @@ -42,7 +42,7 @@ def initialize(type) "decimal" => proc { |number| BigDecimal(number) }, "boolean" => proc { |boolean| !%w[0 false].include?(boolean.strip) }, "string" => proc { |string| string.to_s }, - "yaml" => proc { |yaml| YAML.load(yaml) rescue yaml }, # rubocop:disable Style/RescueModifier, Security/YAMLLoad + "yaml" => proc { |yaml| YAML.load(yaml) rescue yaml }, # rubocop:disable Style/RescueModifier "base64Binary" => proc { |binary| base64_decode(binary) }, "binary" => proc { |binary, entity| parse_binary(binary, entity) }, "file" => proc { |file, entity| parse_file(file, entity) } diff --git a/multi_xml.gemspec b/multi_xml.gemspec index 12e989a..012ff87 100644 --- a/multi_xml.gemspec +++ b/multi_xml.gemspec @@ -9,7 +9,7 @@ Gem::Specification.new do |spec| spec.summary = "Provides swappable XML backends utilizing LibXML, Nokogiri, Ox, or REXML." spec.homepage = "https://github.com/sferik/multi_xml" spec.license = "MIT" - spec.required_ruby_version = ">= 3.0" + spec.required_ruby_version = ">= 3.1.4" spec.metadata["allowed_push_host"] = "https://rubygems.org"