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

Add ostruct as dependency gem for Ruby 3.5 #928

Merged
merged 2 commits into from
Jun 12, 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
6 changes: 1 addition & 5 deletions lib/oj/mimic.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
# frozen_string_literal: false

require 'bigdecimal'
begin
require 'ostruct'
rescue Exception
# ignore
end
require 'ostruct'

module Oj

Expand Down
1 change: 1 addition & 0 deletions oj.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Gem::Specification.new do |s|
s.rdoc_options = ['--title', 'Oj', '--main', 'README.md']

s.add_runtime_dependency 'bigdecimal', '>= 3.0'
s.add_runtime_dependency 'ostruct', '>= 0.2'
s.add_development_dependency 'minitest', '~> 5'
s.add_development_dependency 'rake-compiler', '>= 0.9', '< 2.0'
s.add_development_dependency 'test-unit', '~> 3.0'
Expand Down