infopark_reactor 1.27.0.rc9 → 1.27.0.rc10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/reactor/persistence.rb +5 -3
- data/lib/reactor/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: c5bfb02b1ec3996d3bd2a6e4d60e5d1eb6556832
|
4
|
+
data.tar.gz: '0960c891faca14d660771cb04bdb144df6d1ded6'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a2a618df9930a441db88c340a50788da4efe55e81556f1f8d7e7bef158cfe78670c1dd406466b0e5cd95fd985eab1c3ecd83d613acdb4d199f87493369202e3
|
7
|
+
data.tar.gz: f6b14fbf31f2dfcd5a12ebe1ab67c55b4810d8af7106e2dd3ead3a62a6f94906f55c5423cc193f595ef81352d45b38b350b30c1c483c971032d366ee21b73ccd
|
data/lib/reactor/persistence.rb
CHANGED
@@ -63,7 +63,7 @@ module Reactor
|
|
63
63
|
# @raise [Reactor::NotPermitted] current user lacks required permissions
|
64
64
|
def release!(comment = nil)
|
65
65
|
run_callbacks(:release) do
|
66
|
-
raise(Reactor::AlreadyReleased) unless
|
66
|
+
raise(Reactor::AlreadyReleased) unless edited_or_committed?
|
67
67
|
|
68
68
|
crul_obj.release!(comment)
|
69
69
|
reload
|
@@ -237,11 +237,13 @@ module Reactor
|
|
237
237
|
end
|
238
238
|
end
|
239
239
|
|
240
|
-
# Equivalent to Obj#edited?
|
241
240
|
def really_edited?
|
242
241
|
# check if really edited with curl request
|
243
242
|
crul_obj.edited?
|
244
|
-
|
243
|
+
end
|
244
|
+
|
245
|
+
def edited_or_committed?
|
246
|
+
really_edited? || committed?
|
245
247
|
end
|
246
248
|
|
247
249
|
# Returns an array of errors
|
data/lib/reactor/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: infopark_reactor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.27.0.
|
4
|
+
version: 1.27.0.rc10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tomasz Przedmojski
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2020-
|
13
|
+
date: 2020-09-02 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: infopark_fiona_connector
|