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: 1482e8e6ff266d86bb22acc901d30f867773376e
4
- data.tar.gz: 762f62f887278fb8d751a8e151cb632725963120
3
+ metadata.gz: f87f6926b827e5fd13e149f5c8be271bc403b70b
4
+ data.tar.gz: b069c2ad36fd138d81749e5043bf759b622f7cae
5
5
  SHA512:
6
- metadata.gz: e22f4f7030d0308bc80a9aba3c0e6d5ad8753680e4bd7d8f0ad49041cc7834d1f1a1c56aa42849f6527d5f4eb564fd107decc2d522a8b6e42b31d821f180408e
7
- data.tar.gz: 5eda0441e77e9f1c0b5e9c28c56c0711c53fe254f045a053fb571dcf3607b58e915964c0e3240c4e4d211740a8eb28e551e88eff3bdcdb06bed885378cb853e0
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
- render nothing: true, status: 403
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
@@ -1,5 +1,5 @@
1
1
  module Asyncapi
2
2
  module Client
3
- VERSION = "0.6.2"
3
+ VERSION = "0.7.0"
4
4
  end
5
5
  end
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.6.2
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-01-11 00:00:00.000000000 Z
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: '4.0'
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: '4.0'
28
+ version: '5.0'
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: sidekiq
31
31
  requirement: !ruby/object:Gem::Requirement