logkeeper_api 0.0.4 → 0.0.5

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
  SHA1:
3
- metadata.gz: 678ecb6ffe2e84d82d8b28bee7ba3f8da8d27637
4
- data.tar.gz: a07bbdfb303d38e53ab9b50129fc06683d036222
3
+ metadata.gz: 5b89c4d310d65bc17079c751872e8f9468f52e10
4
+ data.tar.gz: efda18c33928416efb064da358d0194ee5efff52
5
5
  SHA512:
6
- metadata.gz: 41858d22eb0e21a58af0dc99afac49dbbe5f949c3707a1c733231268363da5727a9b732670f91b5d36ccb52957b2f0991556f53cdbd8788bd9681567a94a7b6c
7
- data.tar.gz: f54599847e2dcba1e62a3cb05743558a364ca4fdbc4bd915a005e99e1f09e385d1010381a69b71c9632e19170a06eaec43916151a6a77d63f8c336c5374afe25
6
+ metadata.gz: 91bf13e002b58f84f1e445cfe054912179f4de9a071201cc6c8b30b25811564ca006d455d6072faadc8c0d9700efe127f74aad92aa4616968e7be239c6bfe25a
7
+ data.tar.gz: 96437f6188ac13c84b98a261921261b016d0871438050a533929fa1d19dcf3f10da5fa59ea88b384ee0ad871f73aa341713f89a9ecc7bff6045480a9e1c4359f
data/README.md CHANGED
@@ -17,11 +17,11 @@ And then execute:
17
17
  Or install it yourself as:
18
18
 
19
19
  $ gem install sentinel_api
20
-
20
+
21
21
  Add initializer file
22
22
 
23
23
  $ rails g sentinel_api:install
24
-
24
+
25
25
  Don't forget to configure your ErrorReporterAPI server uri and method
26
26
 
27
27
  ## Usage
@@ -29,7 +29,7 @@ Don't forget to configure your ErrorReporterAPI server uri and method
29
29
  There are 3 methods, which produce 3 log level messages:
30
30
  info, warn, error.
31
31
 
32
- You can use this gem in 3 ways:
32
+ You can use this gem in 3 ways:
33
33
  * provide hash with 3 keys: message, info, tags
34
34
  * provide message, exception and tags - info would be made from exception's class message and backtrace
35
35
  * provide message and exception - no tags would be sent
@@ -46,3 +46,9 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
46
46
 
47
47
  To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
48
48
 
49
+ ## Configuration
50
+
51
+ - Add the following environment variables:
52
+
53
+ * ENV['SENTINEL_API_URI'] : The error reporter uri to receive the request params. Default is 'http://localhost:3000/reports'.
54
+ * ENV['SENTINEL_API_METHOD'] : The api method to be used to communicate with the url. Default is 'post'.
@@ -5,8 +5,8 @@ module SentinelApi
5
5
  attr_accessor :level
6
6
  attr_accessor :method
7
7
 
8
- DEFAULT_URI = (ENV['sentinel_uri'] || 'http://localhost:3000/reports').freeze
9
- DEFAULT_METHOD = (ENV['sentinel_method'] || 'post').freeze
8
+ DEFAULT_URI = (ENV['SENTINEL_API_URI'] || 'http://localhost:3000/reports').freeze
9
+ DEFAULT_METHOD = (ENV['SENTINEL_API_METHOD'] || 'post').freeze
10
10
 
11
11
  def initialize
12
12
  @uri = DEFAULT_URI
@@ -59,10 +59,9 @@ module SentinelApi
59
59
  "#{exception.class}: #{exception.message}"
60
60
  end
61
61
 
62
-
63
62
  def configuration
64
63
  SentinelApi.configuration
65
64
  end
66
65
  end
67
66
  end
68
- end
67
+ end
@@ -1,3 +1,3 @@
1
1
  module SentinelApi
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
data/lib/sentinel_api.rb CHANGED
@@ -26,7 +26,5 @@ module SentinelApi
26
26
  def default_logger
27
27
  configuration.default_logger
28
28
  end
29
-
30
29
  end
31
-
32
30
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logkeeper_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Intelllex
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-12-19 00:00:00.000000000 Z
11
+ date: 2018-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty