From c4407d4dca55c3bc9eb5154b970600a99bbb207f Mon Sep 17 00:00:00 2001 From: Felipe Garcia Bulsoni Date: Mon, 8 Jan 2018 11:50:08 -0200 Subject: [PATCH] Added require_relative to avoid race condition in ResourceHelper --- CHANGELOG.md | 3 ++- lib/oneview-sdk.rb | 1 + lib/oneview-sdk/version.rb | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c3fdd41cb..bbc79db42 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## v5.3.0(Unreleased) +## v5.3.0 #### New Resources: - Login Detail @@ -6,6 +6,7 @@ #### Bug fixes & Enhancements - [#226](https://github.com/HewlettPackard/oneview-sdk-ruby/issues/226) Add_rack_resource method returns NOMATCHING_ETAG_MESSAGE. +- [#301](https://github.com/HewlettPackard/oneview-sdk-ruby/issues/301) Bug - Race condition when requiring oneview-sdk gem on ruby 2.4 ## v5.2.0 diff --git a/lib/oneview-sdk.rb b/lib/oneview-sdk.rb index 2da0b4779..b12eae90b 100644 --- a/lib/oneview-sdk.rb +++ b/lib/oneview-sdk.rb @@ -13,6 +13,7 @@ require_relative 'oneview-sdk/exceptions' require_relative 'oneview-sdk/client' require_relative 'oneview-sdk/resource' +require_relative 'oneview-sdk/resource_helper' Dir[File.dirname(__FILE__) + '/oneview-sdk/resource/*.rb'].each { |file| require file } require_relative 'oneview-sdk/scmb' require_relative 'oneview-sdk/image_streamer' diff --git a/lib/oneview-sdk/version.rb b/lib/oneview-sdk/version.rb index d92857123..8fe51bbb8 100644 --- a/lib/oneview-sdk/version.rb +++ b/lib/oneview-sdk/version.rb @@ -11,5 +11,5 @@ # Gem version defined here module OneviewSDK - VERSION = '5.2.0'.freeze + VERSION = '5.3.0'.freeze end