rasti-app 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: 1f1582c815201583dba180555b5bd51655d3e360
4
- data.tar.gz: f832ad44a7aa5184d8751ec936e6e2e97d92d7b2
3
+ metadata.gz: cd96796648f14ec7c4db3589ff4348159b217293
4
+ data.tar.gz: 1067ec4578914969850a35cdcbe18ab4134c7e21
5
5
  SHA512:
6
- metadata.gz: 52406e282e75275c70f976f0ef1b62c448d2e1e0d0932bddd3b502cd207ca781f56d33718a28a10080e17ff291fa0093c55ec666d96da00249ca09529ec38c6d
7
- data.tar.gz: b02e6b83b5011184cd364294b9e9118a959465b296eca7844c08688ce490fa27989738a758696007ae254f9fb86e753ae09e73542746e30d1c161b43d178bc28
6
+ metadata.gz: 31d66f67398a318fa09a650f67257ff8a2e0247298fd45d9dc9879d28680c9445030b12ec085b01489207f18bc89c07321aab3d652b955d6a59e6eb967552047
7
+ data.tar.gz: 57540760a99df731f57eb3e1499016ebf4b41f6ffaa6611924b534948b3feb8d29b37f264905b552ae0403a824148bedb07b25d180ce7f86f96389e3817033d1
data/lib/rasti/app.rb CHANGED
@@ -64,7 +64,7 @@ module Rasti
64
64
  form = self.class.facade.build_form name, params
65
65
  authorize! permission, form
66
66
  result = self.class.facade.call name, environment, session, form
67
- after_call name, form.attributes
67
+ after_call name, form.attributes, result
68
68
 
69
69
  result
70
70
  end
@@ -78,7 +78,7 @@ module Rasti
78
78
  form = self.class.facade.build_form name, params
79
79
  authorize! permission, form
80
80
  result = self.class.facade.enqueue name, session, form, options
81
- after_call name, form.attributes
81
+ after_call name, form.attributes, result
82
82
 
83
83
  result
84
84
  end
@@ -87,7 +87,7 @@ module Rasti
87
87
  policy.authorize! permission, form
88
88
  end
89
89
 
90
- def after_call(name, params)
90
+ def after_call(name, params, result)
91
91
  end
92
92
 
93
93
  end
data/lib/rasti/app/job.rb CHANGED
@@ -8,7 +8,8 @@ module Rasti
8
8
 
9
9
  def call
10
10
  raise "Undefined #{self.class.name}.environment" unless self.class.environment
11
-
11
+
12
+ session = params[:session]
12
13
  session.job_id = @process.id
13
14
  interaction = params[:interaction].new self.class.environment, session
14
15
  interaction.call params[:interaction].build_form params[:params]
@@ -1,5 +1,5 @@
1
1
  module Rasti
2
2
  class App
3
- VERSION = '1.0.0'
3
+ VERSION = '1.1.0'
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: 1.0.0
4
+ version: 1.1.0
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-04-19 00:00:00.000000000 Z
11
+ date: 2018-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: inflecto