-
Notifications
You must be signed in to change notification settings - Fork 90
/
rspec-html-matchers.gemspec
54 lines (45 loc) · 2.08 KB
/
rspec-html-matchers.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
# -*- encoding: utf-8 -*-
# frozen_string_literal: true
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'rspec-html-matchers/version'
# NOTE: .dup is needed for ruby 1.9
ruby_version = Gem::Version.new(RUBY_VERSION.dup)
Gem::Specification.new do |s|
s.name = 'rspec-html-matchers'
s.version = RSpecHtmlMatchers::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ['kucaahbe']
s.email = ['[email protected]', '[email protected]']
s.license = 'MIT'
s.homepage = 'https://github.com/kucaahbe/rspec-html-matchers'
s.summary = "Nokogiri based 'have_tag' and 'with_tag' matchers for RSpec"
s.description = <<DESC
#{s.summary}. Does not depend on assert_select matcher, provides useful error messages.
DESC
s.files = Dir['lib/**/*.rb']
s.require_path = 'lib'
s.extra_rdoc_files = ['README.md', 'CHANGELOG.md']
# ruby support is tied to rspec & nokogiri gems:
s.required_ruby_version = '>= 1.8.7'
s.metadata['rubygems_mfa_required'] = 'true' if s.respond_to?(:metadata)
s.add_runtime_dependency 'rspec', '>= 3.0.0.a'
s.add_runtime_dependency 'nokogiri', '~> 1'
# cucumber tests:
# for older rubies there is not much sense to run cucumber tests,
# as some of gems (specifically selenium-webdriver and webdrivers)
# have issues either installing or working properly
if ruby_version >= Gem::Version.new('2')
s.add_development_dependency 'cucumber', '~> 1'
s.add_development_dependency 'capybara', '~> 2'
s.add_development_dependency 'sinatra', '~> 1'
s.add_development_dependency 'selenium-webdriver', '~> 3'
s.add_development_dependency 'webdrivers',
(ruby_version >= Gem::Version.new('2.3') ? '~> 4' : '<= 3.8.1')
end
s.add_development_dependency 'simplecov', '~> 0'
s.add_development_dependency 'rake', '~> 10'
s.add_development_dependency 'yard'
s.add_development_dependency 'rubocop', '~> 1.39' if ruby_version >= Gem::Version.new('2.6')
s.add_development_dependency 'ruby-debug' if RUBY_PLATFORM == 'java'
end