asyncapi-server 1.0.0 → 1.1.0

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: dc1e5729a68ac1d07a41e52ce742a35dc36ff5be
4
- data.tar.gz: 4bc45e530b4b9f0ff4bbc6ba515a6bd753aafd00
3
+ metadata.gz: 2cd757bb2567503b5ba9d8ce6e83ca056a199305
4
+ data.tar.gz: 57cf7ac80d344addd357356b8949e3fdd3bc4fae
5
5
  SHA512:
6
- metadata.gz: 9631bfcc20b0d4e3327caab6872caa4288f16c7909f3eb9b3075315c2b1a0d649d024dbf362acb3a6fe894a6166dce8235101f9c02b8acdc4bbf5cb0a2d29f25
7
- data.tar.gz: e6a08f0a83bbd0ab17d81efc472259634dbf485cbb2b4f65435b3311d5b65c5a6e23d6f89683dc61763571f2ea23e82c8647bf04274ad8f676f59c7f3c88b510
6
+ metadata.gz: 4e9f48b45f660abbed76f254fd0c93ed330c071c816c38f2a0ff7c761ab0110498837594fee02408bc8d906a128478861dbdde68933bd33512c623242fe265dc
7
+ data.tar.gz: c0292eab80325a33914f37997f7d7bf79a175c3090ab5f8c2ae7881e86d3315d8bcfe57b71343ad9115ff583b2b08e6e653ed39e5987f767971f1a0cfc262272
@@ -13,6 +13,7 @@ module Asyncapi::Server
13
13
  rescue => e
14
14
  job_status = :error
15
15
  job_message = [e.message, e.backtrace].flatten.join("\n")
16
+ raise e
16
17
  ensure
17
18
  job.update_attributes(status: job_status)
18
19
  report_job_status(job, job_message)
@@ -1,5 +1,5 @@
1
1
  module Asyncapi
2
2
  module Server
3
- VERSION = "1.0.0"
3
+ VERSION = "1.1.0"
4
4
  end
5
5
  end
@@ -40,7 +40,7 @@ module Asyncapi
40
40
  end
41
41
 
42
42
  context "an error occurred" do
43
- it "reports the error to the callback url" do
43
+ it "reports the error to the callback url and re-raises it" do
44
44
  job = create(:asyncapi_server_job, {
45
45
  class_name: "Runner",
46
46
  callback_url: "client_job_url",
@@ -68,7 +68,8 @@ module Asyncapi
68
68
  }
69
69
  )
70
70
 
71
- described_class.new.perform(job.id)
71
+ expect { described_class.new.perform(job.id) }.
72
+ to raise_error(error)
72
73
  job.reload
73
74
  expect(job.status).to eq "error"
74
75
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asyncapi-server
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - G5
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-04-17 00:00:00.000000000 Z
13
+ date: 2016-03-21 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: kaminari
@@ -296,7 +296,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
296
296
  version: '0'
297
297
  requirements: []
298
298
  rubyforge_project:
299
- rubygems_version: 2.4.5
299
+ rubygems_version: 2.4.3
300
300
  signing_key:
301
301
  specification_version: 4
302
302
  summary: Asynchronous API communication - Server