Permalink
Browse files

Don't require authentication to find gems by owner

Closes #359.
  • Loading branch information...
1 parent 72fdbe1 commit 631316a37271919f1bf2b35b1d2e7da6acc5f0a3 @sferik sferik committed Oct 7, 2011
Showing with 3 additions and 7 deletions.
  1. +3 −6 app/controllers/api/v1/owners_controller.rb
  2. +0 −1 features/owner.feature
@@ -1,12 +1,9 @@
class Api::V1::OwnersController < Api::BaseController
-
skip_before_filter :verify_authenticity_token, :only => [:create, :destroy]
-
- before_filter :authenticate_with_api_key
- before_filter :verify_authenticated_user
+ before_filter :authenticate_with_api_key, :except => :show
+ before_filter :verify_authenticated_user, :except => :show
before_filter :find_rubygem
- before_filter :verify_gem_ownership
-
+ before_filter :verify_gem_ownership, :except => :show
respond_to :yaml, :xml, :json, :only => :show
def show
View
@@ -81,6 +81,5 @@ Feature: Manage owners
Examples:
| action |
- | list the owners of gem "OGem" |
| add the owner "new@owner.org" to the rubygem "OGem" |
| remove the owner "original@owner.org" from the rubygem "OGem" |

0 comments on commit 631316a

Please sign in to comment.