airbrake-api 4.4.0 → 4.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -58,7 +58,7 @@ module AirbrakeAPI
58
58
  # errors
59
59
 
60
60
  def unformatted_error_path(error_id)
61
- "/groups/#{error_id}"
61
+ "/errors/#{error_id}"
62
62
  end
63
63
 
64
64
  def error_path(error_id)
@@ -0,0 +1,9 @@
1
+ module AirbrakeAPI
2
+ class UrlHelper
3
+
4
+ class << self
5
+
6
+ end
7
+
8
+ end
9
+ end
@@ -1,3 +1,3 @@
1
1
  module AirbrakeAPI
2
- VERSION = '4.4.0'
2
+ VERSION = '4.5.0'
3
3
  end
@@ -130,7 +130,7 @@ describe AirbrakeAPI::Client do
130
130
  end
131
131
 
132
132
  it "should use project_id for error path" do
133
- @client.should_receive(:request).with(:get, "/projects/123/groups.xml", {}).and_return(stub(:group => 111))
133
+ @client.should_receive(:request).with(:get, "/projects/123/groups.xml", {}).and_return(double(:group => 111))
134
134
  @client.errors(:project_id => 123)
135
135
  end
136
136
  end
@@ -219,7 +219,7 @@ describe AirbrakeAPI::Client do
219
219
  end
220
220
 
221
221
  it 'generates web urls for individual errors' do
222
- @client.url_for(:error, 1696171).should eq('http://myapp.airbrake.io/groups/1696171')
222
+ @client.url_for(:error, 1696171).should eq('http://myapp.airbrake.io/errors/1696171')
223
223
  end
224
224
 
225
225
  it 'generates web urls for notices' do
@@ -12,7 +12,7 @@ describe AirbrakeAPI::Error do
12
12
  end
13
13
 
14
14
  it "should generate correct error path given an id" do
15
- AirbrakeAPI::Error.error_path(1234).should == "/groups/1234.xml"
15
+ AirbrakeAPI::Error.error_path(1234).should == '/errors/1234.xml'
16
16
  end
17
17
 
18
18
  describe '.find' do
@@ -25,9 +25,9 @@ end
25
25
  # errors
26
26
  fixture_request :get, 'http://myapp.airbrake.io/groups.xml?auth_token=abcdefg123456', 'errors.xml'
27
27
  fixture_request :get, "http://myapp.airbrake.io/groups.xml?auth_token=abcdefg123456&page=2", 'paginated_errors.xml'
28
- fixture_request :get, "http://myapp.airbrake.io/groups/1696170.xml?auth_token=abcdefg123456", 'individual_error.xml'
29
- fixture_request :put, 'http://myapp.airbrake.io/groups/1696170?auth_token=abcdefg123456', 'update_error.xml'
30
- fixture_request :get, 'https://anapp.airbrake.io/groups/1696170.xml?auth_token=abcdefg', 'individual_error.xml'
28
+ 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?auth_token=abcdefg123456', 'update_error.xml'
30
+ fixture_request :get, 'https://anapp.airbrake.io/errors/1696170.xml?auth_token=abcdefg', 'individual_error.xml'
31
31
 
32
32
  # notices
33
33
  fixture_request :get, "http://myapp.airbrake.io/groups/1696170/notices.xml?auth_token=abcdefg123456", 'notices.xml'
@@ -51,5 +51,5 @@ fixture_request :get, "http://myapp.airbrake.io/projects/12345/deploys.xml?auth_
51
51
  fixture_request :get, "http://myapp.airbrake.io/projects/67890/deploys.xml?auth_token=abcdefg123456", 'empty_deploys.xml'
52
52
 
53
53
  # ssl responses
54
- fixture_request :get, "https://sslapp.airbrake.io/groups/1696170.xml?auth_token=abcdefg123456", 'individual_error.xml'
55
- FakeWeb.register_uri(:get, "http://sslapp.airbrake.io/groups/1696170.xml?auth_token=abcdefg123456", DEFAULTS.merge(:body => " ", :status => ["403", "Forbidden"]))
54
+ fixture_request :get, "https://sslapp.airbrake.io/errors/1696170.xml?auth_token=abcdefg123456", 'individual_error.xml'
55
+ 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: 4.4.0
4
+ version: 4.5.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-01 00:00:00.000000000 Z
12
+ date: 2013-10-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: hashie
@@ -112,6 +112,7 @@ files:
112
112
  - lib/airbrake-api/middleware/scrub_response.rb
113
113
  - lib/airbrake-api/notice.rb
114
114
  - lib/airbrake-api/project.rb
115
+ - lib/airbrake-api/url_helper.rb
115
116
  - lib/airbrake-api/version.rb
116
117
  - lib/airbrake-api.rb
117
118
  - lib/airbrake_api.rb
@@ -147,7 +148,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
147
148
  version: '0'
148
149
  segments:
149
150
  - 0
150
- hash: 705071692726450878
151
+ hash: -1935467203707061610
151
152
  required_rubygems_version: !ruby/object:Gem::Requirement
152
153
  none: false
153
154
  requirements:
@@ -156,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
156
157
  version: '0'
157
158
  segments:
158
159
  - 0
159
- hash: 705071692726450878
160
+ hash: -1935467203707061610
160
161
  requirements: []
161
162
  rubyforge_project:
162
163
  rubygems_version: 1.8.23