From 503ad3ceed7fbb1ea8b95ee4921e1400523999d6 Mon Sep 17 00:00:00 2001 From: Earlopain <14981592+Earlopain@users.noreply.github.com> Date: Mon, 18 Sep 2023 18:24:55 +0200 Subject: [PATCH] Missing require (#206) * Fix missing version require not triggering ci failure bundle exec loads gem/version through the gemspec file CI doesn't need bundle exec since each gem will only be available once anyways Signed-off-by: Earlopain <14981592+Earlopain@users.noreply.github.com> --- .github/workflows/compatibility.yml | 4 ++-- .github/workflows/main.yml | 6 +++--- .github/workflows/test-unreleased.yml | 2 +- CHANGELOG.md | 1 + lib/opensearch.rb | 1 + 5 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/compatibility.yml b/.github/workflows/compatibility.yml index d4cf35b3c..a8a25b3e7 100644 --- a/.github/workflows/compatibility.yml +++ b/.github/workflows/compatibility.yml @@ -43,7 +43,7 @@ jobs: ruby -v bundle install - name: Run All Tests - run: bundle exec rake test:all + run: rake test:all test-opensearch-security: env: @@ -77,4 +77,4 @@ jobs: ruby -v bundle install - name: opensearch-ruby - run: bundle exec rake test:client:security + run: rake test:client:security diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index abcd507ef..d4db8462a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -43,7 +43,7 @@ jobs: ruby -v bundle install - name: Run All Tests - run: bundle exec rake test:all + run: rake test:all test-opensearch-faraday-1: env: @@ -78,7 +78,7 @@ jobs: ruby -v bundle install - name: Test Faraday on Transport Layer - run: bundle exec rake test:transport:all + run: rake test:transport:all test-opensearch-security: env: @@ -112,4 +112,4 @@ jobs: ruby -v bundle install - name: Test Client Security - run: bundle exec rake test:client:security + run: rake test:client:security diff --git a/.github/workflows/test-unreleased.yml b/.github/workflows/test-unreleased.yml index 54416f56b..349446317 100644 --- a/.github/workflows/test-unreleased.yml +++ b/.github/workflows/test-unreleased.yml @@ -93,7 +93,7 @@ jobs: - name: opensearch-ruby working-directory: ruby-client - run: bundle exec rake test:integration + run: rake test:integration - name: Save server logs if: failure() diff --git a/CHANGELOG.md b/CHANGELOG.md index b85166f53..ece51a50f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) ### Deprecated ### Removed ### Fixed +- Fixed missing version require [#205](https://github.com/opensearch-project/opensearch-ruby/issues/205) ([#206](https://github.com/opensearch-project/opensearch-ruby/pull/206)) ### Security ## [3.0.0] diff --git a/lib/opensearch.rb b/lib/opensearch.rb index dacb76ef1..7f97f2daa 100644 --- a/lib/opensearch.rb +++ b/lib/opensearch.rb @@ -24,6 +24,7 @@ # specific language governing permissions and limitations # under the License. +require 'opensearch/version' require 'opensearch/transport' require 'opensearch/api'