logstash-filter-cidr 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- Yzk2MDNjNDkyODMxYTVkMTg1MmY4YWExZTMyNTk2OTNkN2EzMWE4Mw==
5
- data.tar.gz: !binary |-
6
- YjM5OGIzMWQyOGVmYTQ2YjE5NGUxNDY0YjlhOWVlYTNlNmU0ZTE0MA==
2
+ SHA1:
3
+ metadata.gz: 7f1e72ab5a496d997dd7969a778ce1b532f8481e
4
+ data.tar.gz: 5475c468a69cea65b14f755b6bdcde4a93339e74
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- YTA0YmUzMWVlZjU0NGM3ODhjNzk4NDYxNWVjMDNhM2NlZDUxMDIzZWExOTkz
10
- ZTZiZWVkYzhmMzY1NWU4ODJiMmVjNmNmYWU5YTk4Y2VkOTBhZGFiMmQxZjc1
11
- ZTFlMzA2NTU1ZTMyNWI0OGE2MDFkYTM5NjA5MzFmODYwYWQ4ODA=
12
- data.tar.gz: !binary |-
13
- OGViNDVkODQ0ZWM2MDVjZjQ3YzVmYmU3YTFmNTczOTVhZmU0NmExZTE1MWE3
14
- NGFjOGE5MGUyZGQxNDE5NmM1YjhiN2MzMjJlZmQwNThhYzg0YWJmMDA2ZDhk
15
- ZTk5MTAwN2ZjNzg3YmYyYWU2ZTAzMTIwNGEzMTVjYTBjMTEwZTY=
6
+ metadata.gz: 9fc9fcd070821653b47f334fa49139304cfb0c870220b949ebd9f64ea0bd6a881097ffe4d0647bcb098a72fc0c15a2292a3fc131298886f7f085e0413c2eac3b
7
+ data.tar.gz: d4af1cc5a8ed0ae03af4d55ddad1e8490825023e6e12794692c51ebc2d18b5a3b4f635c3f3eddf3771d4cfcab353926fafb8787af700e16928b939b705e5b74c
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
1
  *.gem
2
2
  Gemfile.lock
3
3
  .bundle
4
+ vendor
data/Gemfile CHANGED
@@ -1,3 +1,3 @@
1
- source 'http://rubygems.org'
2
- gem 'rake'
3
- gem 'gem_publisher'
1
+ source 'https://rubygems.org'
2
+ gemspec
3
+ gem "logstash", :github => "elasticsearch/logstash", :branch => "1.5"
data/LICENSE ADDED
@@ -0,0 +1,13 @@
1
+ Copyright (c) 2012-2014 Elasticsearch <http://www.elasticsearch.org>
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
+ limitations under the License.
data/Rakefile CHANGED
@@ -1,12 +1,7 @@
1
- require "gem_publisher"
2
-
3
- desc "Publish gem to RubyGems.org"
4
- task :publish_gem do |t|
5
- gem = GemPublisher.publish_if_updated("logstash-filter-cidr.gemspec", :rubygems)
6
- puts "Published #{gem}" if gem
7
- end
1
+ @files=[]
8
2
 
9
3
  task :default do
10
4
  system("rake -T")
11
5
  end
12
6
 
7
+ require "logstash/devutils/rake"
@@ -15,7 +15,7 @@ class LogStash::Filters::CIDR < LogStash::Filters::Base
15
15
  milestone 1
16
16
 
17
17
  # The IP address(es) to check with. Example:
18
- #
18
+ # [source,ruby]
19
19
  # filter {
20
20
  # %PLUGIN% {
21
21
  # add_tag => [ "testnet" ]
@@ -26,7 +26,7 @@ class LogStash::Filters::CIDR < LogStash::Filters::Base
26
26
  config :address, :validate => :array, :default => []
27
27
 
28
28
  # The IP network(s) to check against. Example:
29
- #
29
+ # [source,ruby]
30
30
  # filter {
31
31
  # %PLUGIN% {
32
32
  # add_tag => [ "linklocal" ]
@@ -1,26 +1,27 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-filter-cidr'
4
- s.version = '0.1.1'
4
+ s.version = '0.1.2'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "The CIDR filter is for checking IP addresses in events against a list of network blocks that might contain it."
7
- s.description = "The CIDR filter is for checking IP addresses in events against a list of network blocks that might contain it. Multiple addresses can be checked against multiple networks, any match succeeds. Upon success additional tags and/or fields can be added to the event."
7
+ s.description = "This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not a stand-alone program"
8
8
  s.authors = ["Elasticsearch"]
9
- s.email = 'richard.pijnenburg@elasticsearch.com'
10
- s.homepage = "http://logstash.net/"
9
+ s.email = 'info@elasticsearch.com'
10
+ s.homepage = "http://www.elasticsearch.org/guide/en/logstash/current/index.html"
11
11
  s.require_paths = ["lib"]
12
12
 
13
13
  # Files
14
- s.files = `git ls-files`.split($\)
14
+ s.files = `git ls-files`.split($\)+::Dir.glob('vendor/*')
15
15
 
16
16
  # Tests
17
17
  s.test_files = s.files.grep(%r{^(test|spec|features)/})
18
18
 
19
19
  # Special flag to let us know this is actually a logstash plugin
20
- s.metadata = { "logstash_plugin" => "true", "group" => "filter" }
20
+ s.metadata = { "logstash_plugin" => "true", "logstash_group" => "filter" }
21
21
 
22
22
  # Gem dependencies
23
23
  s.add_runtime_dependency 'logstash', '>= 1.4.0', '< 2.0.0'
24
24
 
25
+ s.add_development_dependency 'logstash-devutils'
25
26
  end
26
27
 
@@ -1,8 +1,8 @@
1
- require "test_utils"
1
+ require "logstash/devutils/rspec/spec_helper"
2
2
  require "logstash/filters/cidr"
3
3
 
4
4
  describe LogStash::Filters::CIDR do
5
- extend LogStash::RSpec
5
+
6
6
 
7
7
  describe "IPV4 match test" do
8
8
  config <<-CONFIG
metadata CHANGED
@@ -1,78 +1,87 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-filter-cidr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elasticsearch
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-16 00:00:00.000000000 Z
11
+ date: 2014-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logstash
15
+ version_requirements: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: 1.4.0
20
+ - - <
21
+ - !ruby/object:Gem::Version
22
+ version: 2.0.0
15
23
  requirement: !ruby/object:Gem::Requirement
16
24
  requirements:
17
- - - ! '>='
25
+ - - '>='
18
26
  - !ruby/object:Gem::Version
19
- version: !binary |-
20
- MS40LjA=
27
+ version: 1.4.0
21
28
  - - <
22
29
  - !ruby/object:Gem::Version
23
30
  version: 2.0.0
24
- type: :runtime
25
31
  prerelease: false
32
+ type: :runtime
33
+ - !ruby/object:Gem::Dependency
34
+ name: logstash-devutils
26
35
  version_requirements: !ruby/object:Gem::Requirement
27
36
  requirements:
28
- - - ! '>='
37
+ - - '>='
29
38
  - !ruby/object:Gem::Version
30
- version: !binary |-
31
- MS40LjA=
32
- - - <
39
+ version: '0'
40
+ requirement: !ruby/object:Gem::Requirement
41
+ requirements:
42
+ - - '>='
33
43
  - !ruby/object:Gem::Version
34
- version: 2.0.0
35
- description: The CIDR filter is for checking IP addresses in events against a list
36
- of network blocks that might contain it. Multiple addresses can be checked against
37
- multiple networks, any match succeeds. Upon success additional tags and/or fields
38
- can be added to the event.
39
- email: richard.pijnenburg@elasticsearch.com
44
+ version: '0'
45
+ prerelease: false
46
+ type: :development
47
+ description: This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not a stand-alone program
48
+ email: info@elasticsearch.com
40
49
  executables: []
41
50
  extensions: []
42
51
  extra_rdoc_files: []
43
52
  files:
44
53
  - .gitignore
45
54
  - Gemfile
55
+ - LICENSE
46
56
  - Rakefile
47
57
  - lib/logstash/filters/cidr.rb
48
58
  - logstash-filter-cidr.gemspec
49
- - spec/filters/cidr.rb
50
- homepage: http://logstash.net/
59
+ - spec/filters/cidr_spec.rb
60
+ homepage: http://www.elasticsearch.org/guide/en/logstash/current/index.html
51
61
  licenses:
52
62
  - Apache License (2.0)
53
63
  metadata:
54
64
  logstash_plugin: 'true'
55
- group: filter
56
- post_install_message:
65
+ logstash_group: filter
66
+ post_install_message:
57
67
  rdoc_options: []
58
68
  require_paths:
59
69
  - lib
60
70
  required_ruby_version: !ruby/object:Gem::Requirement
61
71
  requirements:
62
- - - ! '>='
72
+ - - '>='
63
73
  - !ruby/object:Gem::Version
64
74
  version: '0'
65
75
  required_rubygems_version: !ruby/object:Gem::Requirement
66
76
  requirements:
67
- - - ! '>='
77
+ - - '>='
68
78
  - !ruby/object:Gem::Version
69
79
  version: '0'
70
80
  requirements: []
71
- rubyforge_project:
72
- rubygems_version: 2.4.1
73
- signing_key:
81
+ rubyforge_project:
82
+ rubygems_version: 2.4.4
83
+ signing_key:
74
84
  specification_version: 4
75
- summary: The CIDR filter is for checking IP addresses in events against a list of
76
- network blocks that might contain it.
85
+ summary: The CIDR filter is for checking IP addresses in events against a list of network blocks that might contain it.
77
86
  test_files:
78
- - spec/filters/cidr.rb
87
+ - spec/filters/cidr_spec.rb