logkeeper_api 0.0.4 → 0.0.5
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 +9 -3
- data/lib/sentinel_api/configuration.rb +2 -2
- data/lib/sentinel_api/notifier.rb +1 -2
- data/lib/sentinel_api/version.rb +1 -1
- data/lib/sentinel_api.rb +0 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b89c4d310d65bc17079c751872e8f9468f52e10
|
4
|
+
data.tar.gz: efda18c33928416efb064da358d0194ee5efff52
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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['
|
9
|
-
DEFAULT_METHOD = (ENV['
|
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
|
data/lib/sentinel_api/version.rb
CHANGED
data/lib/sentinel_api.rb
CHANGED
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
|
+
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-
|
11
|
+
date: 2018-12-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|