logstash-input-acquia 1.4.0 → 1.5.0

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: cf2af58162eb4692f33361b43f54e8849bed8bc8
4
- data.tar.gz: b349c5c34610606663d7197525fc30b026be39ae
3
+ metadata.gz: 5c541c11c86f158df9742931c69d883ea49259bd
4
+ data.tar.gz: dddc1fd2a2ede13cd34a8ddb1b2d7fa4d82d746d
5
5
  SHA512:
6
- metadata.gz: 9b137ea299ffb05121af07f209729f9d644a1b24747ebfa2ab47b892aff7693df79bdb9a4e5e0ceaff2b1794b14b4fb5bf88040ff609d7cf79e4c858c814a87b
7
- data.tar.gz: 28f5c4382d72814667920254fe6cff7035ab621d1ed457e47e6b2f2c42c1ebd7cf1536cb2ce5bab380539a4431e934e6a9426206dd58a4deb0753968cd7eee02
6
+ metadata.gz: da0d0f7d7bfa94fb6df97e8971f125d40922314ea5b666b8e580bae9677ccd9a5419a9d618c878b319ccb58038a021b6968b61d0c425495922d7818edb8a51bd
7
+ data.tar.gz: 27fddfbfedea6d867581ce0feaaea97735d3445fef7df24b4a48567e60eaed1007766d362ad71a72a7f4422bcba6e3813a6058c8ce228de5911d1285b2590a79
data/Rakefile CHANGED
@@ -1,9 +1,9 @@
1
- $:.push File.join(File.dirname(__FILE__), 'lib')
2
-
3
- require 'logstash/inputs/acquia/version'
1
+ def current_version
2
+ File.read('VERSION').strip
3
+ end
4
4
 
5
5
  def current_gems
6
- Dir["pkg/logstash-input-acquia-*.gem"]
6
+ Dir["pkg/logstash-input-acquia-#{current_version}.gem"]
7
7
  end
8
8
 
9
9
  namespace :gem do
@@ -22,8 +22,8 @@ namespace :gem do
22
22
  sh *%W{gem push #{gem}}
23
23
  end
24
24
  if File.exist? '.git'
25
- sh *%W{git tag #{LogStash::Inputs::Acquia::VERSION}}
26
- sh *%W{git push origin tag #{LogStash::Inputs::Acquia::VERSION}}
25
+ sh *%W{git tag #{current_version}}
26
+ sh *%W{git push origin tag #{current_version}}
27
27
  end
28
28
  end
29
29
  end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.5.0
@@ -9,6 +9,7 @@ class LogStash::Inputs::Acquia < LogStash::Inputs::Base
9
9
  config_name 'acquia'
10
10
 
11
11
  default :codec, 'plain'
12
+ VERSION = File.read(File.join(File.dirname(__FILE__), '../../../VERSION')).strip
12
13
 
13
14
  config :username, :validate => :string, :required => true
14
15
  config :api_key, :validate => :string, :required => true
@@ -37,7 +38,9 @@ class LogStash::Inputs::Acquia < LogStash::Inputs::Base
37
38
  @streams.each do |env, stream|
38
39
  stream.each_log do |log|
39
40
  # p log
40
- queue << decorate(generate_event(env, log))
41
+ event = generate_event(env, log)
42
+ decorate(event)
43
+ queue << event
41
44
  end
42
45
  end
43
46
  end
@@ -87,7 +90,3 @@ class LogStash::Inputs::Acquia < LogStash::Inputs::Base
87
90
  LogStash::Event.new(log)
88
91
  end
89
92
  end
90
-
91
- # Required afterwards so that the inheritance tree has already been built
92
- # correctly.
93
- require 'logstash/inputs/acquia/version'
@@ -1,10 +1,6 @@
1
- $:.push File.join(File.dirname(__FILE__), 'lib')
2
-
3
- require 'logstash/inputs/acquia/version'
4
-
5
1
  Gem::Specification.new do |s|
6
2
  s.name = 'logstash-input-acquia'
7
- s.version = LogStash::Inputs::Acquia::VERSION
3
+ s.version = File.read(File.join(File.dirname(__FILE__), 'VERSION')).strip
8
4
  s.licenses = ['MIT']
9
5
  s.summary = 'Logstash Input plugin that streams logs from Acquia Cloud'
10
6
  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'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-acquia
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Equiem
@@ -97,8 +97,8 @@ files:
97
97
  - Gemfile
98
98
  - LICENSE
99
99
  - Rakefile
100
+ - VERSION
100
101
  - lib/logstash/inputs/acquia.rb
101
- - lib/logstash/inputs/acquia/version.rb
102
102
  - logstash-input-acquia.gemspec
103
103
  homepage: http://www.elastic.co/guide/en/logstash/current/index.html
104
104
  licenses:
@@ -1,7 +0,0 @@
1
- module LogStash
2
- module Inputs
3
- class Acquia
4
- VERSION = '1.4.0'
5
- end
6
- end
7
- end