image2pdf
This is a pure Ruby command line program that converts a set of images into a PDF document.
It supports JPEG and PNG file formats.
Tested on Ruby 2.2.2, but it should be able to run on Ruby >= 2.0.
Installation
gem install image2pdf
Examples
image2pdf -o foo.pdf foo.jpg
image2pdf -o bar.pdf bar/*.jpg