https://bugzilla.redhat.com/show_bug.cgi?id=839649
Bug ID: 839649 QA Contact: extras-qa@fedoraproject.org Severity: medium Version: rawhide Priority: medium CC: notting@redhat.com, package-review@lists.fedoraproject.org Assignee: nobody@fedoraproject.org Summary: Review Request: rubygem-rails_best_practices - a code metric tool for rails codes, written in Ruby. Regression: --- Story Points: --- Classification: Fedora OS: Linux Reporter: mzatko@redhat.com Type: --- Documentation: --- Hardware: All Mount Type: --- Status: NEW Component: Package Review Product: Fedora
Spec URL: http://v3.sk/~hexo/rpm/rails_best_practices.spec SRPM URL: http://v3.sk/~hexo/rpm/rubygem-rails_best_practices-1.10.1-1.fc17.src.rpm Description: a code metric tool for rails codes, written in Ruby. Fedora Account System Username: mzatko
https://bugzilla.redhat.com/show_bug.cgi?id=839649
Michal Fojtik mfojtik@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mfojtik@redhat.com
--- Comment #1 from Michal Fojtik mfojtik@redhat.com --- Review:
- Summary && %description should start with the capital 'A' - No tests
Please check if those tests are not included in gem, if so, I would ask upstream to add them. But not a review-blocker:
https://github.com/railsbp/rails_best_practices/tree/master/spec
- The list of files in the %files section looks a bit ugly, it is possible to somehow compress it? Like using directories rather than listing all files?
- Please exclude the '.yardoc/*' files, then are not needed for the gem
- Also consider removing this files:
%{gem_instdir}/.gemtest %{gem_instdir}/.gitignore %{gem_instdir}/.rspec %{gem_instdir}/.rvmrc %{gem_instdir}/.travis.yml %{gem_instdir}/Gemfile %{gem_instdir}/Gemfile.lock %{gem_instdir}/Guardfile
- The MIT_LICENSE should go into main %files section - I also think the 'License: GPLv2+ or Ruby' is wrong, since the license seems to be MIT.
https://bugzilla.redhat.com/show_bug.cgi?id=839649
--- Comment #2 from Maros Zatko mzatko@redhat.com --- Thanks for your review, I've updated spec, so
Spec URL: http://v3.sk/~hexo/rpm/rails_best_practices.spec SRPM URL: http://v3.sk/~hexo/rpm/rubygem-rails_best_practices-1.10.1-2.fc17.src.rpm Description: a code metric tool for rails codes, written in Ruby. Fedora Account System Username: mzatko
https://bugzilla.redhat.com/show_bug.cgi?id=839649
--- Comment #3 from Maros Zatko mzatko@redhat.com --- Once again, with compacted file list
Spec URL: http://v3.sk/~hexo/rpm/rails_best_practices.spec SRPM URL: http://v3.sk/~hexo/rpm/rubygem-rails_best_practices-1.10.1-3.fc17.src.rpm
https://bugzilla.redhat.com/show_bug.cgi?id=839649
Michal Fojtik mfojtik@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Flags| |fedora-review+
--- Comment #4 from Michal Fojtik mfojtik@redhat.com --- Thanks, REVIEW+
https://bugzilla.redhat.com/show_bug.cgi?id=839649
Mo Morsi mmorsi@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mmorsi@redhat.com
--- Comment #5 from Mo Morsi mmorsi@redhat.com --- Couple post review-nits
* the spec file should be named rubygem-rails_best_practices
* can you run the spec suite in a check section in the specfile?
* please move the spec suite into the docs subpackage
* please rm the files you exclude earlier in the spec and remove those excludes from the files section
* slim is listed as a dev dependency on rubygems.org but is not referenced in this spec, is it needed?
Thanks.
https://bugzilla.redhat.com/show_bug.cgi?id=839649
--- Comment #6 from Maros Zatko mzatko@redhat.com --- updated: Spec URL: http://v3.sk/~hexo/rpm/rubygem-rails_best_practices.spec SRPM URL: http://v3.sk/~hexo/rpm/rubygem-rails_best_practices-1.10.1-4.fc17.src.rpm
https://bugzilla.redhat.com/show_bug.cgi?id=839649
Josef Stribny jstribny@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jstribny@redhat.com
--- Comment #7 from Josef Stribny jstribny@redhat.com --- Hi,
I believe Summary should start with a capital "A" for consistency as in How to create an RPM package guide [1] and as Michal Fojtik already suggested.
(This is an informal review.)
[1] https://fedoraproject.org/wiki/How_to_create_an_RPM_package
Product: Fedora https://bugzilla.redhat.com/show_bug.cgi?id=839649
Josef Stribny jstribny@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|nobody@fedoraproject.org |jstribny@redhat.com Flags|fedora-review+ | Flags| |fedora-review?
Product: Fedora https://bugzilla.redhat.com/show_bug.cgi?id=839649
--- Comment #8 from Josef Stribny jstribny@redhat.com --- Because it is still unresolved, I am taking this to continue with the review.
1, Summary should start with a capital "A" as mentioned above
2, Get rid of
Requires: ruby BuildRequires: ruby
Requires: ruby(api) will require this for you and you may use it with other interpretations of Ruby.
3, Mark %{gem_instdir}/README.md and %{gem_instdir}/MIT_LICENSE as %doc
4, Move %{gem_instdir}/rails_best_practices.gemspec and %{gem_instdir}/Gemfile to doc subpackage
5, Why do you list subfolders from %{gem_instdir}/spec/rails_best_practices/? Isn't enough to list it as one folder only?
6, Consider upgrading it to the latest upstream version (1.13.1)
Product: Fedora https://bugzilla.redhat.com/show_bug.cgi?id=839649
Vít Ondruch vondruch@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |vondruch@redhat.com
--- Comment #9 from Vít Ondruch vondruch@redhat.com --- (In reply to comment #8)
5, Why do you list subfolders from %{gem_instdir}/spec/rails_best_practices/? Isn't enough to list it as one folder only?
I would put it differently. There is nothing wrong in listing subfolders. This may help to assure, that the specific folders are included in package. However, as it is done currently, only the files are owned by package, not the directories itself. And that is wrong. This applies not just to %{gem_instdir}/spec/ but to %{gem_instdir}/assets/ as well.
Product: Fedora https://bugzilla.redhat.com/show_bug.cgi?id=839649
--- Comment #10 from Vít Ondruch vondruch@redhat.com --- (In reply to comment #8)
2, Get rid of
Requires: ruby
Agree with this.
BuildRequires: ruby
Don't fully agree. It is safer option to include BR: ruby ATM.
Product: Fedora https://bugzilla.redhat.com/show_bug.cgi?id=839649
Josef Stribny jstribny@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED
Product: Fedora https://bugzilla.redhat.com/show_bug.cgi?id=839649
--- Comment #11 from Josef Stribny jstribny@redhat.com --- Maros, are you still working on this? If so, please notice the change in the guidelines regarding Fedora 19 [1] and make necessary changes to the spec file.
1, Please change: - Requires: ruby(abi) = %{rubyabi} to Requires: ruby(release) - BuildRequires: ruby(abi) = %{rubyabi} to BuildRequires: ruby(release)
2, Use %gem_install macro instead of calling gem install directly
[1] https://fedoraproject.org/wiki/Packaging:Ruby
https://bugzilla.redhat.com/show_bug.cgi?id=839649
Josef Stribny jstribny@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mzatko@redhat.com Flags| |needinfo?(mzatko@redhat.com | |)
https://bugzilla.redhat.com/show_bug.cgi?id=839649
John Skeoch jskeoch@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|jstribny@redhat.com |hhorak@redhat.com
https://bugzilla.redhat.com/show_bug.cgi?id=839649
Vít Ondruch vondruch@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |CLOSED Blocks| |201449 (FE-DEADREVIEW) Resolution|--- |NOTABUG Flags|fedora-review? | |needinfo?(mzatko@redhat.com | |) | Last Closed| |2016-01-04 03:57:33
--- Comment #13 from Vít Ondruch vondruch@redhat.com --- Closing this stalled review.
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=201449 [Bug 201449] FE-DEADREVIEW -- Reviews stalled due to lack of submitter response should be blocking this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=839649
Vít Ondruch vondruch@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|hhorak@redhat.com |vondruch@redhat.com
package-review@lists.fedoraproject.org