looks_good 1.0.0 → 1.0.1

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
  SHA256:
3
- metadata.gz: 33bfb614a176498eb6a13180459e40aff96fc328673ab0edd6cbcb2b4b28345f
4
- data.tar.gz: 97b7efc3432c0b51b052bad9201e87a900791e57afdc9d2d9ef6444d654891bf
3
+ metadata.gz: 6cd9455572edfef123a293aebd03502a4e815e510908fe133a91e9e9fccd972b
4
+ data.tar.gz: a1401f4eaad2474d9af5ec46a22bbed8c4262fbd5f3444500a28e19ff5c8657b
5
5
  SHA512:
6
- metadata.gz: 629f66d456631f91b36200dd03266c2de827dd6313ded03a49c01f0021b303f93b98f8c9f5525e831ba9412412ed908800fd831fc89282c16c155804ae8d0b79
7
- data.tar.gz: 63c9fc8f12c8e25f4230e39298ab623b7b85e5b491679ae0a9c59f4bf6da9122cf1991a750df8376d81e482c8bb3063a7fce8f22b3812ee3fd97e83c3dcd97d7
6
+ metadata.gz: 515f1c537da45eaf7992e892484214ff8ddaecd0a970f39600be7dffb1502be020d2d08e7fdbbb152f448ebfc5e05b4ba452fc0037ab81a655132f51fcba31bd
7
+ data.tar.gz: e0e0db06a07aed3a2465e53064586fa8e774b330f564986f067f3fe71ff457eafea63a1f6f913bb9834dcad8e9c11dbc242a5c07f405d41e54f84fec523e06db
data/.DS_Store CHANGED
Binary file
@@ -16,7 +16,7 @@ module LooksGood
16
16
  end
17
17
 
18
18
  def self.take_screenshot
19
- temp_dir = LooksGood::Configuration.path(:temp)
19
+ temp_dir = LooksGood::Configuration.path(:tmp)
20
20
  FileUtils.mkdir_p(temp_dir) unless File.exists?(temp_dir)
21
21
  #captures the uncropped full screen
22
22
  begin
@@ -33,9 +33,9 @@ module LooksGood
33
33
 
34
34
  def path(type)
35
35
  paths = {:reference => reference_image_path,
36
- :temp => File.join(reference_image_path, 'tmp', 'tmp'),
37
- :candidate => File.join(reference_image_path, 'temp', 'candidate'),
38
- :diff => File.join(reference_image_path, 'temp', 'diff')
36
+ :tmp => File.join(reference_image_path, 'tmp', 'tmp'),
37
+ :candidate => File.join(reference_image_path, 'tmp', 'candidate'),
38
+ :diff => File.join(reference_image_path, 'tmp', 'diff')
39
39
  }
40
40
  paths[type]
41
41
  end
@@ -1,3 +1,3 @@
1
1
  module LooksGood
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
data/lib/looks_good.rb CHANGED
@@ -83,7 +83,7 @@ or
83
83
  end
84
84
 
85
85
  def cleanup
86
- FileUtils.remove_dir(LooksGood::Configuration.path(:temp)) if File.directory?(LooksGood::Configuration.path(:temp))
86
+ FileUtils.remove_dir(LooksGood::Configuration.path(:tmp)) if File.directory?(LooksGood::Configuration.path(:tmp))
87
87
  FileUtils.remove_dir(LooksGood::Configuration.path(:diff)) if File.directory?(LooksGood::Configuration.path(:diff))
88
88
  FileUtils.remove_dir(LooksGood::Configuration.path(:candidate)) if File.directory?(LooksGood::Configuration.path(:candidate))
89
89
  end
@@ -41,7 +41,7 @@ describe LooksGood::Configuration do
41
41
 
42
42
  it 'should return the directory for a type of image' do
43
43
  subject.reference_image_path = "a_path"
44
- subject.path(:temp).should == 'a_path/temp'
44
+ subject.path(:tmp).should == 'a_path/tmp'
45
45
  end
46
46
 
47
47
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: looks_good
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Russell Jennings