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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2c532c430f6f2baa633bd12a9f7a8c7c6f8b9b9f9fa8745e07608e6dc9dbe127
4
- data.tar.gz: 70bfaad208ea55ff8a5261e60d40b882b1f1c35c05d6c83b4874e4e12598c326
3
+ metadata.gz: a2ff1599ce4f3134b4659e28549f9756b649abdfbfd5226116774f0150a590a4
4
+ data.tar.gz: 90ef53b84ec6c3f8a2195b1ad952e35ea704dfb12e1a3058f605f9514f1fe346
5
5
  SHA512:
6
- metadata.gz: 1407a70ce427d3d7319ca42bfe67d8b215dae4f1ed06a82b6a2455ddaed01752104186f77bd701de9259fb450ff5cf10578f4836a24ae34fc30bec3b03296fce
7
- data.tar.gz: 891851d6e33e19089fc8d11aa7439df6725f56599f07bbf3f8cc62e62f102ff9037e9ecb86edfde06a640d4f3e5d23111579bc2d3ec487ec43fa895db162a511
6
+ metadata.gz: eab234c8b9ac7eec9a9970ba5bcddea8c20c8e94ee4128767ef65027d7c24160d2050f1c1b150165eafb7712bfc7d89c6919c0128715ec7521f9d96a5842db38
7
+ data.tar.gz: b5ab4e9162baed9942cdbc22946e23bb61d82cc3046323cbb9621756022325fe27fe51df64dc80131f4dc0110078770b319a7bd2ce0a70fac1975b23223dd2c5
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- error_hunter (0.1.0)
4
+ error_hunter (0.1.1)
5
5
  rest-client
6
6
 
7
7
  GEM
Binary file
@@ -1,3 +1,3 @@
1
1
  module ErrorHunter
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
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 = 'https://localhost:3000'
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
- :app_error =>{
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.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-22 00:00:00.000000000 Z
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.0.gem
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
Binary file