forked from opensearch-project/opensearch-ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
/
opensearch-ruby.gemspec
69 lines (62 loc) · 2.79 KB
/
opensearch-ruby.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# SPDX-License-Identifier: Apache-2.0
#
# The OpenSearch Contributors require contributions made to
# this file be licensed under the Apache-2.0 license or a
# compatible open source license.
#
# Modifications Copyright OpenSearch Contributors. See
# GitHub history for details.
#
# Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
require_relative './lib/opensearch/version'
Gem::Specification.new do |s|
s.name = 'opensearch-ruby'
s.version = OpenSearch::VERSION
s.authors = ['Elastic', 'OpenSearch Contributors']
s.email = '[email protected]'
s.summary = 'Ruby Client for OpenSearch'
s.homepage = 'https://github.com/opensearch-project/opensearch-ruby'
s.license = 'Apache-2.0'
s.description = <<~DESC
OpenSearch Ruby is a Ruby client for OpenSearch. You can use the client to
execute OpenSearch API commands, and build OpenSearch queries and aggregations
using the included OpenSearch DSL.
DESC
s.metadata = {
'homepage_uri' => 'https://github.com/opensearch-project/opensearch-ruby',
'documentation_uri' => 'https://rubydoc.info/gems/opensearch-ruby',
'source_code_uri' => 'https://github.com/opensearch-project/opensearch-ruby/tree/main',
'bug_tracker_uri' => 'https://github.com/opensearch-project/opensearch-ruby/issues',
'changelog_uri' => 'https://github.com/opensearch-project/opensearch-ruby/blob/main/CHANGELOG.md'
}
s.files = Dir['lib/**/*', '*.gemspec']
s.test_files = Dir['spec**/*', 'test/**/*', 'features/**/*']
s.require_paths = ['lib']
s.bindir = 'bin'
s.executables = 'opensearch_ruby_console'
s.extra_rdoc_files = %w[README.md USER_GUIDE.md LICENSE.txt]
s.rdoc_options = ['--charset=UTF-8']
signing_key = File.expand_path('gem-private_key.pem')
if $PROGRAM_NAME.end_with?('gem') && ARGV.first == 'build' && File.exist?(signing_key)
s.signing_key = signing_key
s.cert_chain = ['.github/opensearch-rubygems.pem']
end
s.required_ruby_version = '>= 2.5'
s.add_dependency 'faraday', '>= 1.0', '< 3'
s.add_dependency 'multi_json', '>= 1.0'
end