aws_log_cleaner 0.1.6 → 0.1.7

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
  SHA1:
3
- metadata.gz: 930d1449b8c7ba7ec0ec21761574836bf9ea3154
4
- data.tar.gz: 79fe79bff4d046ebee699b745c0c94d46f899814
3
+ metadata.gz: 01b45eb13e994162c2b137d83a39fb5aea229324
4
+ data.tar.gz: 8611794db35d12cd38b166613e5ec1a3f022f192
5
5
  SHA512:
6
- metadata.gz: 76ea2614ada694c445e8aa976fc7daa9ddfc6a06267f19e3021d23abd3de801ce5eafffc63d8bd311a442b9342e889e75a1f0ae38ee6eb0d06e254361f2e787b
7
- data.tar.gz: e458dbc7b89fe8dfdf02e70bb4b4e25399e3c76f2763d9aa43606599d238a4bc55a9522f79b62c1d1b9e81e0b0b6790cc87a86fe15fadc68c0fa58a2db7094b1
6
+ metadata.gz: 94ba3d272f3611bd54d9255204c10f56a879f9adb693a06c0b48bbd4e0cebabed1d6f623f9897dfeaa0474de48efe0d78cb3ebfc27d69021a354630bc96247e6
7
+ data.tar.gz: be81383cc1e304308ed6915e749698dbf655bf771e5374e54d9a68c2eeab6c533bae379060e0471482659d25ab9e3dabab8df25a298c7dc5706507b0e9ed2e63
data/README.md CHANGED
@@ -28,7 +28,7 @@ Or install it yourself as:
28
28
  OR
29
29
  * A credentials file must be present in `~\.aws`
30
30
 
31
- The application defaults to `eu-west-1` but this can be overridden using `AWS_DEFAULT_REGION` environment variable.
31
+ The application defaults to `eu-west-1` but this can be overridden using `AWS_REGION` environment variable, or by passing -r [--region] on the commandline.
32
32
 
33
33
  ### From the command line
34
34
 
@@ -58,4 +58,4 @@ Or run a delete
58
58
 
59
59
  After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
60
60
 
61
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
61
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
@@ -1,16 +1,16 @@
1
1
 
2
2
  module AwsLogCleaner
3
3
 
4
- # Responsible for retrieving API gateway instances filtered by prefix
4
+ # Responsible for retrieving API gateway instances filtered by a given text
5
5
  class ApiGatewayRetriever
6
6
 
7
7
  def initialize(api_gateway)
8
8
  @api_gateway = api_gateway
9
9
  end
10
10
 
11
- def retrieve(prefix)
11
+ def retrieve(text)
12
12
  apis = @api_gateway.list_all_apis
13
- apis.select{ |item| item.name.to_s.downcase.start_with?(prefix) }
13
+ apis.select{ |item| item.name.to_s.downcase.include?(text) }
14
14
  end
15
15
 
16
16
  end
@@ -1,3 +1,3 @@
1
1
  module AwsLogCleaner
2
- VERSION = '0.1.6'
2
+ VERSION = '0.1.7'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws_log_cleaner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - dbaker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-04 00:00:00.000000000 Z
11
+ date: 2017-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler