technologic 0.6.0 → 0.6.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
  SHA256:
3
- metadata.gz: 16801ceb3dfb0fa75c54ad025a6c113520563a164abe6953b74f30e4414884b1
4
- data.tar.gz: ab6f61c1b82e739b7973556108589d48f38b2bdc71f711f4353d3368c2ad587d
3
+ metadata.gz: a2203e82507fdcdfcc7197f6bfb0d9e1ef1e1ed8a31c19351e8b28546d826a03
4
+ data.tar.gz: dc602690e3b651d6d4c19645898536a8f40b66e2ccc073eea96743ab9f3f5ed7
5
5
  SHA512:
6
- metadata.gz: 47c40bfa5d297d6fcc561022f6983fafe8d01388eea50b8565ad4295aed3e2180b73949cf38330dacd52cd3ac4c4b46bf588baf682aa36ee462cc016b6ce5a3c
7
- data.tar.gz: a68b0824137f59449f4f5479c0646f1d25b36f066747ca2db2eec04b38d9c8c1f1597065e20c0a2f5aa690be90b1f13dbf17e73e225bbe0c92d4f5d5ef4e5274
6
+ metadata.gz: 5a959335e139e7f9384d3001ce5557a9c062d41265a9397ec55b7efa6431fba7e3ece174ea48cacf137e5a96973d92e5092de7dafe3820679ef7f97d2572759f
7
+ data.tar.gz: f7d901d1b54157c6557b49485a90cdeb1b4513ae3d2298834acf5b840b844f38c86f5fa80fc74162553ecfb14e18210714567fa806b3e2e5ed141dc50603e1e0
@@ -15,6 +15,7 @@ module Technologic
15
15
  # `#to_log_string` is idiomatic to Technologic and is the most explicit way to specify how an object is logged.
16
16
  return value.to_log_string if value.respond_to?(:to_log_string)
17
17
 
18
+ return value.to_s if value.is_a?(Enumerator)
18
19
  return value if value.is_a?(Numeric)
19
20
  return value.id if value.respond_to?(:id)
20
21
  return value.map { |mappable_value| format_value_for_log(mappable_value) } if value.respond_to?(:map)
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Technologic
4
4
  # This constant is managed by spicerack
5
- VERSION = "0.6.0"
5
+ VERSION = "0.6.1"
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: technologic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Garside
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-13 00:00:00.000000000 Z
11
+ date: 2019-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 0.6.0
47
+ version: 0.6.1
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: 0.6.0
54
+ version: 0.6.1
55
55
  description: An opinionated philosophy on logging for Ruby on Rails applications.
56
56
  email:
57
57
  - garside@gmail.com