isomorfeus-operation 23.9.0.rc10 → 23.9.0.rc12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isomorfeus/operation/run_task.rb +4 -3
- data/lib/isomorfeus/operation/version.rb +1 -1
- metadata +16 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df3cc324db8623b8d588a8e167ae9ed46fd98753aec710d981cf996720e61244
|
4
|
+
data.tar.gz: 63947807895ed79825eb2906552dfd86055a91cc77cc2842c3247b9b76999593
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54fb9c64fd61e70df1fa78ec70b19cbeceb7a3e98f83b779c2ae61fa451f207450a20378ce145d14dc6a957be736979123856e3f5b226d0be8959d972c495b8e
|
7
|
+
data.tar.gz: a3bc5dd0184b3b1fab31d8a827bfbd07e84c07010c34bec28dd0de6a61e6827c75eedd804e1cda4dfea704119e72db83009864762beb205216caaa832416d634
|
@@ -37,13 +37,14 @@ module Isomorfeus
|
|
37
37
|
Anonymous.new
|
38
38
|
end
|
39
39
|
Thread.current[:isomorfeus_user] = user_instance
|
40
|
-
|
40
|
+
props = task[:props].transform_keys(&:to_sym)
|
41
|
+
raise 'Access denied!' unless Thread.current[:isomorfeus_user].authorized?(operation_class, :promise_run, props)
|
41
42
|
if @recurring
|
42
|
-
operation_class.promise_run(**
|
43
|
+
operation_class.promise_run(**props)
|
43
44
|
.then { mark_as_ready(task) }
|
44
45
|
.fail { |e| task[:fail] ? mark_as_failed(task, e) : save_exception(task, e) }
|
45
46
|
else
|
46
|
-
operation_class.promise_run(**
|
47
|
+
operation_class.promise_run(**props)
|
47
48
|
.then { remove_task(task) }
|
48
49
|
.fail { |e| mark_as_failed(task, e) }
|
49
50
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: isomorfeus-operation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 23.9.0.
|
4
|
+
version: 23.9.0.rc12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Biedermann
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-09-
|
11
|
+
date: 2023-09-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -92,98 +92,98 @@ dependencies:
|
|
92
92
|
requirements:
|
93
93
|
- - '='
|
94
94
|
- !ruby/object:Gem::Version
|
95
|
-
version: 23.9.0.
|
95
|
+
version: 23.9.0.rc12
|
96
96
|
type: :runtime
|
97
97
|
prerelease: false
|
98
98
|
version_requirements: !ruby/object:Gem::Requirement
|
99
99
|
requirements:
|
100
100
|
- - '='
|
101
101
|
- !ruby/object:Gem::Version
|
102
|
-
version: 23.9.0.
|
102
|
+
version: 23.9.0.rc12
|
103
103
|
- !ruby/object:Gem::Dependency
|
104
104
|
name: isomorfeus-i18n
|
105
105
|
requirement: !ruby/object:Gem::Requirement
|
106
106
|
requirements:
|
107
107
|
- - '='
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: 23.9.0.
|
109
|
+
version: 23.9.0.rc12
|
110
110
|
type: :runtime
|
111
111
|
prerelease: false
|
112
112
|
version_requirements: !ruby/object:Gem::Requirement
|
113
113
|
requirements:
|
114
114
|
- - '='
|
115
115
|
- !ruby/object:Gem::Version
|
116
|
-
version: 23.9.0.
|
116
|
+
version: 23.9.0.rc12
|
117
117
|
- !ruby/object:Gem::Dependency
|
118
118
|
name: isomorfeus-policy
|
119
119
|
requirement: !ruby/object:Gem::Requirement
|
120
120
|
requirements:
|
121
121
|
- - '='
|
122
122
|
- !ruby/object:Gem::Version
|
123
|
-
version: 23.9.0.
|
123
|
+
version: 23.9.0.rc12
|
124
124
|
type: :runtime
|
125
125
|
prerelease: false
|
126
126
|
version_requirements: !ruby/object:Gem::Requirement
|
127
127
|
requirements:
|
128
128
|
- - '='
|
129
129
|
- !ruby/object:Gem::Version
|
130
|
-
version: 23.9.0.
|
130
|
+
version: 23.9.0.rc12
|
131
131
|
- !ruby/object:Gem::Dependency
|
132
132
|
name: isomorfeus-preact
|
133
133
|
requirement: !ruby/object:Gem::Requirement
|
134
134
|
requirements:
|
135
135
|
- - '='
|
136
136
|
- !ruby/object:Gem::Version
|
137
|
-
version: 23.9.0.
|
137
|
+
version: 23.9.0.rc12
|
138
138
|
type: :runtime
|
139
139
|
prerelease: false
|
140
140
|
version_requirements: !ruby/object:Gem::Requirement
|
141
141
|
requirements:
|
142
142
|
- - '='
|
143
143
|
- !ruby/object:Gem::Version
|
144
|
-
version: 23.9.0.
|
144
|
+
version: 23.9.0.rc12
|
145
145
|
- !ruby/object:Gem::Dependency
|
146
146
|
name: isomorfeus-redux
|
147
147
|
requirement: !ruby/object:Gem::Requirement
|
148
148
|
requirements:
|
149
149
|
- - '='
|
150
150
|
- !ruby/object:Gem::Version
|
151
|
-
version: 23.9.0.
|
151
|
+
version: 23.9.0.rc12
|
152
152
|
type: :runtime
|
153
153
|
prerelease: false
|
154
154
|
version_requirements: !ruby/object:Gem::Requirement
|
155
155
|
requirements:
|
156
156
|
- - '='
|
157
157
|
- !ruby/object:Gem::Version
|
158
|
-
version: 23.9.0.
|
158
|
+
version: 23.9.0.rc12
|
159
159
|
- !ruby/object:Gem::Dependency
|
160
160
|
name: isomorfeus-transport
|
161
161
|
requirement: !ruby/object:Gem::Requirement
|
162
162
|
requirements:
|
163
163
|
- - '='
|
164
164
|
- !ruby/object:Gem::Version
|
165
|
-
version: 23.9.0.
|
165
|
+
version: 23.9.0.rc12
|
166
166
|
type: :runtime
|
167
167
|
prerelease: false
|
168
168
|
version_requirements: !ruby/object:Gem::Requirement
|
169
169
|
requirements:
|
170
170
|
- - '='
|
171
171
|
- !ruby/object:Gem::Version
|
172
|
-
version: 23.9.0.
|
172
|
+
version: 23.9.0.rc12
|
173
173
|
- !ruby/object:Gem::Dependency
|
174
174
|
name: isomorfeus
|
175
175
|
requirement: !ruby/object:Gem::Requirement
|
176
176
|
requirements:
|
177
177
|
- - '='
|
178
178
|
- !ruby/object:Gem::Version
|
179
|
-
version: 23.9.0.
|
179
|
+
version: 23.9.0.rc12
|
180
180
|
type: :development
|
181
181
|
prerelease: false
|
182
182
|
version_requirements: !ruby/object:Gem::Requirement
|
183
183
|
requirements:
|
184
184
|
- - '='
|
185
185
|
- !ruby/object:Gem::Version
|
186
|
-
version: 23.9.0.
|
186
|
+
version: 23.9.0.rc12
|
187
187
|
- !ruby/object:Gem::Dependency
|
188
188
|
name: rake
|
189
189
|
requirement: !ruby/object:Gem::Requirement
|