logstash-input-irc 2.0.5 → 3.0.0

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: 15bc208c182d0365198ecc2fbf24fdbeccb33638
4
- data.tar.gz: ac14c19c6292c5df578aa1b000e9a72d4161567d
3
+ metadata.gz: 7e4f32f9a64ba44121dadbb019d4f5c18ed9613a
4
+ data.tar.gz: d00340ed35ce43ddc28d54a9be68fe178e297563
5
5
  SHA512:
6
- metadata.gz: bb4f544e5f08a893e09d830c43007ace17f6d0c5abb30e9d161fdc8fb60a4f0b7e8fcf11ce61c340b5632f4671898af7648fd2961abc4cacb877079b20cdd8ca
7
- data.tar.gz: 1bbb16e2cc746b4870ba8c10e8b4f4c21fd10c09645be0010fe78528f4d34f36e6416e0bf548f60427c0acf188f461fb7a363987380152a09d9bb37d652b2ae4
6
+ metadata.gz: c2d04cc7c90c6585c8f96854943753e08344642aa55872bb2335206f94dc93285185e34f1f9964328df55149f4b5ddd982202aee943afe3f342003f4ece6459e
7
+ data.tar.gz: cc1fbe632d3424601651ad485f536a8e107d90ddd4809ca8633397fa8d03564f5b219dad44aad9b9a39f4c6c96f9e03bb8fe982684723d5304e803cabb91e6fc
data/CHANGELOG.md CHANGED
@@ -1,3 +1,5 @@
1
+ ## 3.0.0
2
+ - Update the plugin to the version 2.0 of the plugin api, this change is required for Logstash 5.0 compatibility. See https://github.com/elastic/logstash/issues/5141
1
3
  # 2.0.5
2
4
  - Depend on logstash-core-plugin-api instead of logstash-core, removing the need to mass update plugins on major releases of logstash
3
5
  # 2.0.4
data/Gemfile CHANGED
@@ -1,2 +1,4 @@
1
1
  source 'https://rubygems.org'
2
- gemspec
2
+
3
+ # Specify your gem's dependencies in logstash-mass_effect.gemspec
4
+ gemspec
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2012–2015 Elasticsearch <http://www.elastic.co>
1
+ Copyright (c) 2012–2016 Elasticsearch <http://www.elastic.co>
2
2
 
3
3
  Licensed under the Apache License, Version 2.0 (the "License");
4
4
  you may not use this file except in compliance with the License.
data/README.md CHANGED
@@ -1,7 +1,6 @@
1
1
  # Logstash Plugin
2
2
 
3
- [![Build
4
- Status](http://build-eu-00.elastic.co/view/LS%20Plugins/view/LS%20Inputs/job/logstash-plugin-input-irc-unit/badge/icon)](http://build-eu-00.elastic.co/view/LS%20Plugins/view/LS%20Inputs/job/logstash-plugin-input-irc-unit/)
3
+ [![Travis Build Status](https://travis-ci.org/logstash-plugins/logstash-input-irc.svg)](https://travis-ci.org/logstash-plugins/logstash-input-irc)
5
4
 
6
5
  This is a plugin for [Logstash](https://github.com/elastic/logstash).
7
6
 
@@ -56,7 +55,12 @@ gem "logstash-filter-awesome", :path => "/your/local/logstash-filter-awesome"
56
55
  ```
57
56
  - Install plugin
58
57
  ```sh
58
+ # Logstash 2.3 and higher
59
+ bin/logstash-plugin install --no-verify
60
+
61
+ # Prior to Logstash 2.3
59
62
  bin/plugin install --no-verify
63
+
60
64
  ```
61
65
  - Run Logstash with your plugin
62
66
  ```sh
@@ -74,7 +78,12 @@ gem build logstash-filter-awesome.gemspec
74
78
  ```
75
79
  - Install the plugin from the Logstash home
76
80
  ```sh
77
- bin/plugin install /your/local/plugin/logstash-filter-awesome.gem
81
+ # Logstash 2.3 and higher
82
+ bin/logstash-plugin install --no-verify
83
+
84
+ # Prior to Logstash 2.3
85
+ bin/plugin install --no-verify
86
+
78
87
  ```
79
88
  - Start Logstash and proceed to test the plugin
80
89
 
@@ -135,21 +135,21 @@ class LogStash::Inputs::Irc < LogStash::Inputs::Base
135
135
  # Got an end of names event, now we can send the info down the pipe.
136
136
  event = LogStash::Event.new()
137
137
  decorate(event)
138
- event["channel"] = msg.channel.to_s
139
- event["users"] = @user_stats[msg.channel.to_s]
140
- event["server"] = "#{@host}:#{@port}"
138
+ event.set("channel", msg.channel.to_s)
139
+ event.set("users", @user_stats[msg.channel.to_s])
140
+ event.set("server", "#{@host}:#{@port}")
141
141
  output_queue << event
142
142
  end
143
143
  if msg.command and msg.user
144
144
  @logger.debug("IRC Message", :data => msg)
145
145
  @codec.decode(msg.message) do |event|
146
146
  decorate(event)
147
- event["user"] = msg.prefix.to_s
148
- event["command"] = msg.command.to_s
149
- event["channel"] = msg.channel.to_s
150
- event["nick"] = msg.user.nick
151
- event["server"] = "#{@host}:#{@port}"
152
- event["host"] = msg.user.host
147
+ event.set("user", msg.prefix.to_s)
148
+ event.set("command", msg.command.to_s)
149
+ event.set("channel", msg.channel.to_s)
150
+ event.set("nick", msg.user.nick)
151
+ event.set("server", "#{@host}:#{@port}")
152
+ event.set("host", msg.user.host)
153
153
  output_queue << event
154
154
  end
155
155
  end
@@ -1,10 +1,10 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-input-irc'
4
- s.version = '2.0.5'
4
+ s.version = '3.0.0'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "Read events from an IRC Server."
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"
7
+ s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program"
8
8
  s.authors = ["Elastic"]
9
9
  s.email = 'info@elastic.co'
10
10
  s.homepage = "http://www.elastic.co/guide/en/logstash/current/index.html"
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
20
20
  s.metadata = { "logstash_plugin" => "true", "logstash_group" => "input" }
21
21
 
22
22
  # Gem dependencies
23
- s.add_runtime_dependency "logstash-core-plugin-api", "~> 1.0"
23
+ s.add_runtime_dependency "logstash-core-plugin-api", "~> 2.0"
24
24
  s.add_runtime_dependency 'stud', '~> 0.0.22'
25
25
  s.add_runtime_dependency 'logstash-codec-plain'
26
26
  s.add_runtime_dependency 'cinch'
@@ -64,15 +64,15 @@ describe LogStash::Inputs::Irc do
64
64
  let(:event) { events.first }
65
65
 
66
66
  it "receive events from a channel" do
67
- expect(event["channel"]).to eq("channel")
67
+ expect(event.get("channel")).to eq("channel")
68
68
  end
69
69
 
70
70
  it "receive events with a command" do
71
- expect(event["command"]).to eq("command")
71
+ expect(event.get("command")).to eq("command")
72
72
  end
73
73
 
74
74
  it "receive events with nick information" do
75
- expect(event["nick"]).to eq("nick")
75
+ expect(event.get("nick")).to eq("nick")
76
76
  end
77
77
  end
78
78
  end
metadata CHANGED
@@ -1,86 +1,88 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-irc
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.5
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-24 00:00:00.000000000 Z
11
+ date: 2016-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
+ name: logstash-core-plugin-api
14
15
  requirement: !ruby/object:Gem::Requirement
15
16
  requirements:
16
17
  - - "~>"
17
18
  - !ruby/object:Gem::Version
18
- version: '1.0'
19
- name: logstash-core-plugin-api
20
- prerelease: false
19
+ version: '2.0'
21
20
  type: :runtime
21
+ prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.0'
26
+ version: '2.0'
27
27
  - !ruby/object:Gem::Dependency
28
+ name: stud
28
29
  requirement: !ruby/object:Gem::Requirement
29
30
  requirements:
30
31
  - - "~>"
31
32
  - !ruby/object:Gem::Version
32
33
  version: 0.0.22
33
- name: stud
34
- prerelease: false
35
34
  type: :runtime
35
+ prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: 0.0.22
41
41
  - !ruby/object:Gem::Dependency
42
+ name: logstash-codec-plain
42
43
  requirement: !ruby/object:Gem::Requirement
43
44
  requirements:
44
45
  - - ">="
45
46
  - !ruby/object:Gem::Version
46
47
  version: '0'
47
- name: logstash-codec-plain
48
- prerelease: false
49
48
  type: :runtime
49
+ prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
+ name: cinch
56
57
  requirement: !ruby/object:Gem::Requirement
57
58
  requirements:
58
59
  - - ">="
59
60
  - !ruby/object:Gem::Version
60
61
  version: '0'
61
- name: cinch
62
- prerelease: false
63
62
  type: :runtime
63
+ prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
+ name: logstash-devutils
70
71
  requirement: !ruby/object:Gem::Requirement
71
72
  requirements:
72
73
  - - ">="
73
74
  - !ruby/object:Gem::Version
74
75
  version: '0'
75
- name: logstash-devutils
76
- prerelease: false
77
76
  type: :development
77
+ prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
- 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
83
+ description: This gem is a Logstash plugin required to be installed on top of the
84
+ Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This
85
+ gem is not a stand-alone program
84
86
  email: info@elastic.co
85
87
  executables: []
86
88
  extensions: []
@@ -102,7 +104,7 @@ licenses:
102
104
  metadata:
103
105
  logstash_plugin: 'true'
104
106
  logstash_group: input
105
- post_install_message:
107
+ post_install_message:
106
108
  rdoc_options: []
107
109
  require_paths:
108
110
  - lib
@@ -117,9 +119,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
117
119
  - !ruby/object:Gem::Version
118
120
  version: '0'
119
121
  requirements: []
120
- rubyforge_project:
121
- rubygems_version: 2.4.8
122
- signing_key:
122
+ rubyforge_project:
123
+ rubygems_version: 2.5.1
124
+ signing_key:
123
125
  specification_version: 4
124
126
  summary: Read events from an IRC Server.
125
127
  test_files: