fyipe 3.0.12005.pre.qa → 3.0.12024.pre.qa

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: c7cd6b2e3cef633df0aef32eea26122a53fe3690cd08211f6b8ee4f67fdb8fe6
4
- data.tar.gz: 22bdd963c3ea45a6cdd56141fe13693c443a4afde2f62388af8c3ce381b180f6
3
+ metadata.gz: 9a93f40ada199e345ca278f9660099de2106f1326b55a47f51360dd636888916
4
+ data.tar.gz: a129831f8c71fab6f08f11ec1a8c5ead1c1bc686774ef90052a462d60a66bfa3
5
5
  SHA512:
6
- metadata.gz: 48f334801cce2fde6c86191bd0b89611cafa3370e6f4188fb7673835d1981c9f27a76daf5d4b51c98f6a4c7257edc93f94d5257adf844df37c71339c4529f1e6
7
- data.tar.gz: 21650569ea71ab49c9f00d7205e177430c08e225c45bd185a3f718fdec34a457d5c83f86aba4f3eb1e7af4176a0e30d136b063fe7a27fcc07687b8e55d8b8811
6
+ metadata.gz: 8fe71e23fca176da5d741df0a072c722fdaeca186db29a2b97a955df35a7112666d0a921c40d3558722c5d3a91ba76b6403a3b9c2ad82d647c2fc4fa8bd17ef7
7
+ data.tar.gz: 2eed589205d55b8ab46c1f9871ff6cb93c5cdc8f0b5808da5e26d5b28cac936240c040581c1ccd732db02190d19f82d88aca2461ebc831a12f40c06dace0731d
data/README.md CHANGED
@@ -66,13 +66,13 @@ puts response
66
66
  ```ruby
67
67
  require 'fyipe'
68
68
 
69
- # constructor
70
-
71
69
  # set up tracking configurations
72
70
  options = {
73
71
  "maxTimeline": 50,
74
72
  "captureCodeSnippet": true
75
73
  }
74
+
75
+ # constructor
76
76
  tracker = FyipeLogger.new(
77
77
  'API_URL', # https://fyipe.com/api
78
78
  'ERROR_TRACKER_ID',
@@ -80,14 +80,51 @@ tracker = FyipeLogger.new(
80
80
  options # optional
81
81
  )
82
82
 
83
- # capturing error exception manually and sent to your fyipe dashboard
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
- # your code logic
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
@@ -1,4 +1,4 @@
1
1
  module Fyipe
2
2
  NAME = 'fyipe'
3
- VERSION = '3.0.12005-qa'
3
+ VERSION = '3.0.12024-qa'
4
4
  end
data/lib/fyipeTracker.rb CHANGED
@@ -27,7 +27,8 @@ class FyipeTracker
27
27
  setEventId()
28
28
  @listenerObj = FyipeListener.new(getEventId(), @options)
29
29
  @apiTransport = FyipeTransport.new(@apiUrl)
30
- # setUpExceptionHandlerListener()
30
+ setUpExceptionHandlerListener()
31
+
31
32
  end
32
33
 
33
34
  def setApiUrl(apiUrl)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fyipe
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.12005.pre.qa
4
+ version: 3.0.12024.pre.qa
5
5
  platform: ruby
6
6
  authors:
7
7
  - HackerBay, Inc.