Bug 828278 - Review Request: rubygem-sinatra-rabbit - Ruby DSL for creating restful applications using Sinatra
Summary: Review Request: rubygem-sinatra-rabbit - Ruby DSL for creating restful applic...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Vít Ondruch
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-06-04 13:43 UTC by Michal Fojtik
Modified: 2012-06-26 00:39 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-06-26 00:30:24 UTC
Type: ---
Embargoed:
vondruch: fedora-review+
gwync: fedora-cvs+


Attachments (Terms of Use)

Description Michal Fojtik 2012-06-04 13:43:42 UTC
Spec URL: http://omicron.mifo.sk/rpms/rubygem-sinatra-rabbit.spec
SRPM URL: http://omicron.mifo.sk/rpms/rubygem-sinatra-rabbit-1.0.6-1.fc17.src.rpm
Description: 

Sinatra::Rabbit is a Sinatra extensions that makes designing a REST API much
easier and more fun.
Rabbit maps REST resources to 'collections'. Every collection then could define
CRUD and other operations to manipulate with resource. Rabbit will handle
parameter validation and capability checks for you, so you can focus on the
structure and design of your REST API.

Fedora Account System Username: mfojtik

Comment 1 Michal Fojtik 2012-06-04 13:51:27 UTC
* Mon Jun 04 2012 Michal Fojtik <mfojtik> 1.0.6-2
- Added exclude tag before gem_cache
- Removed the ruby dependency

Spec URL: http://omicron.mifo.sk/rpms/rubygem-sinatra-rabbit.spec
SRPM URL: http://omicron.mifo.sk/rpms/rubygem-sinatra-rabbit-1.0.6-2.fc17.src.rpm

Comment 2 Vít Ondruch 2012-06-04 14:48:59 UTC
I'll take it for a review.

Comment 3 Vít Ondruch 2012-06-05 08:39:23 UTC
* Please consider running test in %{_builddir}
  - Could you consider to run test suite in %{_builddir} instead of %{buildroot}?
    I.e. use "pushd .%{gem_instdir}" in %check section. In my experience, it may
    prevent pollution of the resulting package by some temporary dirs/files.

* Use %exclude instead of rm
  - You might consider to use %exclude in files section instead of rm in %install
    section. This is just a hint.

* I am not expert on Sinatra, but this doesn't look good:

# irb
irb(main):001:0> require 'sinatra/rabbit'
NameError: uninitialized constant Sinatra
	from /usr/share/gems/gems/sinatra-rabbit-1.0.6/lib/sinatra/rabbit.rb:33:in `<top (required)>'
	from /usr/share/rubygems/rubygems/custom_require.rb:60:in `require'
	from /usr/share/rubygems/rubygems/custom_require.rb:60:in `rescue in require'
	from /usr/share/rubygems/rubygems/custom_require.rb:35:in `require'
	from (irb):1
	from /usr/bin/irb:12:in `<main>'

  Nevertheless, this is probably not a real life problem, so it is not blocking
  the review.


Overall, the package looks good and all the issues mentioned above are just minor nits => APPROVED

Comment 4 Michal Fojtik 2012-06-06 11:12:55 UTC
Thanks Vit!

Since it's a Sinatra extension, you need to have 'sinatra/base' required first before you require this extension. Probably a good point to add some additional treating for errors like this.

I'll fix all things above.

Comment 5 Michal Fojtik 2012-06-06 11:15:58 UTC
New Package SCM Request
=======================
Package Name: rubygem-sinatra-rabbit
Short Description: Ruby DSL for creating restful applications using Sinatra 
Owners: mfojtik
Branches: f16 f17 el6
InitialCC: mfojtik

Comment 6 Gwyn Ciesla 2012-06-06 13:26:52 UTC
Git done (by process-git-requests).

Comment 7 Fedora Update System 2012-06-08 12:46:08 UTC
rubygem-sinatra-rabbit-1.0.6-2.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/rubygem-sinatra-rabbit-1.0.6-2.fc16

Comment 8 Fedora Update System 2012-06-08 12:56:25 UTC
rubygem-sinatra-rabbit-1.0.6-2.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/rubygem-sinatra-rabbit-1.0.6-2.fc17

Comment 9 Fedora Update System 2012-06-09 00:04:23 UTC
rubygem-sinatra-rabbit-1.0.6-2.fc16 has been pushed to the Fedora 16 testing repository.

Comment 10 Fedora Update System 2012-06-26 00:30:24 UTC
rubygem-sinatra-rabbit-1.0.6-2.fc17 has been pushed to the Fedora 17 stable repository.

Comment 11 Fedora Update System 2012-06-26 00:39:58 UTC
rubygem-sinatra-rabbit-1.0.6-2.fc16 has been pushed to the Fedora 16 stable repository.


Note You need to log in before you can comment on or make changes to this bug.