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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 97ddecb43bf28d784d51e05a6bc52783ef0bec51
4
- data.tar.gz: cde5a66c038bf4e5b59e9985a96a41a304f6bc7d
3
+ metadata.gz: c5bfb02b1ec3996d3bd2a6e4d60e5d1eb6556832
4
+ data.tar.gz: '0960c891faca14d660771cb04bdb144df6d1ded6'
5
5
  SHA512:
6
- metadata.gz: d77e80d41037be97f09d8a6fb689f4b94cb6dbe1b873d0b1365017dfbbc3c9eabbc529802b0cb143118a3c69f3e4b6b2ad286a958535c3053f801e2e625510c0
7
- data.tar.gz: 1fe9919bcd25edf8f9351311e1d0f40d6c24b3ceaa24ac9eabb13dc9c2e27335d5fd69e2cdd71c2c256d21724df3444b9df2932dbffdb956451d12561312a2f0
6
+ metadata.gz: 7a2a618df9930a441db88c340a50788da4efe55e81556f1f8d7e7bef158cfe78670c1dd406466b0e5cd95fd985eab1c3ecd83d613acdb4d199f87493369202e3
7
+ data.tar.gz: f6b14fbf31f2dfcd5a12ebe1ab67c55b4810d8af7106e2dd3ead3a62a6f94906f55c5423cc193f595ef81352d45b38b350b30c1c483c971032d366ee21b73ccd
@@ -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 really_edited?
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
- # self.edited?
243
+ end
244
+
245
+ def edited_or_committed?
246
+ really_edited? || committed?
245
247
  end
246
248
 
247
249
  # Returns an array of errors
@@ -1,3 +1,3 @@
1
1
  module Reactor
2
- VERSION = "1.27.0.rc9".freeze
2
+ VERSION = "1.27.0.rc10".freeze
3
3
  end
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.rc9
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-08-25 00:00:00.000000000 Z
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