<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Times New Roman; font-size: 12pt; color: #000000'>One more addition from me:<br>I have run into few gems, that had a VERSION file out of the lib directory, so it looked it's just a doc with the version, but it was actually read by files from lib and used in runtime (so if not present, the gem didn't work). So careful with files like this, you mustn't mark them as %doc nor put them in the doc subpackage.<br><br><hr id="zwchr"><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;">
  
    
  
  
    Hi Ken,<br>
    <br>
    On specs, tests, etc, we apply documentation packaging guidelines
    [1] and this is quote from reviewers guide:<br>
    <br>
    <b>MUST</b>: If a package includes something as&nbsp;%doc, it must not
    affect the runtime of the application. To summarize: If it is
    in&nbsp;%doc, the program must run properly if it is not present.<br>
    <br>
    I interpret is in this way: specs, tests, etc are not essential for
    package runtime, therefore I place them in -doc subpackage. Typical
    user is not installing -doc subpackage, so he does not waste his
    disk space. Also, test suite may help in better understanding how
    the library works, therefore it might be view as as documentation.
    So if there is test suite, keep it, if there is non, do nod add it.
    Its question to upstream if you have different opinion.<br>
    <br>
    The inclusion of test suite in gem is more generic question for Ruby
    community. For example Rails does not include its test suite and I
    find it correct. On the other hand, there is some infrastructure in
    RubyGems which should allow to execute the test suite of gem during
    installation, but I never tried it personally, I don't believe it
    will work reasonably.<br>
    <br>
    <br>
    Vit<br>
    <br>
    <br>
    <br>
    <br>
    [1]
    <a class="moz-txt-link-freetext" href="http://fedoraproject.org/wiki/Packaging/Guidelines#PackageDocumentation" target="_blank">http://fedoraproject.org/wiki/Packaging/Guidelines#PackageDocumentation</a><br>
    <br>
    <br>
    <br>
    <br>
    <br>
    Dne 26.4.2012 00:49, Ken Dreyer napsal(a):
    <blockquote cite="mid:CAD3FbMXUMWJ83ti53jCeQpTowxW-BRwXy7T04xtGLxWaKGS1Aw@mail.gmail.com">
      <pre>I'm wondering about how to handle things like the Rakefile, or /spec,
or /test directories in rubygem packages. My inclination is to leave
these out of the package to keep it slimmer, but I see that some
rubygems do include them in the package (or at least the -doc
subpackage). The example on the Ruby packaging guidelines also
includes these in -doc.

Are these files really that useful to ship to end users?

- Ken
_______________________________________________
ruby-sig mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ruby-sig@lists.fedoraproject.org" target="_blank">ruby-sig@lists.fedoraproject.org</a>
<a class="moz-txt-link-freetext" href="https://admin.fedoraproject.org/mailman/listinfo/ruby-sig" target="_blank">https://admin.fedoraproject.org/mailman/listinfo/ruby-sig</a></pre>
    </blockquote>
    <br>
  

<br>_______________________________________________<br>ruby-sig mailing list<br>ruby-sig@lists.fedoraproject.org<br>https://admin.fedoraproject.org/mailman/listinfo/ruby-sig</blockquote><br><br><br>-- <br><div><span name="x"></span>Regards,<br>Bohuslav "Slavek" Kabrda.<span name="x"></span><br></div></div></body></html>