On Wed, 28 Jun 2017 12:24:46 -0300 Antonio Terceiro <[email protected]> wrote:> This is wrong. > > First, you will need to notice that there is an existing ruby-mustermann19 > package. I had this installed here, and it was causing the wrong > 'mustermann/version' from being loaded. You will probably need to remove and > add appropriate Breaks/Replaces on that package. > It is there,
Breaks: ruby-mustermann19 (<= 0.4.3+git20160621) Replaces: ruby-mustermann19 (<= 0.4.3+git20160621) > Second, even after removing ruby-mustermann19, it still didn't work, > because of this line: > > VERSION ||= '1.0.0' > > Changing it to just > > > VERSION = '1.0.0' > > makes it work. I understand why this happens: When the code in gem2deb > that loads the gemspec runs, there is already a `VERSION` constant in > scope (the one from gem2deb itself), so that assignment never happens. > When sending that upstream, you can demonstrate the issue like this: > > ruby-mustermann-1.0.0$ irb > >> VERSION = '0.0.0' > => "0.0.0" > >> $:.unshift 'lib'; nil > => nil > >> require 'mustermann/version' Fixed ruby-mustermann and forwarded the issue upstream https://github.com/sinatra/mustermann/issues/68
signature.asc
Description: OpenPGP digital signature

