xeme 0.1 → 0.2
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 +4 -4
- data/README.md +4 -4
- data/lib/xeme.rb +6 -6
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9959d1ca57a7bba39f8618ca05749d1260cb4ccfc13c5e890aae035533fc6dc0
|
4
|
+
data.tar.gz: ad99216629921ff23e9bbe98238cbcf63ac9f0f48ac028742f0496530b2fc488
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6418a605216c648e8ce5242bf1333ab3e43cbd97ad6dc5541390d428c756f5a0021b318bbd53c85035aef159096fbfc21ee092378e3a332987a206019837ac4f
|
7
|
+
data.tar.gz: 14e72d5cc3fd2379687ecb9d20d8def81a94ea4dc3376665ece1216b1c011e0a4e8d776846553cc5387b7ba59a1c501093e993959453535ea0427e6412a59600
|
data/README.md
CHANGED
@@ -280,7 +280,7 @@ mike@idocs.com
|
|
280
280
|
|
281
281
|
## History
|
282
282
|
|
283
|
-
| version | date | notes
|
284
|
-
|
285
|
-
| 0.1 | Jan 7, 2020 | Initial upload.
|
286
|
-
|
283
|
+
| version | date | notes |
|
284
|
+
|---------|-------------|--------------------------|
|
285
|
+
| 0.1 | Jan 7, 2020 | Initial upload. |
|
286
|
+
| 0.2 | Jan 8, 2020 | Fixed bug in exception() |
|
data/lib/xeme.rb
CHANGED
@@ -11,8 +11,8 @@ require 'forwardable'
|
|
11
11
|
# more details.
|
12
12
|
|
13
13
|
class Xeme
|
14
|
-
# Version 0.
|
15
|
-
VERSION = '0.
|
14
|
+
# Version 0.2
|
15
|
+
VERSION = '0.2'
|
16
16
|
|
17
17
|
# A Xeme::Messages object, which is basically just a hash containing arrays
|
18
18
|
# for errors, warnings, and notes.
|
@@ -196,13 +196,13 @@ class Xeme
|
|
196
196
|
#
|
197
197
|
|
198
198
|
##
|
199
|
-
# Use this method to hold on to details about an exception. An error
|
200
|
-
# will be created, along with the exception's to_s backtrace.
|
199
|
+
# Use this method to hold on to details about an exception. An error message
|
200
|
+
# object will be created, along with the exception's to_s backtrace.
|
201
201
|
|
202
202
|
def exception(id, e, details={})
|
203
203
|
message = self.error(id, details)
|
204
|
-
message
|
205
|
-
message
|
204
|
+
message['error'] = e.to_s
|
205
|
+
message['backtrace'] = e.backtrace
|
206
206
|
end
|
207
207
|
#
|
208
208
|
# exception
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xeme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.2'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike O'Sullivan
|
@@ -37,8 +37,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
37
37
|
- !ruby/object:Gem::Version
|
38
38
|
version: '0'
|
39
39
|
requirements: []
|
40
|
-
|
41
|
-
rubygems_version: 2.7.6
|
40
|
+
rubygems_version: 3.1.2
|
42
41
|
signing_key:
|
43
42
|
specification_version: 4
|
44
43
|
summary: General purpose structure for reporting results
|