crashbreak 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 59bd7396344201c555566ae2d17c0efbac3f8124
4
- data.tar.gz: 5b9e4b2850bad68df66c8ba92f55f57fd4b8d73c
3
+ metadata.gz: 14065029a6e6ad196fbacb9fd1ddd627e5cc24a0
4
+ data.tar.gz: 16183261b3782e15c9c16c25f8308e02b35aa3c3
5
5
  SHA512:
6
- metadata.gz: bd4224db38172400dab6bfbaf0d56f2fadaa0b0137a1789b439d80ddbd1c9f725c18b14caba82a08e905186b40be024459787ad709465951fbe39696d5c4b7f2
7
- data.tar.gz: 7244c41a285341b4dce155c996717d958fc25db6743e4f73af598f5b76b5f97b4be701732cee501d16c44bdd961910cdd0c49f78573d44d3734a78f69888aded
6
+ metadata.gz: 70b557fd01a44caf8f0c6a6fae9739341817c6826f4b130a97309f5a73bfb3ec09b6a6caf8ca25f1e46733c2c7b914737b4411bdf4f3736bd53643cc31441065
7
+ data.tar.gz: 5259c0cd88cefa2d6f069bbf79c7c096ca297b3ec50f3d0306b8dce9ba2865b283a79bf5c78d10ce153600f626c943c0a716ed1f6e0f806f57e8d3ad74f0de39
@@ -1,3 +1,3 @@
1
1
  module Crashbreak
2
- VERSION = '1.0.5'
2
+ VERSION = '1.0.6'
3
3
  end
@@ -15,7 +15,13 @@ namespace :crashbreak do
15
15
  end
16
16
 
17
17
  task resolve_error: :environment do
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
18
+ error_id = ENV['error_id']
19
+
20
+ unless error_id
21
+ next unless File.exist?("#{Rails.root}/spec/crashbreak_error_spec.rb")
22
+ error_id = File.read("#{Rails.root}/spec/crashbreak_error_spec.rb").scan(/error id: \d+/).first.gsub('error id: ', '').to_i
23
+ end
24
+
19
25
  service = Crashbreak::GithubIntegrationService.new 'id' => error_id
20
26
 
21
27
  puts 'Removing test file from github...'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crashbreak
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michal Janeczek