web_image_compare 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4845598c0a82448f38db553936242d84e01322b6
4
- data.tar.gz: 8ac6d3d491256a6e881eb8519653fbadea8b221e
3
+ metadata.gz: 51e2053afd4894e93604d552d648d3d51e873583
4
+ data.tar.gz: 92295930ba7db21b20a15ae8c0d9015efd51a2c2
5
5
  SHA512:
6
- metadata.gz: b7c379bda5dcded22943eef2791eda7a96e3298427ccbc68e0ca1e3c45883c544ef19fd82425f74e4109f1432fcfd36f207a53b89b71fff100eef941472cf640
7
- data.tar.gz: e16d174ce0f21506d663bdde87cfaf90d0ddaa36f47990035986e34afa33a399a0c1acb6bf7669b023b102a5bb17114d64994d76471169f2c7e6f58bc8f8054e
6
+ metadata.gz: e0da512b025f4e9cc888d6418ba9d1d1a91664a075ede4b5f9f940cbc8d306fa1fbc222d62726ea01856c46ad1dd5277cb723dd82e28021b776b4d59309efb12
7
+ data.tar.gz: 5dc51ce32c41c44f4052a52927c9382009865f1a394fc79dd24643b997520a8d03544d24af800080f925030f8020631da39526ebf0d02771d5393b67e297b6b5
@@ -3,6 +3,8 @@ module ChunkyPNG
3
3
  class Canvas
4
4
  # Module operations
5
5
  module Operations
6
+ include ChunkyPNG::Color
7
+
6
8
  # Performs the image comparison pixel by pixel
7
9
  #
8
10
  # @param [String] result_img complete path to where is intended save the image
@@ -1,9 +1,9 @@
1
1
  require 'oily_png'
2
2
  require_relative 'chunky_png/operations'
3
- include ChunkyPNG::Color
4
3
 
5
4
  # Compare image class
6
5
  class WebImageCompare
6
+ include ChunkyPNG::Color
7
7
 
8
8
  # initialize the object with the path for the two images
9
9
  #
@@ -2,9 +2,9 @@ module CmpImgTool
2
2
  # BW config api Version
3
3
  module Version
4
4
  # The current gem version
5
- VERSION = '0.0.2'
5
+ VERSION = '0.0.3'
6
6
  # The date version was updated
7
- DATE = '2016-02-03'
7
+ DATE = '2016-07-06'
8
8
  # Debug output that will contain ruby information
9
9
  MSG = 'Version %s %s (running on %s-%s)'
10
10
 
Binary file
@@ -11,7 +11,6 @@ Gem::Specification.new do |s|
11
11
 
12
12
  s.date = CmpImgTool::Version::DATE
13
13
  s.version = CmpImgTool::Version::VERSION
14
- s.version = "#{s.version}.pre.#{ENV['BUILD_NUMBER']}" if ENV['PRE_RELEASE']
15
14
 
16
15
  s.required_ruby_version = '>= 2.0.0'
17
16
 
@@ -23,7 +22,6 @@ Gem::Specification.new do |s|
23
22
  s.add_development_dependency 'rspec', '~> 3.0', '>= 3.0.0'
24
23
  s.add_development_dependency 'rubocop', '~> 0.24', '>= 0.24.1'
25
24
  s.add_development_dependency 'rake', '~> 10.4'
26
- s.add_development_dependency 'pry', '~> 0.10'
27
25
  s.add_development_dependency 'yard', '~> 0.8'
28
26
 
29
27
  s.add_runtime_dependency 'oily_png', '~> 1.2'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: web_image_compare
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rui Nunes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-03 00:00:00.000000000 Z
11
+ date: 2016-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -64,20 +64,6 @@ dependencies:
64
64
  - - "~>"
65
65
  - !ruby/object:Gem::Version
66
66
  version: '10.4'
67
- - !ruby/object:Gem::Dependency
68
- name: pry
69
- requirement: !ruby/object:Gem::Requirement
70
- requirements:
71
- - - "~>"
72
- - !ruby/object:Gem::Version
73
- version: '0.10'
74
- type: :development
75
- prerelease: false
76
- version_requirements: !ruby/object:Gem::Requirement
77
- requirements:
78
- - - "~>"
79
- - !ruby/object:Gem::Version
80
- version: '0.10'
81
67
  - !ruby/object:Gem::Dependency
82
68
  name: yard
83
69
  requirement: !ruby/object:Gem::Requirement
@@ -121,6 +107,7 @@ files:
121
107
  - lib/web_image_compare.rb
122
108
  - lib/web_image_compare/version.rb
123
109
  - spec/images/example_image.png
110
+ - spec/images/example_image_2.png
124
111
  - spec/web_image_compare_spec.rb
125
112
  - web_image_compare.gemspec
126
113
  homepage: https://github.com/Rui-Pedro-Nunes/web-image-compare.git
@@ -149,5 +136,6 @@ specification_version: 4
149
136
  summary: Web
150
137
  test_files:
151
138
  - spec/images/example_image.png
139
+ - spec/images/example_image_2.png
152
140
  - spec/web_image_compare_spec.rb
153
141
  has_rdoc: