vigilion 1.0.2 → 1.0.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8f0ff763d97c3b9210f607f266fd65c240756194
4
- data.tar.gz: ef3ebfc14ddf806ef4acc65edfa1a886845a6d90
3
+ metadata.gz: 0e286f397cfa04014ef19e5b927f172f075ad8d3
4
+ data.tar.gz: 5eade92209ebba43d76ed67d0fda0c4a5ee34f04
5
5
  SHA512:
6
- metadata.gz: 86d9021edede257536ce4e2b40cb946598e3bc1c99ebb80abc73b075fd47c15f0809533ca3f8d83af5ac94966aa14ebea902ffb4d0189aeb82a9ad38d6c99600
7
- data.tar.gz: 3ef73820995c1b059701776d7dbddb5561365ea962a7015288247b46ed162a771830ac6f0acf9dbc24d8dfd4d4e8adc74d36a28f8d3683ba7e44dd484a22c63f
6
+ metadata.gz: 9fbbe254b3d2a41a52d4a60e5a26790e898dd9d1ba712ba83b212444b46e498fda699dbde1f48dabf1b7d35798777be5872a794f4dc647c9350c0f9b91fd326e
7
+ data.tar.gz: cf2020f29c62410d7cdd3c0bca32c9ee7a5a53de85aa7cbd1d605e756e0102f5fa7bc0506bacae5bae5bbe5941c637f650e750eb807236a6dbcce18bec84cfda
@@ -1,3 +1,4 @@
1
+ require 'logger'
1
2
  require 'singleton'
2
3
  require 'ostruct'
3
4
 
@@ -15,4 +16,6 @@ module Vigilion
15
16
  end
16
17
 
17
18
  Configuration.server_url = "https://api.vigilion.com"
19
+ Configuration.logger = Logger.new($stdout)
20
+ Configuration.debug = false
18
21
  end
@@ -8,7 +8,9 @@ module Vigilion
8
8
  c.request :multipart
9
9
  c.request :json
10
10
  c.response :json, content_type: /\bjson$/
11
- c.response :detailed_logger
11
+ if Configuration.debug
12
+ c.response :detailed_logger, Configuration.logger
13
+ end
12
14
  c.adapter ::Faraday.default_adapter
13
15
  c.headers = {
14
16
  'X-Api-Key' => Configuration.access_key_id,
@@ -1,3 +1,3 @@
1
1
  module Vigilion
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vigilion
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bit Zesty Ltd