aws_log_cleaner 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5712cc5575b552cb87dc9a16380e5bf0e0a905e2
4
- data.tar.gz: f54f4af93b751d371418e883c40e1e6ae5a43127
3
+ metadata.gz: d9e2389006bc57357e377983859742cbc22cf614
4
+ data.tar.gz: b16f3d00ad984644d75e1d2f5ce7feacfd6b9812
5
5
  SHA512:
6
- metadata.gz: d6de8cb2fcd74b10541b5dd5667e291025e85ea30de6ec6f774d33c5fb810d13f21bcd14ffebc12717b0287bea3acabbdeaba8bf19cb0d9b71f5038c0fa0a662
7
- data.tar.gz: 3f64bac239a3516a583bda3ec9f43134e9a1875aad726a0647965a056e05c2b3af1e56c264cec98e580a61695ad75d231d262c41ea1162c167ff786e8987712e
6
+ metadata.gz: 4fd78ad333f4748349f7d2bfaf532b9a1fcce5dec84bc77a4202e0aa700b5c28b3b6a5072cb8ecd9e551742017ff92da9ab39c6d7b7243b34b85450cc83352f1
7
+ data.tar.gz: bd455736d9d2629f4faf02dce2fbf271675bcffd55957803709532990ea2c61277984848d21ca4be19041d26b35057e631119be98281fe812f928db8bb60afc8
data/.gitignore CHANGED
@@ -1,126 +1,127 @@
1
-
2
- # Created by https://www.gitignore.io/api/ruby,visualstudiocode,rubymine
3
-
4
- ### Ruby ###
5
- *.gem
6
- *.rbc
7
- /.config
8
- /coverage/
9
- /InstalledFiles
10
- /pkg/
11
- /spec/reports/
12
- /spec/examples.txt
13
- /test/tmp/
14
- /test/version_tmp/
15
- /tmp/
16
-
17
- # Used by dotenv library to load environment variables.
18
- # .env
19
-
20
- ## Specific to RubyMotion:
21
- .dat*
22
- .repl_history
23
- build/
24
- *.bridgesupport
25
- build-iPhoneOS/
26
- build-iPhoneSimulator/
27
-
28
- ## Specific to RubyMotion (use of CocoaPods):
29
- #
30
- # We recommend against adding the Pods directory to your .gitignore. However
31
- # you should judge for yourself, the pros and cons are mentioned at:
32
- # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
33
- #
34
- # vendor/Pods/
35
-
36
- ## Documentation cache and generated files:
37
- /.yardoc/
38
- /_yardoc/
39
- /doc/
40
- /rdoc/
41
-
42
- ## Environment normalization:
43
- /.bundle/
44
- /vendor/bundle
45
- /lib/bundler/man/
46
-
47
- # for a library or gem, you might want to ignore these files since the code is
48
- # intended to run in multiple environments; otherwise, check them in:
49
- # Gemfile.lock
50
- # .ruby-version
51
- # .ruby-gemset
52
-
53
- # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
54
- .rvmrc
55
-
56
- ### RubyMine ###
57
- # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
58
- # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
59
-
60
- # User-specific stuff:
61
- .idea/**/workspace.xml
62
- .idea/**/tasks.xml
63
- .idea/dictionaries
64
-
65
- # Sensitive or high-churn files:
66
- .idea/**/dataSources/
67
- .idea/**/dataSources.ids
68
- .idea/**/dataSources.xml
69
- .idea/**/dataSources.local.xml
70
- .idea/**/sqlDataSources.xml
71
- .idea/**/dynamic.xml
72
- .idea/**/uiDesigner.xml
73
-
74
- # Gradle:
75
- .idea/**/gradle.xml
76
- .idea/**/libraries
77
-
78
- # CMake
79
- cmake-build-debug/
80
-
81
- # Mongo Explorer plugin:
82
- .idea/**/mongoSettings.xml
83
-
84
- ## File-based project format:
85
- *.iws
86
-
87
- ## Plugin-specific files:
88
-
89
- # IntelliJ
90
- /out/
91
-
92
- # mpeltonen/sbt-idea plugin
93
- .idea_modules/
94
-
95
- # JIRA plugin
96
- atlassian-ide-plugin.xml
97
-
98
- # Cursive Clojure plugin
99
- .idea/replstate.xml
100
-
101
- # Crashlytics plugin (for Android Studio and IntelliJ)
102
- com_crashlytics_export_strings.xml
103
- crashlytics.properties
104
- crashlytics-build.properties
105
- fabric.properties
106
-
107
- ### RubyMine Patch ###
108
- # Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721
109
-
110
- .idea/
111
- *.iml
112
- modules.xml
113
- .idea/misc.xml
114
- *.ipr
115
-
116
- # Sonarlint plugin
117
- .idea/sonarlint
118
-
119
- ### VisualStudioCode ###
120
- .vscode/*
121
- !.vscode/settings.json
122
- !.vscode/tasks.json
123
- !.vscode/launch.json
124
- !.vscode/extensions.json
125
-
126
- # End of https://www.gitignore.io/api/ruby,visualstudiocode,rubymine
1
+
2
+ # Created by https://www.gitignore.io/api/ruby,visualstudiocode,rubymine
3
+
4
+ ### Ruby ###
5
+ *.gem
6
+ *.rbc
7
+ Gemfile.lock
8
+ /.config
9
+ /coverage/
10
+ /InstalledFiles
11
+ /pkg/
12
+ /spec/reports/
13
+ /spec/examples.txt
14
+ /test/tmp/
15
+ /test/version_tmp/
16
+ /tmp/
17
+
18
+ # Used by dotenv library to load environment variables.
19
+ # .env
20
+
21
+ ## Specific to RubyMotion:
22
+ .dat*
23
+ .repl_history
24
+ build/
25
+ *.bridgesupport
26
+ build-iPhoneOS/
27
+ build-iPhoneSimulator/
28
+
29
+ ## Specific to RubyMotion (use of CocoaPods):
30
+ #
31
+ # We recommend against adding the Pods directory to your .gitignore. However
32
+ # you should judge for yourself, the pros and cons are mentioned at:
33
+ # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
34
+ #
35
+ # vendor/Pods/
36
+
37
+ ## Documentation cache and generated files:
38
+ /.yardoc/
39
+ /_yardoc/
40
+ /doc/
41
+ /rdoc/
42
+
43
+ ## Environment normalization:
44
+ /.bundle/
45
+ /vendor/bundle
46
+ /lib/bundler/man/
47
+
48
+ # for a library or gem, you might want to ignore these files since the code is
49
+ # intended to run in multiple environments; otherwise, check them in:
50
+ # Gemfile.lock
51
+ # .ruby-version
52
+ # .ruby-gemset
53
+
54
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
55
+ .rvmrc
56
+
57
+ ### RubyMine ###
58
+ # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
59
+ # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
60
+
61
+ # User-specific stuff:
62
+ .idea/**/workspace.xml
63
+ .idea/**/tasks.xml
64
+ .idea/dictionaries
65
+
66
+ # Sensitive or high-churn files:
67
+ .idea/**/dataSources/
68
+ .idea/**/dataSources.ids
69
+ .idea/**/dataSources.xml
70
+ .idea/**/dataSources.local.xml
71
+ .idea/**/sqlDataSources.xml
72
+ .idea/**/dynamic.xml
73
+ .idea/**/uiDesigner.xml
74
+
75
+ # Gradle:
76
+ .idea/**/gradle.xml
77
+ .idea/**/libraries
78
+
79
+ # CMake
80
+ cmake-build-debug/
81
+
82
+ # Mongo Explorer plugin:
83
+ .idea/**/mongoSettings.xml
84
+
85
+ ## File-based project format:
86
+ *.iws
87
+
88
+ ## Plugin-specific files:
89
+
90
+ # IntelliJ
91
+ /out/
92
+
93
+ # mpeltonen/sbt-idea plugin
94
+ .idea_modules/
95
+
96
+ # JIRA plugin
97
+ atlassian-ide-plugin.xml
98
+
99
+ # Cursive Clojure plugin
100
+ .idea/replstate.xml
101
+
102
+ # Crashlytics plugin (for Android Studio and IntelliJ)
103
+ com_crashlytics_export_strings.xml
104
+ crashlytics.properties
105
+ crashlytics-build.properties
106
+ fabric.properties
107
+
108
+ ### RubyMine Patch ###
109
+ # Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721
110
+
111
+ .idea/
112
+ *.iml
113
+ modules.xml
114
+ .idea/misc.xml
115
+ *.ipr
116
+
117
+ # Sonarlint plugin
118
+ .idea/sonarlint
119
+
120
+ ### VisualStudioCode ###
121
+ .vscode/*
122
+ !.vscode/settings.json
123
+ !.vscode/tasks.json
124
+ !.vscode/launch.json
125
+ !.vscode/extensions.json
126
+
127
+ # End of https://www.gitignore.io/api/ruby,visualstudiocode,rubymine
data/.rspec CHANGED
@@ -1 +1 @@
1
- --require spec_helper
1
+ --require spec_helper
data/.travis.yml ADDED
@@ -0,0 +1,16 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.1.6
5
+ before_install: gem install bundler -v 1.14.6
6
+ os:
7
+ - linux
8
+ - osx
9
+ deploy:
10
+ provider: rubygems
11
+ api_key:
12
+ secure: MkzFSS1N531sgP+f8MCDHbpXMUUaM/4was8tGW7yaSbfs5B0M/DK4jHEWT0jHS5RoXZcKldr5elx200Wz6IlqFP+9XWPTd14HWTn+XZn53yrvoJhO/b2bxRK5905RjrLaXoC4yzWK9v+ILTumVsHWefAwGq2SBlK0CsFWNHQEwP2T9hN3QRovGyopLoGRR++TgL8jw8TNE70O/QjX7JACRy/CUUKQE4XqAYUsq3BuHe7Vur+1KMN00++ja8THPLUcVR+Paf/qHhCTyIIMkpOJ81GIPgEuRFPH4hGhooRZlTcizp0fl7WXqNJGVhl7sVsG00ExFp51fxaG/ZH5Ho5St9GyXuWp7QQfXnCsNp3tWrPs7/tWQZiqJWhOk7XoHPd9I/gSJj24fxi935EkDaNc8XrFh9Rw1kC9rhSaquY+gNuE9iMARgE3p2YWEVTvmrjSXFPONC0fc7iIXkixJt6URVShrU4gZyT5UC0VcmaC/f6Oo0fBkeVs2d8jTx5I/hP1UTeRIjZPEaFLf/mhbbQ502nWRj1MYHVC7PKQWyerkch82ckkEj25w+Xw82sz0Ac99/9tzEIw7Q0Ex6Xi2GaqhTmzvIdo3GViv8Ehj8xw0kh4TqPNvyNdKV89eIoRy2oL3tnq9oLLEVEF2nfGqRjAbrqI06aFSVJyylDGzEg1HA=
13
+ gem: aws_log_cleaner
14
+ on:
15
+ tags: true
16
+ repo: daniebker/aws_log_cleaner
data/Gemfile CHANGED
@@ -1,7 +1,4 @@
1
- source 'https://rubygems.org'
2
-
3
- # dependencies specified in aws_log_cleaner.gemspec
4
- gemspec
5
-
6
- source 'http://vbuartifactory.vistaprint.svc/artifactory/api/gems/gems-release-local'
7
- gem 'vp_devkit_dotnet'
1
+ source 'https://rubygems.org'
2
+
3
+ # dependencies specified in aws_log_cleaner.gemspec
4
+ gemspec
data/LICENSE CHANGED
@@ -1,13 +1,13 @@
1
- Copyright 2017 Cimpress
2
-
3
- Licensed under the Apache License, Version 2.0 (the "License");
4
- you may not use this file except in compliance with the License.
5
- You may obtain a copy of the License at
6
-
7
- http://www.apache.org/licenses/LICENSE-2.0
8
-
9
- Unless required by applicable law or agreed to in writing, software
10
- distributed under the License is distributed on an "AS IS" BASIS,
11
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- See the License for the specific language governing permissions and
1
+ Copyright 2017 Cimpress
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
13
  limitations under the License.
data/README.md CHANGED
@@ -1,59 +1,61 @@
1
- # AwsLogCleaner
2
-
3
- A gem to clean up aws lambda and Api Gateway log groups that contain a search term.
4
-
5
- ## Installation
6
-
7
- Add this line to your application's Gemfile:
8
-
9
- ```ruby
10
- gem 'aws_log_cleaner'
11
- ```
12
-
13
- And then execute:
14
-
15
- $ bundle
16
-
17
- Or install it yourself as:
18
-
19
- $ gem install aws_log_cleaner
20
-
21
- ## Usage
22
-
23
- ### Requirements
24
-
25
- * `AWS_SECRET_KEY` & `AWS_ACCESS_KEY` env variables must be set.
26
- OR
27
- * A credentials file must be present in `~\.aws`
28
-
29
- The application defaults to `eu-west-1` but this can be overridden using `AWS_DEFAULT_REGION` environment variable.
30
-
31
- ### From the command line
32
-
33
- * Get help by using:
34
-
35
- `aws_log_cleaner -h`
36
-
37
- * Run the plan command in eu-west-1 where prefix like some_text.
38
-
39
- `aws_log_cleaner -p -l 'some_text' -r 'eu-west-1' -k [ACCESS_KEY] -s [SECRET]`
40
-
41
- ## Code
42
-
43
- Initialise a new LogCleaner
44
-
45
- `log_cleaner = AwsLogCleaner::AwsLogCleaner.new`
46
-
47
- Run a plan
48
-
49
- `log_cleaner.plan('some_text')`
50
-
51
- Or run a delete
52
-
53
- `log_cleaner.delete('some_text')`
54
-
55
- ## Development
56
-
57
- 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.
58
-
1
+ [![Build Status](https://travis-ci.org/daniebker/aws_log_cleaner.svg?branch=master)](https://travis-ci.org/daniebker/aws_log_cleaner)
2
+
3
+ # AwsLogCleaner
4
+
5
+ A gem to clean up aws lambda and Api Gateway log groups that contain a search term.
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'aws_log_cleaner'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install aws_log_cleaner
22
+
23
+ ## Usage
24
+
25
+ ### Requirements
26
+
27
+ * `AWS_SECRET_KEY` & `AWS_ACCESS_KEY` env variables must be set.
28
+ OR
29
+ * A credentials file must be present in `~\.aws`
30
+
31
+ The application defaults to `eu-west-1` but this can be overridden using `AWS_DEFAULT_REGION` environment variable.
32
+
33
+ ### From the command line
34
+
35
+ * Get help by using:
36
+
37
+ `aws_log_cleaner -h`
38
+
39
+ * Run the plan command in eu-west-1 where prefix like some_text.
40
+
41
+ `aws_log_cleaner -p -l 'some_text' -r 'eu-west-1' -k [ACCESS_KEY] -s [SECRET]`
42
+
43
+ ## Code
44
+
45
+ Initialise a new LogCleaner
46
+
47
+ `log_cleaner = AwsLogCleaner::AwsLogCleaner.new`
48
+
49
+ Run a plan
50
+
51
+ `log_cleaner.plan('some_text')`
52
+
53
+ Or run a delete
54
+
55
+ `log_cleaner.delete('some_text')`
56
+
57
+ ## Development
58
+
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
+
59
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).
data/Rakefile CHANGED
@@ -1,13 +1,12 @@
1
-
2
- require 'bundler/gem_tasks'
3
- require 'vp_devkit_dotnet'
4
-
5
- require_relative 'lib/aws_log_cleaner'
6
-
7
- task default: :spec
8
-
9
- begin
10
- require 'rspec/core/rake_task'
11
- RSpec::Core::RakeTask.new(:spec)
12
- rescue LoadError
13
- end
1
+
2
+ require 'bundler/gem_tasks'
3
+
4
+ require_relative 'lib/aws_log_cleaner'
5
+
6
+ task default: :spec
7
+
8
+ begin
9
+ require 'rspec/core/rake_task'
10
+ RSpec::Core::RakeTask.new(:spec)
11
+ rescue LoadError
12
+ end