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