crashbreak 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/crashbreak/version.rb +1 -1
- data/lib/generators/crashbreak/templates/test.rb +0 -2
- data/lib/tasks/crashbreak.rake +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 59bd7396344201c555566ae2d17c0efbac3f8124
|
4
|
+
data.tar.gz: 5b9e4b2850bad68df66c8ba92f55f57fd4b8d73c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd4224db38172400dab6bfbaf0d56f2fadaa0b0137a1789b439d80ddbd1c9f725c18b14caba82a08e905186b40be024459787ad709465951fbe39696d5c4b7f2
|
7
|
+
data.tar.gz: 7244c41a285341b4dce155c996717d958fc25db6743e4f73af598f5b76b5f97b4be701732cee501d16c44bdd961910cdd0c49f78573d44d3734a78f69888aded
|
data/lib/crashbreak/version.rb
CHANGED
@@ -3,8 +3,6 @@ describe 'error id: <%= error_id %>', type: :request do
|
|
3
3
|
let(:restorers_data) { StateRestorer.new('<%= error_id %>').restore }
|
4
4
|
let(:request_parser) { Crashbreak::RequestParser.new restorers_data[:request] }
|
5
5
|
|
6
|
-
before(:all) { ENV['CRASHBREAK_ERROR_ID'] = '<%= error_id %>' }
|
7
|
-
|
8
6
|
it 'sends request' do
|
9
7
|
request_parser.request_data do |request_method, url, body, headers|
|
10
8
|
method(request_method).call url, body, headers
|
data/lib/tasks/crashbreak.rake
CHANGED
@@ -15,8 +15,8 @@ namespace :crashbreak do
|
|
15
15
|
end
|
16
16
|
|
17
17
|
task resolve_error: :environment do
|
18
|
-
|
19
|
-
service = Crashbreak::GithubIntegrationService.new
|
18
|
+
error_id = ENV['error_id'] || File.read("#{Rails.root}/spec/crashbreak_error_spec.rb").scan(/error id: \d+/).first.gsub('error id: ', '').to_i
|
19
|
+
service = Crashbreak::GithubIntegrationService.new 'id' => error_id
|
20
20
|
|
21
21
|
puts 'Removing test file from github...'
|
22
22
|
service.remove_test
|
@@ -25,7 +25,7 @@ namespace :crashbreak do
|
|
25
25
|
service.create_pull_request
|
26
26
|
|
27
27
|
puts 'Resolving error in CrashBreak...'
|
28
|
-
Crashbreak::ExceptionsRepository.new.resolve
|
28
|
+
Crashbreak::ExceptionsRepository.new.resolve error_id
|
29
29
|
end
|
30
30
|
end
|
31
31
|
|