error_hunter 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/error_hunter-0.1.1.gem +0 -0
- data/lib/error_hunter/version.rb +1 -1
- data/lib/error_hunter.rb +6 -3
- metadata +3 -3
- data/error_hunter-0.1.0.gem +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a2ff1599ce4f3134b4659e28549f9756b649abdfbfd5226116774f0150a590a4
|
4
|
+
data.tar.gz: 90ef53b84ec6c3f8a2195b1ad952e35ea704dfb12e1a3058f605f9514f1fe346
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eab234c8b9ac7eec9a9970ba5bcddea8c20c8e94ee4128767ef65027d7c24160d2050f1c1b150165eafb7712bfc7d89c6919c0128715ec7521f9d96a5842db38
|
7
|
+
data.tar.gz: b5ab4e9162baed9942cdbc22946e23bb61d82cc3046323cbb9621756022325fe27fe51df64dc80131f4dc0110078770b319a7bd2ce0a70fac1975b23223dd2c5
|
data/Gemfile.lock
CHANGED
Binary file
|
data/lib/error_hunter/version.rb
CHANGED
data/lib/error_hunter.rb
CHANGED
@@ -7,7 +7,7 @@ module ErrorHunter
|
|
7
7
|
module Urls
|
8
8
|
def urls
|
9
9
|
production = "https://errorhunter.herokuapp.com"
|
10
|
-
development = '
|
10
|
+
development = 'http://localhost:3000'
|
11
11
|
@_host = production
|
12
12
|
@add_errors = @_host + '/api/app_errors'
|
13
13
|
{add_error: @add_errors}
|
@@ -28,13 +28,16 @@ module ErrorHunter
|
|
28
28
|
def self.add_error(**data)
|
29
29
|
begin
|
30
30
|
make_call = RestClient.post(self.urls[:add_error],
|
31
|
-
|
31
|
+
{:app_error =>{
|
32
32
|
:title => data[:title] || 'ErrorTitle',
|
33
33
|
:description => data[:description] || 'Description Here',
|
34
34
|
:serverity => data[:serverity] || 'Urgent',
|
35
35
|
:log => data[:log] || 'error log empty',
|
36
36
|
:app_name => @_app_name
|
37
|
-
}
|
37
|
+
}},
|
38
|
+
headers = {
|
39
|
+
:AuthToken => @_token
|
40
|
+
}
|
38
41
|
)
|
39
42
|
JSON.parse(make_call.body)
|
40
43
|
rescue RestClient::NotFound => e
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: error_hunter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ispirett
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-03-
|
11
|
+
date: 2020-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
@@ -48,7 +48,7 @@ files:
|
|
48
48
|
- Rakefile
|
49
49
|
- bin/console
|
50
50
|
- bin/setup
|
51
|
-
- error_hunter-0.1.
|
51
|
+
- error_hunter-0.1.1.gem
|
52
52
|
- error_hunter.gemspec
|
53
53
|
- lib/error_hunter.rb
|
54
54
|
- lib/error_hunter/version.rb
|
data/error_hunter-0.1.0.gem
DELETED
Binary file
|