Use sentry for error processing

This commit is contained in:
Wedge 2018-04-09 14:26:30 +03:00
parent df919db242
commit 9f07e3556d
6 changed files with 28 additions and 0 deletions

View File

@ -10,6 +10,7 @@ gem 'devise'
gem 'omniauth-github' gem 'omniauth-github'
gem 'pundit' gem 'pundit'
gem 'rbtrace' gem 'rbtrace'
gem 'sentry-raven'
gem 'paperclip' gem 'paperclip'
gem 'sinatra', :require => nil gem 'sinatra', :require => nil

View File

@ -486,6 +486,8 @@ GEM
activerecord (~> 4.2) activerecord (~> 4.2)
schema_plus_core (~> 1.0) schema_plus_core (~> 1.0)
scrivener (0.0.3) scrivener (0.0.3)
sentry-raven (2.7.2)
faraday (>= 0.7.6, < 1.0)
sexp_processor (4.9.0) sexp_processor (4.9.0)
shotgun (0.9.2) shotgun (0.9.2)
rack (>= 1.0) rack (>= 1.0)
@ -628,6 +630,7 @@ DEPENDENCIES
russian russian
sass-rails sass-rails
schema_plus schema_plus
sentry-raven
shotgun shotgun
shoulda shoulda
shoulda-matchers shoulda-matchers

4
app/models/container.rb Normal file
View File

@ -0,0 +1,4 @@
class Container < ActiveRecord::Base
belongs_to :platform
has_many :build_lists
end

View File

@ -0,0 +1,10 @@
class CreateContainers < ActiveRecord::Migration
def change
create_table :containers do |t|
t.string :name
t.references :platform, index: true, foreign_key: true
t.timestamps null: false
end
end
end

View File

@ -0,0 +1,5 @@
class AddContainerToBuildLists < ActiveRecord::Migration
def change
add_reference :build_lists, :container, index: true, foreign_key: true
end
end

View File

@ -0,0 +1,5 @@
require 'rails_helper'
RSpec.describe Container, type: :model do
pending "add some examples to (or delete) #{__FILE__}"
end