dnbert / prm

PRM Allows you to quickly build package repositories, inspired by Jordan Sissels' FPM
MIT License
250 stars 33 forks source link

Fix pre ruby 1.9.2 #27

Closed mfoo closed 10 years ago

mfoo commented 10 years ago

I tried installing prm on ruby 1.8.6, which works OK but then fails when running as require_relative is not available.

This PR fixes this by using require with a full path. It also removes two unused variables from repo.rb and bumps the version to 0.2.2.

mfoo commented 10 years ago

I'm currently running this on Ruby 1.8.7 with RubyGems 1.6.2 to build a Debian repository. I have not tested this with other types of repository but don't think that it should harm anything. I am having to build this gem manually from my branch for the time being.

Please let me know if you need more information. If you merge the PR, please let me know when you have re-released to rubygems.org so that I can modify my scripts.

dnbert commented 10 years ago

Sorry about the delay! I've gone ahead and tested this against 1.9.2 and 2.0.0 seems to work well. Thanks for the pull request!

dnbert commented 10 years ago

Oh and I've published version 0.2.2 to Rubygems.org

mfoo commented 10 years ago

Cheers.

I've recently had to switch from reprepro because it's restricted ("optimised") to only one version of a package. Tested out mini-dinstall and a few others and this was by far the simplest method of turning a bunch of deb files in a folder into an apt repo (especially as fpm doesn't provide .changes files - the Debian packaging system can be very complicated to use).