sensu-plugins / sensu-plugin

A framework for writing Sensu plugins & handlers with Ruby.
http://sensuapp.org
MIT License
126 stars 117 forks source link

"Pin json to <2.0.0" #138

Closed nibalizer closed 8 years ago

cwjohnston commented 8 years ago

Hi @nibalizer, thanks for the pull request. Can you please provide some context around why are proposing this change?

nibalizer commented 8 years ago

The json gem released today, dropping support for rubies older than 2.0: https://rubygems.org/gems/json/versions/2.0.1

This means we can't install sensu-plugin, unfortunately.

nibalizer commented 8 years ago

We ended up moving to ruby2.0 from the trusty packages as a way of moving forward, so I don't need this right now. I can leave this open if you want to do it for the people who don't have that option. Feel free to close it if you want.

Thanks!

cwjohnston commented 8 years ago

@nibalizer thanks for the detail and raising this issue. We're now shipping Ruby 2.3.0 in the Sensu omnibus packages. I'll leave this open as I think we'll have to make a decision about how we want to handle this in the next major version of sensu-plugin.

SegFaultAX commented 8 years ago

@cwjohnston Many existing sensu plugins support Ruby 1.9.x (and older) and having such a loose dependency on json breaks those plugins. I recommend locking to json ~> 1.8 or perhaps json ~> 1.8.3 to preserve backwards compatibility with the huge array of existing plugins.

Example: sensu-plugins-mysql

cwjohnston commented 8 years ago

I think pinning this at < 2.0 is sane 👍