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 +4 -4
- data/lib/rasti/app.rb +5 -2
- data/lib/rasti/app/facade.rb +3 -2
- data/lib/rasti/app/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b5bf788dee82cc5ebe55c1a2df92a3949f69ffd
|
4
|
+
data.tar.gz: 79c5a14b468c3bbece8938c7e46c12d78389f47a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81affd9ba997e80550f4309ee3480e5c68937048aee7202b70764dc889c814c8b5927ff0d5ad014c8007b0fb6d1286ea241958d9fb6e51728b57d59725e7d23e
|
7
|
+
data.tar.gz: 0a4b14aaa4c1b380041376a0254b1232fa251b02640728f24b5cb764daf427b14359ad2161f739cb2e49ca7c223cba49163634f87e7403c34ec3528153f78e9a
|
data/lib/rasti/app.rb
CHANGED
@@ -70,11 +70,14 @@ module Rasti
|
|
70
70
|
end
|
71
71
|
|
72
72
|
def enqueue(name, permission, params={})
|
73
|
-
|
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,
|
80
|
+
result = self.class.facade.enqueue name, context, form, options
|
78
81
|
after_call name, form.attributes
|
79
82
|
|
80
83
|
result
|
data/lib/rasti/app/facade.rb
CHANGED
@@ -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,
|
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,
|
data/lib/rasti/app/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2018-03-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: inflecto
|