veracodecli 1.0.6 → 1.0.7

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: 93e8d847a5ea3c880a8e09a0f4d9a8e15495a356
4
- data.tar.gz: 7203ba34944f2442dd1bfab7dcace61327d461d6
3
+ metadata.gz: c72518447d9b8ac2f2baa75565f4d0bd2f74a9f5
4
+ data.tar.gz: 98e4867893dfe6e4ba3891a481b5b0b81b62a188
5
5
  SHA512:
6
- metadata.gz: c47220a902a66a4a5b25126889427c1787035a9a3312a31c1b368497f26491f16a415b126a80bcb8d6de4fad981b068a048502d16f3a913d2064e604b35c70a1
7
- data.tar.gz: 45aa1ab195ac75cb1e51f85def6ffc5cea39b2357c105526ea12e897d7ac109c06ee8341ff8eec121512710b73f4aa2ed1a0b3d41fe5aa515131e4b1d30176cf
6
+ metadata.gz: 8180371bc854cc530acea334fb9c4ab80cdcd384042d63f63eeefd4927bc23c270b02b1a66dfe006f7a45bcfde467bfd3061aed7c522ea20cbe9099ac271f9ed
7
+ data.tar.gz: 72384927ad33f56a3f029827c3d4cb9a3f08aac941c481ef4b707f5a2e0dd3e553a74baab9e3ca3fefee27f0ce5dd92b7b77cd14f2fc627f3c1e7cc2e2e0ef27
@@ -0,0 +1,20 @@
1
+ require 'json'
2
+
3
+ class ResponseLogger
4
+
5
+ def initialize(log_path)
6
+ @path = log_path
7
+ end
8
+
9
+ def log(call, response)
10
+ log = File.open "#{@path}/veracodecli.log", 'a+'
11
+ log.write "#{call} called @ #{timestamp}"
12
+ log.write response
13
+ log.write "\n"
14
+ log.close
15
+ end
16
+
17
+ def timestamp
18
+ `date`
19
+ end
20
+ end
data/veracodecli.gemspec CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "veracodecli"
9
- s.version = "1.0.6"
9
+ s.version = "1.0.7"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
@@ -33,6 +33,7 @@ Gem::Specification.new do |s|
33
33
  "lib/veracodecli/api.rb",
34
34
  "lib/veracodecli/settings.rb",
35
35
  "lib/veracodecli/slack.rb",
36
+ "lib/veracodecli/log.rb",
36
37
  "test/API.rb",
37
38
  "test/helper.rb",
38
39
  "test/test_veracodecli.rb",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: veracodecli
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - isaiah thiessen
@@ -240,6 +240,7 @@ files:
240
240
  - bin/veracodecli
241
241
  - lib/veracodecli.rb
242
242
  - lib/veracodecli/api.rb
243
+ - lib/veracodecli/log.rb
243
244
  - lib/veracodecli/settings.rb
244
245
  - lib/veracodecli/slack.rb
245
246
  - test/API.rb