isomorfeus-operation 23.9.0.rc10 → 23.9.0.rc11
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: 7651dfe69c62d8530e2be2450281a7abf88c2ba4a5f02a3eff36f37d2ec98399
|
4
|
+
data.tar.gz: 142ba144688dc0b5d8cb7364d0965d92de0453a82a3d40c517ceb0ac1437e1a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dfa253ffe6c4d8d4a4e22cbbd9756f7b7ac744f63a854c05a56bec58a5d4ecc69d7cb21fd0d2c75ea0d371bbe13a4ebe46bc4cc58defdb914684005cda9935c2
|
7
|
+
data.tar.gz: fbe23d5e72940e8940bc136b3363713418945e4405ce489cbb0ee9dbf30cbd932e4ead78871a0cbbd77d6ccce24f434d0490125d082cbe1812b3aa45241edd95
|
@@ -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.rc11
|
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.rc11
|
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.rc11
|
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.rc11
|
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.rc11
|
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.rc11
|
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.rc11
|
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.rc11
|
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.rc11
|
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.rc11
|
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.rc11
|
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.rc11
|
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.rc11
|
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.rc11
|
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.rc11
|
187
187
|
- !ruby/object:Gem::Dependency
|
188
188
|
name: rake
|
189
189
|
requirement: !ruby/object:Gem::Requirement
|