# -*- encoding: utf-8 -*-
$LOAD_PATH.push File.expand_path('../lib', __FILE__)
require 'prometheus/client/version'

Gem::Specification.new do |s|
  s.name              = 'prometheus-client'
  s.version           = Prometheus::Client::VERSION
  s.summary           = 'A suite of instrumentation metric primitives' \
                        'that can be exposed through a web services interface.'
  s.authors           = ['Ben Kochie', 'Chris Sinjakli', 'Daniel Magliola']
  s.email             = ['superq@gmail.com', 'chris@sinjakli.co.uk', 'dmagliola@crystalgears.com']
  s.homepage          = 'https://github.com/prometheus/client_ruby'
  s.license           = 'Apache 2.0'

  s.files             = %w(README.md) + Dir.glob('{lib/**/*}')
  s.require_paths     = ['lib']

  s.add_development_dependency 'benchmark-ips'
  s.add_development_dependency 'concurrent-ruby'
end

# -*- encoding: utf-8 -*-
$LOAD_PATH.push File.expand_path('../lib', __FILE__)
require 'prometheus/client/version'

Gem::Specification.new do |s|
  s.name              = 'prometheus-client'
  s.version           = Prometheus::Client::VERSION
  s.summary           = 'A suite of instrumentation metric primitives' \
                        'that can be exposed through a web services interface.'
  s.authors           = ['Ben Kochie', 'Chris Sinjakli', 'Daniel Magliola']
  s.email             = ['superq@gmail.com', 'chris@sinjakli.co.uk', 'dmagliola@crystalgears.com']
  s.homepage          = 'https://github.com/prometheus/client_ruby'
  s.license           = 'Apache-2.0'

  s.files             = %w(README.md) + Dir.glob('{lib/**/*}')
  s.require_paths     = ['lib']

  s.add_development_dependency 'benchmark-ips'
  s.add_development_dependency 'concurrent-ruby'
end

Fix license name in gemspec
Fix license name in gemspec

Previously, we had the license name set to "Apache 2.0", which doesn't
conform to the entry in the list that `gem` validates against
(https://spdx.org/licenses/).

This commit replaces the space with a hyphen so that we match the format
expected by `gem`, and don't get this warning when we build the gem:

> WARNING:  license value 'Apache 2.0' is invalid.  Use a license
> identifier from http://spdx.org/licenses or 'Nonstandard' for a
> nonstandard license. Did you mean 'Apache-2.0'?

Signed-off-by: Chris Sinjakli <711c73f64afdce07b7e38039a96d2224209e9a6c@sinjakli.co.uk>
