This is an automated email from the ASF dual-hosted git repository.

tjwp pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/avro.git


The following commit(s) were added to refs/heads/main by this push:
     new a0b277ffc AVRO-3921: [ruby] Test against Ruby 3.3 (#2655)
a0b277ffc is described below

commit a0b277ffcc18ce7f0bc1faa0e0b8c61326e93753
Author: Tim Perkins <[email protected]>
AuthorDate: Thu Dec 28 12:18:52 2023 -0500

    AVRO-3921: [ruby] Test against Ruby 3.3 (#2655)
---
 .github/workflows/test-lang-ruby.yml | 4 +++-
 lang/ruby/test/test_logical_types.rb | 4 ++--
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/test-lang-ruby.yml 
b/.github/workflows/test-lang-ruby.yml
index a3c53f910..4c8f963dd 100644
--- a/.github/workflows/test-lang-ruby.yml
+++ b/.github/workflows/test-lang-ruby.yml
@@ -43,6 +43,7 @@ jobs:
         - '3.0'
         - '3.1'
         - '3.2'
+        - '3.3'
     steps:
       - uses: actions/checkout@v4
 
@@ -83,6 +84,7 @@ jobs:
         - '3.0'
         - '3.1'
         - '3.2'
+        - '3.3'
     steps:
       - uses: actions/checkout@v4
 
@@ -165,4 +167,4 @@ jobs:
       - name: Build
         run: |
             set -x
-            ./build.sh clean test
\ No newline at end of file
+            ./build.sh clean test
diff --git a/lang/ruby/test/test_logical_types.rb 
b/lang/ruby/test/test_logical_types.rb
index 3aeb34983..3dd7ce183 100644
--- a/lang/ruby/test/test_logical_types.rb
+++ b/lang/ruby/test/test_logical_types.rb
@@ -141,7 +141,7 @@ class TestLogicalTypes < Test::Unit::TestCase
                     "null"
                 ],
                 "default": "\u0000"
-            }  
+            }
         ]
     }')
 
@@ -215,7 +215,7 @@ class TestLogicalTypes < Test::Unit::TestCase
     sales_tax_record = {
       "sales" => BigDecimal("12.34"),
       "tax" => BigDecimal("0.000"),
-      "invoice_date" => Time.at(0).to_date,
+      "invoice_date" => Date.new(1970, 1, 1),
       # time-millis is not supported
       "invoice_time" => 0,
       "created_at" => Time.at(0).utc,

Reply via email to