Remove rabl

This commit is contained in:
Justin Edmund 2022-12-21 01:16:34 -08:00
parent b584a523c6
commit 712c866296
4 changed files with 7 additions and 20 deletions

17
Gemfile
View file

@ -1,10 +1,10 @@
source 'https://rubygems.org' source 'https://rubygems.org'
ruby '3.0.0' ruby '3.0.0'
gem 'rails'
gem 'pg'
gem 'bootsnap' gem 'bootsnap'
gem 'pg'
gem 'rack-cors' gem 'rack-cors'
gem 'rails'
# A Ruby Web Server Built For Concurrency # A Ruby Web Server Built For Concurrency
gem 'puma' gem 'puma'
@ -16,9 +16,6 @@ gem 'bcrypt'
# Doorkeeper is an OAuth 2 provider for Rails and Grape. # Doorkeeper is an OAuth 2 provider for Rails and Grape.
gem 'doorkeeper' gem 'doorkeeper'
# Templating system with JSON, XML and Plist support.
gem 'rabl'
# Simple, Fast, and Declarative Serialization Library for Ruby # Simple, Fast, and Declarative Serialization Library for Ruby
gem 'blueprinter' gem 'blueprinter'
@ -38,7 +35,7 @@ gem 'gemoji-parser'
gem 'awesome_nested_set' gem 'awesome_nested_set'
# An email validator for Rails # An email validator for Rails
gem "email_validator" gem 'email_validator'
# pg_search builds ActiveRecord named scopes that take advantage of PostgreSQLs full text search # pg_search builds ActiveRecord named scopes that take advantage of PostgreSQLs full text search
gem 'pg_search' gem 'pg_search'
@ -47,8 +44,8 @@ gem 'pg_search'
gem 'will_paginate', '~> 3.3' gem 'will_paginate', '~> 3.3'
group :doc do group :doc do
gem 'sdoc'
gem 'apipie-rails' gem 'apipie-rails'
gem 'sdoc'
end end
group :development, :test do group :development, :test do
@ -56,16 +53,16 @@ group :development, :test do
gem 'dotenv-rails' gem 'dotenv-rails'
gem 'factory_bot_rails' gem 'factory_bot_rails'
gem 'faker' gem 'faker'
gem 'rspec-rails'
gem 'rspec_junit_formatter' gem 'rspec_junit_formatter'
gem 'rspec-rails'
end end
group :development do group :development do
gem 'listen' gem 'listen'
gem 'rubocop' gem 'rubocop'
gem 'solargraph' gem 'solargraph'
gem 'spring-commands-rspec'
gem 'spring' gem 'spring'
gem 'spring-commands-rspec'
end end
group :test do group :test do
@ -73,5 +70,5 @@ group :test do
gem 'byebug' gem 'byebug'
gem 'database_cleaner' gem 'database_cleaner'
gem 'shoulda-matchers' gem 'shoulda-matchers'
gem 'simplecov', :require => false gem 'simplecov', require: false
end end

View file

@ -148,8 +148,6 @@ GEM
activesupport (>= 5.2) activesupport (>= 5.2)
puma (5.5.2) puma (5.5.2)
nio4r (~> 2.0) nio4r (~> 2.0)
rabl (0.14.5)
activesupport (>= 2.3.14)
racc (1.6.0) racc (1.6.0)
rack (2.2.3) rack (2.2.3)
rack-cors (1.1.1) rack-cors (1.1.1)
@ -303,7 +301,6 @@ DEPENDENCIES
pg pg
pg_search pg_search
puma puma
rabl
rack-cors rack-cors
rails rails
responders responders

View file

@ -1,8 +1,4 @@
# frozen_string_literal: true # frozen_string_literal: true
class ApplicationController < ActionController::API class ApplicationController < ActionController::API
# Not usually required for Rails 5 in API mode, but
# necessary here because we're using RABL.
include ActionView::Rendering
append_view_path "#{Rails.root}/app/views"
end end

View file

@ -1,3 +0,0 @@
Rabl.configure do |config|
config.view_paths = [Rails.root.join('app', 'views', 'api', 'v1')]
end