infopark_reactor 1.26.0 → 1.27.0.rc9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (130) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +25 -0
  3. data/.rubocop_todo.yml +363 -0
  4. data/Rakefile +10 -13
  5. data/app/models/rails_connector/abstract_obj.rb +2 -1
  6. data/config/routes.rb +0 -1
  7. data/infopark_reactor.gemspec +16 -15
  8. data/lib/generators/cm/migration/migration_generator.rb +4 -8
  9. data/lib/infopark_reactor.rb +43 -69
  10. data/lib/reactor/already_released.rb +1 -2
  11. data/lib/reactor/attributes.rb +94 -270
  12. data/lib/reactor/attributes/date_serializer.rb +23 -16
  13. data/lib/reactor/attributes/html_serializer.rb +6 -5
  14. data/lib/reactor/attributes/link_list_extender.rb +10 -8
  15. data/lib/reactor/attributes/link_list_from_accessor.rb +2 -1
  16. data/lib/reactor/attributes/link_list_from_attr_values.rb +2 -1
  17. data/lib/reactor/attributes/link_list_serializer.rb +8 -7
  18. data/lib/reactor/attributes_handlers.rb +164 -0
  19. data/lib/reactor/cache/permission.rb +6 -9
  20. data/lib/reactor/cache/user.rb +3 -6
  21. data/lib/reactor/cm/attribute.rb +16 -16
  22. data/lib/reactor/cm/attribute_group.rb +18 -21
  23. data/lib/reactor/cm/blob_too_small_error.rb +2 -2
  24. data/lib/reactor/cm/bridge.rb +6 -9
  25. data/lib/reactor/cm/channel.rb +3 -4
  26. data/lib/reactor/cm/editorial_group.rb +2 -9
  27. data/lib/reactor/cm/group.rb +30 -43
  28. data/lib/reactor/cm/job.rb +23 -25
  29. data/lib/reactor/cm/language.rb +21 -22
  30. data/lib/reactor/cm/link.rb +38 -40
  31. data/lib/reactor/cm/live_group.rb +2 -9
  32. data/lib/reactor/cm/log_entry.rb +22 -21
  33. data/lib/reactor/cm/missing_credentials.rb +3 -2
  34. data/lib/reactor/cm/multi_xml_request.rb +22 -25
  35. data/lib/reactor/cm/obj.rb +161 -152
  36. data/lib/reactor/cm/obj_class.rb +52 -51
  37. data/lib/reactor/cm/object_base.rb +26 -21
  38. data/lib/reactor/cm/permissions.rb +7 -7
  39. data/lib/reactor/cm/user.rb +43 -51
  40. data/lib/reactor/cm/workflow.rb +11 -12
  41. data/lib/reactor/cm/xml_attribute.rb +10 -19
  42. data/lib/reactor/cm/xml_markup.rb +7 -10
  43. data/lib/reactor/cm/xml_multi_request_error.rb +1 -3
  44. data/lib/reactor/cm/xml_request.rb +21 -29
  45. data/lib/reactor/cm/xml_request_error.rb +1 -3
  46. data/lib/reactor/cm/xml_response.rb +8 -16
  47. data/lib/reactor/cm/xml_single_request_error.rb +3 -5
  48. data/lib/reactor/configuration.rb +1 -3
  49. data/lib/reactor/engine.rb +5 -10
  50. data/lib/reactor/legacy.rb +8 -9
  51. data/lib/reactor/link/external.rb +8 -5
  52. data/lib/reactor/link/internal.rb +8 -5
  53. data/lib/reactor/link/temporary_link.rb +18 -19
  54. data/lib/reactor/main.rb +11 -15
  55. data/lib/reactor/migration.rb +52 -53
  56. data/lib/reactor/no_working_version.rb +1 -2
  57. data/lib/reactor/not_permitted.rb +1 -2
  58. data/lib/reactor/permission.rb +36 -38
  59. data/lib/reactor/persistence.rb +105 -159
  60. data/lib/reactor/plans/common_attribute.rb +7 -7
  61. data/lib/reactor/plans/common_attribute_group.rb +6 -6
  62. data/lib/reactor/plans/common_channel.rb +6 -6
  63. data/lib/reactor/plans/common_group.rb +7 -14
  64. data/lib/reactor/plans/common_job.rb +6 -6
  65. data/lib/reactor/plans/common_obj_class.rb +11 -11
  66. data/lib/reactor/plans/create_attribute.rb +1 -3
  67. data/lib/reactor/plans/create_attribute_group.rb +1 -3
  68. data/lib/reactor/plans/create_channel.rb +2 -3
  69. data/lib/reactor/plans/create_group.rb +3 -10
  70. data/lib/reactor/plans/create_job.rb +3 -4
  71. data/lib/reactor/plans/create_obj.rb +12 -14
  72. data/lib/reactor/plans/create_obj_class.rb +1 -2
  73. data/lib/reactor/plans/delete_attribute.rb +1 -3
  74. data/lib/reactor/plans/delete_attribute_group.rb +2 -4
  75. data/lib/reactor/plans/delete_channel.rb +3 -6
  76. data/lib/reactor/plans/delete_group.rb +2 -9
  77. data/lib/reactor/plans/delete_job.rb +3 -5
  78. data/lib/reactor/plans/delete_obj.rb +3 -4
  79. data/lib/reactor/plans/delete_obj_class.rb +1 -2
  80. data/lib/reactor/plans/prepared.rb +3 -4
  81. data/lib/reactor/plans/rename_group.rb +4 -11
  82. data/lib/reactor/plans/rename_obj_class.rb +1 -2
  83. data/lib/reactor/plans/update_attribute.rb +1 -3
  84. data/lib/reactor/plans/update_attribute_group.rb +2 -4
  85. data/lib/reactor/plans/update_group.rb +2 -9
  86. data/lib/reactor/plans/update_job.rb +4 -8
  87. data/lib/reactor/plans/update_obj.rb +6 -7
  88. data/lib/reactor/plans/update_obj_class.rb +0 -2
  89. data/lib/reactor/rc_independent.rb +0 -1
  90. data/lib/reactor/session.rb +27 -31
  91. data/lib/reactor/session/observers.rb +3 -5
  92. data/lib/reactor/session/user.rb +6 -7
  93. data/lib/reactor/session_helper/auth_filter.rb +9 -0
  94. data/lib/reactor/session_helper/auth_helper.rb +24 -0
  95. data/lib/reactor/session_helper/rsession_helper.rb +16 -0
  96. data/lib/reactor/session_helper/session_state.rb +31 -0
  97. data/lib/reactor/streaming_upload.rb +0 -1
  98. data/lib/reactor/sudo.rb +2 -3
  99. data/lib/reactor/support/link_matcher.rb +8 -7
  100. data/lib/reactor/tools/migrator.rb +30 -35
  101. data/lib/reactor/tools/response_handler/xml_attribute.rb +27 -33
  102. data/lib/reactor/tools/smart_xml_logger.rb +20 -22
  103. data/lib/reactor/tools/sower.rb +22 -23
  104. data/lib/reactor/tools/uploader.rb +12 -17
  105. data/lib/reactor/tools/versioner.rb +29 -30
  106. data/lib/reactor/tools/where_query.rb +11 -14
  107. data/lib/reactor/tools/workflow_generator.rb +26 -28
  108. data/lib/reactor/tools/xml_attributes.rb +7 -14
  109. data/lib/reactor/tools/xpath_extractor.rb +2 -1
  110. data/lib/reactor/validations.rb +20 -16
  111. data/lib/reactor/version.rb +1 -2
  112. data/lib/reactor/workflow.rb +10 -33
  113. data/lib/reactor/workflow/comment.rb +28 -0
  114. data/lib/reactor/workflow/empty.rb +0 -1
  115. data/lib/reactor/workflow/standard.rb +4 -3
  116. data/lib/tasks/cm_migrate.rake +3 -3
  117. data/lib/tasks/cm_seeds.rake +9 -16
  118. metadata +76 -40
  119. data/app/models/rails_connector/abstract_model.rb +0 -7
  120. data/app/models/rails_connector/attribute.rb +0 -94
  121. data/app/models/rails_connector/blob_mapping.rb +0 -16
  122. data/app/models/rails_connector/channel.rb +0 -41
  123. data/app/models/rails_connector/content.rb +0 -12
  124. data/app/models/rails_connector/job.rb +0 -14
  125. data/app/models/rails_connector/obj_class.rb +0 -158
  126. data/app/models/rails_connector/obj_class_attr.rb +0 -5
  127. data/app/models/rails_connector/object_with_meta_data.rb +0 -18
  128. data/lib/rails_connector/meta/eager_loader.rb +0 -91
  129. data/lib/reactor/rails_connector_meta.rb +0 -149
  130. data/lib/reactor/session_helper.rb +0 -72
@@ -1,11 +1,8 @@
1
- # -*- encoding : utf-8 -*-
2
- require 'reactor/cm/xml_attribute'
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
- self._attributes[name.to_sym] = attribute
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 = self._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
- self._attributes[name.to_sym]
52
+ _attributes[name.to_sym]
57
53
  end
58
54
 
59
55
  def xml_attribute_names
60
- self._attributes.values.map(&:name)
56
+ _attributes.values.map(&:name)
61
57
  end
62
58
 
63
59
  def attribute_names
64
- self._attributes.keys
60
+ _attributes.keys
65
61
  end
66
-
67
62
  end
68
-
69
63
  end
70
-
71
64
  end
@@ -8,7 +8,8 @@ module Reactor
8
8
  arr = REXML::XPath.match(@node, expr)
9
9
 
10
10
  return arr.first if arr.length == 1
11
- return arr
11
+
12
+ arr
12
13
  end
13
14
  end
14
15
  end
@@ -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
- def self.included(base)
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, :format => { :with => /\A[-_$.\/a-zA-Z0-9]*\Z/ }
16
- validates :parent_obj_id, :numericality => { :only_integer => true }, :on => :create
17
- validates :name, :presence => true, :on => :create
18
- validates :obj_class, :presence => true, :on => :create
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(ActiveRecord::RecordInvalid.new(self)) unless valid?(:release)
27
- return super
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.each do |attr|
38
- subclass.send(:validates_presence_of, attr.to_sym, :on => :release)
39
- end if mandatory_attrs
37
+ mandatory_attrs&.each do |attr|
38
+ subclass.send(:validates_presence_of, attr.to_sym, on: :release)
39
+ end
40
40
 
41
- cms_attributes = __cms_attributes(subclass).values
41
+ cms_attributes = __cms_attributes(subclass).values
42
42
  # Add validation for linklist & multienum [minSize/maxSize]
43
- array_attributes= cms_attributes.select {|attr| ["linklist", "multienum"].include?(attr.attribute_type) }
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
- length_hash[:minimum] = attr.min_size if attr.min_size && "linklist" != attr.attribute_type # CMS ignores minimum for linklists.
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
- subclass.send(:validates, attr.attribute_name.to_sym, :length => length_hash, :on => :release) unless length_hash.empty?
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
@@ -1,4 +1,3 @@
1
- # -*- encoding : utf-8 -*-
2
1
  module Reactor
3
- VERSION = "1.26.0"
2
+ VERSION = "1.27.0.rc9".freeze
4
3
  end
@@ -1,6 +1,6 @@
1
- # -*- encoding : utf-8 -*-
2
- require 'reactor/workflow/standard'
3
- require 'reactor/workflow/empty'
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 ||= if ((meta=RailsConnector::ObjectWithMetaData.find_by_object_id(self.obj_id)).workflow_name.present?)
13
- Standard.new(self,meta)
14
- else
15
- Empty.new(self)
16
- end
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(:objectId => self.id).map {|entry| Comment.new(entry) }
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,4 +1,3 @@
1
- # -*- encoding : utf-8 -*-
2
1
  module Reactor
3
2
  module Workflow
4
3
  class Empty < Standard
@@ -1,11 +1,11 @@
1
- # -*- encoding : utf-8 -*-
2
1
  module Reactor
3
2
  module Workflow
4
3
  class Standard
5
- WORKFLOW_ACTIONS = [:take, :forward, :reject, :commit, :release, :sign]
4
+ WORKFLOW_ACTIONS = %i(take forward reject commit release sign).freeze
6
5
 
7
6
  def initialize(obj, meta_obj)
8
- @obj, @meta_obj = obj, meta_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
@@ -1,8 +1,8 @@
1
1
  namespace :cm do
2
2
  desc "Migrate CM"
3
- task :migrate => :environment do
4
- require 'reactor/tools/migrator'
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
@@ -1,41 +1,34 @@
1
1
  namespace :cm do
2
-
3
2
  desc "Load the seed data from cm/seeds.rb"
4
- task :seed => :environment do
5
- require 'reactor/tools/sower'
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 :develop => :environment do
14
- require 'reactor/tools/sower'
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 :test => :environment do
20
- require 'reactor/tools/sower'
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, '.rb').to_sym => :environment do
32
- require 'reactor/tools/sower'
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,106 +1,138 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: infopark_reactor
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.26.0
4
+ version: 1.27.0.rc9
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: 2017-09-15 00:00:00.000000000 Z
13
+ date: 2020-08-25 00:00:00.000000000 Z
12
14
  dependencies:
13
15
  - !ruby/object:Gem::Dependency
14
- name: rails
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.3.0
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.3.0
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: '0'
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: '0'
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: '0'
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: '0'
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/job.rb
94
- - app/models/rails_connector/obj_class.rb
95
- - app/models/rails_connector/obj_class_attr.rb
96
- - app/models/rails_connector/object_with_meta_data.rb
97
130
  - config/routes.rb
98
131
  - infopark_reactor.gemspec
99
132
  - lib/generators/cm/migration/USAGE
100
133
  - lib/generators/cm/migration/migration_generator.rb
101
134
  - lib/generators/cm/migration/templates/template.rb
102
135
  - lib/infopark_reactor.rb
103
- - lib/rails_connector/meta/eager_loader.rb
104
136
  - lib/reactor/already_released.rb
105
137
  - lib/reactor/attributes.rb
106
138
  - lib/reactor/attributes/date_serializer.rb
@@ -109,6 +141,7 @@ files:
109
141
  - lib/reactor/attributes/link_list_from_accessor.rb
110
142
  - lib/reactor/attributes/link_list_from_attr_values.rb
111
143
  - lib/reactor/attributes/link_list_serializer.rb
144
+ - lib/reactor/attributes_handlers.rb
112
145
  - lib/reactor/cache/permission.rb
113
146
  - lib/reactor/cache/user.rb
114
147
  - lib/reactor/cm/attribute.rb
@@ -179,12 +212,14 @@ files:
179
212
  - lib/reactor/plans/update_job.rb
180
213
  - lib/reactor/plans/update_obj.rb
181
214
  - lib/reactor/plans/update_obj_class.rb
182
- - lib/reactor/rails_connector_meta.rb
183
215
  - lib/reactor/rc_independent.rb
184
216
  - lib/reactor/session.rb
185
217
  - lib/reactor/session/observers.rb
186
218
  - lib/reactor/session/user.rb
187
- - 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
188
223
  - lib/reactor/streaming_upload.rb
189
224
  - lib/reactor/sudo.rb
190
225
  - lib/reactor/support/link_matcher.rb
@@ -201,6 +236,7 @@ files:
201
236
  - lib/reactor/validations.rb
202
237
  - lib/reactor/version.rb
203
238
  - lib/reactor/workflow.rb
239
+ - lib/reactor/workflow/comment.rb
204
240
  - lib/reactor/workflow/empty.rb
205
241
  - lib/reactor/workflow/standard.rb
206
242
  - lib/tasks/cm_migrate.rake
@@ -215,17 +251,17 @@ require_paths:
215
251
  - lib
216
252
  required_ruby_version: !ruby/object:Gem::Requirement
217
253
  requirements:
218
- - - '>='
254
+ - - ">="
219
255
  - !ruby/object:Gem::Version
220
256
  version: '0'
221
257
  required_rubygems_version: !ruby/object:Gem::Requirement
222
258
  requirements:
223
- - - '>='
259
+ - - ">"
224
260
  - !ruby/object:Gem::Version
225
- version: '0'
261
+ version: 1.3.1
226
262
  requirements: []
227
263
  rubyforge_project:
228
- rubygems_version: 2.0.14.1
264
+ rubygems_version: 2.6.13
229
265
  signing_key:
230
266
  specification_version: 4
231
267
  summary: Write into CM in familiar, Rails-like way