Skip to content

Commit

Permalink
Merge pull request #761 from sul-dlss/unpin-commonmarker
Browse files Browse the repository at this point in the history
Vary commonmarker pin depending on Ruby version
  • Loading branch information
justinlittman authored Jan 7, 2025
2 parents 9fb39d3 + f58a929 commit fc8229a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ PATH
specs:
cocina-models (0.99.2)
activesupport
commonmarker (= 2.0.1)
commonmarker (~> 2.0, != 2.0.2)
deprecation
dry-struct (~> 1.0)
dry-types (~> 1.1)
Expand Down
6 changes: 5 additions & 1 deletion cocina-models.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ Gem::Specification.new do |spec|
spec.required_ruby_version = '>= 3.0'

spec.add_dependency 'activesupport'
spec.add_dependency 'commonmarker', '2.0.1' # There is a breaking change in 2.0.2 with openapi3_parser
if RUBY_VERSION >= '3.4' # rubocop:disable Gemspec/RubyVersionGlobalsUsage
spec.add_dependency 'commonmarker', '>= 2.0.2' # commonmarker <= 2.0.1 is incompatible with Ruby 3.4
else
spec.add_dependency 'commonmarker', '~> 2.0', '!= 2.0.2' # commonmarker 2.0.2 includes a breaking change in Rubies < 3.4
end
spec.add_dependency 'deprecation'
spec.add_dependency 'dry-struct', '~> 1.0'
spec.add_dependency 'dry-types', '~> 1.1'
Expand Down

0 comments on commit fc8229a

Please sign in to comment.