1b1994897Sopenharmony_ci# Copyright (c) 2021-2022 Huawei Device Co., Ltd.
2b1994897Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3b1994897Sopenharmony_ci# you may not use this file except in compliance with the License.
4b1994897Sopenharmony_ci# You may obtain a copy of the License at
5b1994897Sopenharmony_ci#
6b1994897Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0
7b1994897Sopenharmony_ci#
8b1994897Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
9b1994897Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
10b1994897Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11b1994897Sopenharmony_ci# See the License for the specific language governing permissions and
12b1994897Sopenharmony_ci# limitations under the License.
13b1994897Sopenharmony_ci
14b1994897Sopenharmony_ci# frozen_string_literal: true
15b1994897Sopenharmony_ci
16b1994897Sopenharmony_cilib = File.expand_path('lib', __dir__)
17b1994897Sopenharmony_ci$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
18b1994897Sopenharmony_cirequire_relative 'lib/version'
19b1994897Sopenharmony_ci
20b1994897Sopenharmony_ciGem::Specification.new do |spec|
21b1994897Sopenharmony_ci  spec.name          = 'spectrac'
22b1994897Sopenharmony_ci  spec.version       = Spectrac::VERSION
23b1994897Sopenharmony_ci  spec.authors       = ['Huawei']
24b1994897Sopenharmony_ci  # spec.email         = ['undef@huawei.com']
25b1994897Sopenharmony_ci
26b1994897Sopenharmony_ci  spec.summary       = 'Tool for measuring ISA specification coverage by CTS tests.'
27b1994897Sopenharmony_ci  # spec.description   = %q{}
28b1994897Sopenharmony_ci  # spec.homepage      = ''
29b1994897Sopenharmony_ci
30b1994897Sopenharmony_ci  # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
31b1994897Sopenharmony_ci  # to allow pushing to a single host or delete this section to allow pushing to any host.
32b1994897Sopenharmony_ci  # if spec.respond_to?(:metadata)
33b1994897Sopenharmony_ci  #   spec.metadata['allowed_push_host'] = 'TODO: Set to 'http://mygemserver.com''
34b1994897Sopenharmony_ci  # else
35b1994897Sopenharmony_ci  #   raise 'RubyGems 2.0 or newer is required to protect against ' \
36b1994897Sopenharmony_ci  #     'public gem pushes.'
37b1994897Sopenharmony_ci  # end
38b1994897Sopenharmony_ci
39b1994897Sopenharmony_ci  spec.files         = `git ls-files -z`.split('\x0').reject do |f|
40b1994897Sopenharmony_ci    f.match(%r{^(test|spec|features)/})
41b1994897Sopenharmony_ci  end
42b1994897Sopenharmony_ci  spec.bindir        = 'bin'
43b1994897Sopenharmony_ci  spec.executables   = ['spectrac.rb']
44b1994897Sopenharmony_ci  spec.require_paths = ['lib']
45b1994897Sopenharmony_ci
46b1994897Sopenharmony_ci  spec.add_development_dependency 'bundler', '~> 1.16'
47b1994897Sopenharmony_ci  spec.add_development_dependency 'rake', '~> 10.0'
48b1994897Sopenharmony_ci  spec.add_development_dependency 'minitest', '~> 5.0'
49b1994897Sopenharmony_ciend
50