crashbreak 1.0.9 → 1.0.10

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: 2c212f45cf4606d87ba6a1e6b51717cfce678b8d
4
- data.tar.gz: 99f162f5a918d72b446e29fe4818e17587f01a90
3
+ metadata.gz: da111887e6b59c26aee1f7562d92f1f45e722975
4
+ data.tar.gz: cd18a2e8f7244d98858144dd25edf851cd5630aa
5
5
  SHA512:
6
- metadata.gz: 922ed25a212e112ba96d9eac46c4f57c3e95a8c61d6ed25abbf4f265d2d6fbb11f37b352f6c3b995e4af472fd277f82fc112442dc350060de5db3423233d98be
7
- data.tar.gz: e85e395e00b7a1bab9935c7ee79f652baddfcdb9ff6c800da910567d4f49a75fee6014a6cb7c7bf7d40f6969c66e7b8632338a738a4e84e7ed5c491bdbefb83f
6
+ metadata.gz: 4982fdb475302118c8602769b7bd3d5b647c3ddb5adf6a7753e919f5c2fb356e212c82da369acf12262437150b653c1e1d5793ceffd9d38a14bb98ade7c0463c
7
+ data.tar.gz: 4e9e3038299ae08a5e2a01981d20c3ee4342cc3bc7fd99a1b9a96eee3fbede7ee8de512a41033cacd7449d5f11552396d0321673b93a69eea5f51824551d7299
@@ -1,3 +1,3 @@
1
1
  module Crashbreak
2
- VERSION = '1.0.9'
2
+ VERSION = '1.0.10'
3
3
  end
@@ -5,7 +5,7 @@ module Crashbreak
5
5
  argument :error_id, type: :string
6
6
 
7
7
  def create_test_file
8
- template 'test.rb', 'spec/error_request_spec.rb'
8
+ template 'test.rb', 'spec/crashbreak_error_spec.rb'
9
9
  end
10
10
  end
11
11
  end
@@ -33,6 +33,14 @@ namespace :crashbreak do
33
33
  puts 'Resolving error in CrashBreak...'
34
34
  Crashbreak::ExceptionsRepository.new.resolve error_id
35
35
  end
36
+
37
+ task run_test: :environment do
38
+ unless File.exist?("#{Rails.root}/spec/crashbreak_error_spec.rb")
39
+ next puts 'Crashbreak spec not found, skipping.'
40
+ end
41
+
42
+ system('bundle exec rspec spec/crashbreak_error_spec.rb')
43
+ end
36
44
  end
37
45
 
38
46
  class CrashbreakTestError < StandardError
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crashbreak
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.9
4
+ version: 1.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michal Janeczek
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-11 00:00:00.000000000 Z
11
+ date: 2015-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler