airbrakeV4rails5 4.3.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG +1716 -0
  3. data/Gemfile +3 -0
  4. data/Guardfile +6 -0
  5. data/INSTALL +20 -0
  6. data/LICENSE +61 -0
  7. data/README.md +148 -0
  8. data/README_FOR_HEROKU_ADDON.md +102 -0
  9. data/Rakefile +179 -0
  10. data/TESTED_AGAINST +7 -0
  11. data/airbrake.gemspec +41 -0
  12. data/bin/airbrake +12 -0
  13. data/features/metal.feature +34 -0
  14. data/features/rack.feature +60 -0
  15. data/features/rails.feature +324 -0
  16. data/features/rake.feature +33 -0
  17. data/features/sinatra.feature +126 -0
  18. data/features/step_definitions/file_steps.rb +14 -0
  19. data/features/step_definitions/rack_steps.rb +27 -0
  20. data/features/step_definitions/rails_application_steps.rb +267 -0
  21. data/features/step_definitions/rake_steps.rb +22 -0
  22. data/features/support/airbrake_shim.rb.template +11 -0
  23. data/features/support/aruba.rb +5 -0
  24. data/features/support/env.rb +39 -0
  25. data/features/support/matchers.rb +35 -0
  26. data/features/support/rails.rb +156 -0
  27. data/features/support/rake/Rakefile +77 -0
  28. data/features/user_informer.feature +57 -0
  29. data/generators/airbrake/airbrake_generator.rb +94 -0
  30. data/generators/airbrake/lib/insert_commands.rb +34 -0
  31. data/generators/airbrake/lib/rake_commands.rb +24 -0
  32. data/generators/airbrake/templates/airbrake_tasks.rake +25 -0
  33. data/generators/airbrake/templates/capistrano_hook.rb +6 -0
  34. data/generators/airbrake/templates/initializer.rb +4 -0
  35. data/install.rb +1 -0
  36. data/lib/airbrake.rb +191 -0
  37. data/lib/airbrake/backtrace.rb +103 -0
  38. data/lib/airbrake/capistrano.rb +103 -0
  39. data/lib/airbrake/capistrano3.rb +3 -0
  40. data/lib/airbrake/cli/client.rb +76 -0
  41. data/lib/airbrake/cli/options.rb +45 -0
  42. data/lib/airbrake/cli/printer.rb +33 -0
  43. data/lib/airbrake/cli/project.rb +17 -0
  44. data/lib/airbrake/cli/project_factory.rb +33 -0
  45. data/lib/airbrake/cli/runner.rb +49 -0
  46. data/lib/airbrake/cli/validator.rb +8 -0
  47. data/lib/airbrake/configuration.rb +366 -0
  48. data/lib/airbrake/jobs/send_job.rb +7 -0
  49. data/lib/airbrake/notice.rb +411 -0
  50. data/lib/airbrake/rack.rb +64 -0
  51. data/lib/airbrake/rails.rb +45 -0
  52. data/lib/airbrake/rails/action_controller_catcher.rb +32 -0
  53. data/lib/airbrake/rails/controller_methods.rb +146 -0
  54. data/lib/airbrake/rails/error_lookup.rb +35 -0
  55. data/lib/airbrake/rails/middleware.rb +63 -0
  56. data/lib/airbrake/rails3_tasks.rb +126 -0
  57. data/lib/airbrake/railtie.rb +44 -0
  58. data/lib/airbrake/rake_handler.rb +75 -0
  59. data/lib/airbrake/response.rb +29 -0
  60. data/lib/airbrake/sender.rb +213 -0
  61. data/lib/airbrake/shared_tasks.rb +59 -0
  62. data/lib/airbrake/sidekiq.rb +8 -0
  63. data/lib/airbrake/sinatra.rb +40 -0
  64. data/lib/airbrake/tasks.rb +81 -0
  65. data/lib/airbrake/tasks/airbrake.cap +28 -0
  66. data/lib/airbrake/user_informer.rb +36 -0
  67. data/lib/airbrake/utils/params_cleaner.rb +141 -0
  68. data/lib/airbrake/utils/rack_filters.rb +45 -0
  69. data/lib/airbrake/version.rb +3 -0
  70. data/lib/airbrake_tasks.rb +62 -0
  71. data/lib/rails/generators/airbrake/airbrake_generator.rb +155 -0
  72. data/lib/templates/rescue.erb +91 -0
  73. data/rails/init.rb +1 -0
  74. data/resources/README.md +34 -0
  75. data/resources/airbrake_2_4.xsd +89 -0
  76. data/resources/airbrake_3_0.json +52 -0
  77. data/resources/ca-bundle.crt +3376 -0
  78. data/script/integration_test.rb +35 -0
  79. data/test/airbrake_tasks_test.rb +161 -0
  80. data/test/backtrace_test.rb +215 -0
  81. data/test/capistrano_test.rb +44 -0
  82. data/test/configuration_test.rb +303 -0
  83. data/test/controller_methods_test.rb +230 -0
  84. data/test/helper.rb +233 -0
  85. data/test/integration.rb +13 -0
  86. data/test/integration/catcher_test.rb +371 -0
  87. data/test/logger_test.rb +79 -0
  88. data/test/notice_test.rb +494 -0
  89. data/test/notifier_test.rb +288 -0
  90. data/test/params_cleaner_test.rb +204 -0
  91. data/test/rack_test.rb +62 -0
  92. data/test/rails_initializer_test.rb +36 -0
  93. data/test/recursion_test.rb +10 -0
  94. data/test/response_test.rb +18 -0
  95. data/test/sender_test.rb +335 -0
  96. data/test/support/response_shim.xml +4 -0
  97. data/test/user_informer_test.rb +29 -0
  98. metadata +469 -0
@@ -0,0 +1,4 @@
1
+ <notice>
2
+ <id>fd2ec31a-8628-0146-edae-b783ab246f9f</id>
3
+ <url>http://airbrake.io/locate/fd2ec31a-8628-0146-edae-b783ab246f9f</url>
4
+ </notice>
@@ -0,0 +1,29 @@
1
+ require File.expand_path '../helper', __FILE__
2
+
3
+ class UserInformerTest < Test::Unit::TestCase
4
+ should "modify output if there is an airbrake id" do
5
+ main_app = lambda do |env|
6
+ env['airbrake.error_id'] = 1
7
+ [200, {}, ["<!-- AIRBRAKE ERROR -->"]]
8
+ end
9
+ informer_app = Airbrake::UserInformer.new(main_app)
10
+
11
+ ShamRack.mount(informer_app, "example.com")
12
+
13
+ response = Net::HTTP.get_response(URI.parse("http://example.com/"))
14
+ assert_equal "Airbrake Error 1", response.body
15
+ assert_equal 16, response["Content-Length"].to_i
16
+ end
17
+
18
+ should "not modify output if there is no airbrake id" do
19
+ main_app = lambda do |env|
20
+ [200, {}, ["<!-- AIRBRAKE ERROR -->"]]
21
+ end
22
+ informer_app = Airbrake::UserInformer.new(main_app)
23
+
24
+ ShamRack.mount(informer_app, "example.com")
25
+
26
+ response = Net::HTTP.get_response(URI.parse("http://example.com/"))
27
+ assert_equal "<!-- AIRBRAKE ERROR -->", response.body
28
+ end
29
+ end
metadata ADDED
@@ -0,0 +1,469 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: airbrakeV4rails5
3
+ version: !ruby/object:Gem::Version
4
+ version: 4.3.8
5
+ platform: ruby
6
+ authors:
7
+ - Airbrake
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-10-12 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: builder
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: multi_json
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: bourne
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 1.4.0
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 1.4.0
55
+ - !ruby/object:Gem::Dependency
56
+ name: cucumber-rails
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 1.1.1
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 1.1.1
69
+ - !ruby/object:Gem::Dependency
70
+ name: fakeweb
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 1.3.0
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 1.3.0
83
+ - !ruby/object:Gem::Dependency
84
+ name: nokogiri
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 1.5.0
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 1.5.0
97
+ - !ruby/object:Gem::Dependency
98
+ name: rspec
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 2.6.0
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 2.6.0
111
+ - !ruby/object:Gem::Dependency
112
+ name: sham_rack
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: 1.3.0
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: 1.3.0
125
+ - !ruby/object:Gem::Dependency
126
+ name: json-schema
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: 1.0.12
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: 1.0.12
139
+ - !ruby/object:Gem::Dependency
140
+ name: capistrano
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: '2.0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: '2.0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: aruba
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: appraisal
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ - !ruby/object:Gem::Dependency
182
+ name: rspec-rails
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - ">="
193
+ - !ruby/object:Gem::Version
194
+ version: '0'
195
+ - !ruby/object:Gem::Dependency
196
+ name: girl_friday
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - ">="
200
+ - !ruby/object:Gem::Version
201
+ version: '0'
202
+ type: :development
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - ">="
207
+ - !ruby/object:Gem::Version
208
+ version: '0'
209
+ - !ruby/object:Gem::Dependency
210
+ name: sucker_punch
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - '='
214
+ - !ruby/object:Gem::Version
215
+ version: 1.0.2
216
+ type: :development
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - '='
221
+ - !ruby/object:Gem::Version
222
+ version: 1.0.2
223
+ - !ruby/object:Gem::Dependency
224
+ name: shoulda-matchers
225
+ requirement: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - ">="
228
+ - !ruby/object:Gem::Version
229
+ version: '0'
230
+ type: :development
231
+ prerelease: false
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ requirements:
234
+ - - ">="
235
+ - !ruby/object:Gem::Version
236
+ version: '0'
237
+ - !ruby/object:Gem::Dependency
238
+ name: shoulda-context
239
+ requirement: !ruby/object:Gem::Requirement
240
+ requirements:
241
+ - - ">="
242
+ - !ruby/object:Gem::Version
243
+ version: '0'
244
+ type: :development
245
+ prerelease: false
246
+ version_requirements: !ruby/object:Gem::Requirement
247
+ requirements:
248
+ - - ">="
249
+ - !ruby/object:Gem::Version
250
+ version: '0'
251
+ - !ruby/object:Gem::Dependency
252
+ name: pry
253
+ requirement: !ruby/object:Gem::Requirement
254
+ requirements:
255
+ - - ">="
256
+ - !ruby/object:Gem::Version
257
+ version: '0'
258
+ type: :development
259
+ prerelease: false
260
+ version_requirements: !ruby/object:Gem::Requirement
261
+ requirements:
262
+ - - ">="
263
+ - !ruby/object:Gem::Version
264
+ version: '0'
265
+ - !ruby/object:Gem::Dependency
266
+ name: coveralls
267
+ requirement: !ruby/object:Gem::Requirement
268
+ requirements:
269
+ - - ">="
270
+ - !ruby/object:Gem::Version
271
+ version: '0'
272
+ type: :development
273
+ prerelease: false
274
+ version_requirements: !ruby/object:Gem::Requirement
275
+ requirements:
276
+ - - ">="
277
+ - !ruby/object:Gem::Version
278
+ version: '0'
279
+ - !ruby/object:Gem::Dependency
280
+ name: minitest
281
+ requirement: !ruby/object:Gem::Requirement
282
+ requirements:
283
+ - - "~>"
284
+ - !ruby/object:Gem::Version
285
+ version: '4.0'
286
+ type: :development
287
+ prerelease: false
288
+ version_requirements: !ruby/object:Gem::Requirement
289
+ requirements:
290
+ - - "~>"
291
+ - !ruby/object:Gem::Version
292
+ version: '4.0'
293
+ - !ruby/object:Gem::Dependency
294
+ name: test-unit
295
+ requirement: !ruby/object:Gem::Requirement
296
+ requirements:
297
+ - - ">="
298
+ - !ruby/object:Gem::Version
299
+ version: '0'
300
+ type: :development
301
+ prerelease: false
302
+ version_requirements: !ruby/object:Gem::Requirement
303
+ requirements:
304
+ - - ">="
305
+ - !ruby/object:Gem::Version
306
+ version: '0'
307
+ description:
308
+ email: support@airbrake.io
309
+ executables:
310
+ - airbrake
311
+ extensions: []
312
+ extra_rdoc_files: []
313
+ files:
314
+ - CHANGELOG
315
+ - Gemfile
316
+ - Guardfile
317
+ - INSTALL
318
+ - LICENSE
319
+ - README.md
320
+ - README_FOR_HEROKU_ADDON.md
321
+ - Rakefile
322
+ - TESTED_AGAINST
323
+ - airbrake.gemspec
324
+ - bin/airbrake
325
+ - features/metal.feature
326
+ - features/rack.feature
327
+ - features/rails.feature
328
+ - features/rake.feature
329
+ - features/sinatra.feature
330
+ - features/step_definitions/file_steps.rb
331
+ - features/step_definitions/rack_steps.rb
332
+ - features/step_definitions/rails_application_steps.rb
333
+ - features/step_definitions/rake_steps.rb
334
+ - features/support/airbrake_shim.rb.template
335
+ - features/support/aruba.rb
336
+ - features/support/env.rb
337
+ - features/support/matchers.rb
338
+ - features/support/rails.rb
339
+ - features/support/rake/Rakefile
340
+ - features/user_informer.feature
341
+ - generators/airbrake/airbrake_generator.rb
342
+ - generators/airbrake/lib/insert_commands.rb
343
+ - generators/airbrake/lib/rake_commands.rb
344
+ - generators/airbrake/templates/airbrake_tasks.rake
345
+ - generators/airbrake/templates/capistrano_hook.rb
346
+ - generators/airbrake/templates/initializer.rb
347
+ - install.rb
348
+ - lib/airbrake.rb
349
+ - lib/airbrake/backtrace.rb
350
+ - lib/airbrake/capistrano.rb
351
+ - lib/airbrake/capistrano3.rb
352
+ - lib/airbrake/cli/client.rb
353
+ - lib/airbrake/cli/options.rb
354
+ - lib/airbrake/cli/printer.rb
355
+ - lib/airbrake/cli/project.rb
356
+ - lib/airbrake/cli/project_factory.rb
357
+ - lib/airbrake/cli/runner.rb
358
+ - lib/airbrake/cli/validator.rb
359
+ - lib/airbrake/configuration.rb
360
+ - lib/airbrake/jobs/send_job.rb
361
+ - lib/airbrake/notice.rb
362
+ - lib/airbrake/rack.rb
363
+ - lib/airbrake/rails.rb
364
+ - lib/airbrake/rails/action_controller_catcher.rb
365
+ - lib/airbrake/rails/controller_methods.rb
366
+ - lib/airbrake/rails/error_lookup.rb
367
+ - lib/airbrake/rails/middleware.rb
368
+ - lib/airbrake/rails3_tasks.rb
369
+ - lib/airbrake/railtie.rb
370
+ - lib/airbrake/rake_handler.rb
371
+ - lib/airbrake/response.rb
372
+ - lib/airbrake/sender.rb
373
+ - lib/airbrake/shared_tasks.rb
374
+ - lib/airbrake/sidekiq.rb
375
+ - lib/airbrake/sinatra.rb
376
+ - lib/airbrake/tasks.rb
377
+ - lib/airbrake/tasks/airbrake.cap
378
+ - lib/airbrake/user_informer.rb
379
+ - lib/airbrake/utils/params_cleaner.rb
380
+ - lib/airbrake/utils/rack_filters.rb
381
+ - lib/airbrake/version.rb
382
+ - lib/airbrake_tasks.rb
383
+ - lib/rails/generators/airbrake/airbrake_generator.rb
384
+ - lib/templates/rescue.erb
385
+ - rails/init.rb
386
+ - resources/README.md
387
+ - resources/airbrake_2_4.xsd
388
+ - resources/airbrake_3_0.json
389
+ - resources/ca-bundle.crt
390
+ - script/integration_test.rb
391
+ - test/airbrake_tasks_test.rb
392
+ - test/backtrace_test.rb
393
+ - test/capistrano_test.rb
394
+ - test/configuration_test.rb
395
+ - test/controller_methods_test.rb
396
+ - test/helper.rb
397
+ - test/integration.rb
398
+ - test/integration/catcher_test.rb
399
+ - test/logger_test.rb
400
+ - test/notice_test.rb
401
+ - test/notifier_test.rb
402
+ - test/params_cleaner_test.rb
403
+ - test/rack_test.rb
404
+ - test/rails_initializer_test.rb
405
+ - test/recursion_test.rb
406
+ - test/response_test.rb
407
+ - test/sender_test.rb
408
+ - test/support/response_shim.xml
409
+ - test/user_informer_test.rb
410
+ homepage: http://www.airbrake.io
411
+ licenses:
412
+ - MIT
413
+ metadata: {}
414
+ post_install_message:
415
+ rdoc_options: []
416
+ require_paths:
417
+ - lib
418
+ required_ruby_version: !ruby/object:Gem::Requirement
419
+ requirements:
420
+ - - ">="
421
+ - !ruby/object:Gem::Version
422
+ version: '0'
423
+ required_rubygems_version: !ruby/object:Gem::Requirement
424
+ requirements:
425
+ - - ">="
426
+ - !ruby/object:Gem::Version
427
+ version: '0'
428
+ requirements: []
429
+ rubyforge_project:
430
+ rubygems_version: 2.6.7
431
+ signing_key:
432
+ specification_version: 4
433
+ summary: Send your application errors to our hosted service and reclaim your inbox.
434
+ test_files:
435
+ - test/airbrake_tasks_test.rb
436
+ - test/backtrace_test.rb
437
+ - test/capistrano_test.rb
438
+ - test/configuration_test.rb
439
+ - test/controller_methods_test.rb
440
+ - test/helper.rb
441
+ - test/integration/catcher_test.rb
442
+ - test/integration.rb
443
+ - test/logger_test.rb
444
+ - test/notice_test.rb
445
+ - test/notifier_test.rb
446
+ - test/params_cleaner_test.rb
447
+ - test/rack_test.rb
448
+ - test/rails_initializer_test.rb
449
+ - test/recursion_test.rb
450
+ - test/response_test.rb
451
+ - test/sender_test.rb
452
+ - test/support/response_shim.xml
453
+ - test/user_informer_test.rb
454
+ - features/metal.feature
455
+ - features/rack.feature
456
+ - features/rails.feature
457
+ - features/rake.feature
458
+ - features/sinatra.feature
459
+ - features/step_definitions/file_steps.rb
460
+ - features/step_definitions/rack_steps.rb
461
+ - features/step_definitions/rails_application_steps.rb
462
+ - features/step_definitions/rake_steps.rb
463
+ - features/support/airbrake_shim.rb.template
464
+ - features/support/aruba.rb
465
+ - features/support/env.rb
466
+ - features/support/matchers.rb
467
+ - features/support/rails.rb
468
+ - features/support/rake/Rakefile
469
+ - features/user_informer.feature