Skip to content

Commit

Permalink
Plugin structure change
Browse files Browse the repository at this point in the history
  • Loading branch information
ph committed Nov 18, 2014
1 parent 9dcde0a commit 7395d4e
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 186 deletions.
5 changes: 2 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
source 'https://rubygems.org'
gem 'rake'
gem 'gem_publisher'
gem 'archive-tar-minitar'
gemspec
gem "logstash", :github => "elasticsearch/logstash", :branch => "1.5"
1 change: 1 addition & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ task :default do
system("rake -T")
end

require "logstash/devutils/rake"
9 changes: 5 additions & 4 deletions logstash-input-redis.gemspec
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
Gem::Specification.new do |s|

s.name = 'logstash-input-redis'
s.version = '0.1.0'
s.version = '0.1.1'
s.licenses = ['Apache License (2.0)']
s.summary = "This input will read events from a Redis instance"
s.description = "This input will read events from a Redis instance; it supports both Redis channels and lists."
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"
s.authors = ["Elasticsearch"]
s.email = 'richard.pijnenburg@elasticsearch.com'
s.homepage = "http://logstash.net/"
s.homepage = "http://www.elasticsearch.org/guide/en/logstash/current/index.html"
s.require_paths = ["lib"]

# Files
Expand All @@ -17,13 +17,14 @@ Gem::Specification.new do |s|
s.test_files = s.files.grep(%r{^(test|spec|features)/})

# Special flag to let us know this is actually a logstash plugin
s.metadata = { "logstash_plugin" => "true", "group" => "input" }
s.metadata = { "logstash_plugin" => "true", "logstash_group" => "input" }

# Gem dependencies
s.add_runtime_dependency 'logstash', '>= 1.4.0', '< 2.0.0'

s.add_runtime_dependency 'logstash-codec-json'
s.add_runtime_dependency 'redis'

s.add_development_dependency 'logstash-devutils'
end

9 changes: 0 additions & 9 deletions rakelib/publish.rake

This file was deleted.

169 changes: 0 additions & 169 deletions rakelib/vendor.rake

This file was deleted.

2 changes: 1 addition & 1 deletion spec/inputs/redis_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require "spec_helper"
require "logstash/devutils/rspec/spec_helper"
require "redis"

def populate(key, event_count)
Expand Down

0 comments on commit 7395d4e

Please sign in to comment.