cuvva_log 0.1.0 → 0.1.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
  SHA1:
3
- metadata.gz: 2a58ab1af6acd55df92f89541d078a5a000942a4
4
- data.tar.gz: 1f90497153838aec06bebdd1c2b4fef96a9b753f
3
+ metadata.gz: e8c256c0b317b2d1705ba6c0ab87c68ca9be0742
4
+ data.tar.gz: b08b23ee272258f86b493c21efee5c1222c2e579
5
5
  SHA512:
6
- metadata.gz: 9c86fbad939b7d27c6c174507798ca88da6cade5ee3f3ad7f6ea290a3d313fada1fa67dfd5b279266434c6c82a3c7f7ae0a2fdb6891e2ad8cfe58e5114eabc9c
7
- data.tar.gz: ee5c45bdc78eba6cd59caf94ca3873dd95b98c3ddfb606588bde00818734764eea391cd89211177cd8939b0f5ecd46e91a69b85efe61308e426a7fd6bc5bd730
6
+ metadata.gz: 7e3de01174a658e1ea53ab7e460caad935612e854fca40a7de54f8381e2e33fddac131b794cb832cd9b42586c97f3569636601b0e51b0e1da19ad663f001239f
7
+ data.tar.gz: 7fa3a0ad51c279016d6826b8f9ced49706712554be984f3f81c6c615736782983dfb69e20e8f2245236b4b7aa9ef9bcb232537d8994d6b35b9e65f7c3024f40f
data/lib/cuvva_error.rb CHANGED
@@ -21,9 +21,10 @@ class CuvvaError < StandardError
21
21
  @reasons = reasons
22
22
  @meta = meta
23
23
  @stack = caller
24
- @http_status = CuvvaError.http_status_map.has_key?(code) ?
25
- CuvvaError.http_status_map[code] :
26
- 500
24
+ @http_status = CuvvaError.http_status_map.has_key?(code) &&
25
+ CuvvaError.http_status_map[code] ?
26
+ CuvvaError.http_status_map[code] :
27
+ 500
27
28
  end
28
29
 
29
30
  def to_json
data/lib/cuvva_log.rb CHANGED
@@ -50,7 +50,7 @@ class Log
50
50
 
51
51
  def self.set_http_statuses(error_descriptor)
52
52
  error_descriptor.each do |key, val|
53
- CuvvaError.http_status_map[key] = val[:httpStatus]
53
+ CuvvaError.http_status_map[key] = Integer(val[:httpStatus]) rescue 500
54
54
  end
55
55
  end
56
56
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cuvva_log
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jack Fransham
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-10 00:00:00.000000000 Z
11
+ date: 2015-09-11 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Super-simple logs for the Ruby-based Cuvva systems
14
14
  email: jack.fransham@cuvva.co
@@ -39,7 +39,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
39
39
  version: '0'
40
40
  requirements: []
41
41
  rubyforge_project:
42
- rubygems_version: 2.2.2
42
+ rubygems_version: 2.4.8
43
43
  signing_key:
44
44
  specification_version: 4
45
45
  summary: Super-simple logs for the Ruby-based Cuvva systems