projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
12876: Merge branch 'master' into 12876-arvados-client
[arvados.git]
/
sdk
/
ruby
/
lib
/
arvados.rb
diff --git
a/sdk/ruby/lib/arvados.rb
b/sdk/ruby/lib/arvados.rb
index 7a3f4b4226210646cbdd098d5594ff354f42778e..a89c21b017ddfc1943ae8c403ef8d9f871f34388 100644
(file)
--- a/
sdk/ruby/lib/arvados.rb
+++ b/
sdk/ruby/lib/arvados.rb
@@
-1,3
+1,7
@@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: Apache-2.0
+
require 'rubygems'
require 'active_support/inflector'
require 'json'
require 'rubygems'
require 'active_support/inflector'
require 'json'
@@
-11,18
+15,7
@@
ActiveSupport::Inflector.inflections do |inflect|
inflect.irregular 'human', 'humans'
end
inflect.irregular 'human', 'humans'
end
-module Kernel
- def suppress_warnings
- original_verbosity = $VERBOSE
- $VERBOSE = nil
- result = yield
- $VERBOSE = original_verbosity
- return result
- end
-end
-
class Arvados
class Arvados
-
class TransactionFailedError < StandardError
end
class TransactionFailedError < StandardError
end
@@
-262,4
+255,16
@@
class Arvados
@attributes = j
end
end
@attributes = j
end
end
+
+ protected
+
+ def suppress_warnings
+ original_verbosity = $VERBOSE
+ begin
+ $VERBOSE = nil
+ yield
+ ensure
+ $VERBOSE = original_verbosity
+ end
+ end
end
end