imatcher 0.1.6 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9b732a5e76b22bb7714bb9512bec50a08089fccc
4
- data.tar.gz: d34d75b437e24c191579310f666b7e6ebc2e8a9f
3
+ metadata.gz: 4ec8b6b1d7fbc5fb73a7119705bdc05935838ad4
4
+ data.tar.gz: 1adcfff329f4274eace480ffa2998217a4b07f10
5
5
  SHA512:
6
- metadata.gz: 46736e8879c8e68a89aca66911176994f757a1fbb9e5268084cc78441de5984512982addaf951a82f56ac839f4f883b69a42d4b5234ba22c5235f2693134ea7a
7
- data.tar.gz: c1ce2be3a848a6ca138f2899dba757868c9c43f3115d815f2c15348abac1e17636198fd19244d74b849adb2e3dc73d466b00de4b9f4576f792a069e551e2462f
6
+ metadata.gz: f7d4ae8a3ad122b07de70ffd0dfa7d78ce0bdd224a700e0fe265bafea88a341cc630e4bea0d4f160be66445d06f8da03278fd10f6529051aee1cef0a51fc1646
7
+ data.tar.gz: 6b6f880c4818e3a04c223f926322074b8aa9df585927da16ced05799f1e939e1230bafc8ea075dbf203be52b4f40dfe11e26b284dbba9d9418b2492323435ed4
data/README.md CHANGED
@@ -21,6 +21,8 @@ Or install it yourself as:
21
21
 
22
22
  $ gem install imatcher
23
23
 
24
+ Additionally, you may want to install [oily_png](https://github.com/wvanbergen/oily_png) to improve performance when using MRI. Just install it globally or add to your Gemfile.
25
+
24
26
  ## Modes
25
27
 
26
28
  Imatcher supports different ways (_modes_) of comparing images.
@@ -15,7 +15,6 @@ Gem::Specification.new do |spec|
15
15
  spec.require_paths = ["lib"]
16
16
 
17
17
  spec.add_dependency "chunky_png", "~> 1.3.5"
18
- spec.add_dependency "oily_png", "~> 1.2" if spec.platform == "ruby"
19
18
 
20
19
  spec.add_development_dependency "simplecov", ">= 0.3.8"
21
20
  spec.add_development_dependency "rake", "~> 10.0"
@@ -1,7 +1,8 @@
1
- if RUBY_PLATFORM == 'java'
2
- require "chunky_png"
3
- else
4
- require "oily_png"
1
+ require "chunky_png"
2
+
3
+ begin
4
+ require "oily_png" unless RUBY_PLATFORM == 'java'
5
+ rescue LoadError # rubocop:disable Lint/HandleExceptions
5
6
  end
6
7
 
7
8
  module Imatcher
@@ -1,3 +1,3 @@
1
1
  module Imatcher # :nodoc:
2
- VERSION = "0.1.6".freeze
2
+ VERSION = "0.1.9".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: imatcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - palkan
@@ -24,20 +24,6 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 1.3.5
27
- - !ruby/object:Gem::Dependency
28
- name: oily_png
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '1.2'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '1.2'
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: simplecov
43
29
  requirement: !ruby/object:Gem::Requirement