fluent-plugin-mesosphere-filter 0.1.10 → 0.1.11

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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MGU0MDQyMzUwNzIyZGE0NWQ4OTdmMzgzYWY0OWM3N2NhMDA5YmRhNg==
4
+ YjllYTJmMjkyMmMwMmE3NTg1NGUxMzViZWFhYWZkMWQ5NDRjOTkyOA==
5
5
  data.tar.gz: !binary |-
6
- YWNhYTJmNDk4NjcwZmZkMDlkYmMwNDBlOWFkNjAyNzRkN2RhYjczNg==
6
+ OGEyOThlM2M4NmFmNTg0YzIxNTFjMTllNDdjMzM5MzgzMmE2ZjRhYQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MzlhYTBhZjAwMjBlM2Y3N2Q4MjM0MjM1ZmZhNmZjMDlhZDdiMTRiNTk5NDAx
10
- Yjg4MmQ2NTZiNGI1Njc2OTcwMjhjYzM4MmM4ZDA2M2JjNmE0MjE2ZWI5NjYy
11
- NTgwYmVjMjdjZmZkYjNjODEzMDhjZjgyMDc3MzczYzgxNDM1YmQ=
9
+ NTkxNjI3NjMwMzk3YTFkNTY5MTdiODI2NzEzZGVhZjMyMTZjZGRjNmE5YzE2
10
+ ZTA2ZjQwZDJkYjI0NTY0ODVjY2RiZmVjNDM4NWQyMzdhNzBkZWY4YTgwODNj
11
+ MmIxZjVhM2JmODYyNTVhYWNiMTdkOWJlZjBkMDFlMjFmN2I1OTM=
12
12
  data.tar.gz: !binary |-
13
- NDU5YmIxYjNmMTNkNmQyYjk4MDQyNWYyYjY4MTczZDg2YmI5OWYxODI3YzU4
14
- ODI1MmMxZDM0M2E2MzdhMzFlOThlODkyNzEyNTZlMmFkMGE4MzViZTlkNzBl
15
- NGQzZGUyNjYwM2VhZjg3ZTk1MDk5ZGQ1NmRiMzZlZWZlZDViNDM=
13
+ ZDQ4MmU5N2MyNzQwMDNmZDcwNWU5ZTE4ZThiNTViMzllZDBlZWE1MzlkOGE0
14
+ OTVjMDIyNGM5Y2JhOTAyNWJiZDBmY2Q0NzM1NWYwNjYyYjJlY2QwNDcwNzVl
15
+ NjQ2NDY0ODNkMGRmNzVjYzNkMTgyOTgyMmNlYjgyZDEwMmE4YzM=
data/.travis.yml CHANGED
@@ -1,7 +1,6 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.1.7
4
- - 1.9.3-p551
3
+ - 2.2.5
5
4
  addons:
6
5
  code_climate:
7
6
  repo_token:
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |gem|
6
6
  gem.name = 'fluent-plugin-mesosphere-filter'
7
- gem.version = '0.1.10'
7
+ gem.version = '0.1.11'
8
8
  gem.authors = ['Joseph Hughes']
9
9
  gem.email = ['jjhughes57@gmail.com']
10
10
  gem.description = 'Filter plugin to add Mesosphere metadata'
@@ -32,5 +32,6 @@ Gem::Specification.new do |gem|
32
32
  gem.add_development_dependency 'pry'
33
33
  gem.add_development_dependency 'timecop'
34
34
  gem.add_development_dependency 'simplecov'
35
- gem.add_development_dependency 'minitest', '~> 4.0'
35
+ gem.add_development_dependency 'test-unit'
36
+ gem.add_development_dependency 'minitest', '~> 5.0'
36
37
  end
@@ -31,6 +31,9 @@ module Fluent
31
31
  config_param :cronos_task_regex,
32
32
  :string,
33
33
  default: '^(?<app>[a-z0-9]([-a-z0-9.]*[a-z0-9]))-(?<task_type>[^-]+)-(?<run>[^-]+)-(?<epoc>[^-]+)$'
34
+ config_param :marathon_app_regex,
35
+ :string,
36
+ default: '\/(?<app>[a-z0-9]([-a-z0-9_.]*[a-z0-9_.]))'
34
37
 
35
38
  # Get the configuration for the plugin
36
39
  def configure(conf)
@@ -47,8 +50,7 @@ module Fluent
47
50
 
48
51
  @chronos_task_regex_compiled = Regexp.compile(@cronos_task_regex)
49
52
 
50
- marathon_regex = '\/(?<app>[a-z0-9]([-a-z0-9_.]*[a-z0-9_.]))'
51
- @marathon_app_regex_compiled = Regexp.compile(marathon_regex)
53
+ @marathon_app_regex_compiled = Regexp.compile(@marathon_app_regex)
52
54
  end
53
55
 
54
56
  # Gets the log event stream and moifies it. This is where the plugin hooks
@@ -189,7 +191,7 @@ module Fluent
189
191
  record[namespace] = log_json
190
192
  else
191
193
  record = log_json.merge(record)
192
- end
194
+ end
193
195
  rescue Oj::ParseError
194
196
  end
195
197
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-mesosphere-filter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joseph Hughes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-19 00:00:00.000000000 Z
11
+ date: 2016-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd
@@ -164,20 +164,34 @@ dependencies:
164
164
  - - ! '>='
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: test-unit
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ! '>='
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ! '>='
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
167
181
  - !ruby/object:Gem::Dependency
168
182
  name: minitest
169
183
  requirement: !ruby/object:Gem::Requirement
170
184
  requirements:
171
185
  - - ~>
172
186
  - !ruby/object:Gem::Version
173
- version: '4.0'
187
+ version: '5.0'
174
188
  type: :development
175
189
  prerelease: false
176
190
  version_requirements: !ruby/object:Gem::Requirement
177
191
  requirements:
178
192
  - - ~>
179
193
  - !ruby/object:Gem::Version
180
- version: '4.0'
194
+ version: '5.0'
181
195
  description: Filter plugin to add Mesosphere metadata
182
196
  email:
183
197
  - jjhughes57@gmail.com