screenpress 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -45,8 +45,13 @@ module Screenpress
45
45
  # Run through all of the pixels on both org image, and fresh image. Change the pixel color accordingly.
46
46
  def update_diff_index(x, y, pixel)
47
47
  lowest_score = 1
48
- return if pixel == fresh_image[x,y]
49
48
 
49
+ begin
50
+ return if pixel == fresh_image[x,y]
51
+ rescue ChunkyPNG::OutOfBounds
52
+ # off the edge!
53
+ end
54
+
50
55
  # try a bit in each direction to account for differences
51
56
  [-2, -1, 0, 1, 2].each do |yd|
52
57
  [-1, 0, 1].each do |xd|
@@ -1,3 +1,3 @@
1
1
  module Screenpress
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: screenpress
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: