vault-usage-client 0.0.12 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.tool-versions +1 -0
- data/.travis.yml +2 -3
- data/CHANGELOG.md +15 -0
- data/Gemfile.lock +12 -12
- data/bin/vault-usage +5 -5
- data/lib/vault-usage-client/version.rb +1 -1
- data/vault-usage-client.gemspec +1 -1
- metadata +6 -6
- data/.ruby-version +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 8b11594b4eea0411dc28d50374ff20df8d3a61b1293c666ee946f865f37ebfac
|
4
|
+
data.tar.gz: 76a84b176ec89e1d028a424371981e52f2cbd648e1be7caea042ecb81a294e78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fee2244ec56e98c84f0b0a72f7a02ae6d13252999a77ed1b019ae9e0d445ec068faaa1de933ff1d46bc74f1c053447b0019f3dd740498ebb10659e55834c808b
|
7
|
+
data.tar.gz: 6af1e3b2833fb8e1efcd1a423fd48f130d694db4dce34cf9da187b2f4e19bfaa7c16dc1af601a0ec62d8a9c56b1c64e17c40ce6685304b1d9ced740136aabd2f
|
data/.tool-versions
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
ruby 2.5.3
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
# Changelog
|
2
|
+
All notable changes to this project will be documented in this file.
|
3
|
+
|
4
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
5
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
6
|
+
|
7
|
+
## [Unreleased]
|
8
|
+
### Changed
|
9
|
+
|
10
|
+
## [1.0.0] - 2019-02-11
|
11
|
+
### Added
|
12
|
+
|
13
|
+
### Changed
|
14
|
+
- Prefer colorize gem to rainbow
|
15
|
+
- Upgrade deps to fix vulns in rack, nokogiri, and yard
|
data/Gemfile.lock
CHANGED
@@ -1,21 +1,20 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
vault-usage-client (0.0
|
5
|
-
colorize
|
4
|
+
vault-usage-client (1.0.0)
|
6
5
|
excon
|
7
6
|
multi_json
|
7
|
+
rainbow
|
8
8
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
|
-
ansi (1.
|
12
|
+
ansi (1.5.0)
|
13
13
|
blankslate (2.1.2.4)
|
14
14
|
celluloid (0.15.2)
|
15
15
|
timers (~> 1.1.0)
|
16
16
|
coderay (1.1.0)
|
17
|
-
|
18
|
-
excon (0.39.5)
|
17
|
+
excon (0.62.0)
|
19
18
|
ffi (1.9.3)
|
20
19
|
formatador (0.2.5)
|
21
20
|
guard (2.6.1)
|
@@ -35,20 +34,21 @@ GEM
|
|
35
34
|
parslet (~> 1.5)
|
36
35
|
lumberjack (1.0.9)
|
37
36
|
method_source (0.8.2)
|
38
|
-
|
37
|
+
mini_portile2 (2.4.0)
|
39
38
|
minitest (4.7.5)
|
40
|
-
multi_json (1.
|
41
|
-
nokogiri (1.
|
42
|
-
|
39
|
+
multi_json (1.13.1)
|
40
|
+
nokogiri (1.10.1)
|
41
|
+
mini_portile2 (~> 2.4.0)
|
43
42
|
parslet (1.6.1)
|
44
43
|
blankslate (~> 2.0)
|
45
44
|
pry (0.10.0)
|
46
45
|
coderay (~> 1.1.0)
|
47
46
|
method_source (~> 0.8.1)
|
48
47
|
slop (~> 3.4)
|
49
|
-
rack (
|
48
|
+
rack (2.0.6)
|
50
49
|
rack-test (0.6.2)
|
51
50
|
rack (>= 1.0)
|
51
|
+
rainbow (3.0.0)
|
52
52
|
rake (10.1.0)
|
53
53
|
rb-fsevent (0.9.4)
|
54
54
|
rb-inotify (0.9.5)
|
@@ -69,7 +69,7 @@ GEM
|
|
69
69
|
rack-test
|
70
70
|
rr
|
71
71
|
turn
|
72
|
-
yard (0.
|
72
|
+
yard (0.9.18)
|
73
73
|
|
74
74
|
PLATFORMS
|
75
75
|
ruby
|
@@ -84,4 +84,4 @@ DEPENDENCIES
|
|
84
84
|
yard
|
85
85
|
|
86
86
|
BUNDLED WITH
|
87
|
-
1.
|
87
|
+
1.17.3
|
data/bin/vault-usage
CHANGED
@@ -5,7 +5,7 @@ lib = File.expand_path('../../lib', __FILE__)
|
|
5
5
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
6
6
|
|
7
7
|
require 'vault-usage-client'
|
8
|
-
require '
|
8
|
+
require 'rainbow/ext/string'
|
9
9
|
|
10
10
|
user_hid = ARGV[0]
|
11
11
|
start_time = Time.utc(*ARGV[1].split('-'))
|
@@ -17,7 +17,7 @@ all_events = client.usage_for_user(user_hid, start_time, stop_time,
|
|
17
17
|
['platform:dyno:physical'])
|
18
18
|
|
19
19
|
all_events.group_by { |e| e[:consumer] }.each do |consumer, app_events|
|
20
|
-
puts "=== #{consumer} ===".blue
|
20
|
+
puts "=== #{consumer} ===".color(:blue)
|
21
21
|
|
22
22
|
app_events.group_by { |e| e[:product] }.each do |product, product_events|
|
23
23
|
puts " #{product}"
|
@@ -25,10 +25,10 @@ all_events.group_by { |e| e[:consumer] }.each do |consumer, app_events|
|
|
25
25
|
map { |event| OpenStruct.new(event) }.
|
26
26
|
sort_by(&:start_time).
|
27
27
|
each do |e|
|
28
|
-
puts " #{e.id}".
|
29
|
-
puts " #{e.start_time} -> #{e.stop_time}: #{e.detail}".green
|
28
|
+
puts " #{e.id}".color(:lightgreen)
|
29
|
+
puts " #{e.start_time} -> #{e.stop_time}: #{e.detail}".color(:green)
|
30
30
|
if e.start_time > e.stop_time
|
31
|
-
puts " ERROR: start_time is after stop_time".red
|
31
|
+
puts " ERROR: start_time is after stop_time".color(:red)
|
32
32
|
end
|
33
33
|
puts
|
34
34
|
end
|
data/vault-usage-client.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vault-usage-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Continanza
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2019-02-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: excon
|
@@ -40,7 +40,7 @@ dependencies:
|
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: '0'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
|
-
name:
|
43
|
+
name: rainbow
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
46
|
- - ">="
|
@@ -63,9 +63,10 @@ extensions: []
|
|
63
63
|
extra_rdoc_files: []
|
64
64
|
files:
|
65
65
|
- ".gitignore"
|
66
|
-
- ".
|
66
|
+
- ".tool-versions"
|
67
67
|
- ".travis.yml"
|
68
68
|
- ".yardopts"
|
69
|
+
- CHANGELOG.md
|
69
70
|
- Gemfile
|
70
71
|
- Gemfile.lock
|
71
72
|
- README.md
|
@@ -99,9 +100,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
99
100
|
version: '0'
|
100
101
|
requirements: []
|
101
102
|
rubyforge_project:
|
102
|
-
rubygems_version: 2.
|
103
|
+
rubygems_version: 2.7.6
|
103
104
|
signing_key:
|
104
105
|
specification_version: 4
|
105
106
|
summary: A simple wrapper around the Vault::Usage HTTP API
|
106
107
|
test_files: []
|
107
|
-
has_rdoc:
|
data/.ruby-version
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
2.1.1
|