fyipe 3.0.12005.pre.qa → 3.0.12011.pre.qa
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 +39 -2
- data/lib/fyipe/version.rb +1 -1
- data/lib/fyipeTracker.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f8d3bba726a8b48899ca39958b0dc269f9298893e26a145dfcfbc3dae4c56819
|
|
4
|
+
data.tar.gz: fc43cc610d3821ea7d896e41422e8cc7ddd318e4b79daf1d4af87911b4c473fb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5a82dd49932cdb64d345be1e1ee9be2b61d65a1862c93b214730f7c4056242a2d9be69ca00fac395a9cc6240f861c715527bb13bcb79ed0796cb348a8f31d213
|
|
7
|
+
data.tar.gz: 4ab5b065b55c44ce7ff3685442cabcaf07479135e223176ba06efa718c7b13d615779abac03a5547be4fd222372cf7c2ff63c62b33706bf795c5a8625b2a3b94
|
data/README.md
CHANGED
|
@@ -80,14 +80,51 @@ tracker = FyipeLogger.new(
|
|
|
80
80
|
options # optional
|
|
81
81
|
)
|
|
82
82
|
|
|
83
|
-
# capturing
|
|
83
|
+
# capturing a timeline manually
|
|
84
|
+
timelineContent = {}
|
|
85
|
+
|
|
86
|
+
timelineContent["account"] = "debit"
|
|
87
|
+
timelineContent["amount"] = "6000.00"
|
|
88
|
+
timelineContent["userId"] = 471
|
|
89
|
+
tracker.addToTimeline('payment', timelineContent, 'info')
|
|
90
|
+
|
|
91
|
+
# setting custom tags
|
|
92
|
+
tracker.setTag('category', 'QA Tester') # a single tag
|
|
93
|
+
|
|
94
|
+
# multiple tags
|
|
95
|
+
tags = []
|
|
96
|
+
|
|
97
|
+
# create two tags
|
|
98
|
+
tagOne = {}
|
|
99
|
+
tagOne["key"] = 'type'
|
|
100
|
+
tagOne["value"] = 'notification'
|
|
101
|
+
tagTwo = {}
|
|
102
|
+
tagTwo["key"] = 'location'
|
|
103
|
+
tagTwo["value"] = 'Oslo'
|
|
104
|
+
|
|
105
|
+
# add the two items to the array
|
|
106
|
+
tags = [tagOne, tagTwo]
|
|
107
|
+
|
|
108
|
+
# setting the array of tags
|
|
109
|
+
tracker.setTags(tags)
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
# all error exception captured are sent to your fyipe dashboard
|
|
113
|
+
|
|
114
|
+
# capturing errors in a begin and rescue
|
|
84
115
|
begin
|
|
85
|
-
#
|
|
116
|
+
# some code that might fail
|
|
86
117
|
result = 5/0 # Should throw a division by zero error
|
|
87
118
|
rescue => ex
|
|
88
119
|
tracker.captureException(ex)
|
|
89
120
|
end
|
|
90
121
|
|
|
122
|
+
# capturing errors using the message signature
|
|
123
|
+
tracker.captureMessage('some error text')
|
|
124
|
+
|
|
125
|
+
# capturing errors authomatically
|
|
126
|
+
NonExistingMethod() # calling this will trigger an error and its sent to your fyipe dashboard
|
|
127
|
+
|
|
91
128
|
```
|
|
92
129
|
|
|
93
130
|
## API Documentation
|
data/lib/fyipe/version.rb
CHANGED
data/lib/fyipeTracker.rb
CHANGED