diff --git a/.gitignore b/.gitignore index 2c28878..67cf618 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,7 @@ rdoc .ruby-gemset .rspec spec/dummy/tmp/**/* +spec/dummy/log/**/* *.sqlite3 .rspec gemfiles/*.lock diff --git a/Appraisals b/Appraisals index a0fc974..c67514e 100644 --- a/Appraisals +++ b/Appraisals @@ -16,5 +16,4 @@ end appraise 'rails_4_2' do gem 'rails', '4.2.0.rc1' - gem 'responders', '~> 2.0' end diff --git a/app/controllers/judge/validations_controller.rb b/app/controllers/judge/validations_controller.rb index 2215ad6..b01e4d3 100644 --- a/app/controllers/judge/validations_controller.rb +++ b/app/controllers/judge/validations_controller.rb @@ -3,7 +3,7 @@ class ValidationsController < ActionController::Base include Judge::Controller def build - respond_with(validation(params)) + render json: validation(params) end end -end \ No newline at end of file +end diff --git a/judge.gemspec b/judge.gemspec index 3178746..110a378 100644 --- a/judge.gemspec +++ b/judge.gemspec @@ -14,7 +14,6 @@ Gem::Specification.new do |s| s.license = 'MIT' s.add_runtime_dependency 'rails', '>= 3.1' - s.add_runtime_dependency 'responders', '>= 0.9' s.add_development_dependency 'rspec-rails', '~> 3.1' s.add_development_dependency 'rspec-extra-formatters', '~> 1.0' diff --git a/lib/judge/controller.rb b/lib/judge/controller.rb index 11a2073..8e555be 100644 --- a/lib/judge/controller.rb +++ b/lib/judge/controller.rb @@ -1,14 +1,8 @@ require 'uri' -require 'responders' module Judge module Controller - def self.included(base) - base.clear_respond_to - base.respond_to(:json) - end - def validation(params) params = normalized_params(params) if params_present?(params) && params_exposed?(params)