elastic-transport 8.5.1 → 8.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +14 -0
  3. data/lib/elastic/transport/client.rb +1 -1
  4. data/lib/elastic/transport/transport/base.rb +5 -10
  5. data/lib/elastic/transport/transport/http/manticore.rb +7 -5
  6. data/lib/elastic/transport/transport/serializer/multi_json.rb +16 -2
  7. data/lib/elastic/transport/version.rb +1 -1
  8. metadata +7 -77
  9. data/.github/check_license_headers.rb +0 -33
  10. data/.github/license-header.txt +0 -16
  11. data/.github/workflows/license.yml +0 -13
  12. data/.github/workflows/otel.yml +0 -48
  13. data/.github/workflows/tests.yml +0 -86
  14. data/.gitignore +0 -19
  15. data/Gemfile +0 -39
  16. data/Gemfile-faraday1.gemfile +0 -40
  17. data/Rakefile +0 -133
  18. data/elastic-transport.gemspec +0 -74
  19. data/spec/elastic/connections/collection_spec.rb +0 -266
  20. data/spec/elastic/connections/selector_spec.rb +0 -166
  21. data/spec/elastic/transport/base_spec.rb +0 -265
  22. data/spec/elastic/transport/client_spec.rb +0 -1804
  23. data/spec/elastic/transport/http/curb_spec.rb +0 -126
  24. data/spec/elastic/transport/http/faraday_spec.rb +0 -141
  25. data/spec/elastic/transport/http/manticore_spec.rb +0 -164
  26. data/spec/elastic/transport/meta_header_spec.rb +0 -289
  27. data/spec/elastic/transport/opentelemetry_spec.rb +0 -356
  28. data/spec/elastic/transport/sniffer_spec.rb +0 -293
  29. data/spec/spec_helper.rb +0 -104
  30. data/test/integration/jruby_test.rb +0 -46
  31. data/test/integration/transport_test.rb +0 -144
  32. data/test/profile/client_benchmark_test.rb +0 -132
  33. data/test/test_helper.rb +0 -86
  34. data/test/unit/adapters_test.rb +0 -114
  35. data/test/unit/connection_test.rb +0 -133
  36. data/test/unit/response_test.rb +0 -30
  37. data/test/unit/serializer_test.rb +0 -33
  38. data/test/unit/transport_base_test.rb +0 -663
  39. data/test/unit/transport_curb_test.rb +0 -148
  40. data/test/unit/transport_faraday_test.rb +0 -251
  41. data/test/unit/transport_manticore_test.rb +0 -279
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9697d896f72f8c7b17a78fadaf46850be17eddb10e23b52d4ded197d9d157f2b
4
- data.tar.gz: 8d843d8d6e06f1d035310a9c729167f5f593dbf1b13a4c6c29a8a95d00f9a360
3
+ metadata.gz: d1367aa286a53be8c0c3f93320afebd83849057b5aef6bead07660876cfbffc2
4
+ data.tar.gz: 2c795f10b5863477f782690af3791a50abdb8d05eeb4e40c5ba901a49f2ecf38
5
5
  SHA512:
6
- metadata.gz: 552bb0b98adf66097f9b48c4ae7fabdc6eee854cfa2382ac383f09858ce52b248e8e57fded3b484a5abdaa352515fb7d2b0a98f4acc60784d824b4c93f50227e
7
- data.tar.gz: f5b3d737c0e3c614d4f9234be0e21d07e80b6a545dcca60a735a7762308e34bf75888d731b7860bc938c8c1f1e5238e3bb2343cce543bcec49ba2cd92a571404
6
+ metadata.gz: 62b1b3175922a1999e8bace0eb9acbf7d3de89e3e12acc34d93f7bbe89353fae797fb39fa345d363d12d5ca1557ddbefdf7252aa3dd5e356bffffd764439e374
7
+ data.tar.gz: a34e264fd4f799322b737bcaa8647676367e823377c90cc3fa4b3979298bdb62ce2969c17d5aca4dfa6d95988b27ff209c77079f60001c03d449d983b2d1f403
data/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## 8.5.3
2
+
3
+ - Locks oj development dependency to >= 3.17.3 due to CVE
4
+ - Checks if @otel is defined
5
+ - Removes outdated Oj code
6
+
7
+ ## 8.5.2
8
+
9
+ - Minor refactor to `curb` implementation.
10
+ - Updated `yard` development dependency to `> 0.9.42`.
11
+ - Fix `multi_json` deprecation warnings. Some deprecations [were introduced in `multi_json` 1.21.0](https://github.com/sferik/multi_json/blob/main/CHANGELOG.md#1210). Pull Request: [#112](https://github.com/elastic/elastic-transport-ruby/pull/112).
12
+ - Reduced gem size. Pull Request: [#114](https://github.com/elastic/elastic-transport-ruby/pull/114).
13
+ - Addresses duplicate `content-type` header in Manticore. Pull Request: [#115](https://github.com/elastic/elastic-transport-ruby/pull/115).
14
+
1
15
  ## 8.5.1
2
16
 
3
17
  - Fixes setting OpenTelemetry response status code only if available.
@@ -169,7 +169,7 @@ module Elastic
169
169
  def perform_request(method, path, params = {}, body = nil, headers = nil, opts = {})
170
170
  method = @send_get_body_as if method == 'GET' && body
171
171
  validate_ca_fingerprints if @ca_fingerprint
172
- if @otel
172
+ if defined?(@otel) && !@otel.nil?
173
173
  # If no endpoint is specified in the opts, use the HTTP method name
174
174
  span_name = opts[:endpoint] || method
175
175
  @otel.tracer.in_span(span_name) do |span|
@@ -356,15 +356,10 @@ module Elastic
356
356
  end
357
357
 
358
358
  if response.body &&
359
- !response.body.empty? &&
360
- response.headers &&
361
- response.headers["content-type"] =~ /json/
362
-
363
- # Prevent Float value from automatically becoming BigDecimal when using Oj
364
- load_options = {}
365
- load_options[:mode] = :compat if ::MultiJson.adapter.to_s == "MultiJson::Adapters::Oj"
366
-
367
- json = serializer.load(response.body, load_options)
359
+ !response.body.empty? &&
360
+ response.headers &&
361
+ response.headers['content-type'] =~ /json/
362
+ json = serializer.load(response.body)
368
363
  end
369
364
  took = (json['took'] ? sprintf('%.3fs', json['took'] / 1000.0) : 'n/a') rescue 'n/a'
370
365
  __log_response(method, path, params, body, url, response, json, took, duration) unless ignore.include?(response.status.to_i)
@@ -396,7 +391,7 @@ module Elastic
396
391
  ACCEPT_ENCODING = 'Accept-Encoding'.freeze
397
392
  CONTENT_ENCODING = 'Content-Encoding'.freeze
398
393
  CONTENT_TYPE_STR = 'Content-Type'.freeze
399
- CONTENT_TYPE_REGEX = /content-?_?type/.freeze
394
+ CONTENT_TYPE_REGEX = /content-?_?type/i.freeze
400
395
  DEFAULT_CONTENT_TYPE = 'application/json'.freeze
401
396
  GZIP = 'gzip'.freeze
402
397
  GZIP_FIRST_TWO_BYTES = '1f8b'.freeze
@@ -64,11 +64,10 @@ module Elastic
64
64
 
65
65
  def initialize(arguments = {}, &block)
66
66
  @request_options = {
67
- headers: (
67
+ headers:
68
68
  arguments.dig(:transport_options, :headers) ||
69
69
  arguments.dig(:options, :transport_options, :headers) ||
70
70
  {}
71
- )
72
71
  }
73
72
  @manticore = build_client(arguments[:options] || {})
74
73
  super(arguments, &block)
@@ -78,7 +77,6 @@ module Elastic
78
77
  def build_client(options = {})
79
78
  client_options = options[:transport_options] || {}
80
79
  client_options[:ssl] = options[:ssl] || {}
81
-
82
80
  @manticore = ::Manticore::Client.new(client_options)
83
81
  end
84
82
 
@@ -120,7 +118,6 @@ module Elastic
120
118
  #
121
119
  def __build_connections
122
120
  apply_headers(options)
123
-
124
121
  Connections::Collection.new(
125
122
  connections: hosts.map do |host|
126
123
  host[:protocol] = host[:scheme] || DEFAULT_PROTOCOL
@@ -169,7 +166,12 @@ module Elastic
169
166
 
170
167
  def apply_headers(options)
171
168
  headers = options[:headers].clone || options.dig(:transport_options, :headers).clone || {}
172
- headers[CONTENT_TYPE_STR] = find_value(headers, CONTENT_TYPE_REGEX) || DEFAULT_CONTENT_TYPE
169
+ if (value = find_value(headers, CONTENT_TYPE_REGEX))
170
+ @request_options[:headers].reject! { |k, _| k.match? CONTENT_TYPE_REGEX }
171
+ headers[CONTENT_TYPE_STR] = value
172
+ else
173
+ headers[CONTENT_TYPE_STR] = DEFAULT_CONTENT_TYPE
174
+ end
173
175
  headers[USER_AGENT_STR] = find_value(headers, USER_AGENT_REGEX) || find_value(@request_options[:headers], USER_AGENT_REGEX) || user_agent_header
174
176
  headers[ACCEPT_ENCODING] = GZIP if use_compression?
175
177
  @request_options[:headers].merge!(headers)
@@ -37,13 +37,27 @@ module Elastic
37
37
  # De-serialize a Hash from JSON string
38
38
  #
39
39
  def load(string, options = {})
40
- ::MultiJson.load(string, options)
40
+ if deprecated_gem_version_loaded?
41
+ ::MultiJson.load(string, options)
42
+ else
43
+ ::MultiJSON.parse(string, options)
44
+ end
41
45
  end
42
46
 
43
47
  # Serialize a Hash to JSON string
44
48
  #
45
49
  def dump(object, options = {})
46
- ::MultiJson.dump(object, options)
50
+ if deprecated_gem_version_loaded?
51
+ ::MultiJson.dump(object, options)
52
+ else
53
+ ::MultiJSON.generate(object, options)
54
+ end
55
+ end
56
+
57
+ private
58
+
59
+ def deprecated_gem_version_loaded?
60
+ Gem.loaded_specs['multi_json'].version < Gem::Version.create('1.21.0')
47
61
  end
48
62
  end
49
63
  end
@@ -17,6 +17,6 @@
17
17
 
18
18
  module Elastic
19
19
  module Transport
20
- VERSION = '8.5.1'.freeze
20
+ VERSION = '8.5.3'.freeze
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elastic-transport
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.5.1
4
+ version: 8.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic Client Library Maintainers
@@ -37,20 +37,6 @@ dependencies:
37
37
  - - ">="
38
38
  - !ruby/object:Gem::Version
39
39
  version: '0'
40
- - !ruby/object:Gem::Dependency
41
- name: curb
42
- requirement: !ruby/object:Gem::Requirement
43
- requirements:
44
- - - ">="
45
- - !ruby/object:Gem::Version
46
- version: '0'
47
- type: :development
48
- prerelease: false
49
- version_requirements: !ruby/object:Gem::Requirement
50
- requirements:
51
- - - ">="
52
- - !ruby/object:Gem::Version
53
- version: '0'
54
40
  - !ruby/object:Gem::Dependency
55
41
  name: bundler
56
42
  requirement: !ruby/object:Gem::Requirement
@@ -237,16 +223,16 @@ dependencies:
237
223
  name: yard
238
224
  requirement: !ruby/object:Gem::Requirement
239
225
  requirements:
240
- - - ">="
226
+ - - ">"
241
227
  - !ruby/object:Gem::Version
242
- version: '0'
228
+ version: 0.9.42
243
229
  type: :development
244
230
  prerelease: false
245
231
  version_requirements: !ruby/object:Gem::Requirement
246
232
  requirements:
247
- - - ">="
233
+ - - ">"
248
234
  - !ruby/object:Gem::Version
249
- version: '0'
235
+ version: 0.9.42
250
236
  description: 'Low level Ruby client for Elastic. See the `elasticsearch` or `elastic-enterprise-search`
251
237
  gems for full integration.
252
238
 
@@ -259,20 +245,10 @@ extra_rdoc_files:
259
245
  - LICENSE
260
246
  - README.md
261
247
  files:
262
- - ".github/check_license_headers.rb"
263
- - ".github/license-header.txt"
264
- - ".github/workflows/license.yml"
265
- - ".github/workflows/otel.yml"
266
- - ".github/workflows/tests.yml"
267
- - ".gitignore"
268
248
  - CHANGELOG.md
269
249
  - CONTRIBUTING.md
270
- - Gemfile
271
- - Gemfile-faraday1.gemfile
272
250
  - LICENSE
273
251
  - README.md
274
- - Rakefile
275
- - elastic-transport.gemspec
276
252
  - lib/elastic-transport.rb
277
253
  - lib/elastic/transport.rb
278
254
  - lib/elastic/transport/client.rb
@@ -292,29 +268,6 @@ files:
292
268
  - lib/elastic/transport/transport/serializer/multi_json.rb
293
269
  - lib/elastic/transport/transport/sniffer.rb
294
270
  - lib/elastic/transport/version.rb
295
- - spec/elastic/connections/collection_spec.rb
296
- - spec/elastic/connections/selector_spec.rb
297
- - spec/elastic/transport/base_spec.rb
298
- - spec/elastic/transport/client_spec.rb
299
- - spec/elastic/transport/http/curb_spec.rb
300
- - spec/elastic/transport/http/faraday_spec.rb
301
- - spec/elastic/transport/http/manticore_spec.rb
302
- - spec/elastic/transport/meta_header_spec.rb
303
- - spec/elastic/transport/opentelemetry_spec.rb
304
- - spec/elastic/transport/sniffer_spec.rb
305
- - spec/spec_helper.rb
306
- - test/integration/jruby_test.rb
307
- - test/integration/transport_test.rb
308
- - test/profile/client_benchmark_test.rb
309
- - test/test_helper.rb
310
- - test/unit/adapters_test.rb
311
- - test/unit/connection_test.rb
312
- - test/unit/response_test.rb
313
- - test/unit/serializer_test.rb
314
- - test/unit/transport_base_test.rb
315
- - test/unit/transport_curb_test.rb
316
- - test/unit/transport_faraday_test.rb
317
- - test/unit/transport_manticore_test.rb
318
271
  homepage: https://github.com/elastic/elastic-transport-ruby
319
272
  licenses:
320
273
  - Apache-2.0
@@ -338,30 +291,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
338
291
  - !ruby/object:Gem::Version
339
292
  version: '0'
340
293
  requirements: []
341
- rubygems_version: 4.0.3
294
+ rubygems_version: 4.0.12
342
295
  specification_version: 4
343
296
  summary: Low level Ruby client for Elastic services.
344
- test_files:
345
- - spec/elastic/connections/collection_spec.rb
346
- - spec/elastic/connections/selector_spec.rb
347
- - spec/elastic/transport/base_spec.rb
348
- - spec/elastic/transport/client_spec.rb
349
- - spec/elastic/transport/http/curb_spec.rb
350
- - spec/elastic/transport/http/faraday_spec.rb
351
- - spec/elastic/transport/http/manticore_spec.rb
352
- - spec/elastic/transport/meta_header_spec.rb
353
- - spec/elastic/transport/opentelemetry_spec.rb
354
- - spec/elastic/transport/sniffer_spec.rb
355
- - spec/spec_helper.rb
356
- - test/integration/jruby_test.rb
357
- - test/integration/transport_test.rb
358
- - test/profile/client_benchmark_test.rb
359
- - test/test_helper.rb
360
- - test/unit/adapters_test.rb
361
- - test/unit/connection_test.rb
362
- - test/unit/response_test.rb
363
- - test/unit/serializer_test.rb
364
- - test/unit/transport_base_test.rb
365
- - test/unit/transport_curb_test.rb
366
- - test/unit/transport_faraday_test.rb
367
- - test/unit/transport_manticore_test.rb
297
+ test_files: []
@@ -1,33 +0,0 @@
1
- # Licensed to Elasticsearch B.V. under one or more contributor
2
- # license agreements. See the NOTICE file distributed with
3
- # this work for additional information regarding copyright
4
- # ownership. Elasticsearch B.V. licenses this file to you under
5
- # the Apache License, Version 2.0 (the "License"); you may
6
- # not use this file except in compliance with the License.
7
- # You may obtain a copy of the License at
8
- #
9
- # http://www.apache.org/licenses/LICENSE-2.0
10
- #
11
- # Unless required by applicable law or agreed to in writing,
12
- # software distributed under the License is distributed on an
13
- # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- # KIND, either express or implied. See the License for the
15
- # specific language governing permissions and limitations
16
- # under the License.
17
-
18
- LICENSE = File.read('./.github/license-header.txt')
19
- files = `git ls-files | grep -E '\.rb|Rakefile|\.rake|\.erb|Gemfile|gemspec'`.split("\n")
20
- errors = []
21
-
22
- files.each do |file|
23
- unless File.read(file).include?(LICENSE)
24
- errors << file
25
- puts "#{file} doesn't contain the correct license header"
26
- end
27
- end
28
-
29
- if errors.empty?
30
- puts 'All checked files have the correct license header'
31
- else
32
- exit 1
33
- end
@@ -1,16 +0,0 @@
1
- # Licensed to Elasticsearch B.V. under one or more contributor
2
- # license agreements. See the NOTICE file distributed with
3
- # this work for additional information regarding copyright
4
- # ownership. Elasticsearch B.V. licenses this file to you under
5
- # the Apache License, Version 2.0 (the "License"); you may
6
- # not use this file except in compliance with the License.
7
- # You may obtain a copy of the License at
8
- #
9
- # http://www.apache.org/licenses/LICENSE-2.0
10
- #
11
- # Unless required by applicable law or agreed to in writing,
12
- # software distributed under the License is distributed on an
13
- # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- # KIND, either express or implied. See the License for the
15
- # specific language governing permissions and limitations
16
- # under the License.
@@ -1,13 +0,0 @@
1
- name: License headers
2
- on: [pull_request]
3
- jobs:
4
- build:
5
- runs-on: ubuntu-latest
6
- steps:
7
- - uses: actions/checkout@v4
8
- - uses: ruby/setup-ruby@v1
9
- with:
10
- ruby-version: '4.0'
11
- - name: Check license headers
12
- run: |
13
- ruby ./.github/check_license_headers.rb
@@ -1,48 +0,0 @@
1
- name: opentelemetry
2
- on:
3
- push:
4
- branches:
5
- - main
6
- pull_request:
7
- branches:
8
- - main
9
- jobs:
10
- test-otel:
11
- name: 'Test Open Telemetry'
12
- env:
13
- TEST_ES_SERVER: http://localhost:9250
14
- PORT: 9250
15
- TEST_WITH_OTEL: true
16
- strategy:
17
- fail-fast: false
18
- matrix:
19
- ruby: ['4.0', 'jruby-9.4']
20
- es_version: ['9.4.0-SNAPSHOT']
21
- runs-on: ubuntu-latest
22
- steps:
23
- - uses: actions/checkout@v4
24
- - name: Increase system limits
25
- run: |
26
- sudo swapoff -a
27
- sudo sysctl -w vm.swappiness=1
28
- sudo sysctl -w fs.file-max=262144
29
- sudo sysctl -w vm.max_map_count=262144
30
- - uses: elastic/elastic-github-actions/elasticsearch@master
31
- with:
32
- stack-version: ${{ matrix.es_version }}
33
- security-enabled: false
34
- - uses: ruby/setup-ruby@v1
35
- with:
36
- ruby-version: ${{ matrix.ruby }}
37
- - name: Build and test with Rake
38
- run: |
39
- sudo apt-get update
40
- sudo apt-get install libcurl4-openssl-dev
41
- ruby -v
42
- bundle install
43
- - name: unit tests
44
- run: bundle exec rake test:unit
45
- - name: specs
46
- run: bundle exec rake test:spec
47
- - name: integration tests
48
- run: bundle exec rake test:integration
@@ -1,86 +0,0 @@
1
- name: 8.5 tests
2
- on:
3
- push:
4
- branches:
5
- - 8.5
6
- pull_request:
7
- branches:
8
- - 8.5
9
- workflow_dispatch:
10
- jobs:
11
- test:
12
- name: 'Main tests'
13
- env:
14
- TEST_ES_SERVER: http://localhost:9250
15
- PORT: 9250
16
- strategy:
17
- fail-fast: false
18
- matrix:
19
- ruby: ['3.2', '3.3', '3.4', '4.0', 'jruby-9.3', 'jruby-9.4', 'jruby-10.0']
20
- es_version: ['8.19.14-SNAPSHOT', '9.2.8-SNAPSHOT', '9.3.3-SNAPSHOT', '9.4.0-SNAPSHOT']
21
- runs-on: ubuntu-latest
22
- steps:
23
- - uses: actions/checkout@v4
24
- - name: Increase system limits
25
- run: |
26
- sudo swapoff -a
27
- sudo sysctl -w vm.swappiness=1
28
- sudo sysctl -w fs.file-max=262144
29
- sudo sysctl -w vm.max_map_count=262144
30
- - uses: elastic/elastic-github-actions/elasticsearch@master
31
- with:
32
- stack-version: ${{ matrix.es_version }}
33
- security-enabled: false
34
- - uses: ruby/setup-ruby@v1
35
- with:
36
- ruby-version: ${{ matrix.ruby }}
37
- - name: Build and test with Rake
38
- run: |
39
- sudo apt-get update
40
- sudo apt-get install libcurl4-openssl-dev
41
- ruby -v
42
- bundle install
43
- - name: unit tests
44
- run: bundle exec rake test:unit
45
- - name: specs
46
- run: bundle exec rake test:spec
47
- - name: integration tests
48
- run: bundle exec rake test:integration
49
- test-faraday1:
50
- name: 'Test Faraday 1'
51
- env:
52
- TEST_ES_SERVER: http://localhost:9250
53
- PORT: 9250
54
- strategy:
55
- fail-fast: false
56
- matrix:
57
- ruby: ['3.0', '3.1', '3.2', '3.3', 'jruby-9.3']
58
- es_version: ['8.19.14-SNAPSHOT']
59
- runs-on: ubuntu-latest
60
- steps:
61
- - uses: actions/checkout@v4
62
- - name: Increase system limits
63
- run: |
64
- sudo swapoff -a
65
- sudo sysctl -w vm.swappiness=1
66
- sudo sysctl -w fs.file-max=262144
67
- sudo sysctl -w vm.max_map_count=262144
68
- - uses: elastic/elastic-github-actions/elasticsearch@master
69
- with:
70
- stack-version: ${{ matrix.es_version }}
71
- security-enabled: false
72
- - uses: ruby/setup-ruby@v1
73
- with:
74
- ruby-version: ${{ matrix.ruby }}
75
- - name: Build and test with Rake
76
- run: |
77
- sudo apt-get update
78
- sudo apt-get install libcurl4-openssl-dev
79
- ruby -v
80
- BUNDLE_GEMFILE=./Gemfile-faraday1.gemfile bundle install
81
- - name: faraday1 unit tests
82
- run: BUNDLE_GEMFILE=./Gemfile-faraday1.gemfile bundle exec rake test:faraday1:unit
83
- - name: specs
84
- run: BUNDLE_GEMFILE=./Gemfile-faraday1.gemfile bundle exec rake test:faraday1:spec
85
- - name: integration tests
86
- run: BUNDLE_GEMFILE=./Gemfile-faraday1.gemfile bundle exec rake test:faraday1:integration
data/.gitignore DELETED
@@ -1,19 +0,0 @@
1
- *.gem
2
- *.rbc
3
- *.log
4
- .byebug_history
5
- .bundle
6
- .config
7
- .yardoc
8
- Gemfile*.lock
9
- InstalledFiles
10
- _yardoc
11
- coverage
12
- doc/
13
- lib/bundler/man
14
- pkg
15
- rdoc
16
- spec/reports
17
- test/tmp
18
- test/version_tmp
19
- tmp
data/Gemfile DELETED
@@ -1,39 +0,0 @@
1
- # Licensed to Elasticsearch B.V. under one or more contributor
2
- # license agreements. See the NOTICE file distributed with
3
- # this work for additional information regarding copyright
4
- # ownership. Elasticsearch B.V. licenses this file to you under
5
- # the Apache License, Version 2.0 (the "License"); you may
6
- # not use this file except in compliance with the License.
7
- # You may obtain a copy of the License at
8
- #
9
- # http://www.apache.org/licenses/LICENSE-2.0
10
- #
11
- # Unless required by applicable law or agreed to in writing,
12
- # software distributed under the License is distributed on an
13
- # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- # KIND, either express or implied. See the License for the
15
- # specific language governing permissions and limitations
16
- # under the License.
17
-
18
- source 'https://rubygems.org'
19
-
20
- # Specify your gem's dependencies in elasticsearch-transport.gemspec
21
- gemspec
22
-
23
- group :development, :test do
24
- gem 'faraday-excon'
25
- gem 'faraday-httpclient'
26
- gem 'faraday-net_http_persistent'
27
- gem 'faraday-typhoeus'
28
- gem 'mutex_m' if RUBY_VERSION >= '3.4'
29
- gem 'opentelemetry-sdk', require: false if RUBY_VERSION >= '3.0'
30
- if defined?(JRUBY_VERSION)
31
- gem 'pry-nav'
32
- else
33
- gem 'async-http-faraday'
34
- gem 'faraday-patron'
35
- gem 'oj'
36
- gem 'debug'
37
- end
38
- gem 'rspec'
39
- end
@@ -1,40 +0,0 @@
1
- # Licensed to Elasticsearch B.V. under one or more contributor
2
- # license agreements. See the NOTICE file distributed with
3
- # this work for additional information regarding copyright
4
- # ownership. Elasticsearch B.V. licenses this file to you under
5
- # the Apache License, Version 2.0 (the "License"); you may
6
- # not use this file except in compliance with the License.
7
- # You may obtain a copy of the License at
8
- #
9
- # http://www.apache.org/licenses/LICENSE-2.0
10
- #
11
- # Unless required by applicable law or agreed to in writing,
12
- # software distributed under the License is distributed on an
13
- # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- # KIND, either express or implied. See the License for the
15
- # specific language governing permissions and limitations
16
- # under the License.
17
-
18
- source 'https://rubygems.org'
19
-
20
- # Usage:
21
- #
22
- # $ BUNDLE_GEMFILE=./Gemfile-faraday1.gemfile bundle install
23
- # $ BUNDLE_GEMFILE=./Gemfile-faraday1.gemfile bundle exec rake test:faraday1:unit
24
-
25
- gem 'faraday', '~> 1'
26
- gemspec
27
-
28
- group :development, :test do
29
- gem 'httpclient'
30
- gem 'net-http-persistent'
31
- gem 'rspec'
32
- gem 'typhoeus'
33
- if defined?(JRUBY_VERSION)
34
- gem 'pry-nav'
35
- else
36
- gem 'debug'
37
- gem 'oj'
38
- gem 'patron'
39
- end
40
- end