awshark 1.5.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/awshark/cloud_formation/template.rb +7 -3
- data/lib/awshark/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9243bfae1f80dc2a4ca0b2da531aca71d0adf817d4614c97ac4572a862723273
|
4
|
+
data.tar.gz: 1c16327dfcc7d641e6405c9acedbe1dde0edb037b1bd783367dc924f9f021c3c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b71799356977e4a517c902c260d48e2a7f404472bdff3da16b912ac06d083621f6d732a9fbdc3dc388d74730c1fc0d45bd3c916c960aa2f31d0f1393553e47e
|
7
|
+
data.tar.gz: 0370e335a254ea453ac7abeb17e3d9c9fb618facbf8ba667bdfa9064b7e20ec9f4a83b89ab6edf63b619fcb5b00d1218acf7ac34fd6e61d4342dc899d2dcc8d5
|
data/CHANGELOG.md
CHANGED
@@ -11,7 +11,8 @@ module Awshark
|
|
11
11
|
def initialize(path, options = {})
|
12
12
|
@path = path
|
13
13
|
|
14
|
-
@
|
14
|
+
@bucket_and_path = options[:bucket]
|
15
|
+
@bucket = (options[:bucket] || '').split('/')[0]
|
15
16
|
@name = options[:name]
|
16
17
|
@stage = options[:stage]
|
17
18
|
end
|
@@ -77,8 +78,11 @@ module Awshark
|
|
77
78
|
end
|
78
79
|
|
79
80
|
def s3_key
|
80
|
-
|
81
|
-
|
81
|
+
return @s3_key if defined?(@s3_key)
|
82
|
+
|
83
|
+
_, *tail = @bucket_and_path.split('/')
|
84
|
+
prefix = [*tail, 'awshark', name].join('/')
|
85
|
+
@s3_key = "#{prefix}/#{Time.now.strftime('%Y-%m-%d')}.json"
|
82
86
|
end
|
83
87
|
|
84
88
|
def upload
|
data/lib/awshark/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: awshark
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joergen Dahlke
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-06-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|