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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 396f74ea5ff90f39ec688dba59339a3eb7abcd59
4
- data.tar.gz: b102e37d9f160b8ea762837bbbc3ff62ee7fd5d3
2
+ SHA256:
3
+ metadata.gz: 8b11594b4eea0411dc28d50374ff20df8d3a61b1293c666ee946f865f37ebfac
4
+ data.tar.gz: 76a84b176ec89e1d028a424371981e52f2cbd648e1be7caea042ecb81a294e78
5
5
  SHA512:
6
- metadata.gz: 72451c5898b32134424a27efdc97b40213866c6dee9cf80fdbc88a4d5071dcfc75dd6748e4697b72c92cf11f663c57e1788719d3c316ff5c8a222107b6a85805
7
- data.tar.gz: bd44043d3dd67c23c7fef8f0319fc818679fb8504d4a271cfc17330de548b2be1321d34eab89c973930c52fa28995b8241e95f4980c14614c62b858dca9c0d25
6
+ metadata.gz: fee2244ec56e98c84f0b0a72f7a02ae6d13252999a77ed1b019ae9e0d445ec068faaa1de933ff1d46bc74f1c053447b0019f3dd740498ebb10659e55834c808b
7
+ data.tar.gz: 6af1e3b2833fb8e1efcd1a423fd48f130d694db4dce34cf9da187b2f4e19bfaa7c16dc1af601a0ec62d8a9c56b1c64e17c40ce6685304b1d9ced740136aabd2f
@@ -0,0 +1 @@
1
+ ruby 2.5.3
@@ -1,5 +1,4 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 1.9.3-p545
4
- - 2.0.0-p353
5
- - 2.1.0
3
+ - 2.3.5
4
+ - 2.5.3
@@ -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
@@ -1,21 +1,20 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- vault-usage-client (0.0.12)
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.4.3)
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
- colorize (0.7.3)
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
- mini_portile (0.6.0)
37
+ mini_portile2 (2.4.0)
39
38
  minitest (4.7.5)
40
- multi_json (1.10.1)
41
- nokogiri (1.6.2.1)
42
- mini_portile (= 0.6.0)
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 (1.6.4)
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.8.7.2)
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.10.6
87
+ 1.17.3
@@ -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 'colorize'
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}".light_green
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
@@ -2,7 +2,7 @@ module Vault
2
2
  module Usage
3
3
  class Client
4
4
  # The `Vault::Usage::Client` gem version.
5
- VERSION = '0.0.12'
5
+ VERSION = '1.0.0'.freeze
6
6
  end
7
7
  end
8
8
  end
@@ -19,5 +19,5 @@ Gem::Specification.new do |gem|
19
19
 
20
20
  gem.add_dependency 'excon'
21
21
  gem.add_dependency 'multi_json'
22
- gem.add_dependency 'colorize'
22
+ gem.add_dependency 'rainbow'
23
23
  end
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.12
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: 2016-03-11 00:00:00.000000000 Z
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: colorize
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
- - ".ruby-version"
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.2.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:
@@ -1 +0,0 @@
1
- 2.1.1