[arvados] updated: 2.7.0-5108-gc51e59e03b

git repository hosting git at public.arvados.org
Tue Oct 31 19:54:35 UTC 2023


Summary of changes:
 sdk/ruby/lib/arvados.rb             | 8 ++++----
 sdk/ruby/test/sdk_fixtures.rb       | 2 +-
 sdk/ruby/test/test_keep_manifest.rb | 2 --
 sdk/ruby/test/test_request_id.rb    | 4 ++--
 4 files changed, 7 insertions(+), 9 deletions(-)

       via  c51e59e03bc721de2837db7958415766bd7b46c8 (commit)
      from  14c8fb3d5ae381e6bc0609530209ee7f7a584fe3 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit c51e59e03bc721de2837db7958415766bd7b46c8
Author: Tom Clegg <tom at curii.com>
Date:   Tue Oct 31 15:52:35 2023 -0400

    20846: Update sdk/ruby for Ruby 3.
    
    Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom at curii.com>

diff --git a/sdk/ruby/lib/arvados.rb b/sdk/ruby/lib/arvados.rb
index 73a0d0d2f7..63550cd37c 100644
--- a/sdk/ruby/lib/arvados.rb
+++ b/sdk/ruby/lib/arvados.rb
@@ -76,7 +76,7 @@ class Arvados
     _arvados = self
     namespace_class = Arvados.const_set "A#{self.object_id}", Class.new
     self.arvados_api.schemas.each do |classname, schema|
-      next if classname.match /List$/
+      next if classname.match(/List$/)
       klass = Class.new(Arvados::Model) do
         def self.arvados
           @arvados
@@ -137,7 +137,7 @@ class Arvados
   end
 
   def debuglog *args
-    self.class.debuglog *args
+    self.class.debuglog(*args)
   end
 
   def config(config_file_path="~/.config/arvados/settings.conf")
@@ -206,10 +206,10 @@ class Arvados
       arvados.client
     end
     def self.debuglog(*args)
-      arvados.class.debuglog *args
+      arvados.class.debuglog(*args)
     end
     def debuglog(*args)
-      self.class.arvados.class.debuglog *args
+      self.class.arvados.class.debuglog(*args)
     end
     def self.api_exec(method, parameters={})
       api_method = arvados_api.send(api_models_sym).send(method.name.to_sym)
diff --git a/sdk/ruby/test/sdk_fixtures.rb b/sdk/ruby/test/sdk_fixtures.rb
index 0f385e2218..28f12b0b02 100644
--- a/sdk/ruby/test/sdk_fixtures.rb
+++ b/sdk/ruby/test/sdk_fixtures.rb
@@ -33,7 +33,7 @@ module SDKFixtures
         file = IO.read(path)
         trim_index = file.index('# Test Helper trims the rest of the file')
         file = file[0, trim_index] if trim_index
-        YAML.load(file)
+        YAML.safe_load(file, permitted_classes: [Time])
       end
   end
 
diff --git a/sdk/ruby/test/test_keep_manifest.rb b/sdk/ruby/test/test_keep_manifest.rb
index eee8b39699..ff0cab6ef9 100644
--- a/sdk/ruby/test/test_keep_manifest.rb
+++ b/sdk/ruby/test/test_keep_manifest.rb
@@ -357,8 +357,6 @@ class ManifestTest < Minitest::Test
       "invalid file token \"0:0:a/./bc.txt\""],
     [false, ". d41d8cd98f00b204e9800998ecf8427e 0:0:a/../bc.txt\n",
       "invalid file token \"0:0:a/../bc.txt\""],
-    [false, "./abc/./foo d41d8cd98f00b204e9800998ecf8427e 0:0:abc.txt\n",
-      "invalid stream name \"./abc/./foo\""],
     [false, "d41d8cd98f00b204e9800998ecf8427e+0 0:0:abc.txt\n",
       "invalid stream name \"d41d8cd98f00b204e9800998ecf8427e+0\""],
     [false, ". d41d8cd98f00b204e9800998ecf8427 0:0:abc.txt\n",
diff --git a/sdk/ruby/test/test_request_id.rb b/sdk/ruby/test/test_request_id.rb
index 2e25210ba7..641b442751 100644
--- a/sdk/ruby/test/test_request_id.rb
+++ b/sdk/ruby/test/test_request_id.rb
@@ -17,6 +17,6 @@ class RequestIdTest < Minitest::Test
             arv.collection.get(uuid: "zzzzz-4zz18-zzzzzzzzzzzzzzz")
         end
         assert clnt.request_id != nil
-        assert_match /Uh-oh.*\(Request ID: req-[0-9a-zA-Z]{20}\)/, err.message
+        assert_match(/Uh-oh.*\(Request ID: req-[0-9a-zA-Z]{20}\)/, err.message)
     end
-end
\ No newline at end of file
+end

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list