infopark_reactor 1.25.2 → 1.27.0.rc8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +25 -0
- data/.rubocop_todo.yml +363 -0
- data/Rakefile +10 -13
- data/app/models/rails_connector/abstract_obj.rb +2 -1
- data/config/routes.rb +0 -1
- data/infopark_reactor.gemspec +16 -15
- data/lib/generators/cm/migration/migration_generator.rb +4 -8
- data/lib/infopark_reactor.rb +43 -69
- data/lib/reactor/already_released.rb +1 -2
- data/lib/reactor/attributes.rb +94 -270
- data/lib/reactor/attributes/date_serializer.rb +23 -16
- data/lib/reactor/attributes/html_serializer.rb +6 -5
- data/lib/reactor/attributes/link_list_extender.rb +10 -8
- data/lib/reactor/attributes/link_list_from_accessor.rb +2 -1
- data/lib/reactor/attributes/link_list_from_attr_values.rb +2 -1
- data/lib/reactor/attributes/link_list_serializer.rb +8 -7
- data/lib/reactor/attributes_handlers.rb +164 -0
- data/lib/reactor/cache/permission.rb +6 -9
- data/lib/reactor/cache/user.rb +3 -6
- data/lib/reactor/cm/attribute.rb +16 -16
- data/lib/reactor/cm/attribute_group.rb +18 -21
- data/lib/reactor/cm/blob_too_small_error.rb +2 -2
- data/lib/reactor/cm/bridge.rb +6 -9
- data/lib/reactor/cm/channel.rb +3 -4
- data/lib/reactor/cm/editorial_group.rb +2 -9
- data/lib/reactor/cm/group.rb +30 -43
- data/lib/reactor/cm/job.rb +77 -0
- data/lib/reactor/cm/language.rb +21 -22
- data/lib/reactor/cm/link.rb +38 -40
- data/lib/reactor/cm/live_group.rb +2 -9
- data/lib/reactor/cm/log_entry.rb +22 -21
- data/lib/reactor/cm/missing_credentials.rb +3 -2
- data/lib/reactor/cm/multi_xml_request.rb +22 -25
- data/lib/reactor/cm/obj.rb +161 -152
- data/lib/reactor/cm/obj_class.rb +52 -51
- data/lib/reactor/cm/object_base.rb +26 -21
- data/lib/reactor/cm/permissions.rb +7 -7
- data/lib/reactor/cm/user.rb +43 -51
- data/lib/reactor/cm/workflow.rb +11 -12
- data/lib/reactor/cm/xml_attribute.rb +10 -19
- data/lib/reactor/cm/xml_markup.rb +7 -10
- data/lib/reactor/cm/xml_multi_request_error.rb +1 -3
- data/lib/reactor/cm/xml_request.rb +21 -29
- data/lib/reactor/cm/xml_request_error.rb +1 -3
- data/lib/reactor/cm/xml_response.rb +8 -16
- data/lib/reactor/cm/xml_single_request_error.rb +3 -5
- data/lib/reactor/configuration.rb +1 -3
- data/lib/reactor/engine.rb +5 -10
- data/lib/reactor/legacy.rb +8 -9
- data/lib/reactor/link/external.rb +8 -5
- data/lib/reactor/link/internal.rb +8 -5
- data/lib/reactor/link/temporary_link.rb +18 -19
- data/lib/reactor/main.rb +11 -15
- data/lib/reactor/migration.rb +52 -47
- data/lib/reactor/no_working_version.rb +1 -2
- data/lib/reactor/not_permitted.rb +1 -2
- data/lib/reactor/permission.rb +36 -38
- data/lib/reactor/persistence.rb +105 -159
- data/lib/reactor/plans/common_attribute.rb +7 -7
- data/lib/reactor/plans/common_attribute_group.rb +6 -6
- data/lib/reactor/plans/common_channel.rb +6 -6
- data/lib/reactor/plans/common_group.rb +7 -14
- data/lib/reactor/plans/common_job.rb +32 -0
- data/lib/reactor/plans/common_obj_class.rb +11 -11
- data/lib/reactor/plans/create_attribute.rb +1 -3
- data/lib/reactor/plans/create_attribute_group.rb +1 -3
- data/lib/reactor/plans/create_channel.rb +2 -3
- data/lib/reactor/plans/create_group.rb +3 -10
- data/lib/reactor/plans/create_job.rb +22 -0
- data/lib/reactor/plans/create_obj.rb +12 -14
- data/lib/reactor/plans/create_obj_class.rb +1 -2
- data/lib/reactor/plans/delete_attribute.rb +1 -3
- data/lib/reactor/plans/delete_attribute_group.rb +2 -4
- data/lib/reactor/plans/delete_channel.rb +4 -4
- data/lib/reactor/plans/delete_group.rb +2 -9
- data/lib/reactor/plans/delete_job.rb +23 -0
- data/lib/reactor/plans/delete_obj.rb +3 -4
- data/lib/reactor/plans/delete_obj_class.rb +1 -2
- data/lib/reactor/plans/prepared.rb +3 -4
- data/lib/reactor/plans/rename_group.rb +4 -11
- data/lib/reactor/plans/rename_obj_class.rb +1 -2
- data/lib/reactor/plans/update_attribute.rb +1 -3
- data/lib/reactor/plans/update_attribute_group.rb +2 -4
- data/lib/reactor/plans/update_group.rb +2 -9
- data/lib/reactor/plans/update_job.rb +27 -0
- data/lib/reactor/plans/update_obj.rb +6 -7
- data/lib/reactor/plans/update_obj_class.rb +0 -2
- data/lib/reactor/rc_independent.rb +0 -1
- data/lib/reactor/session.rb +27 -31
- data/lib/reactor/session/observers.rb +3 -5
- data/lib/reactor/session/user.rb +6 -7
- data/lib/reactor/session_helper/auth_filter.rb +9 -0
- data/lib/reactor/session_helper/auth_helper.rb +24 -0
- data/lib/reactor/session_helper/rsession_helper.rb +16 -0
- data/lib/reactor/session_helper/session_state.rb +31 -0
- data/lib/reactor/streaming_upload.rb +0 -1
- data/lib/reactor/sudo.rb +2 -3
- data/lib/reactor/support/link_matcher.rb +8 -7
- data/lib/reactor/tools/migrator.rb +30 -35
- data/lib/reactor/tools/response_handler/xml_attribute.rb +37 -27
- data/lib/reactor/tools/smart_xml_logger.rb +20 -22
- data/lib/reactor/tools/sower.rb +22 -23
- data/lib/reactor/tools/uploader.rb +12 -17
- data/lib/reactor/tools/versioner.rb +29 -30
- data/lib/reactor/tools/where_query.rb +11 -14
- data/lib/reactor/tools/workflow_generator.rb +26 -28
- data/lib/reactor/tools/xml_attributes.rb +7 -14
- data/lib/reactor/tools/xpath_extractor.rb +2 -1
- data/lib/reactor/validations.rb +20 -16
- data/lib/reactor/version.rb +1 -2
- data/lib/reactor/workflow.rb +10 -33
- data/lib/reactor/workflow/comment.rb +28 -0
- data/lib/reactor/workflow/empty.rb +0 -1
- data/lib/reactor/workflow/standard.rb +4 -3
- data/lib/tasks/cm_migrate.rake +3 -3
- data/lib/tasks/cm_seeds.rake +9 -16
- metadata +81 -39
- data/app/models/rails_connector/abstract_model.rb +0 -7
- data/app/models/rails_connector/attribute.rb +0 -94
- data/app/models/rails_connector/blob_mapping.rb +0 -16
- data/app/models/rails_connector/channel.rb +0 -41
- data/app/models/rails_connector/content.rb +0 -12
- data/app/models/rails_connector/obj_class.rb +0 -158
- data/app/models/rails_connector/obj_class_attr.rb +0 -5
- data/app/models/rails_connector/object_with_meta_data.rb +0 -18
- data/lib/rails_connector/meta/eager_loader.rb +0 -91
- data/lib/reactor/rails_connector_meta.rb +0 -149
- data/lib/reactor/session_helper.rb +0 -72
@@ -1,11 +1,8 @@
|
|
1
|
-
|
2
|
-
require
|
3
|
-
require 'reactor/tools/response_handler/xml_attribute'
|
1
|
+
require "reactor/cm/xml_attribute"
|
2
|
+
require "reactor/tools/response_handler/xml_attribute"
|
4
3
|
|
5
4
|
module Reactor
|
6
|
-
|
7
5
|
module XmlAttributes
|
8
|
-
|
9
6
|
extend ActiveSupport::Concern
|
10
7
|
|
11
8
|
included do
|
@@ -17,7 +14,6 @@ module Reactor
|
|
17
14
|
end
|
18
15
|
|
19
16
|
module ClassMethods
|
20
|
-
|
21
17
|
# This method can act as both getter and setter.
|
22
18
|
# I admit, that it is not the best design ever.
|
23
19
|
# But it makes a pretty good DSL
|
@@ -36,14 +32,14 @@ module Reactor
|
|
36
32
|
|
37
33
|
attribute = Reactor::Cm::XmlAttribute.new(xml_name, type, options)
|
38
34
|
|
39
|
-
|
35
|
+
_attributes[name.to_sym] = attribute
|
40
36
|
|
41
37
|
attr_accessor name
|
42
38
|
end
|
43
39
|
|
44
40
|
def attributes(scopes = [])
|
45
41
|
scopes = Array(scopes)
|
46
|
-
attributes =
|
42
|
+
attributes = _attributes
|
47
43
|
|
48
44
|
if scopes.present?
|
49
45
|
attributes.reject { |_, xml_attribute| (xml_attribute.scopes & scopes).blank? }
|
@@ -53,19 +49,16 @@ module Reactor
|
|
53
49
|
end
|
54
50
|
|
55
51
|
def xml_attribute(name)
|
56
|
-
|
52
|
+
_attributes[name.to_sym]
|
57
53
|
end
|
58
54
|
|
59
55
|
def xml_attribute_names
|
60
|
-
|
56
|
+
_attributes.values.map(&:name)
|
61
57
|
end
|
62
58
|
|
63
59
|
def attribute_names
|
64
|
-
|
60
|
+
_attributes.keys
|
65
61
|
end
|
66
|
-
|
67
62
|
end
|
68
|
-
|
69
63
|
end
|
70
|
-
|
71
64
|
end
|
data/lib/reactor/validations.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
# -*- encoding : utf-8 -*-
|
2
1
|
module Reactor
|
3
2
|
# This module provides standard validations for Objs (:permalink, :parent_obj_id, :name, :obj_class),
|
4
3
|
# and presence validations for all mandatory fields.
|
@@ -8,14 +7,14 @@ module Reactor
|
|
8
7
|
# @todo link validations?
|
9
8
|
module Validations
|
10
9
|
module Base
|
11
|
-
|
10
|
+
def self.included(base)
|
12
11
|
base.extend(ClassMethods)
|
13
12
|
# Common validations for all Objs
|
14
13
|
base.class_eval do
|
15
|
-
validates :permalink, :
|
16
|
-
validates :parent_obj_id, :
|
17
|
-
validates :name, :
|
18
|
-
validates :obj_class, :
|
14
|
+
validates :permalink, format: { with: %r{\A[-_$./a-zA-Z0-9]*\Z} }
|
15
|
+
validates :parent_obj_id, numericality: { only_integer: true }, on: :create
|
16
|
+
validates :name, presence: true, on: :create
|
17
|
+
validates :obj_class, presence: true, on: :create
|
19
18
|
end
|
20
19
|
end
|
21
20
|
|
@@ -23,8 +22,9 @@ module Reactor
|
|
23
22
|
# in :release context before release. Raises exception when invalid.
|
24
23
|
# @raise [ActiveRecord::RecordInvalid] validations registered for :release failed
|
25
24
|
def release!(*args)
|
26
|
-
raise
|
27
|
-
|
25
|
+
raise ActiveRecord::RecordInvalid, self unless valid?(:release)
|
26
|
+
|
27
|
+
super
|
28
28
|
end
|
29
29
|
end
|
30
30
|
|
@@ -34,19 +34,23 @@ module Reactor
|
|
34
34
|
|
35
35
|
# Add validation for each mandatory attribute
|
36
36
|
mandatory_attrs = __mandatory_cms_attributes(subclass.name)
|
37
|
-
mandatory_attrs
|
38
|
-
subclass.send(:validates_presence_of, attr.to_sym, :
|
39
|
-
end
|
37
|
+
mandatory_attrs&.each do |attr|
|
38
|
+
subclass.send(:validates_presence_of, attr.to_sym, on: :release)
|
39
|
+
end
|
40
40
|
|
41
|
-
cms_attributes
|
41
|
+
cms_attributes = __cms_attributes(subclass).values
|
42
42
|
# Add validation for linklist & multienum [minSize/maxSize]
|
43
|
-
array_attributes= cms_attributes.select {|attr|
|
43
|
+
array_attributes = cms_attributes.select { |attr| %w(linklist multienum).include?(attr.attribute_type) }
|
44
44
|
array_attributes.each do |attr|
|
45
45
|
length_hash = {}
|
46
|
-
|
46
|
+
if attr.min_size && "linklist" != attr.attribute_type
|
47
|
+
length_hash[:minimum] = attr.min_size
|
48
|
+
end # CMS ignores minimum for linklists.
|
47
49
|
length_hash[:maximum] = attr.max_size if attr.max_size
|
48
|
-
|
49
|
-
|
50
|
+
|
51
|
+
unless length_hash.empty?
|
52
|
+
subclass.send(:validates, attr.attribute_name.to_sym, length: length_hash, on: :release)
|
53
|
+
end
|
50
54
|
end
|
51
55
|
|
52
56
|
subclass
|
data/lib/reactor/version.rb
CHANGED
data/lib/reactor/workflow.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
|
2
|
-
require
|
3
|
-
require
|
1
|
+
require "reactor/workflow/standard"
|
2
|
+
require "reactor/workflow/empty"
|
3
|
+
require "reactor/workflow/comment"
|
4
4
|
|
5
5
|
module Reactor
|
6
6
|
module Workflow
|
@@ -9,39 +9,16 @@ module Reactor
|
|
9
9
|
# Returns instance of Standard (or Empty..)
|
10
10
|
# For the API See Reactor::Workflow::Standard
|
11
11
|
def workflow
|
12
|
-
@workflow ||=
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
12
|
+
@workflow ||=
|
13
|
+
if (meta = RailsConnector::ObjectWithMetaData.find_by_object_id(obj_id)).workflow_name.present?
|
14
|
+
Standard.new(self, meta)
|
15
|
+
else
|
16
|
+
Empty.new(self)
|
17
|
+
end
|
17
18
|
end
|
18
19
|
|
19
20
|
def workflow_comments
|
20
|
-
Reactor::Cm::LogEntry.where(:
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
|
-
class Comment < Struct.new(:time, :text, :type, :object_id, :receiver, :user)
|
25
|
-
def initialize(log_entry)
|
26
|
-
super(
|
27
|
-
parse_time(log_entry['logTime']),
|
28
|
-
log_entry['logText'],
|
29
|
-
log_entry['logType'],
|
30
|
-
log_entry['objectId'],
|
31
|
-
log_entry['receiver'],
|
32
|
-
log_entry['userLogin']
|
33
|
-
)
|
34
|
-
end
|
35
|
-
|
36
|
-
def object
|
37
|
-
::AbstractObj.find(self.object_id)
|
38
|
-
end
|
39
|
-
|
40
|
-
alias obj object
|
41
|
-
|
42
|
-
protected
|
43
|
-
def parse_time(time)
|
44
|
-
Time.from_iso(time)
|
21
|
+
Reactor::Cm::LogEntry.where(objectId: id).map { |entry| Comment.new(entry) }
|
45
22
|
end
|
46
23
|
end
|
47
24
|
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
module Reactor
|
2
|
+
module Workflow
|
3
|
+
class Comment < Struct.new(:time, :text, :type, :obj_id, :receiver, :user)
|
4
|
+
def initialize(log_entry)
|
5
|
+
super(
|
6
|
+
parse_time(log_entry["logTime"]),
|
7
|
+
log_entry["logText"],
|
8
|
+
log_entry["logType"],
|
9
|
+
log_entry["objectId"],
|
10
|
+
log_entry["receiver"],
|
11
|
+
log_entry["userLogin"]
|
12
|
+
)
|
13
|
+
end
|
14
|
+
|
15
|
+
def object
|
16
|
+
::AbstractObj.find(obj_id)
|
17
|
+
end
|
18
|
+
|
19
|
+
alias_method :obj, :object
|
20
|
+
|
21
|
+
protected
|
22
|
+
|
23
|
+
def parse_time(time)
|
24
|
+
Time.from_iso(time)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -1,11 +1,11 @@
|
|
1
|
-
# -*- encoding : utf-8 -*-
|
2
1
|
module Reactor
|
3
2
|
module Workflow
|
4
3
|
class Standard
|
5
|
-
WORKFLOW_ACTIONS =
|
4
|
+
WORKFLOW_ACTIONS = %i(take forward reject commit release sign).freeze
|
6
5
|
|
7
6
|
def initialize(obj, meta_obj)
|
8
|
-
@obj
|
7
|
+
@obj = obj
|
8
|
+
@meta_obj = meta_obj
|
9
9
|
end
|
10
10
|
|
11
11
|
def empty?
|
@@ -27,6 +27,7 @@ module Reactor
|
|
27
27
|
end
|
28
28
|
|
29
29
|
protected
|
30
|
+
|
30
31
|
def valid_action?(action)
|
31
32
|
@obj.send(:crul_obj).valid_actions.include?(action.to_s)
|
32
33
|
end
|
data/lib/tasks/cm_migrate.rake
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
namespace :cm do
|
2
2
|
desc "Migrate CM"
|
3
|
-
task :
|
4
|
-
require
|
3
|
+
task migrate: :environment do
|
4
|
+
require "reactor/tools/migrator"
|
5
5
|
migrator = Reactor::Migrator.new("#{Rails.root}/cm/migrate", ENV["VERSION"])
|
6
6
|
migrator.migrate
|
7
7
|
end
|
8
|
-
end
|
8
|
+
end
|
data/lib/tasks/cm_seeds.rake
CHANGED
@@ -1,41 +1,34 @@
|
|
1
1
|
namespace :cm do
|
2
|
-
|
3
2
|
desc "Load the seed data from cm/seeds.rb"
|
4
|
-
task :
|
5
|
-
require
|
3
|
+
task seed: :environment do
|
4
|
+
require "reactor/tools/sower"
|
6
5
|
sower = Reactor::Sower.new("#{Rails.root}/cm/seeds.rb")
|
7
6
|
sower.sow
|
8
7
|
end
|
9
8
|
|
10
9
|
namespace :seed do
|
11
|
-
|
12
10
|
desc "Load the seed data from cm/seeds-develop.rb"
|
13
|
-
task :
|
14
|
-
require
|
11
|
+
task develop: :environment do
|
12
|
+
require "reactor/tools/sower"
|
15
13
|
sower = Reactor::Sower.new("#{Rails.root}/cm/seeds-develop.rb")
|
16
14
|
sower.sow
|
17
15
|
end
|
18
16
|
|
19
|
-
task :
|
20
|
-
require
|
17
|
+
task test: :environment do
|
18
|
+
require "reactor/tools/sower"
|
21
19
|
sower = Reactor::Sower.new("#{Rails.root}/cm/seeds-test.rb")
|
22
20
|
sower.sow
|
23
21
|
end
|
24
22
|
end
|
25
23
|
|
26
24
|
namespace :maintenance do
|
27
|
-
|
28
25
|
Dir["#{Rails.root}/cm/maintenance-scripts/*.rb"].each do |maint_script|
|
29
|
-
|
30
26
|
desc "Execute seed in cm/maintenance-scripts/#{File.basename(maint_script)}"
|
31
|
-
task File.basename(maint_script,
|
32
|
-
require
|
27
|
+
task File.basename(maint_script, ".rb").to_sym => :environment do
|
28
|
+
require "reactor/tools/sower"
|
33
29
|
sower = Reactor::Sower.new(maint_script)
|
34
30
|
sower.sow
|
35
31
|
end
|
36
|
-
|
37
32
|
end
|
38
|
-
|
39
33
|
end
|
40
|
-
|
41
|
-
end
|
34
|
+
end
|
metadata
CHANGED
@@ -1,105 +1,138 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: infopark_reactor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.27.0.rc8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tomasz Przedmojski
|
8
|
+
- Anton Mezin
|
9
|
+
- Roman Lemekha
|
8
10
|
autorequire:
|
9
11
|
bindir: bin
|
10
12
|
cert_chain: []
|
11
|
-
date:
|
13
|
+
date: 2020-08-25 00:00:00.000000000 Z
|
12
14
|
dependencies:
|
13
15
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
16
|
+
name: infopark_fiona_connector
|
15
17
|
requirement: !ruby/object:Gem::Requirement
|
16
18
|
requirements:
|
17
|
-
- -
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 3.0.10
|
20
|
-
- - <
|
19
|
+
- - "~>"
|
21
20
|
- !ruby/object:Gem::Version
|
22
|
-
version: 4.
|
21
|
+
version: 7.0.1.5.2.4.rc1
|
23
22
|
type: :runtime
|
24
23
|
prerelease: false
|
25
24
|
version_requirements: !ruby/object:Gem::Requirement
|
26
25
|
requirements:
|
27
|
-
- -
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: 3.0.10
|
30
|
-
- - <
|
26
|
+
- - "~>"
|
31
27
|
- !ruby/object:Gem::Version
|
32
|
-
version: 4.
|
28
|
+
version: 7.0.1.5.2.4.rc1
|
33
29
|
- !ruby/object:Gem::Dependency
|
34
30
|
name: nokogiri
|
35
31
|
requirement: !ruby/object:Gem::Requirement
|
36
32
|
requirements:
|
37
|
-
- -
|
33
|
+
- - "~>"
|
38
34
|
- !ruby/object:Gem::Version
|
39
|
-
version: '
|
35
|
+
version: '1'
|
40
36
|
type: :runtime
|
41
37
|
prerelease: false
|
42
38
|
version_requirements: !ruby/object:Gem::Requirement
|
43
39
|
requirements:
|
44
|
-
- -
|
40
|
+
- - "~>"
|
45
41
|
- !ruby/object:Gem::Version
|
46
|
-
version: '
|
42
|
+
version: '1'
|
43
|
+
- !ruby/object:Gem::Dependency
|
44
|
+
name: rails
|
45
|
+
requirement: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - "~>"
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '5.0'
|
50
|
+
type: :runtime
|
51
|
+
prerelease: false
|
52
|
+
version_requirements: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - "~>"
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '5.0'
|
47
57
|
- !ruby/object:Gem::Dependency
|
48
58
|
name: rspec
|
49
59
|
requirement: !ruby/object:Gem::Requirement
|
50
60
|
requirements:
|
51
|
-
- -
|
61
|
+
- - "~>"
|
52
62
|
- !ruby/object:Gem::Version
|
53
|
-
version: '
|
63
|
+
version: '3'
|
54
64
|
type: :development
|
55
65
|
prerelease: false
|
56
66
|
version_requirements: !ruby/object:Gem::Requirement
|
57
67
|
requirements:
|
58
|
-
- -
|
68
|
+
- - "~>"
|
59
69
|
- !ruby/object:Gem::Version
|
60
|
-
version: '
|
70
|
+
version: '3'
|
71
|
+
- !ruby/object:Gem::Dependency
|
72
|
+
name: rubocop
|
73
|
+
requirement: !ruby/object:Gem::Requirement
|
74
|
+
requirements:
|
75
|
+
- - "~>"
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 0.87.1
|
78
|
+
type: :development
|
79
|
+
prerelease: false
|
80
|
+
version_requirements: !ruby/object:Gem::Requirement
|
81
|
+
requirements:
|
82
|
+
- - "~>"
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: 0.87.1
|
85
|
+
- !ruby/object:Gem::Dependency
|
86
|
+
name: rubocop-performance
|
87
|
+
requirement: !ruby/object:Gem::Requirement
|
88
|
+
requirements:
|
89
|
+
- - "~>"
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: '1'
|
92
|
+
type: :development
|
93
|
+
prerelease: false
|
94
|
+
version_requirements: !ruby/object:Gem::Requirement
|
95
|
+
requirements:
|
96
|
+
- - "~>"
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: '1'
|
61
99
|
- !ruby/object:Gem::Dependency
|
62
100
|
name: yard
|
63
101
|
requirement: !ruby/object:Gem::Requirement
|
64
102
|
requirements:
|
65
|
-
- -
|
103
|
+
- - ">="
|
66
104
|
- !ruby/object:Gem::Version
|
67
105
|
version: '0'
|
68
106
|
type: :development
|
69
107
|
prerelease: false
|
70
108
|
version_requirements: !ruby/object:Gem::Requirement
|
71
109
|
requirements:
|
72
|
-
- -
|
110
|
+
- - ">="
|
73
111
|
- !ruby/object:Gem::Version
|
74
112
|
version: '0'
|
75
113
|
description: Use the ActiveRecord mimicking API to write into CM and enjoy all the
|
76
114
|
benefits of callbacks, validations and permission checking
|
77
115
|
email:
|
78
116
|
- tomasz.przedmojski@infopark.de
|
117
|
+
- anton.mezin@infopark.de
|
118
|
+
- roman.lemekha@infopark.de
|
79
119
|
executables: []
|
80
120
|
extensions: []
|
81
121
|
extra_rdoc_files: []
|
82
122
|
files:
|
83
|
-
- .gitignore
|
123
|
+
- ".gitignore"
|
124
|
+
- ".rubocop.yml"
|
125
|
+
- ".rubocop_todo.yml"
|
84
126
|
- Gemfile
|
85
127
|
- LICENSE
|
86
128
|
- Rakefile
|
87
|
-
- app/models/rails_connector/abstract_model.rb
|
88
129
|
- app/models/rails_connector/abstract_obj.rb
|
89
|
-
- app/models/rails_connector/attribute.rb
|
90
|
-
- app/models/rails_connector/blob_mapping.rb
|
91
|
-
- app/models/rails_connector/channel.rb
|
92
|
-
- app/models/rails_connector/content.rb
|
93
|
-
- app/models/rails_connector/obj_class.rb
|
94
|
-
- app/models/rails_connector/obj_class_attr.rb
|
95
|
-
- app/models/rails_connector/object_with_meta_data.rb
|
96
130
|
- config/routes.rb
|
97
131
|
- infopark_reactor.gemspec
|
98
132
|
- lib/generators/cm/migration/USAGE
|
99
133
|
- lib/generators/cm/migration/migration_generator.rb
|
100
134
|
- lib/generators/cm/migration/templates/template.rb
|
101
135
|
- lib/infopark_reactor.rb
|
102
|
-
- lib/rails_connector/meta/eager_loader.rb
|
103
136
|
- lib/reactor/already_released.rb
|
104
137
|
- lib/reactor/attributes.rb
|
105
138
|
- lib/reactor/attributes/date_serializer.rb
|
@@ -108,6 +141,7 @@ files:
|
|
108
141
|
- lib/reactor/attributes/link_list_from_accessor.rb
|
109
142
|
- lib/reactor/attributes/link_list_from_attr_values.rb
|
110
143
|
- lib/reactor/attributes/link_list_serializer.rb
|
144
|
+
- lib/reactor/attributes_handlers.rb
|
111
145
|
- lib/reactor/cache/permission.rb
|
112
146
|
- lib/reactor/cache/user.rb
|
113
147
|
- lib/reactor/cm/attribute.rb
|
@@ -117,6 +151,7 @@ files:
|
|
117
151
|
- lib/reactor/cm/channel.rb
|
118
152
|
- lib/reactor/cm/editorial_group.rb
|
119
153
|
- lib/reactor/cm/group.rb
|
154
|
+
- lib/reactor/cm/job.rb
|
120
155
|
- lib/reactor/cm/language.rb
|
121
156
|
- lib/reactor/cm/link.rb
|
122
157
|
- lib/reactor/cm/live_group.rb
|
@@ -152,17 +187,20 @@ files:
|
|
152
187
|
- lib/reactor/plans/common_attribute_group.rb
|
153
188
|
- lib/reactor/plans/common_channel.rb
|
154
189
|
- lib/reactor/plans/common_group.rb
|
190
|
+
- lib/reactor/plans/common_job.rb
|
155
191
|
- lib/reactor/plans/common_obj_class.rb
|
156
192
|
- lib/reactor/plans/create_attribute.rb
|
157
193
|
- lib/reactor/plans/create_attribute_group.rb
|
158
194
|
- lib/reactor/plans/create_channel.rb
|
159
195
|
- lib/reactor/plans/create_group.rb
|
196
|
+
- lib/reactor/plans/create_job.rb
|
160
197
|
- lib/reactor/plans/create_obj.rb
|
161
198
|
- lib/reactor/plans/create_obj_class.rb
|
162
199
|
- lib/reactor/plans/delete_attribute.rb
|
163
200
|
- lib/reactor/plans/delete_attribute_group.rb
|
164
201
|
- lib/reactor/plans/delete_channel.rb
|
165
202
|
- lib/reactor/plans/delete_group.rb
|
203
|
+
- lib/reactor/plans/delete_job.rb
|
166
204
|
- lib/reactor/plans/delete_obj.rb
|
167
205
|
- lib/reactor/plans/delete_obj_class.rb
|
168
206
|
- lib/reactor/plans/prepared.rb
|
@@ -171,14 +209,17 @@ files:
|
|
171
209
|
- lib/reactor/plans/update_attribute.rb
|
172
210
|
- lib/reactor/plans/update_attribute_group.rb
|
173
211
|
- lib/reactor/plans/update_group.rb
|
212
|
+
- lib/reactor/plans/update_job.rb
|
174
213
|
- lib/reactor/plans/update_obj.rb
|
175
214
|
- lib/reactor/plans/update_obj_class.rb
|
176
|
-
- lib/reactor/rails_connector_meta.rb
|
177
215
|
- lib/reactor/rc_independent.rb
|
178
216
|
- lib/reactor/session.rb
|
179
217
|
- lib/reactor/session/observers.rb
|
180
218
|
- lib/reactor/session/user.rb
|
181
|
-
- lib/reactor/session_helper.rb
|
219
|
+
- lib/reactor/session_helper/auth_filter.rb
|
220
|
+
- lib/reactor/session_helper/auth_helper.rb
|
221
|
+
- lib/reactor/session_helper/rsession_helper.rb
|
222
|
+
- lib/reactor/session_helper/session_state.rb
|
182
223
|
- lib/reactor/streaming_upload.rb
|
183
224
|
- lib/reactor/sudo.rb
|
184
225
|
- lib/reactor/support/link_matcher.rb
|
@@ -195,6 +236,7 @@ files:
|
|
195
236
|
- lib/reactor/validations.rb
|
196
237
|
- lib/reactor/version.rb
|
197
238
|
- lib/reactor/workflow.rb
|
239
|
+
- lib/reactor/workflow/comment.rb
|
198
240
|
- lib/reactor/workflow/empty.rb
|
199
241
|
- lib/reactor/workflow/standard.rb
|
200
242
|
- lib/tasks/cm_migrate.rake
|
@@ -209,17 +251,17 @@ require_paths:
|
|
209
251
|
- lib
|
210
252
|
required_ruby_version: !ruby/object:Gem::Requirement
|
211
253
|
requirements:
|
212
|
-
- -
|
254
|
+
- - ">="
|
213
255
|
- !ruby/object:Gem::Version
|
214
256
|
version: '0'
|
215
257
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
216
258
|
requirements:
|
217
|
-
- -
|
259
|
+
- - ">"
|
218
260
|
- !ruby/object:Gem::Version
|
219
|
-
version:
|
261
|
+
version: 1.3.1
|
220
262
|
requirements: []
|
221
263
|
rubyforge_project:
|
222
|
-
rubygems_version: 2.
|
264
|
+
rubygems_version: 2.6.13
|
223
265
|
signing_key:
|
224
266
|
specification_version: 4
|
225
267
|
summary: Write into CM in familiar, Rails-like way
|