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.
data/lib/airbrake-api/client.rb
CHANGED
data/lib/airbrake-api/version.rb
CHANGED
@@ -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(
|
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/
|
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 ==
|
15
|
+
AirbrakeAPI::Error.error_path(1234).should == '/errors/1234.xml'
|
16
16
|
end
|
17
17
|
|
18
18
|
describe '.find' do
|
data/spec/spec_helper.rb
CHANGED
@@ -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,
|
29
|
-
fixture_request :put, 'http://myapp.airbrake.io/
|
30
|
-
fixture_request :get, 'https://anapp.airbrake.io/
|
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/
|
55
|
-
FakeWeb.register_uri(:get, "http://sslapp.airbrake.io/
|
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
|
+
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-
|
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:
|
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:
|
160
|
+
hash: -1935467203707061610
|
160
161
|
requirements: []
|
161
162
|
rubyforge_project:
|
162
163
|
rubygems_version: 1.8.23
|