antbird 0.7.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/build-os.yml +25 -23
- data/.github/workflows/build.yml +28 -28
- data/README.md +3 -3
- data/antbird.gemspec +5 -5
- data/lib/antbird/client.rb +0 -1
- data/lib/antbird/rest_api/rest_api_opensearch_v2_5.rb +1293 -0
- data/lib/antbird/rest_api/rest_api_opensearch_v2_6.rb +1301 -0
- data/lib/antbird/version.rb +1 -1
- metadata +20 -44
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e91ba361bc4490cb88b1ee24db63274a4be8a6c0c24b7e5e163fd5c0b35391ad
|
4
|
+
data.tar.gz: 6e35509765a5e2c31def5c183af39889d28d469fe149bcec801f406491e11093
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 705729918a35c3da34e3d258f77efdea461ca282830a69a90e4e9598b073b542316757d99516216005640ddd27d2e37d4ed86a0854163e1354e472c0f70aa7ac
|
7
|
+
data.tar.gz: 2e9d500c87bb0b63bcaf5b21d6c68f8d0c427ff921fbd934f561defeb88f426e6803c71a322d37a62c68694f3b9c96cfa3e4885925455c617c9e6aa6356a4cfa
|
@@ -13,15 +13,17 @@ jobs:
|
|
13
13
|
matrix:
|
14
14
|
# https://github.com/opensearch-project/OpenSearch/releases
|
15
15
|
search_versions:
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
16
|
+
- 2.6.0
|
17
|
+
- 2.5.0
|
18
|
+
- 2.4.1
|
19
|
+
- 2.3.0
|
20
|
+
- 2.2.1
|
21
|
+
- 2.1.0
|
22
|
+
- 2.0.1
|
23
|
+
- 1.3.6
|
24
|
+
- 1.2.4
|
25
|
+
- 1.1.0
|
26
|
+
- 1.0.0
|
25
27
|
services:
|
26
28
|
opensearch:
|
27
29
|
image: opensearchproject/opensearch:${{matrix.search_versions}}
|
@@ -31,17 +33,17 @@ jobs:
|
|
31
33
|
discovery.type: single-node
|
32
34
|
plugins.security.disabled: true
|
33
35
|
steps:
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
36
|
+
- name: Configure sysctl limits
|
37
|
+
run: |
|
38
|
+
sudo swapoff -a
|
39
|
+
sudo sysctl -w vm.swappiness=1
|
40
|
+
sudo sysctl -w fs.file-max=262144
|
41
|
+
sudo sysctl -w vm.max_map_count=262144
|
42
|
+
- uses: actions/checkout@v2
|
43
|
+
- uses: ruby/setup-ruby@v1
|
44
|
+
with:
|
45
|
+
ruby-version: "3.2"
|
46
|
+
bundler-cache: true
|
47
|
+
- name: Wait for OpenSearch
|
48
|
+
run: timeout 60 bash -c "until curl --silent --output /dev/null localhost:9200/_cat/health?h=st; do printf '.'; sleep 5; done; printf '\n'"
|
49
|
+
- run: bundle exec rspec
|
data/.github/workflows/build.yml
CHANGED
@@ -14,32 +14,32 @@ jobs:
|
|
14
14
|
# 1. Run script/list_versions
|
15
15
|
# 2. Check https://www.elastic.co/jp/support/eol
|
16
16
|
search_versions:
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
17
|
+
- 7.15.2
|
18
|
+
- 7.14.2
|
19
|
+
- 7.13.4
|
20
|
+
- 7.12.1
|
21
|
+
- 7.11.2
|
22
|
+
- 7.10.2
|
23
|
+
- 7.9.3
|
24
|
+
- 7.8.1
|
25
|
+
- 6.8.18
|
26
26
|
steps:
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
27
|
+
# @see https://github.com/elastic/elastic-github-actions/tree/master/elasticsearch
|
28
|
+
- name: Configure sysctl limits for Elasticsearch
|
29
|
+
run: |
|
30
|
+
sudo swapoff -a
|
31
|
+
sudo sysctl -w vm.swappiness=1
|
32
|
+
sudo sysctl -w fs.file-max=262144
|
33
|
+
sudo sysctl -w vm.max_map_count=262144
|
34
|
+
- name: Runs Elasticsearch
|
35
|
+
uses: elastic/elastic-github-actions/elasticsearch@master
|
36
|
+
with:
|
37
|
+
stack-version: ${{matrix.search_versions}}
|
38
|
+
- uses: actions/checkout@v2
|
39
|
+
- uses: ruby/setup-ruby@v1
|
40
|
+
with:
|
41
|
+
ruby-version: "3.2"
|
42
|
+
bundler-cache: true
|
43
|
+
- name: Wait for elasticsearch
|
44
|
+
run: timeout 60 bash -c "until curl --silent --output /dev/null localhost:9200/_cat/health?h=st; do printf '.'; sleep 5; done; printf '\n'"
|
45
|
+
- run: bundle exec rspec
|
data/README.md
CHANGED
@@ -43,7 +43,7 @@ client = Antbird::Client.new(
|
|
43
43
|
|
44
44
|
# OR
|
45
45
|
|
46
|
-
require '
|
46
|
+
require 'faraday/net_http_persistent'
|
47
47
|
require 'faraday_middleware/aws_sigv4'
|
48
48
|
client = Antbird::Client.new(
|
49
49
|
url: ENV['AMAZON_ELASTICSEARCH_SERVICE_URL'],
|
@@ -116,9 +116,9 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/fukaya
|
|
116
116
|
### How to support newer version of Elasticsearch/OpenSearch
|
117
117
|
|
118
118
|
1. Add Elasticsearch version to `jobs.build.strategy.matrix.search_versions` on `.github/workflows/build.yml` / `.github/workflows/build-os.yml`
|
119
|
-
|
119
|
+
- Only one line for `x.y.*` version
|
120
120
|
1. `script/generate_api_methods`
|
121
|
-
|
121
|
+
- Set `GITHUB_TOKEN=***` env for GitHub API Limit
|
122
122
|
|
123
123
|
## License
|
124
124
|
|
data/antbird.gemspec
CHANGED
@@ -20,14 +20,14 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.bindir = "exe"
|
21
21
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
22
|
spec.require_paths = ["lib"]
|
23
|
+
spec.required_ruby_version = ">= 2.7.0"
|
23
24
|
|
24
|
-
spec.add_dependency "faraday", "
|
25
|
-
spec.add_dependency 'faraday_middleware', "> 0.12", "< 2.0"
|
25
|
+
spec.add_dependency "faraday", ">= 2.0.1"
|
26
26
|
|
27
|
-
spec.add_development_dependency "
|
27
|
+
spec.add_development_dependency "faraday-retry"
|
28
|
+
spec.add_development_dependency "faraday-net_http_persistent"
|
28
29
|
spec.add_development_dependency "bundler", "> 1.16", "< 3.0"
|
29
30
|
spec.add_development_dependency "rake", "~> 13.0"
|
30
31
|
spec.add_development_dependency "rspec", "~> 3.0"
|
31
|
-
spec.add_development_dependency "octokit"
|
32
|
-
spec.add_development_dependency "pry-byebug", "~> 3.0"
|
32
|
+
spec.add_development_dependency "octokit"
|
33
33
|
end
|