Permalink
Browse files

Don't depend on Rails to require YAML

  • Loading branch information...
1 parent 440f79c commit b8ce55fcc9b55d9a32f55b0b591339643a8fef9c @sferik sferik committed Jul 18, 2011
View
2 app/controllers/api/v1/owners_controller.rb
@@ -1,3 +1,5 @@
+require 'yaml'
+
class Api::V1::OwnersController < Api::BaseController
skip_before_filter :verify_authenticity_token, :only => [:create, :destroy]
View
2 app/controllers/api/v1/rubygems_controller.rb
@@ -1,3 +1,5 @@
+require 'yaml'
+
class Api::V1::RubygemsController < Api::BaseController
skip_before_filter :verify_authenticity_token, :only => [:create, :yank, :unyank]
View
2 app/controllers/api/v1/searches_controller.rb
@@ -1,3 +1,5 @@
+require 'yaml'
+
class Api::V1::SearchesController < Api::BaseController
skip_before_filter :verify_authenticity_token
View
2 app/controllers/api/v1/web_hooks_controller.rb
@@ -1,3 +1,5 @@
+require 'yaml'
+
class Api::V1::WebHooksController < Api::BaseController
skip_before_filter :verify_authenticity_token
View
3 test/functional/api/v1/rubygems_controller_test.rb
@@ -1,4 +1,5 @@
-require File.join(File.dirname(__FILE__), '..', '..', '..', 'test_helper')
+require 'test_helper'
+require 'yaml'
class Api::V1::RubygemsControllerTest < ActionController::TestCase
should "route old paths to new controller" do
View
1 test/functional/api/v1/searches_controller_test.rb
@@ -1,4 +1,5 @@
require 'test_helper'
+require 'yaml'
class Api::V1::SearchesControllerTest < ActionController::TestCase
context "with some gems" do
View
1 test/functional/api/v1/web_hooks_controller_test.rb
@@ -1,4 +1,5 @@
require 'test_helper'
+require 'yaml'
class Api::V1::WebHooksControllerTest < ActionController::TestCase
def self.should_not_find_it

0 comments on commit b8ce55f

Please sign in to comment.