Skip to content

Commit 4eef822

Browse files
committed
fix specs by allowing the use of external logstash core
1 parent c0c1598 commit 4eef822

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Gemfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
source 'https://rubygems.org'
22

3-
# Specify your gem's dependencies in logstash-mass_effect.gemspec
43
gemspec
4+
5+
logstash_path = ENV["LOGSTASH_PATH"] || "../../logstash"
6+
use_logstash_source = ENV["LOGSTASH_SOURCE"] && ENV["LOGSTASH_SOURCE"].to_s == "1"
7+
8+
if Dir.exist?(logstash_path) && use_logstash_source
9+
gem 'logstash-core', :path => "#{logstash_path}/logstash-core"
10+
gem 'logstash-core-plugin-api', :path => "#{logstash_path}/logstash-core-plugin-api"
11+
end

0 commit comments

Comments
 (0)