infopark_fiona7 1.1.0.0.0 → 1.1.0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/fiona7/release_controller.rb +4 -3
- data/lib/fiona7/engine.rb +0 -4
- data/lib/fiona7/routers/rest_api.rb +0 -1
- data/lib/fiona7/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f2c3e364d5e39d0844287d7eefd244b83d81260
|
4
|
+
data.tar.gz: 9c5331a3c8b87c467ad2b6226ac68f482bffbf64
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 59c6e931fc61fb8921902ab9c82bdc626762db927346169aa5d9a6de8cee4cd71e8d49387159d2ea795c914f855063ebeb6a81c174ef05f9a3c319695502bfd0
|
7
|
+
data.tar.gz: 6a092b319da7f9a35f4662b8da1935fbb999d4a6300b6c289e3debf79f0c7b4af3e8142da3135449b061ccbc6792e1565dfac65c0db9210f411fe08fa6447c34
|
@@ -2,14 +2,15 @@ module Fiona7
|
|
2
2
|
class ReleaseController < ActionController::Base
|
3
3
|
def release
|
4
4
|
obj_ids = params[:objs]
|
5
|
+
objs = WriteObj.find(obj_ids)
|
5
6
|
comment = params[:comment]
|
6
7
|
errors = []
|
7
8
|
|
8
9
|
if !obj_ids.empty?
|
9
|
-
main_obj =
|
10
|
+
main_obj = objs.shift
|
10
11
|
|
11
12
|
carefully_release(errors, main_obj, comment)
|
12
|
-
|
13
|
+
objs.each do |other_obj|
|
13
14
|
carefully_release(errors, other_obj)
|
14
15
|
end
|
15
16
|
end
|
@@ -51,7 +52,7 @@ module Fiona7
|
|
51
52
|
# widget_obj.release!(comment)
|
52
53
|
#end
|
53
54
|
rescue => e
|
54
|
-
Rails.logger.error("Error occured when releasing #{
|
55
|
+
Rails.logger.error("Error occured when releasing #{obj.id}: unable to release Object with ID #{obj.id} (#{obj.path} because: #{e.inspect}")
|
55
56
|
|
56
57
|
# TODO: translate
|
57
58
|
error = "Unable to release Object with ID #{obj.id} because: #{e.message}"
|
data/lib/fiona7/engine.rb
CHANGED
data/lib/fiona7/version.rb
CHANGED