HomePhorge

(#9158) Support old and new versions of STOMP gem.
cd2d2f103558Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(#9158) Support old and new versions of STOMP gem.

The STOMP gem, up to release 1.1.4, used send to push messages to the
queue. From 1.1.5 onward this is replaced by publish, and send issues a
deprecation warning, but still works.

This commit dynamically adapts to the best available method: if publish is
present we use that, otherwise we fall back to send, and fail cleanly if we
drift further.

This should behave correctly with all known versions of the STOMP gem, avoid
deprecation warnings, and still end up with the right results.

Signed-off-by: Daniel Pittman <daniel@puppetlabs.com>

Details

Provenance
Daniel Pittman <daniel@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU85dceff5691c: Merge remote-tracking branch 'nicklewis/ticket/2.6.x/10289' into 2.6.x
Branches
Unknown
Tags
Unknown

Event Timeline

Daniel Pittman <daniel@puppetlabs.com> committed rPUcd2d2f103558: (#9158) Support old and new versions of STOMP gem. (authored by Daniel Pittman <daniel@puppetlabs.com>).Nov 8 2011, 2:15 AM