log_extractor 0.1.0 → 0.1.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: 8e558bdc6ba573705ba3a3c95dc3ade1a725a3629b5f31bbcd57495f5876672d
4
- data.tar.gz: 53ac750ac7cb41c183bc21558d07f9119ec4bd404443b726fad28db95cfed68f
3
+ metadata.gz: 6ae1b18e3f252987bbbac4fa6b022a966cffba31c0f4d7ac974b732515cd0211
4
+ data.tar.gz: c94a8fc5b1e5743821be34907389f4360bbb98013b3ea1664e811ce3941fb602
5
5
  SHA512:
6
- metadata.gz: 993eac8eb429d5af06db630c645260324680b942f05cc95581dffa9daee742746ebd7efe196d3f8577351c39592719b7bf78c4f7eef8ec234f14ac60172a5892
7
- data.tar.gz: 0f3fd7240d0d347f9666162dddf5dea601252dc1d675849d4c16930c1b2dcd9ec827579285306b5d40f3d99627d305edf7c3eaf880c012274e033fe9e774ff80
6
+ metadata.gz: f997013725f3cbe2526e4bf0b12a30edce5ae3176489dc8631f993f1d97e1c81f585e71b9db59e69ef9a5c925b1e07f4556cce03c316fff819d58378ea58800f
7
+ data.tar.gz: 1d30f46be0d8c0e363fc0811055a01da4494e9f844b440e3198ba6255a2fd792aa12f37bc9f3b6186b4f1f0aa5fd13762a5ba435a3f4c6896b942159971c6a58
@@ -2,30 +2,40 @@ name: Ruby
2
2
 
3
3
  on: [push,pull_request]
4
4
 
5
- env:
6
- RUBY_VERSION: 2.6.6
7
-
8
5
  jobs:
9
6
  rspec:
7
+ strategy:
8
+ matrix:
9
+ ruby: [2.5, 2.6, 2.7, 3.0]
10
+
10
11
  runs-on: ubuntu-latest
12
+
11
13
  steps:
12
14
  - uses: actions/checkout@v2
15
+
13
16
  - name: Set up Ruby
14
17
  uses: ruby/setup-ruby@v1
15
18
  with:
16
- ruby-version: ${{ env.RUBY_VERSION }}
19
+ ruby-version: ${{ matrix.ruby }}
17
20
  bundler-cache: true
21
+
18
22
  - name: Run tests
19
23
  run: bundle exec rake spec
24
+
20
25
  rubocop:
26
+
21
27
  runs-on: ubuntu-latest
28
+
22
29
  steps:
23
30
  - uses: actions/checkout@v2
31
+
24
32
  - name: Set up Ruby
25
33
  uses: ruby/setup-ruby@v1
26
34
  with:
27
- ruby-version: ${{ env.RUBY_VERSION }}
35
+ ruby-version: 3.0
36
+
28
37
  - name: Install Rubocop
29
38
  run: gem install rubocop
39
+
30
40
  - name: Run tests
31
41
  run: rubocop
data/.rubocop.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  AllCops:
2
- TargetRubyVersion: 2.6
2
+ TargetRubyVersion: 2.5
3
3
  SuggestExtensions: false
4
4
  NewCops: disable
5
5
 
data/CHANGELOG.md CHANGED
@@ -1,5 +1,7 @@
1
- ## [Unreleased]
1
+ ## [0.1.1] - 2021-05-31
2
2
 
3
- ## [0.1.0] - 2021-05-26
3
+ - Add support for ruby >= 2.5
4
+
5
+ ## [0.1.0] - 2021-05-28
4
6
 
5
7
  - Initial release
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- log_extractor (0.1.0)
4
+ log_extractor (0.1.1)
5
5
  attr_extras (~> 6.2)
6
6
  elasticsearch (~> 7.12)
7
7
 
data/README.md CHANGED
@@ -30,7 +30,7 @@ Setup an environment variable with the url from your ELK server to extract the l
30
30
  export ELASTICSEARCH_URL=http://localhost:9200/
31
31
  ```
32
32
 
33
- Pick a query (Lucene) and a period (in minutes, 15 minutes by default), and you'll have every matching log in a block ready to extract whatever you need:
33
+ Pick a query (Lucene) and a period (in minutes, last 15 minutes by default), and you'll have every matching log in a block ready to extract whatever you need:
34
34
 
35
35
  ```ruby
36
36
  LogExtractor::Extract.(query: "[your query]", period: 15) do |log|
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LogExtractor
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
@@ -8,11 +8,11 @@ Gem::Specification.new do |spec|
8
8
  spec.authors = ["Sergio Gómez"]
9
9
  spec.email = ["hola@sergio-gomez.com"]
10
10
 
11
- spec.summary = "Simple tool to extract and parse logs from ELK syslog_messages"
12
- spec.description = "Abstraction layers for ElasticSearch and for parsing logs"
11
+ spec.summary = "Simple tool to extract and parse logs easily from ELK"
12
+ spec.description = "Simple tool to extract and parse logs easily from ELK"
13
13
  spec.homepage = "https://github.com/sergiogomez/log_extractor"
14
14
  spec.license = "MIT"
15
- spec.required_ruby_version = ">= 2.6.6"
15
+ spec.required_ruby_version = ">= 2.5"
16
16
 
17
17
  # spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
18
18
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: log_extractor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergio Gómez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-28 00:00:00.000000000 Z
11
+ date: 2021-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: attr_extras
@@ -122,7 +122,7 @@ dependencies:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
124
  version: '1.15'
125
- description: Abstraction layers for ElasticSearch and for parsing logs
125
+ description: Simple tool to extract and parse logs easily from ELK
126
126
  email:
127
127
  - hola@sergio-gomez.com
128
128
  executables: []
@@ -164,7 +164,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
164
164
  requirements:
165
165
  - - ">="
166
166
  - !ruby/object:Gem::Version
167
- version: 2.6.6
167
+ version: '2.5'
168
168
  required_rubygems_version: !ruby/object:Gem::Requirement
169
169
  requirements:
170
170
  - - ">="
@@ -174,5 +174,5 @@ requirements: []
174
174
  rubygems_version: 3.0.9
175
175
  signing_key:
176
176
  specification_version: 4
177
- summary: Simple tool to extract and parse logs from ELK syslog_messages
177
+ summary: Simple tool to extract and parse logs easily from ELK
178
178
  test_files: []