Skip to content

Commit

Permalink
#
Browse files Browse the repository at this point in the history
Signed-off-by: Theo Truong <theotr@amazon.com>
  • Loading branch information
nhtruong committed Feb 3, 2025
1 parent 2bbf09b commit 45f89a4
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
env:
TEST_OPENSEARCH_SERVER: http://localhost:9250
PORT: 9250
FARADAY_VERSION: '~> 1.0'
FARADAY_VERSION: '~> 1'
strategy:
fail-fast: false
matrix:
Expand Down
27 changes: 16 additions & 11 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ source 'https://rubygems.org'

gem 'opensearch-ruby', path: __dir__, require: false

# TODO: remove unnecessary dependencies
gem 'ansi'
gem 'bundler'
gem 'cane'
Expand All @@ -54,15 +55,19 @@ gem 'typhoeus', '~> 1.4'
gem 'webmock', '~> 2.0'
gem 'yard'

gem 'curb' unless defined? JRUBY_VERSION
gem 'faraday-patron' unless defined? JRUBY_VERSION
gem 'patron' unless defined? JRUBY_VERSION
if defined? JRUBY_VERSION
gem 'manticore'
gem 'pry-nav'
else
gem 'curb'
gem 'faraday-patron'
gem 'patron'
gem 'require-prof'
gem 'ruby-prof'
end

gem 'require-prof' unless defined?(JRUBY_VERSION) || defined?(Rubinius)
gem 'ruby-prof' unless defined?(JRUBY_VERSION) || defined?(Rubinius)

gem 'manticore' if defined? JRUBY_VERSION
gem 'pry-nav' if defined? JRUBY_VERSION

gem 'faraday', ENV.fetch('FARADAY_VERSION', nil), require: false if ENV.key?('FARADAY_VERSION')
gem 'faraday-typhoeus' if !ENV.key?('FARADAY_VERSION') && Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('2.6')
if ENV.key?('FARADAY_VERSION')
gem 'faraday', ENV.fetch('FARADAY_VERSION'), require: false
else
gem 'faraday-typhoeus'
end

0 comments on commit 45f89a4

Please sign in to comment.