File tree 4 files changed +48
-5
lines changed 4 files changed +48
-5
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,9 @@ gem 'rolify'
18
18
gem 'simple_form'
19
19
gem 'inherited_resources'
20
20
21
+ # exceptions catch
22
+ gem 'party_foul'
23
+
21
24
# Use SCSS for stylesheets
22
25
gem 'sass-rails' , '~> 4.0.0'
23
26
@@ -42,7 +45,7 @@ gem 'jquery-ui-rails'
42
45
gem 'zurb-foundation'
43
46
44
47
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
45
- gem 'jbuilder' , '~> 1.2'
48
+ # gem 'jbuilder', '~> 1.2'
46
49
47
50
group :doc do
48
51
# bundle exec rake doc:rails generates the API under doc/api.
Original file line number Diff line number Diff line change 48
48
multi_json (~> 1.3 )
49
49
thread_safe (~> 0.1 )
50
50
tzinfo (~> 0.3.37 )
51
+ addressable (2.3.5 )
51
52
arel (4.0.0 )
52
53
atomic (1.1.12 )
53
54
aws-sdk (1.11.1 )
84
85
eventmachine (1.0.3 )
85
86
execjs (1.4.0 )
86
87
multi_json (~> 1.0 )
88
+ faraday (0.8.8 )
89
+ multipart-post (~> 1.2.0 )
87
90
font-awesome-rails (3.2.1.2 )
88
91
railties (>= 3.2 , < 5.0 )
89
92
haml (4.0.3 )
101
104
inherited_resources (1.4.1 )
102
105
has_scope (~> 0.6.0.rc )
103
106
responders (~> 1.0.0.rc )
104
- jbuilder (1.5.0 )
105
- activesupport (>= 3.0.0 )
106
- multi_json (>= 1.2.0 )
107
107
jquery-rails (3.0.4 )
108
108
railties (>= 3.0 , < 5.0 )
109
109
thor (>= 0.14 , < 2.0 )
@@ -122,10 +122,15 @@ GEM
122
122
mini_portile (0.5.1 )
123
123
minitest (4.7.5 )
124
124
multi_json (1.7.8 )
125
+ multipart-post (1.2.0 )
125
126
nested_form (0.3.2 )
126
127
nokogiri (1.6.0 )
127
128
mini_portile (~> 0.5.0 )
129
+ octokit (2.3.1 )
130
+ sawyer (~> 0.5.1 )
128
131
orm_adapter (0.4.0 )
132
+ party_foul (1.4.0 )
133
+ octokit (~> 2.3.1 )
129
134
pg (0.17.0 )
130
135
polyglot (0.3.3 )
131
136
quiet_assets (1.0.2 )
184
189
railties (>= 4.0.0.beta , < 5.0 )
185
190
sass (>= 3.1.10 )
186
191
sprockets-rails (~> 2.0.0 )
192
+ sawyer (0.5.1 )
193
+ addressable (~> 2.3.5 )
194
+ faraday (~> 0.8 , < 0.10 )
187
195
sdoc (0.3.20 )
188
196
json (>= 1.1.3 )
189
197
rdoc (~> 3.10 )
@@ -234,9 +242,9 @@ DEPENDENCIES
234
242
devise !
235
243
haml-rails
236
244
inherited_resources
237
- jbuilder (~> 1.2 )
238
245
jquery-rails
239
246
jquery-ui-rails
247
+ party_foul
240
248
pg
241
249
quiet_assets
242
250
rails (= 4.0.0 )
Original file line number Diff line number Diff line change 77
77
78
78
# Use default logging formatter so that PID and timestamp are not suppressed.
79
79
config . log_formatter = ::Logger ::Formatter . new
80
+
81
+ config . middleware . use ( 'PartyFoul::Middleware' )
80
82
end
Original file line number Diff line number Diff line change
1
+ PartyFoul . configure do |config |
2
+ # The collection of exceptions PartyFoul should not be allowed to handle
3
+ # The constants here *must* be represented as strings
4
+ config . blacklisted_exceptions = [ 'ActiveRecord::RecordNotFound' , 'ActionController::RoutingError' ]
5
+
6
+ # The OAuth token for the account that is opening the issues on Github
7
+ config . oauth_token = '9455046eab664a8af90c19b1a9d5ce9c5a09b1c3'
8
+
9
+ # The Web URL for Github. Unless you are hosting a private
10
+ # instance of Enterprise Github you do not need to include this
11
+ config . web_url = 'https://github.com'
12
+
13
+ # The organization or user that owns the target repository
14
+ config . owner = 'ktm5411'
15
+
16
+ # The repository for this application
17
+ config . repo = 'prooflet'
18
+
19
+ # The branch for your deployed code
20
+ # config.branch = 'master'
21
+
22
+ # Additional labels to add to issues created
23
+ # config.additional_labels = ['production']
24
+ config . additional_labels = Proc . new do |exception , env |
25
+ labels = [ ]
26
+ labels << ( env [ "RACK_ENV" ] || env [ "RAILS_ENV" ] ) if env [ "RACK_ENV" ] || env [ "RAILS_ENV" ]
27
+ labels << 'database' if exception . message =~ /PG::Error/
28
+ labels
29
+ end
30
+ end
You can’t perform that action at this time.
0 commit comments