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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 300034555ee49868b2dad5e66fe59ad671403225
4
- data.tar.gz: c2277f0fe2150975bb5473963e0f0953dcd579a4
3
+ metadata.gz: 4f2c3e364d5e39d0844287d7eefd244b83d81260
4
+ data.tar.gz: 9c5331a3c8b87c467ad2b6226ac68f482bffbf64
5
5
  SHA512:
6
- metadata.gz: f613ce7c780241d0100b4674d751f50a8698979b512b8dfdd1b638cbfa59c41f4e24865784edd0db417768c0b23c62e4c3b70f17b9b31a1c8d1b7e7a564601fa
7
- data.tar.gz: bfab39e9bfe82767fb45411f584478d6ad1a43667a1c7d7c1addaa76203ee27197bae9a7cd273103909c4da122dee60ce08c3037046e2b3e6cda0cb5f5524a3b
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 = obj_ids.shift
10
+ main_obj = objs.shift
10
11
 
11
12
  carefully_release(errors, main_obj, comment)
12
- obj_ids.each do |other_obj|
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 #{@obj.id}: unable to release Object with ID #{obj.id} (#{obj.path} because: #{e.inspect}")
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
@@ -108,10 +108,6 @@ module Fiona7
108
108
 
109
109
  class Engine < ::Rails::Engine
110
110
 
111
- config.after_initialize do
112
- puts "ENGINE AFTER INITIALIZE"
113
- end
114
-
115
111
  config.to_prepare do
116
112
  # TODO: do some smart optimizations
117
113
  initializer = Fiona7::Initializer.new
@@ -30,7 +30,6 @@ class Scrivito::CmsRestApi
30
30
  end
31
31
 
32
32
  $stdout.puts "DEBUG GET: #{resource_path}"
33
- pp payload
34
33
  case resource_path
35
34
  when /\A\/?revisions\/[a-zA-Z0-9_-]+\/objs\/mget\Z/
36
35
  _, _, revision_id, _, _ = *resource_path.split("/")
@@ -1,3 +1,3 @@
1
1
  module Fiona7
2
- VERSION = "1.1.0.0.0"
2
+ VERSION = "1.1.0.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: infopark_fiona7
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0.0.0
4
+ version: 1.1.0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomasz Przedmojski