traquitana 0.0.27 → 0.0.28

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: 0023c831ec77d6545377a52375f6261e83d715fb
4
- data.tar.gz: bd9dda6ac25c6ce3a679db83b4af0c243e704ec8
3
+ metadata.gz: 76cd65635a94eecaf2eed22b0d7a896fb8092530
4
+ data.tar.gz: 8a66ba46f03c06d0b9f6e2264ff558e17528c0e0
5
5
  SHA512:
6
- metadata.gz: f14e132023064b2065698b4c2ab95071b8d0bb5b63bfcfc05903b356625c34748ab3df37ad639336f49616925a84bb1c1bb5a72f14769c883c7431bfdef628ea
7
- data.tar.gz: dc354fe799f3837670d95aa8874239fe886bed7b54b475d071cc611e2dbe9a29a6823898710e4c827a2cd72ee14eae6bc79b60ce4e692b90f2f0a59c8f587bf6
6
+ metadata.gz: 253509415f25425cbd2cbf46b1609b99584bd604e5fb71fbd4dabace16327a6e88f4a8123d7caf19b1391af6dd5f20e48e892f526eb2e9326e8dd831889d4560
7
+ data.tar.gz: 88c441a87698129aaba46aaa00c6fcdf6f8ccaebc4d60d45e00911e1ba86dc213324da4120416ae3c32d5b6953589daf0cdb9f3a683d7697938a4fcc7518ac9c
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -51,11 +51,13 @@ module Traquitana
51
51
  private
52
52
  def check_configs(file)
53
53
  @configs = YAML.load(File.read(file || self.filename)) rescue nil
54
- raise Exception.new("Configs not found (tried #{file} and #{self.filename}") if !@configs
54
+ STDERR.puts "Configs not found (tried '#{file}' and '#{self.filename}')" if !@configs
55
+ @configs
55
56
  end
56
57
 
57
58
  def check_target
58
- return if !@target
59
+ return if !@target || !@configs
60
+
59
61
  if !@configs[@target]
60
62
  STDERR.puts "Target #{@target} not found."
61
63
  exit(1)
@@ -66,7 +68,7 @@ module Traquitana
66
68
  end
67
69
 
68
70
  def check_default_target
69
- if !@target && @configs["default"]
71
+ if !@target && @configs && @configs["default"]
70
72
  STDOUT.puts "Loading default target ..."
71
73
  @configs = @configs["default"]
72
74
  end
@@ -1,3 +1,3 @@
1
1
  module Traquitana
2
- VERSION = "0.0.27"
2
+ VERSION = "0.0.28"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: traquitana
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.27
4
+ version: 0.0.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eustaquio Rangel
@@ -30,7 +30,7 @@ cert_chain:
30
30
  JzBjXv5+jP7BaxFmlTOJBcCLZQATZKINFqzb7fMkFfbnMdKdcs1P7wkzKw18sP/t
31
31
  FYMhZELccG8VXnfUk5zfuFakoJPqFJ+W34tNhuf95AazAIQF3If4UFU=
32
32
  -----END CERTIFICATE-----
33
- date: 2016-04-02 00:00:00.000000000 Z
33
+ date: 2016-04-20 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: rubyzip
metadata.gz.sig CHANGED
Binary file