infopark_fiona_connector 7.0.1.5.2.7.rc1 → 7.0.1.6.1.6.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/named_link.rb +2 -1
- data/lib/infopark_fiona_connector.rb +4 -3
- data/lib/obj.rb +2 -1
- data/lib/rails_connector/basic_obj.rb +3 -4
- data/lib/rails_connector/engine.rb +34 -9
- data/lib/rails_connector/{fiona_datetime.rb → fiona_date_time.rb} +0 -0
- data/lib/rails_connector/meta/eager_loader.rb +2 -2
- data/lib/version.rb +1 -1
- metadata +27 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a2b76b71446af6398f3aaf4f81e328ac901695595c8f46ec767c2114a9782f28
|
4
|
+
data.tar.gz: 461cf4e95303c46a64fef16bd4a8f2b6ee30359377adc4956b4c0d554f14a023
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3515ef24dd4e51fb8e4243af991208d2b58e1fb215cbdc0eced0df0b3f4e4284230b93d5c3c742d1670bf0e049d8d5a56061998767bb40a67cb0363fdaa9def
|
7
|
+
data.tar.gz: a6113fbe1c6131056e798e5ad4e8467340ccc7a37872f45912a84c7114269341b36bc97fbcdaea9494506cb5ca9500bd6b310324b1a15e71d57c0670af8d6ff6
|
data/app/models/named_link.rb
CHANGED
@@ -19,10 +19,9 @@ module ::RailsConnector
|
|
19
19
|
end
|
20
20
|
|
21
21
|
require "rails_connector/core_extensions"
|
22
|
-
require "rails_connector/rack_middlewares"
|
23
22
|
require "rails_connector/errors"
|
24
|
-
require "rails_connector/
|
25
|
-
|
23
|
+
require "rails_connector/fiona_date_time"
|
24
|
+
require "rails_connector/rack_middlewares"
|
26
25
|
|
27
26
|
# @api public
|
28
27
|
module RailsConnector
|
@@ -40,5 +39,7 @@ module RailsConnector
|
|
40
39
|
autoload_all_sources
|
41
40
|
end
|
42
41
|
|
42
|
+
module InfoparkFionaConnector; end
|
43
|
+
|
43
44
|
require "rails_connector/engine" if defined?(Rails)
|
44
45
|
require "rails_connector/fiona_engine" if defined?(Rails)
|
data/lib/obj.rb
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
require "json"
|
2
2
|
require "openssl"
|
3
|
-
require "rails_connector/fiona_datetime"
|
4
3
|
|
5
4
|
module RailsConnector
|
6
5
|
# The CMS file class
|
@@ -37,12 +36,12 @@ module RailsConnector
|
|
37
36
|
end
|
38
37
|
|
39
38
|
def self.configure_column_information(table_name_postfix, use_cached_permissions)
|
40
|
-
reset_column_information
|
41
|
-
|
42
39
|
self.table_name = "#{table_name_prefix}#{table_name_postfix}"
|
43
40
|
self.primary_key = "obj_id"
|
44
41
|
self.inheritance_column = "obj_class"
|
45
42
|
|
43
|
+
reset_column_information
|
44
|
+
|
46
45
|
@@use_cached_permissions = use_cached_permissions
|
47
46
|
descendants.each do |klass|
|
48
47
|
klass.reset_table_name
|
@@ -128,7 +127,7 @@ module RailsConnector
|
|
128
127
|
|
129
128
|
def self.reset_reflections
|
130
129
|
has_many :children, class_name: "Obj", foreign_key: "parent_obj_id", validate: false
|
131
|
-
belongs_to :parent, class_name: "Obj", foreign_key: "parent_obj_id"
|
130
|
+
belongs_to :parent, class_name: "Obj", foreign_key: "parent_obj_id", optional: true
|
132
131
|
end
|
133
132
|
|
134
133
|
# @api public
|
@@ -1,8 +1,6 @@
|
|
1
1
|
require "rails"
|
2
2
|
require "active_record/railtie"
|
3
|
-
require "action_view"
|
4
|
-
|
5
|
-
require "rails_connector/configuration"
|
3
|
+
require "action_view/railtie"
|
6
4
|
|
7
5
|
module ::RailsConnector
|
8
6
|
class Engine < Rails::Engine
|
@@ -13,7 +11,9 @@ module ::RailsConnector
|
|
13
11
|
config.action_dispatch.rescue_responses["RailsConnector::ResourceNotFound"] = :not_found
|
14
12
|
|
15
13
|
initializer "rails_connector.add_fiona_time_type" do
|
16
|
-
|
14
|
+
ActiveSupport.on_load(:active_record) do
|
15
|
+
ActiveRecord::Type.register(:fiona_datetime, FionaDateTime)
|
16
|
+
end
|
17
17
|
end
|
18
18
|
|
19
19
|
initializer "rails_connector.add_cms_routing_paths", after: :add_routing_paths do |app|
|
@@ -38,7 +38,7 @@ module ::RailsConnector
|
|
38
38
|
|
39
39
|
if runtime
|
40
40
|
RailsConnector::LogSubscriber.attach_to :rails_connector
|
41
|
-
ActiveSupport.on_load(:
|
41
|
+
ActiveSupport.on_load(:action_controller_base) do
|
42
42
|
include runtime
|
43
43
|
end
|
44
44
|
end
|
@@ -50,14 +50,39 @@ module ::RailsConnector
|
|
50
50
|
|
51
51
|
initializer "rails_connector.routing_helpers" do
|
52
52
|
ActionDispatch::TestRequest.include RailsConnector::CmsTestRequest if Rails.env == "test"
|
53
|
+
config.to_prepare do
|
54
|
+
ActiveSupport.on_load(:action_controller_base) do
|
55
|
+
include CmsRoutingHelper
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
ActiveSupport.on_load(:action_view_base) do
|
60
|
+
include CmsRoutingHelper
|
61
|
+
end
|
62
|
+
end
|
53
63
|
|
54
|
-
|
55
|
-
|
64
|
+
initializer "zeitwerk.autoloader" do
|
65
|
+
if Rails::VERSION::MAJOR >= 6 && Rails.autoloaders.zeitwerk_enabled?
|
66
|
+
Rails.autoloaders.main.inflector.inflect("ses" => "SES")
|
67
|
+
Rails.autoloaders.each do |autoloader|
|
68
|
+
autoloader.ignore("#{config.root}/lib/generators")
|
69
|
+
autoloader.ignore("#{config.root}/lib/meta_eager_loader.rb")
|
70
|
+
autoloader.ignore("#{config.root}/lib/version.rb")
|
71
|
+
autoloader.ignore("#{config.root}/lib/rails_connector/core_extensions.rb")
|
72
|
+
autoloader.ignore("#{config.root}/lib/rails_connector/core_extensions/time.rb")
|
73
|
+
autoloader.ignore("#{config.root}/lib/rails_connector/errors.rb")
|
74
|
+
autoloader.ignore("#{config.root}/lib/rails_connector/fiona_date_time.rb")
|
75
|
+
autoloader.ignore("#{config.root}/lib/rails_connector/rack_middlewares.rb")
|
76
|
+
end
|
77
|
+
end
|
56
78
|
end
|
57
79
|
|
58
80
|
config.autoload_paths += paths["lib"].to_a
|
59
|
-
config.autoload_once_paths += paths["lib"].to_a
|
81
|
+
config.autoload_once_paths += paths["lib/rails_connector"].to_a
|
82
|
+
config.eager_load_paths += paths["lib/rails_connector"].to_a
|
60
83
|
|
61
|
-
|
84
|
+
initializer "middleware.config" do
|
85
|
+
RailsConnector.rack_middlewares.each { |middleware| config.app_middleware.use middleware }
|
86
|
+
end
|
62
87
|
end
|
63
88
|
end
|
File without changes
|
@@ -21,8 +21,8 @@ module RailsConnector
|
|
21
21
|
if !@obj_classes.fetch(name, nil).nil?
|
22
22
|
@obj_classes[name]
|
23
23
|
else
|
24
|
-
|
25
|
-
@obj_classes[name]
|
24
|
+
obj_class = RailsConnector::ObjClass.find_by_obj_class_name(name)
|
25
|
+
@obj_classes[name] = obj_class if obj_class
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,43 +1,55 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: infopark_fiona_connector
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.0.1.
|
4
|
+
version: 7.0.1.6.1.6.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Infopark AG
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-08-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '5.2'
|
20
|
+
- - "<"
|
18
21
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
22
|
+
version: '7.0'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '5.2'
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
32
|
+
version: '7.0'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: activerecord
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
30
36
|
requirements:
|
31
|
-
- - "
|
37
|
+
- - ">="
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '5.2'
|
40
|
+
- - "<"
|
32
41
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
42
|
+
version: '7.0'
|
34
43
|
type: :runtime
|
35
44
|
prerelease: false
|
36
45
|
version_requirements: !ruby/object:Gem::Requirement
|
37
46
|
requirements:
|
38
|
-
- - "
|
47
|
+
- - ">="
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '5.2'
|
50
|
+
- - "<"
|
39
51
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
52
|
+
version: '7.0'
|
41
53
|
- !ruby/object:Gem::Dependency
|
42
54
|
name: rake
|
43
55
|
requirement: !ruby/object:Gem::Requirement
|
@@ -213,7 +225,7 @@ files:
|
|
213
225
|
- lib/rails_connector/default_search_request.rb
|
214
226
|
- lib/rails_connector/engine.rb
|
215
227
|
- lib/rails_connector/errors.rb
|
216
|
-
- lib/rails_connector/
|
228
|
+
- lib/rails_connector/fiona_date_time.rb
|
217
229
|
- lib/rails_connector/fiona_engine.rb
|
218
230
|
- lib/rails_connector/html_string.rb
|
219
231
|
- lib/rails_connector/job.rb
|
@@ -240,7 +252,8 @@ files:
|
|
240
252
|
homepage: http://www.infopark.de
|
241
253
|
licenses:
|
242
254
|
- LGPL-3.0
|
243
|
-
metadata:
|
255
|
+
metadata:
|
256
|
+
rubygems_mfa_required: 'true'
|
244
257
|
post_install_message:
|
245
258
|
rdoc_options: []
|
246
259
|
require_paths:
|
@@ -249,14 +262,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
249
262
|
requirements:
|
250
263
|
- - ">="
|
251
264
|
- !ruby/object:Gem::Version
|
252
|
-
version:
|
265
|
+
version: 2.6.0
|
253
266
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
254
267
|
requirements:
|
255
268
|
- - ">="
|
256
269
|
- !ruby/object:Gem::Version
|
257
270
|
version: 1.3.5
|
258
271
|
requirements: []
|
259
|
-
rubygems_version: 3.
|
272
|
+
rubygems_version: 3.3.7
|
260
273
|
signing_key:
|
261
274
|
specification_version: 4
|
262
275
|
summary: Infopark Fiona Connector
|