# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'rspec/its/version'

Gem::Specification.new do |spec|
  spec.name          = "rspec-its"
  spec.version       = RSpec::Its::VERSION
  spec.authors       = ["Peter Alfvin"]
  spec.email         = ["palfvin@gmail.com"]
  spec.description   = %q{RSpec extension gem for attribute matching}
  spec.summary       = %q{Provides "its" method formerly part of rspec-core}
  spec.homepage      = "https://github.com/rspec/rspec-its"
  spec.license       = "MIT"

  spec.metadata = {
    'bug_tracker_uri'   => 'https://github.com/rspec/rspec-its/issues',
    'changelog_uri'     => "https://github.com/rspec/rspec-its/blob/v#{spec.version}/Changelog.md",
    'documentation_uri' => "https://www.rubydoc.info/gems/rspec-its/#{spec.version}",
    'mailing_list_uri'  => 'https://groups.google.com/forum/#!forum/rspec',
    'source_code_uri'   => 'https://github.com/rspec/rspec-its',
  }

  spec.files         = `git ls-files`.split($/) - %w[cucumber.yml]
  spec.executables   = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
  spec.test_files    = spec.files.grep(%r{^(test|spec|features)/})
  spec.require_paths = ["lib"]

  spec.add_runtime_dependency 'rspec-core', '>= 3.0.0'
  spec.add_runtime_dependency 'rspec-expectations', '>= 3.0.0'

  if RUBY_VERSION.to_f < 1.9 || RUBY_VERSION == '1.9.2'
    spec.add_development_dependency "rake",     "~> 10.0.0"
  elsif RUBY_VERSION.to_f < 2
    spec.add_development_dependency "rake",     "~> 11.0.0"
  elsif RUBY_VERSION.to_f < 2.3
    spec.add_development_dependency "rake",     "~> 12.3.2"
  else
    spec.add_development_dependency "rake",     "~> 13.0.0"
  end

  spec.add_development_dependency 'bundler',  '> 1.3.0'
  if RUBY_VERSION.to_f < 2
    spec.add_development_dependency 'cucumber', '< 3.0.0'
  else
    spec.add_development_dependency 'cucumber', '>= 1.3.8'
  end
  spec.add_development_dependency "aruba",    "~> 0.14.12"
end
