logstash/logstash — pull request #171 by grantr (2012-07-12 22:30:10+00:00)
Title: add gemspec and use it in Gemfile

This moves the gem definitions out of the Gemfile and into a gemspec making it possible to build logstash as a gem.

The gemspec uses RUBY_PLATFORM to determine which gems to depend on at build-time. Gems need to be built separately for each supported platform.

The Gemfile on the other hand specifies install-time dependencies, so it needs to duplicate the platform-specific gems to remain platform independent. Fortunately the duplication is minimal.

The cinch gem only works on ruby 1.9, so it is only included on 1.9+ platforms. Specific gems for ruby versions are not supported by ruby gems, so this doesn't actually change anything. It just documents the 1.9 requirement of cinch and removes it if logstash decides to re-introduce 1.8 compatibility.