asyncapi-client 0.6.2 → 0.7.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f87f6926b827e5fd13e149f5c8be271bc403b70b
|
4
|
+
data.tar.gz: b069c2ad36fd138d81749e5043bf759b622f7cae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 95f6229083351515c521543934569a93e2b6c83c92f2237d9ca47d382b76fc210532932796e40478b4bedebb7932f4774303a8834a0f0d0ff2f6df8151698903
|
7
|
+
data.tar.gz: 79dd9e24681b251dd0bc34c266a4faf2dea526be886c734952ec1f444555c0f4ca6f5baf6e5350e73369af63950e847983a3d0e9873364e446d6f24843c03161
|
@@ -1,6 +1,7 @@
|
|
1
1
|
module Asyncapi::Client
|
2
2
|
module V1
|
3
3
|
class JobsController < Asyncapi::Client.parent_controller
|
4
|
+
include Rails::Pagination
|
4
5
|
|
5
6
|
def index
|
6
7
|
jobs = Job.all
|
@@ -12,7 +13,7 @@ module Asyncapi::Client
|
|
12
13
|
UpdateJob.execute(job: job, params: job_params)
|
13
14
|
render json: job
|
14
15
|
else
|
15
|
-
|
16
|
+
head :forbidden
|
16
17
|
end
|
17
18
|
end
|
18
19
|
|
@@ -79,11 +79,6 @@ module Asyncapi::Client
|
|
79
79
|
Asyncapi::Client::Engine.routes.url_helpers.v1_job_url(self)
|
80
80
|
end
|
81
81
|
|
82
|
-
def body=(body)
|
83
|
-
json = body.is_a?(Hash) ? body.to_json : body
|
84
|
-
write_attribute :body, json
|
85
|
-
end
|
86
|
-
|
87
82
|
[:on_success, :on_error, :on_queue, :on_time_out, :on_queue_error].each do |attr|
|
88
83
|
define_method("#{attr}=") do |klass|
|
89
84
|
write_attribute attr, klass.to_s
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: asyncapi-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.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: 2018-
|
13
|
+
date: 2018-04-03 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|
@@ -18,14 +18,14 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - "~>"
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: '
|
21
|
+
version: '5.0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
26
|
- - "~>"
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version: '
|
28
|
+
version: '5.0'
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: sidekiq
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|