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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f80b63c48f228ee6420c2d97226ac8fe1fab65fe42b847b15bfe80fd3f72197a
4
- data.tar.gz: de12e2063cb6e25ee6505fa48ffb8d6d695b0bfa33afc9c3334a4cc132d82c00
3
+ metadata.gz: ac3cf7e14d94e30489a76ad6aa015040b452f40d08873cc1fc693d9ec002f329
4
+ data.tar.gz: 323d3ba2f4db41c09b28e13ce2adf3d1d0aaa7f5b6a52739e518fc56bb4d8529
5
5
  SHA512:
6
- metadata.gz: ec6276ffea2146c914704fb1021a0b3b4cc9b595640ef83cf444ef5217dbdb672504084f12cc3773afdb9ddf02018579512286c8ae25eb7399bf437b60d26c5c
7
- data.tar.gz: 8af7b076de6042316a374321278dadee5d27dea00fcf08d97f58b5c1578fa07dd151b2cbb65f074d5457903c2fcb8ea77f7aa3c01af2a0ffff02ac8e28178050
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
@@ -2,5 +2,3 @@ source "https://rubygems.org"
2
2
 
3
3
  # Specify your gem dependencies in aws-logs.gemspec
4
4
  gemspec
5
-
6
- gem "codeclimate-test-reporter", group: :test, require: nil
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
 
@@ -1,3 +1,3 @@
1
1
  module AwsLogs
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
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.0
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-01-07 00:00:00.000000000 Z
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.2.32
230
+ rubygems_version: 3.3.12
231
231
  signing_key:
232
232
  specification_version: 4
233
233
  summary: Tail AWS CloudWatch Logs