antbird 0.7.0 → 0.8.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 +23 -23
- data/.github/workflows/build.yml +28 -28
- data/README.md +3 -3
- data/antbird.gemspec +4 -5
- data/lib/antbird/client.rb +0 -1
- data/lib/antbird/version.rb +1 -1
- metadata +15 -55
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 20734fb47741bca1ae8057ecd84981f05481fabd9d7764f4df121288b6436148
|
4
|
+
data.tar.gz: 146bd0eaa2a94ab72c79edc1cd7eef3979232d72fabb8fe4c04cdf52d5cbe6b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 362be327c7e3f4b619b341f86bc66d33255f53274167e9309a29a38099aeeb1496788e295e0d7ddd7c2d620be264e3bd8ace8989ccc6617082b5dabb950ed34e
|
7
|
+
data.tar.gz: bf5cf9898fa2a92ce3aa0cffd3723256320f418a3973a884199e205a320d1b9850d4624ea072cc12c5477037f674c8b61828325b925e5a24b85eb9a546ed90bf
|
@@ -13,15 +13,15 @@ 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.4.1
|
17
|
+
- 2.3.0
|
18
|
+
- 2.2.1
|
19
|
+
- 2.1.0
|
20
|
+
- 2.0.1
|
21
|
+
- 1.3.6
|
22
|
+
- 1.2.4
|
23
|
+
- 1.1.0
|
24
|
+
- 1.0.0
|
25
25
|
services:
|
26
26
|
opensearch:
|
27
27
|
image: opensearchproject/opensearch:${{matrix.search_versions}}
|
@@ -31,17 +31,17 @@ jobs:
|
|
31
31
|
discovery.type: single-node
|
32
32
|
plugins.security.disabled: true
|
33
33
|
steps:
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
34
|
+
- name: Configure sysctl limits
|
35
|
+
run: |
|
36
|
+
sudo swapoff -a
|
37
|
+
sudo sysctl -w vm.swappiness=1
|
38
|
+
sudo sysctl -w fs.file-max=262144
|
39
|
+
sudo sysctl -w vm.max_map_count=262144
|
40
|
+
- uses: actions/checkout@v2
|
41
|
+
- uses: ruby/setup-ruby@v1
|
42
|
+
with:
|
43
|
+
ruby-version: "3.2"
|
44
|
+
bundler-cache: true
|
45
|
+
- name: Wait for OpenSearch
|
46
|
+
run: timeout 60 bash -c "until curl --silent --output /dev/null localhost:9200/_cat/health?h=st; do printf '.'; sleep 5; done; printf '\n'"
|
47
|
+
- 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,13 @@ 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-net_http_persistent"
|
28
28
|
spec.add_development_dependency "bundler", "> 1.16", "< 3.0"
|
29
29
|
spec.add_development_dependency "rake", "~> 13.0"
|
30
30
|
spec.add_development_dependency "rspec", "~> 3.0"
|
31
|
-
spec.add_development_dependency "octokit"
|
32
|
-
spec.add_development_dependency "pry-byebug", "~> 3.0"
|
31
|
+
spec.add_development_dependency "octokit"
|
33
32
|
end
|
data/lib/antbird/client.rb
CHANGED
data/lib/antbird/version.rb
CHANGED
metadata
CHANGED
@@ -1,57 +1,31 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: antbird
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- fukayatsu
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0.8'
|
20
|
-
- - "<"
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: '2.0'
|
23
|
-
type: :runtime
|
24
|
-
prerelease: false
|
25
|
-
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
requirements:
|
27
|
-
- - ">"
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '0.8'
|
30
|
-
- - "<"
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: '2.0'
|
33
|
-
- !ruby/object:Gem::Dependency
|
34
|
-
name: faraday_middleware
|
35
|
-
requirement: !ruby/object:Gem::Requirement
|
36
|
-
requirements:
|
37
|
-
- - ">"
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: '0.12'
|
40
|
-
- - "<"
|
17
|
+
- - ">="
|
41
18
|
- !ruby/object:Gem::Version
|
42
|
-
version:
|
19
|
+
version: 2.0.1
|
43
20
|
type: :runtime
|
44
21
|
prerelease: false
|
45
22
|
version_requirements: !ruby/object:Gem::Requirement
|
46
23
|
requirements:
|
47
|
-
- - "
|
48
|
-
- !ruby/object:Gem::Version
|
49
|
-
version: '0.12'
|
50
|
-
- - "<"
|
24
|
+
- - ">="
|
51
25
|
- !ruby/object:Gem::Version
|
52
|
-
version:
|
26
|
+
version: 2.0.1
|
53
27
|
- !ruby/object:Gem::Dependency
|
54
|
-
name:
|
28
|
+
name: faraday-net_http_persistent
|
55
29
|
requirement: !ruby/object:Gem::Requirement
|
56
30
|
requirements:
|
57
31
|
- - ">="
|
@@ -116,30 +90,16 @@ dependencies:
|
|
116
90
|
name: octokit
|
117
91
|
requirement: !ruby/object:Gem::Requirement
|
118
92
|
requirements:
|
119
|
-
- - "
|
120
|
-
- !ruby/object:Gem::Version
|
121
|
-
version: '4.0'
|
122
|
-
type: :development
|
123
|
-
prerelease: false
|
124
|
-
version_requirements: !ruby/object:Gem::Requirement
|
125
|
-
requirements:
|
126
|
-
- - "~>"
|
127
|
-
- !ruby/object:Gem::Version
|
128
|
-
version: '4.0'
|
129
|
-
- !ruby/object:Gem::Dependency
|
130
|
-
name: pry-byebug
|
131
|
-
requirement: !ruby/object:Gem::Requirement
|
132
|
-
requirements:
|
133
|
-
- - "~>"
|
93
|
+
- - ">="
|
134
94
|
- !ruby/object:Gem::Version
|
135
|
-
version: '
|
95
|
+
version: '0'
|
136
96
|
type: :development
|
137
97
|
prerelease: false
|
138
98
|
version_requirements: !ruby/object:Gem::Requirement
|
139
99
|
requirements:
|
140
|
-
- - "
|
100
|
+
- - ">="
|
141
101
|
- !ruby/object:Gem::Version
|
142
|
-
version: '
|
102
|
+
version: '0'
|
143
103
|
description: Antbird is a yet another low level API client for the Elasticsearch HTTP
|
144
104
|
interface.
|
145
105
|
email:
|
@@ -199,7 +159,7 @@ homepage: https://github.com/fukayatsu/antbird
|
|
199
159
|
licenses:
|
200
160
|
- MIT
|
201
161
|
metadata: {}
|
202
|
-
post_install_message:
|
162
|
+
post_install_message:
|
203
163
|
rdoc_options: []
|
204
164
|
require_paths:
|
205
165
|
- lib
|
@@ -207,7 +167,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
207
167
|
requirements:
|
208
168
|
- - ">="
|
209
169
|
- !ruby/object:Gem::Version
|
210
|
-
version:
|
170
|
+
version: 2.7.0
|
211
171
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
212
172
|
requirements:
|
213
173
|
- - ">="
|
@@ -215,7 +175,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
215
175
|
version: '0'
|
216
176
|
requirements: []
|
217
177
|
rubygems_version: 3.3.26
|
218
|
-
signing_key:
|
178
|
+
signing_key:
|
219
179
|
specification_version: 4
|
220
180
|
summary: Nearly auto-generated Elasticsearch client
|
221
181
|
test_files: []
|