dupervisor 1.0.3 → 1.0.4

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: 76bfc503dc8997edc0e6926cde6a7aed182d4a32
4
- data.tar.gz: 683bb204b680c970a7c2156791ce6735d34cc438
3
+ metadata.gz: a7808e5bf0c9d6a2800b7cd581db37f9cb99534f
4
+ data.tar.gz: 139e0d057b8d0dfe6ffe492fb7e199276d928460
5
5
  SHA512:
6
- metadata.gz: 48c9203124a4d72d534e4af996f60be2189ad70b716141972978339f02e63e77c9179f3eff77eaa04c8c632dfbfaac6a89a5da7efd507ec7a3fa94498232d960
7
- data.tar.gz: c18ae3908021f61dfe427987a296adbc3557aa41420102f670323eb7b3ac63c9cec7be14dcef54b6208fbf3baa564383b88bfd804537149148d9f8ff631f1820
6
+ metadata.gz: 9c08fe7d3c56042c02977a6c13d5df4973927e09ae189bcc7cfe30b2daea3950848fe08d69d729a32c85bfe340b46891530ce3ea37e2b6b932ec1e7a1940b203
7
+ data.tar.gz: da8d3e02fe7b7d6ec031af9da5e8690e1b1c08f77925b0018857ac171597db84a32c770b53957391b037bd1f078576cd4dfd984cf910e628b6bf1935bd9b41ba
data/exe/dv CHANGED
@@ -13,4 +13,6 @@ rescue DuperVisor::CLIError => e
13
13
  STDERR.puts 'Usage error: ' + e.message.bold.red
14
14
  puts
15
15
  DuperVisor::CLI.new(['--help']).parse
16
+ rescue StandardError => e
17
+ STDERR.puts 'Processing error: ' + e.message.bold.red
16
18
  end
@@ -7,7 +7,7 @@ module DuperVisor
7
7
  attr_accessor :output, :content_hash, :rendered_content
8
8
 
9
9
  def initialize(content_hash, output_stream = nil)
10
- raise ArgumentError.new('Invalid arguments - expecting a stream and a hash') unless content_hash.is_a?(Hash)
10
+ raise ArgumentError.new("Don't know how to render #{content_hash.class.name}, I was expecting a Hash.") unless content_hash.is_a?(Hash)
11
11
  self.output = output_stream
12
12
  self.content_hash = content_hash
13
13
  end
@@ -1,3 +1,3 @@
1
1
  module DuperVisor
2
- VERSION = '1.0.3'.freeze
2
+ VERSION = '1.0.4'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dupervisor
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konstantin Gredeskoul
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-07-13 00:00:00.000000000 Z
11
+ date: 2016-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: require_dir