runcible 1.3.4 → 1.3.5

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: 68a3ba200964c27b1e8dacab9bb4a1ce99052ccd
4
- data.tar.gz: 6ea5627bf75849cf999e5b9e523a0a6dc84a8163
3
+ metadata.gz: 3d34f8ccc7c325a6ec254ac3ec97bfa95d007d83
4
+ data.tar.gz: 7e1803fa72e4280fa56d45e69709389a294461b0
5
5
  SHA512:
6
- metadata.gz: c42c467718eb6c638ad7083f3aad74c0dd9a5d1630e2da418b6d915b109b00ca51d890ee0b0c09c0d5d161d7569ca94d74acc415703884644cbb460c326f1f8d
7
- data.tar.gz: 19fb8ecd8ef8bfcd5004cd575970135ca450854b44435920d48346c5e2448c34eae4e7058539aab4af3e302b41b5d9f9b00836d6d7328150b984df317eaa1bd4
6
+ metadata.gz: 6b6110ae003f5993d502919db048c5f65749c923b1deff102e07b134533b9a1d01f0a8bc338f4a447635d67f53c9768bd09016d6900939028e536a0bee5fe642
7
+ data.tar.gz: ea470e55cb67fa423e800aa663cc577939f49649df03ddff64f09d5066ae220c83a65efd861fa709b8a0f87f7f8711aa70d74b99652699544513381f22385e64
data/lib/runcible/base.rb CHANGED
@@ -1,6 +1,3 @@
1
- # Copyright (c) 2012 Red Hat
2
- #
3
- # MIT License
4
1
  #
5
2
  # Permission is hereby granted, free of charge, to any person obtaining
6
3
  # a copy of this software and associated documentation files (the
@@ -82,6 +79,9 @@ module Runcible
82
79
  response = get_response(client, path, *args)
83
80
  process_response(response)
84
81
 
82
+ rescue RestClient::ResourceNotFound => e
83
+ log_info
84
+ raise e
85
85
  rescue => e
86
86
  log_exception
87
87
  raise e
@@ -213,6 +213,13 @@ module Runcible
213
213
  end
214
214
  end
215
215
 
216
+ def log_info
217
+ if self.config[:logging][:info]
218
+ log_message = generate_log_message
219
+ self.config[:logging][:logger].info(log_message)
220
+ end
221
+ end
222
+
216
223
  def generate_log_message
217
224
  RestClient.log.join('\n')
218
225
  end
@@ -1,3 +1,3 @@
1
1
  module Runcible
2
- VERSION = '1.3.4'
2
+ VERSION = '1.3.5'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runcible
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.4
4
+ version: 1.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric D Helms, Justin Sherrill
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-01 00:00:00.000000000 Z
11
+ date: 2015-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -186,7 +186,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
186
186
  version: '0'
187
187
  requirements: []
188
188
  rubyforge_project:
189
- rubygems_version: 2.4.6
189
+ rubygems_version: 2.2.1
190
190
  signing_key:
191
191
  specification_version: 4
192
192
  summary: ''