Skip to content

Commit e7f62e2

Browse files
Merge pull request #9 from valscion/run-tests-with-ruby-3
Support running the gem with Ruby 3
2 parents 389fa25 + b3184b8 commit e7f62e2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

protobuf_nested_struct.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Gem::Specification.new do |spec|
2727
spec.require_paths = ["lib"]
2828
spec.add_dependency "google-protobuf"
2929

30-
spec.add_development_dependency "bundler", "~> 1.16"
30+
spec.add_development_dependency "bundler"
3131
spec.add_development_dependency "rake", "~> 10.0"
3232
spec.add_development_dependency "rspec", "~> 3.0"
3333
spec.add_development_dependency "pry"

spec/protobuf_nested_struct_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ module ProtobufNestedStruct
231231
]
232232
}
233233

234-
hash2 = YAML.load(YAML.dump(hash))
234+
hash2 = YAML.safe_load(YAML.dump(hash), permitted_classes: [Date, Time])
235235
v = Value.new
236236
v.from_ruby(hash)
237237
expect(v.to_ruby).to eql(hash2)

0 commit comments

Comments
 (0)