airbrake-api 3.3.0 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/spec/spec_helper.rb CHANGED
@@ -1,7 +1,9 @@
1
- require 'simplecov'
2
- SimpleCov.start do
3
- add_group 'Airbrake API', 'lib/airbrake-api'
4
- add_group 'Specs', 'spec'
1
+ unless ENV['CI']
2
+ require 'simplecov'
3
+ SimpleCov.start do
4
+ add_group 'Airbrake API', 'lib/airbrake-api'
5
+ add_group 'Specs', 'spec'
6
+ end
5
7
  end
6
8
 
7
9
  require 'rspec'
@@ -26,7 +28,7 @@ end
26
28
  fixture_request :get, 'http://myapp.airbrake.io/errors.xml?auth_token=abcdefg123456', 'errors.xml'
27
29
  fixture_request :get, "http://myapp.airbrake.io/errors.xml?auth_token=abcdefg123456&page=2", 'paginated_errors.xml'
28
30
  fixture_request :get, "http://myapp.airbrake.io/errors/1696170.xml?auth_token=abcdefg123456", 'individual_error.xml'
29
- fixture_request :put, 'http://myapp.airbrake.io/errors/1696170.xml?auth_token=abcdefg123456', 'update_error.xml'
31
+ fixture_request :put, 'http://myapp.airbrake.io/errors/1696170.xml', 'update_error.xml'
30
32
 
31
33
  # notices
32
34
  fixture_request :get, "http://myapp.airbrake.io/errors/1696170/notices.xml?auth_token=abcdefg123456", 'notices.xml'
@@ -42,10 +44,13 @@ fixture_request :get, "http://myapp.airbrake.io/errors/1696171/notices.xml?auth_
42
44
  fixture_request :get, "http://myapp.airbrake.io/errors/1696171/notices/1234.xml?auth_token=abcdefg123456", 'notices.xml'
43
45
  fixture_request :get, "http://myapp.airbrake.io/errors/1696172/notices.xml?auth_token=abcdefg123456&page=1", 'unauthorized.xml'
44
46
 
45
-
46
47
  # projects
47
48
  fixture_request :get, "http://myapp.airbrake.io/data_api/v1/projects.xml?auth_token=abcdefg123456", 'projects.xml'
48
49
 
50
+ # deploys
51
+ fixture_request :get, "http://myapp.airbrake.io/projects/12345/deploys.xml?auth_token=abcdefg123456", 'deploys.xml'
52
+ fixture_request :get, "http://myapp.airbrake.io/projects/67890/deploys.xml?auth_token=abcdefg123456", 'empty_deploys.xml'
53
+
49
54
  # ssl responses
50
55
  fixture_request :get, "https://sslapp.airbrake.io/errors/1696170.xml?auth_token=abcdefg123456", 'individual_error.xml'
51
56
  FakeWeb.register_uri(:get, "http://sslapp.airbrake.io/errors/1696170.xml?auth_token=abcdefg123456", DEFAULTS.merge(:body => " ", :status => ["403", "Forbidden"]))
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: airbrake-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.0
4
+ version: 4.0.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,16 +9,16 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-12 00:00:00.000000000 Z
12
+ date: 2012-07-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: httparty
15
+ name: hashie
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: 0.8.0
21
+ version: '1.2'
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,15 +26,15 @@ dependencies:
26
26
  requirements:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
- version: 0.8.0
29
+ version: '1.2'
30
30
  - !ruby/object:Gem::Dependency
31
- name: hashie
31
+ name: parallel
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  none: false
34
34
  requirements:
35
35
  - - ~>
36
36
  - !ruby/object:Gem::Version
37
- version: '1.2'
37
+ version: 0.5.0
38
38
  type: :runtime
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
@@ -42,15 +42,15 @@ dependencies:
42
42
  requirements:
43
43
  - - ~>
44
44
  - !ruby/object:Gem::Version
45
- version: '1.2'
45
+ version: 0.5.0
46
46
  - !ruby/object:Gem::Dependency
47
- name: parallel
47
+ name: faraday_middleware
48
48
  requirement: !ruby/object:Gem::Requirement
49
49
  none: false
50
50
  requirements:
51
51
  - - ~>
52
52
  - !ruby/object:Gem::Version
53
- version: 0.5.0
53
+ version: '0.8'
54
54
  type: :runtime
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
@@ -58,7 +58,39 @@ dependencies:
58
58
  requirements:
59
59
  - - ~>
60
60
  - !ruby/object:Gem::Version
61
- version: 0.5.0
61
+ version: '0.8'
62
+ - !ruby/object:Gem::Dependency
63
+ name: multi_xml
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ~>
68
+ - !ruby/object:Gem::Version
69
+ version: '0.4'
70
+ type: :runtime
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ~>
76
+ - !ruby/object:Gem::Version
77
+ version: '0.4'
78
+ - !ruby/object:Gem::Dependency
79
+ name: mash
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ type: :runtime
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
62
94
  - !ruby/object:Gem::Dependency
63
95
  name: rake
64
96
  requirement: !ruby/object:Gem::Requirement
@@ -218,18 +250,25 @@ files:
218
250
  - Rakefile
219
251
  - airbrake-api.gemspec
220
252
  - lib/airbrake-api.rb
253
+ - lib/airbrake-api/base.rb
221
254
  - lib/airbrake-api/client.rb
222
- - lib/airbrake-api/core_extensions.rb
255
+ - lib/airbrake-api/configuration.rb
223
256
  - lib/airbrake-api/error.rb
257
+ - lib/airbrake-api/middleware/raise_response_error.rb
258
+ - lib/airbrake-api/middleware/raise_server_error.rb
259
+ - lib/airbrake-api/middleware/scrub_response.rb
224
260
  - lib/airbrake-api/notice.rb
225
261
  - lib/airbrake-api/project.rb
226
262
  - lib/airbrake-api/version.rb
227
263
  - lib/airbrake_api.rb
264
+ - spec/airbrake_api/client_spec.rb
228
265
  - spec/airbrake_api/error_spec.rb
229
266
  - spec/airbrake_api/notice_spec.rb
230
267
  - spec/airbrake_api/project_spec.rb
231
268
  - spec/airbrake_api_spec.rb
232
269
  - spec/fixtures/broken_notice.xml
270
+ - spec/fixtures/deploys.xml
271
+ - spec/fixtures/empty_deploys.xml
233
272
  - spec/fixtures/errors.xml
234
273
  - spec/fixtures/individual_error.xml
235
274
  - spec/fixtures/individual_notice.xml
@@ -254,7 +293,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
254
293
  version: '0'
255
294
  segments:
256
295
  - 0
257
- hash: 1506227799549148107
296
+ hash: -2339901543379587856
258
297
  required_rubygems_version: !ruby/object:Gem::Requirement
259
298
  none: false
260
299
  requirements:
@@ -263,7 +302,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
263
302
  version: '0'
264
303
  segments:
265
304
  - 0
266
- hash: 1506227799549148107
305
+ hash: -2339901543379587856
267
306
  requirements: []
268
307
  rubyforge_project:
269
308
  rubygems_version: 1.8.24
@@ -271,11 +310,14 @@ signing_key:
271
310
  specification_version: 3
272
311
  summary: A ruby wrapper for the Airbrake API
273
312
  test_files:
313
+ - spec/airbrake_api/client_spec.rb
274
314
  - spec/airbrake_api/error_spec.rb
275
315
  - spec/airbrake_api/notice_spec.rb
276
316
  - spec/airbrake_api/project_spec.rb
277
317
  - spec/airbrake_api_spec.rb
278
318
  - spec/fixtures/broken_notice.xml
319
+ - spec/fixtures/deploys.xml
320
+ - spec/fixtures/empty_deploys.xml
279
321
  - spec/fixtures/errors.xml
280
322
  - spec/fixtures/individual_error.xml
281
323
  - spec/fixtures/individual_notice.xml
@@ -1,5 +0,0 @@
1
- class Array
2
- def extract_options!
3
- last.is_a?(::Hash) ? pop : {}
4
- end
5
- end