Logstash plugin development

Hi all,

I'm trying to develop a filter plugin for logstash-1.5.
I've a cloned a community plugin repo(elapsed) from github.
Then i execute "bundle install" to install dependencies, at which point i get an error message "Could not find gem 'logstash-devutils (>= 0) ruby' in any of the gem sources listed in your Gemfile or available on this machine."
How to get around this? Any help would be appreciated.

Hey

Are you sure you're running JRuby? The last time I had this issue I was inadvertantly using MRI instead of JRuby.

J

Thanks. I double checked and i wasnt using JRuby. Solved.

I may be having the same problem. I took an existing filter, renamed it and all its contents, and am trying "bundle install'. This fails with no useful message.

bundle list says "Could not find gem 'logstash-devutils (>= 0) ruby' in the gems available on this machine."

I have downloaded that gem from rubygems.org, its called logstash-devutils-0.0.19-java.gem.

Installing that gem gives:
ERROR: Error installing logstash-devutils-0.0.19-java.gem:
logstash-devutils requires rspec (~> 3.1.0, runtime)

Installing that gem works, here is "gem list":
[root@system software]# gem list

*** LOCAL GEMS ***

bundler (1.5.2)
diff-lcs (1.2.5)
net-http-persistent (2.9.4)
rspec (3.4.0)
rspec-core (3.4.4)
rspec-expectations (3.4.0)
rspec-mocks (3.4.1)
rspec-support (3.4.1)
thor (0.18.1)

It seems that bundle is missing rspec, but "gem list" shows it installed.

I'm new go Ruby so any help would be great.

Also, I don't know what JRuby is - I didn't skip that part, just don't understand.