Building a custom plugin

Hi, I've gone through https://www.elastic.co/guide/en/logstash/current/_how_to_write_a_logstash_codec_plugin.html and found two problems.

First, when I build the gem I get the error ["git" "ls-files"] is not a file, which is true. My gemspec has s.files = 'git ls-files'.split($), as ripped from another plugin.

So I commented that line out, and the gem built. I installed the gem via plugin install /path/to/gem.gem, and it said installation successful. Unfortunately it doesn't show up when I do plugin list, and fails when I try to start a config with it.

Edit: I'm on v1.5.0

Anybody else have better luck?

maybee you would like to check this post.