Skip to content

Commit

Permalink
Fix activesupport requires to support AS v7.1.0 or newer (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwong-yw authored Dec 4, 2023
1 parent 1eb5246 commit 97d31b5
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# yeti_thrift Changelog

## v3.0.2, December 4, 2022
- Update to work with newer (7.1.0+) ActiveSupport versions

## v3.0.1, October 6, 2016
- Explicitly require `Object#try` from `ActiveSupport`.
- New shared examples for testing required fields and unions.
Expand Down
3 changes: 2 additions & 1 deletion lib/gem_ext/thrift/struct/struct_version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
require 'active_support'
require 'active_support/core_ext/string/inflections'
require 'yeti_thrift/exceptions'

Expand Down Expand Up @@ -68,4 +69,4 @@ def compute_version_constant_name
private :compute_version_constant_name

end
end
end
1 change: 1 addition & 0 deletions lib/gem_ext/thrift/struct_union/timestamp.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
require 'active_support'
require 'active_support/core_ext/array/extract_options'
require 'active_support/core_ext/hash/indifferent_access'
require 'active_support/core_ext/time/zones'
Expand Down
1 change: 1 addition & 0 deletions lib/yeti_thrift.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
require "yeti_thrift/base64_deserializer"
require "yeti_thrift/base64_serializer"
require 'yeti_thrift/rake/thrift_gen_task'
require 'active_support'
require 'active_support/core_ext/object'

# Check field types when assigning to structs
Expand Down
2 changes: 1 addition & 1 deletion lib/yeti_thrift/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module YetiThrift
VERSION = "3.0.1"
VERSION = "3.0.2"
end
1 change: 0 additions & 1 deletion spec/lib/gem_ext/thrift/struct_union/timestamp_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
require 'spec_helper'
require 'active_support'

describe Thrift::Struct_Union, 'timestamp' do

Expand Down

0 comments on commit 97d31b5

Please sign in to comment.