wraith 3.1.6 → 3.1.7

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: e5827f2c5d55c875d5318a17cfdc13076ed555a2
4
- data.tar.gz: a2518470c451b11cdf5bf9a1204c1873761c1ab1
3
+ metadata.gz: 02fadcef6fa8e50ed88c7f72d09a784aba46fe5e
4
+ data.tar.gz: 422b7af9bd80ca378cc1c38a22b2916513a7716f
5
5
  SHA512:
6
- metadata.gz: f043f4f16c2bffaa810cae36a8d9bfde3e8b05fdb4867dbc4458e0b38cec937f6a5515b92355d3d1dc85a20b4f0d21c03f29794748c5b29e567a538b8d88635b
7
- data.tar.gz: 37dea7edb15a164c1da1199e0b11cfd10fec8bb4764bb8c1d9a3c7aab5fb485fb29463489b332379073ef37ab5de58d730ff64139a049cb87a5f80f5984c975a
6
+ metadata.gz: e21ee89483e20176394a24e5db09a8c4166af6e02c07ac913a41dfd2033276ee4bc2e81a1d82fca262aa5e4f8f09ff3f546e10f08c24e3127942c0e5388de0a3
7
+ data.tar.gz: 4ca116347fc048020ac2c1504355f2392627b3ed98d03c1b9daa5b0536af9f847eb737d2bfd79fa24e79bcfbeafe244e41fd95b1b5e5c6b84565b1406994c983
@@ -6,3 +6,6 @@ end
6
6
 
7
7
  class MissingRequiredPropertyError < CustomError
8
8
  end
9
+
10
+ class ConfigFileDoesNotExistError < CustomError
11
+ end
@@ -1,3 +1,3 @@
1
1
  module Wraith
2
- VERSION = "3.1.6"
2
+ VERSION = "3.1.7"
3
3
  end
data/lib/wraith/wraith.rb CHANGED
@@ -26,8 +26,7 @@ class Wraith::Wraith
26
26
  return YAML.load config
27
27
  end
28
28
  end
29
- rescue
30
- logger.error "unable to find config \"#{config_name}\""
29
+ fail ConfigFileDoesNotExistError, "unable to find config \"#{config_name}\""
31
30
  end
32
31
 
33
32
  def directory
@@ -26,6 +26,10 @@ describe "Wraith config validator" do
26
26
  config["browser"] = nil
27
27
  expect { Wraith::Validate.new(config, true).validate }.to raise_error MissingRequiredPropertyError
28
28
  end
29
+
30
+ it "should complain if the config file doesn't exist" do
31
+ expect { Wraith::Wraith.new('configs/some_made_up_config.yml') }.to raise_error ConfigFileDoesNotExistError
32
+ end
29
33
  end
30
34
 
31
35
  describe "validation specific to capture mode" do
data/wraith.gemspec CHANGED
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
25
25
  spec.add_runtime_dependency 'image_size'
26
26
  spec.add_runtime_dependency 'anemone'
27
27
  spec.add_runtime_dependency 'robotex'
28
- spec.add_runtime_dependency 'nokogiri', '1.6.7'
28
+ spec.add_runtime_dependency 'nokogiri', '~> 1.6.7'
29
29
  spec.add_runtime_dependency 'log4r'
30
30
  spec.add_runtime_dependency 'thor'
31
31
  spec.add_runtime_dependency 'parallel'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wraith
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.6
4
+ version: 3.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dave Blooman
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-04-25 00:00:00.000000000 Z
13
+ date: 2016-05-16 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: pry
@@ -100,14 +100,14 @@ dependencies:
100
100
  name: nokogiri
101
101
  requirement: !ruby/object:Gem::Requirement
102
102
  requirements:
103
- - - '='
103
+ - - ~>
104
104
  - !ruby/object:Gem::Version
105
105
  version: 1.6.7
106
106
  type: :runtime
107
107
  prerelease: false
108
108
  version_requirements: !ruby/object:Gem::Requirement
109
109
  requirements:
110
- - - '='
110
+ - - ~>
111
111
  - !ruby/object:Gem::Version
112
112
  version: 1.6.7
113
113
  - !ruby/object:Gem::Dependency
@@ -264,7 +264,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
264
264
  version: '0'
265
265
  requirements: []
266
266
  rubyforge_project:
267
- rubygems_version: 2.4.8
267
+ rubygems_version: 2.4.7
268
268
  signing_key:
269
269
  specification_version: 4
270
270
  summary: Wraith is a screenshot comparison tool, created by developers at BBC News.