-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SRCH-2152 Update to Rails 6.1 (#101)
* SRCH-2212 Upgrade ASIS Rails 6.0 to 6.1 * SRCH-2213 Update Asis Rails 5.2 to 6.0 (#93) * SRCH-2185 Use zeitwerk * SRCH-2186 Remove airbrake from ASIS * SRCH-2187 Update newrelic_rpm in ASIS (this was done first on master, then merged into rails-6) * SRCH-2433 Finalize and release ASIS cookbook changes. See tickets for each of the subtasks for more details.
- Loading branch information
1 parent
30707f4
commit d5e30c5
Showing
30 changed files
with
183 additions
and
256 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
# frozen_string_literal: true | ||
|
||
module API | ||
module Api | ||
class Base < Grape::API | ||
rescue_from :all do |e| | ||
Rails.logger.error "#{e.message}\n\n#{e.backtrace.join("\n")}" | ||
|
||
Airbrake.notify(e) | ||
|
||
Rack::Response.new({ message: e.message, backtrace: e.backtrace }, 500, 'Content-type' => 'application/json').finish | ||
end | ||
|
||
mount API::V1::Base | ||
mount Api::V1::Base | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
# frozen_string_literal: true | ||
|
||
module API | ||
module Api | ||
module V1 | ||
class Base < Grape::API | ||
mount API::V1::InstagramProfiles | ||
mount API::V1::FlickrProfiles | ||
mount API::V1::MrssProfiles | ||
mount API::V1::ImageSearches | ||
mount Api::V1::InstagramProfiles | ||
mount Api::V1::FlickrProfiles | ||
mount Api::V1::MrssProfiles | ||
mount Api::V1::ImageSearches | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# frozen_string_literal: true | ||
|
||
module API | ||
module Api | ||
module V1 | ||
class FlickrProfiles < Grape::API | ||
version 'v1' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# frozen_string_literal: true | ||
|
||
module API | ||
module Api | ||
module V1 | ||
class ImageSearches < Grape::API | ||
version 'v1' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# frozen_string_literal: true | ||
|
||
module API | ||
module Api | ||
module V1 | ||
class MrssProfiles < Grape::API | ||
version 'v1' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.