forked from jnormington/dotdiff
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdotdiff.gemspec
More file actions
35 lines (29 loc) · 1.38 KB
/
dotdiff.gemspec
File metadata and controls
35 lines (29 loc) · 1.38 KB
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
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'dotdiff/version'
is_java = RUBY_PLATFORM == 'java'
Gem::Specification.new do |spec|
spec.name = "dotdiff"
spec.version = DotDiff::VERSION
spec.authors = ["Jon Normington"]
spec.email = ["jnormington@users.noreply.github.com"]
spec.platform = 'java' if is_java
spec.summary = "Image regression wrapper for Capybara and RSpec using image magick supporting both MRI and JRuby versions"
spec.description = [spec.summary, "which supports snap shoting both full page and specific elements on a page where text checks isn't enough"].join(' ')
spec.homepage = "https://github.com/jnormington/dotdiff"
spec.license = "MIT"
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
spec.bindir = "exe"
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]
if is_java
spec.add_runtime_dependency "rmagick4j", '~> 0.4.0'
else
spec.add_runtime_dependency "mini_magick", '~> 4.9.4'
end
spec.add_development_dependency "bundler", "~> 1.11"
spec.add_development_dependency "rake", "~> 10.0"
spec.add_development_dependency "rspec", "~> 3.0"
spec.add_development_dependency "capybara", "~> 2.6"
end