aws-logs 0.4.0 → 0.4.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/Gemfile +0 -2
- data/lib/aws_logs/tail.rb +2 -2
- data/lib/aws_logs/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ac3cf7e14d94e30489a76ad6aa015040b452f40d08873cc1fc693d9ec002f329
|
4
|
+
data.tar.gz: 323d3ba2f4db41c09b28e13ce2adf3d1d0aaa7f5b6a52739e518fc56bb4d8529
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e31554544d0e08af47d57e25164745d0579ecac35c6254a5ced1ef516398c355ae5414bb72b42e191208abf1f1734412d1957f64ebb0c4a3e64b78881345e682
|
7
|
+
data.tar.gz: 33788b14fd5e9f3d1b2082c03aedce0555bbe60988d4e0120a964b1c42853bbfcff4d3624dbc9d5c8582e9b8262ba83a3fe5360cd088e3416f73f7599a6f6e79
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,9 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
This project *tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
|
5
5
|
|
6
|
+
## [0.4.1] - 2022-04-23
|
7
|
+
- [#4](https://github.com/tongueroo/aws-logs/pull/4) quiet not found option
|
8
|
+
|
6
9
|
## [0.4.0] - 2022-01-07
|
7
10
|
- [#3](https://github.com/tongueroo/aws-logs/pull/3) streams cli command and data method
|
8
11
|
- fix activesupport require
|
data/Gemfile
CHANGED
data/lib/aws_logs/tail.rb
CHANGED
@@ -13,12 +13,12 @@ module AwsLogs
|
|
13
13
|
set_trap
|
14
14
|
end
|
15
15
|
|
16
|
-
def data(since="1d")
|
16
|
+
def data(since="1d", quiet_not_found=false)
|
17
17
|
since, now = Since.new(since).to_i, current_now
|
18
18
|
resp = filter_log_events(since, now)
|
19
19
|
resp.events
|
20
20
|
rescue Aws::CloudWatchLogs::Errors::ResourceNotFoundException => e
|
21
|
-
puts "WARN: #{e.class}: #{e.message}"
|
21
|
+
puts "WARN: #{e.class}: #{e.message}" unless quiet_not_found
|
22
22
|
[]
|
23
23
|
end
|
24
24
|
|
data/lib/aws_logs/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-logs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tung Nguyen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-04-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -227,7 +227,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
227
227
|
- !ruby/object:Gem::Version
|
228
228
|
version: '0'
|
229
229
|
requirements: []
|
230
|
-
rubygems_version: 3.
|
230
|
+
rubygems_version: 3.3.12
|
231
231
|
signing_key:
|
232
232
|
specification_version: 4
|
233
233
|
summary: Tail AWS CloudWatch Logs
|