forked from applitools/Eyes.Selenium.Ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
/
eyes_selenium.gemspec
executable file
·89 lines (79 loc) · 3.46 KB
/
eyes_selenium.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'applitools/version'
CURRENT_RYBY_VERSION = Gem::Version.new RUBY_VERSION
RUBY_1_9_3 = Gem::Version.new '1.9.3'
RUBY_2_0_0 = Gem::Version.new '2.0.0'
RUBY_2_2_2 = Gem::Version.new '2.2.2'
RUBY_2_4_0 = Gem::Version.new '2.4.0'
RUBY_KEY = [RUBY_1_9_3, RUBY_2_0_0, RUBY_2_2_2, RUBY_2_4_0].select { |v| v <= CURRENT_RYBY_VERSION }.last
EYES_GEM_SPECS = {
RUBY_1_9_3 => proc do |spec|
spec.add_development_dependency 'mime-types', ['~> 2.99.0']
spec.add_development_dependency 'rack', ['~> 1.6.0']
spec.add_development_dependency 'tomlrb', ['<= 1.2.2']
spec.add_development_dependency 'rubocop', ['~> 0.41.1']
spec.add_development_dependency 'cmdparse', ['= 2.0.2']
spec.add_development_dependency 'net-ssh', ['<= 3.0.0']
spec.add_development_dependency 'net-http-persistent', ['< 3.0.0']
spec.add_development_dependency 'sauce'
spec.add_dependency 'nokogiri', '~> 1.6.0'
spec.add_dependency 'public_suffix', '< 1.5.0'
spec.add_dependency 'appium_lib', '< 9.1.0'
spec.add_dependency 'oily_png', '~> 1.2'
end,
RUBY_2_0_0 => proc do |spec|
spec.add_development_dependency 'rack', ['~> 1.6.0']
spec.add_development_dependency 'rubocop', ['<= 0.46.0']
spec.add_development_dependency 'net-http-persistent', ['< 3.0.0']
spec.add_development_dependency 'sauce'
spec.add_dependency 'nokogiri', '~> 1.6.0'
spec.add_development_dependency 'appium_lib', '< 9.1.0'
spec.add_dependency 'oily_png', '= 1.2.0'
end,
RUBY_2_2_2 => proc do |spec|
spec.add_development_dependency 'rubocop', ['<= 0.46.0']
spec.add_development_dependency 'sauce'
spec.add_development_dependency 'appium_lib'
spec.add_dependency 'oily_png', '~> 1.2'
end,
RUBY_2_4_0 => proc do |spec|
spec.add_development_dependency 'appium_lib'
spec.add_development_dependency 'rubocop', ['<= 0.46.0']
spec.add_dependency 'oily_png', '~> 1.2'
end
}.freeze
Gem::Specification.new do |spec|
spec.name = 'eyes_selenium'
spec.version = Applitools::VERSION
spec.authors = ['Applitools Team']
spec.email = ['[email protected]']
spec.description = 'Applitools Ruby SDK'
spec.summary = 'Applitools Ruby SDK'
spec.homepage = 'https://www.applitools.com'
spec.license = 'Apache License, Version 2.0'
spec.files = `git ls-files`.split($RS)
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_dependency 'selenium-webdriver'
spec.add_dependency 'poltergeist', '~> 1.9'
spec.add_dependency 'chunky_png', '= 1.3.6'
spec.add_dependency 'faraday'
spec.add_dependency 'oj'
spec.add_dependency 'watir'
spec.add_development_dependency 'bundler'
spec.add_development_dependency 'rake'
spec.add_development_dependency 'capybara'
spec.add_development_dependency 'rspec', '>= 3'
EYES_GEM_SPECS[RUBY_KEY].call spec
# Exclude debugging support on Travis CI, due to its incompatibility with jruby and older rubies.
unless ENV['TRAVIS'] || CURRENT_RYBY_VERSION < Gem::Version.new('2.0.0')
spec.add_development_dependency 'pry'
spec.add_development_dependency 'pry-byebug'
spec.add_development_dependency 'byebug'
spec.add_development_dependency 'pry-doc'
spec.add_development_dependency 'pry-stack_explorer'
end
end