antbird 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a758bad4e79e75501222a402d44364d38919f1d6f159db9f7a141479699be4a8
4
- data.tar.gz: 547b1404103b751a4f8381620aff6d84f7453669ba3b3681fea93e5f29954910
3
+ metadata.gz: 18cb176834925d73a1d22821d21e1d8d2d4b2c750af1a408d3021583198c9165
4
+ data.tar.gz: ea0d48a96c6f694231ff6677b8100abb8bc13293590b277515ac7f8fa9297c4c
5
5
  SHA512:
6
- metadata.gz: 95a7743d520aec7b6b260349ddab4657dbc5477e9f14b9a6768c674576615ca70c529baed9fd3b0f28e4bd7aedabde2a95172a6644bb7ff406ab468264a05d4b
7
- data.tar.gz: 462b10b2522b4d3c0bee5278e960db33ee7e05c80f63441d12e871648d88f4a509ac27712922e9181019bdccbfc16207e79e06feb8d4593b8eb34ddcbc489002
6
+ metadata.gz: f970c5a9a291322b8a32d7cf41e37e97ec813bdcd9b57ae4a061c95783a1a6598beb1fa8c1ced7e1c5a8651230aa07d2871e5d7e65e06c22d441ccb7de89761a
7
+ data.tar.gz: 6b6a44d031ef3afca434e2f60a1f1ac9398a9d0c553e5958957bcad2bcd8a9a439fa0ffac72ca92046067fc78f7d8faa5edf774dc026ae026aa2361767e2c26c
@@ -0,0 +1,39 @@
1
+ name: build
2
+
3
+ on: [push]
4
+
5
+ jobs:
6
+ build:
7
+ runs-on: ubuntu-latest
8
+ strategy:
9
+ matrix:
10
+ elasticsearch:
11
+ - 7.5.0
12
+ - 7.4.2
13
+ - 7.3.2
14
+ - 7.2.1
15
+ - 7.1.1
16
+ - 7.0.1
17
+ - 6.8.5
18
+ - 6.7.2
19
+ - 6.6.2
20
+ - 6.5.4
21
+ - 6.4.3
22
+ steps:
23
+ - uses: actions/checkout@v1
24
+ - name: Set up Ruby 2.6
25
+ uses: actions/setup-ruby@v1
26
+ with:
27
+ ruby-version: 2.6.x
28
+ - name: Start Elasticsearch
29
+ run: |
30
+ docker run -d -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" \
31
+ docker.elastic.co/elasticsearch/elasticsearch-oss:${{matrix.elasticsearch}}
32
+ docker ps
33
+ - name: Build and test with Rake
34
+ run: |
35
+ gem install bundler
36
+ bundle install --jobs 4 --retry 3
37
+ # wait for elasticsearch
38
+ curl -q --retry 10 --retry-delay 5 --retry-connrefused http://localhost:9200
39
+ bundle exec rspec
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Nearly auto-generated Elasticsearch client
4
4
 
5
- [![Build Status](https://travis-ci.org/fukayatsu/antbird.svg?branch=master)](https://travis-ci.org/fukayatsu/antbird)
5
+ [![Build Status](https://github.com/fukayatsu/antbird/workflows/build/badge.svg)](https://github.com/fukayatsu/antbird/actions)
6
6
 
7
7
  ## Installation
8
8
 
@@ -113,8 +113,8 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/fukaya
113
113
 
114
114
  ### How to support newer version of Elasticsearch
115
115
 
116
- 1. Add `ES_VERSION=x.y.z` to `env` on `.travis.yml`
117
- - Only one line for `x.y` version
116
+ 1. Add Elasticsearch version to `jobs.build.strategy.matrix.elasticsearch` on `.github/workflows/build.yml`
117
+ - Only one line for `x.y.*` version
118
118
  1. `script/generate_api_methods`
119
119
  - Set `GITHUB_TOKEN=***` env for GitHub API Limit
120
120
 
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["fukayatsu@gmail.com"]
11
11
 
12
12
  spec.summary = %q{Nearly auto-generated Elasticsearch client}
13
- spec.description = %q{Nearly auto-generated Elasticsearch client}
13
+ spec.description = %q{Antbird is a yet another low level API client for the Elasticsearch HTTP interface.}
14
14
  spec.homepage = "https://github.com/fukayatsu/antbird"
15
15
  spec.license = "MIT"
16
16
 
@@ -21,14 +21,12 @@ Gem::Specification.new do |spec|
21
21
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
22
  spec.require_paths = ["lib"]
23
23
 
24
- spec.add_dependency "faraday"
25
- spec.add_dependency 'faraday_middleware'
24
+ spec.add_dependency "faraday", "> 0.8", "< 2.0"
25
+ spec.add_dependency 'faraday_middleware', "> 0.12", "< 1.0"
26
26
 
27
- spec.add_development_dependency "bundler"
28
- spec.add_development_dependency "rake"
27
+ spec.add_development_dependency "bundler", "> 1.16", "< 3.0"
28
+ spec.add_development_dependency "rake", "~> 13.0"
29
29
  spec.add_development_dependency "rspec", "~> 3.0"
30
- spec.add_development_dependency "guard-rspec", "~> 4.0"
31
- spec.add_development_dependency "rspec-nc"
32
30
  spec.add_development_dependency "octokit", "~> 4.0"
33
31
  spec.add_development_dependency "pry-byebug", "~> 3.0"
34
32
  end
@@ -1,3 +1,3 @@
1
1
  module Antbird
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: antbird
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - fukayatsu
@@ -14,58 +14,76 @@ dependencies:
14
14
  name: faraday
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - ">"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '0.8'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '2.0'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - ">="
27
+ - - ">"
28
+ - !ruby/object:Gem::Version
29
+ version: '0.8'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: '0'
32
+ version: '2.0'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: faraday_middleware
29
35
  requirement: !ruby/object:Gem::Requirement
30
36
  requirements:
31
- - - ">="
37
+ - - ">"
32
38
  - !ruby/object:Gem::Version
33
- version: '0'
39
+ version: '0.12'
40
+ - - "<"
41
+ - !ruby/object:Gem::Version
42
+ version: '1.0'
34
43
  type: :runtime
35
44
  prerelease: false
36
45
  version_requirements: !ruby/object:Gem::Requirement
37
46
  requirements:
38
- - - ">="
47
+ - - ">"
48
+ - !ruby/object:Gem::Version
49
+ version: '0.12'
50
+ - - "<"
39
51
  - !ruby/object:Gem::Version
40
- version: '0'
52
+ version: '1.0'
41
53
  - !ruby/object:Gem::Dependency
42
54
  name: bundler
43
55
  requirement: !ruby/object:Gem::Requirement
44
56
  requirements:
45
- - - ">="
57
+ - - ">"
46
58
  - !ruby/object:Gem::Version
47
- version: '0'
59
+ version: '1.16'
60
+ - - "<"
61
+ - !ruby/object:Gem::Version
62
+ version: '3.0'
48
63
  type: :development
49
64
  prerelease: false
50
65
  version_requirements: !ruby/object:Gem::Requirement
51
66
  requirements:
52
- - - ">="
67
+ - - ">"
53
68
  - !ruby/object:Gem::Version
54
- version: '0'
69
+ version: '1.16'
70
+ - - "<"
71
+ - !ruby/object:Gem::Version
72
+ version: '3.0'
55
73
  - !ruby/object:Gem::Dependency
56
74
  name: rake
57
75
  requirement: !ruby/object:Gem::Requirement
58
76
  requirements:
59
- - - ">="
77
+ - - "~>"
60
78
  - !ruby/object:Gem::Version
61
- version: '0'
79
+ version: '13.0'
62
80
  type: :development
63
81
  prerelease: false
64
82
  version_requirements: !ruby/object:Gem::Requirement
65
83
  requirements:
66
- - - ">="
84
+ - - "~>"
67
85
  - !ruby/object:Gem::Version
68
- version: '0'
86
+ version: '13.0'
69
87
  - !ruby/object:Gem::Dependency
70
88
  name: rspec
71
89
  requirement: !ruby/object:Gem::Requirement
@@ -80,34 +98,6 @@ dependencies:
80
98
  - - "~>"
81
99
  - !ruby/object:Gem::Version
82
100
  version: '3.0'
83
- - !ruby/object:Gem::Dependency
84
- name: guard-rspec
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: '4.0'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - "~>"
95
- - !ruby/object:Gem::Version
96
- version: '4.0'
97
- - !ruby/object:Gem::Dependency
98
- name: rspec-nc
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - ">="
102
- - !ruby/object:Gem::Version
103
- version: '0'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - ">="
109
- - !ruby/object:Gem::Version
110
- version: '0'
111
101
  - !ruby/object:Gem::Dependency
112
102
  name: octokit
113
103
  requirement: !ruby/object:Gem::Requirement
@@ -136,16 +126,17 @@ dependencies:
136
126
  - - "~>"
137
127
  - !ruby/object:Gem::Version
138
128
  version: '3.0'
139
- description: Nearly auto-generated Elasticsearch client
129
+ description: Antbird is a yet another low level API client for the Elasticsearch HTTP
130
+ interface.
140
131
  email:
141
132
  - fukayatsu@gmail.com
142
133
  executables: []
143
134
  extensions: []
144
135
  extra_rdoc_files: []
145
136
  files:
137
+ - ".github/workflows/build.yml"
146
138
  - ".gitignore"
147
139
  - ".rspec"
148
- - ".travis.yml"
149
140
  - CODE_OF_CONDUCT.md
150
141
  - Gemfile
151
142
  - Guardfile
@@ -1,30 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- rvm:
4
- - 2.6.5
5
- env:
6
- - ES_VERSION=7.5.0
7
- - ES_VERSION=7.4.2
8
- - ES_VERSION=7.3.2
9
- - ES_VERSION=7.2.1
10
- - ES_VERSION=7.1.1
11
- - ES_VERSION=7.0.1
12
- - ES_VERSION=6.8.5
13
- - ES_VERSION=6.7.2
14
- - ES_VERSION=6.6.2
15
- - ES_VERSION=6.5.4
16
- - ES_VERSION=6.4.3
17
-
18
- before_install: gem install bundler -v 1.16.1
19
- install:
20
- - if [[ "${ES_VERSION:0:1}" = "7" ]]; then suffix='-linux-x86_64'; else suffix=''; fi
21
- - download_url=https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${ES_VERSION}${suffix}.tar.gz
22
- - echo $download_url
23
- - mkdir -p ./tmp
24
- - curl $download_url | tar xzmp -C ./tmp
25
- - ls ./tmp
26
- - ./tmp/elasticsearch-${ES_VERSION}/bin/elasticsearch &
27
- - bundle install
28
- - wget --quiet --waitretry=1 --retry-connrefused --timeout=10 --output-document=- http://127.0.0.1:9200
29
-
30
- script: bundle exec rspec