Skip to content

Commit

Permalink
Drop support for Ruby 2.6 and Ruby 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
kgiszczak committed Oct 15, 2023
1 parent c75ca2c commit f93c846
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 17 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ jobs:
- '3.2'
- '3.1'
- '3.0'
- '2.7'
- '2.6'

steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
AllCops:
TargetRubyVersion: 2.6
TargetRubyVersion: 3.0
SuggestExtensions: false
NewCops: enable
Layout/ArgumentAlignment:
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
### Added
- [bkjohnson] Add support for JSON Schema validation keywords (#29)

### Changed
- Drop support for Ruby 2.6 and Ruby 2.7

## [1.0.0] - 2023-07-15

### Added
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Documentation with interactive examples is available at [Shale website](https://

## Installation

Shale supports Ruby (MRI) 2.6+
Shale supports Ruby (MRI) 3.0+

Add this line to your application's Gemfile:

Expand Down
24 changes: 12 additions & 12 deletions lib/shale/schema/xml_compiler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,51 +34,51 @@ class XMLCompiler

# XML Schema "schema" element name
# @api private
XS_SCHEMA = "#{XS_NAMESPACE_URI}:schema"
XS_SCHEMA = "#{XS_NAMESPACE_URI}:schema".freeze

# XML Schema "element" element name
# @api private
XS_ELEMENT = "#{XS_NAMESPACE_URI}:element"
XS_ELEMENT = "#{XS_NAMESPACE_URI}:element".freeze

# XML Schema "attribute" element name
# @api private
XS_ATTRIBUTE = "#{XS_NAMESPACE_URI}:attribute"
XS_ATTRIBUTE = "#{XS_NAMESPACE_URI}:attribute".freeze

# XML Schema "attribute" element name
# @api private
XS_SIMPLE_TYPE = "#{XS_NAMESPACE_URI}:simpleType"
XS_SIMPLE_TYPE = "#{XS_NAMESPACE_URI}:simpleType".freeze

# XML Schema "simpleContent" element name
# @api private
XS_SIMPLE_CONTENT = "#{XS_NAMESPACE_URI}:simpleContent"
XS_SIMPLE_CONTENT = "#{XS_NAMESPACE_URI}:simpleContent".freeze

# XML Schema "restriction" element name
# @api private
XS_RESTRICTION = "#{XS_NAMESPACE_URI}:restriction"
XS_RESTRICTION = "#{XS_NAMESPACE_URI}:restriction".freeze

# XML Schema "group" element name
# @api private
XS_GROUP = "#{XS_NAMESPACE_URI}:group"
XS_GROUP = "#{XS_NAMESPACE_URI}:group".freeze

# XML Schema "attributeGroup" element name
# @api private
XS_ATTRIBUTE_GROUP = "#{XS_NAMESPACE_URI}:attributeGroup"
XS_ATTRIBUTE_GROUP = "#{XS_NAMESPACE_URI}:attributeGroup".freeze

# XML Schema "complexType" element name
# @api private
XS_COMPLEX_TYPE = "#{XS_NAMESPACE_URI}:complexType"
XS_COMPLEX_TYPE = "#{XS_NAMESPACE_URI}:complexType".freeze

# XML Schema "complexContent" element name
# @api private
XS_COMPLEX_CONTENT = "#{XS_NAMESPACE_URI}:complexContent"
XS_COMPLEX_CONTENT = "#{XS_NAMESPACE_URI}:complexContent".freeze

# XML Schema "extension" element name
# @api private
XS_EXTENSION = "#{XS_NAMESPACE_URI}:extension"
XS_EXTENSION = "#{XS_NAMESPACE_URI}:extension".freeze

# XML Schema "anyType" type
# @api private
XS_TYPE_ANY = "#{XS_NAMESPACE_URI}:anyType"
XS_TYPE_ANY = "#{XS_NAMESPACE_URI}:anyType".freeze

# XML Schema "date" types
# @api private
Expand Down
2 changes: 1 addition & 1 deletion shale.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ Gem::Specification.new do |spec|
spec.bindir = 'exe'
spec.executables = 'shaleb'

spec.required_ruby_version = '>= 2.6.0'
spec.required_ruby_version = '>= 3.0.0'
end

0 comments on commit f93c846

Please sign in to comment.