rasti-app 0.1.1 → 0.1.2

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: 327064b6748ef1edbd6dcd3be7bde34b4ad7338b
4
- data.tar.gz: cf4c7b87193c0731a7c36f09ea04b9b420973589
3
+ metadata.gz: 3b5bf788dee82cc5ebe55c1a2df92a3949f69ffd
4
+ data.tar.gz: 79c5a14b468c3bbece8938c7e46c12d78389f47a
5
5
  SHA512:
6
- metadata.gz: 6698a28a12aa11756d0b96ece34937b71c7705148b88d2b7700f46292821d43d7f68d69d3fdbeba558e661600535c131d9a72a451dd85f0cfa989c9abe248f17
7
- data.tar.gz: 27ad5a9edef6c750ecfd6f4473a2ee8a1af64acd6a1d567afaa963f0be976afc6ea513c5f0ca918ab8676aa736de658bc8540afc207ec8065b8183012e6a35ab
6
+ metadata.gz: 81affd9ba997e80550f4309ee3480e5c68937048aee7202b70764dc889c814c8b5927ff0d5ad014c8007b0fb6d1286ea241958d9fb6e51728b57d59725e7d23e
7
+ data.tar.gz: 0a4b14aaa4c1b380041376a0254b1232fa251b02640728f24b5cb764daf427b14359ad2161f739cb2e49ca7c223cba49163634f87e7403c34ec3528153f78e9a
@@ -70,11 +70,14 @@ module Rasti
70
70
  end
71
71
 
72
72
  def enqueue(name, permission, params={})
73
- queue = params.delete(:queue)
73
+ options = {
74
+ queue: params.delete(:queue),
75
+ job_id: params.delete(:job_id)
76
+ }
74
77
 
75
78
  form = self.class.facade.build_form name, params
76
79
  authorize! permission, form
77
- result = self.class.facade.enqueue name, context, form, queue
80
+ result = self.class.facade.enqueue name, context, form, options
78
81
  after_call name, form.attributes
79
82
 
80
83
  result
@@ -84,9 +84,10 @@ module Rasti
84
84
  interaction_class(name).new(container, context).call(form)
85
85
  end
86
86
 
87
- def enqueue(name, context, form, queue=nil)
87
+ def enqueue(name, context, form, options={})
88
88
  interaction = interaction_class name
89
- Job.enqueue queue: queue || Asynchronic.default_queue,
89
+ Job.enqueue queue: options[:queue] || Asynchronic.default_queue,
90
+ id: options[:job_id],
90
91
  alias: interaction,
91
92
  interaction: interaction,
92
93
  context: context,
@@ -1,5 +1,5 @@
1
1
  module Rasti
2
2
  class App
3
- VERSION = '0.1.1'
3
+ VERSION = '0.1.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rasti-app
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriel Naiman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-12 00:00:00.000000000 Z
11
+ date: 2018-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: inflecto