infopark_fiona_connector 7.0.3 → 7.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2f0a1dd5443d0ac7ae34f0b11514b2f1704538ea34854627f7e6a50b98e5131f
4
- data.tar.gz: 0c8ddbf5f188e97ae14c687b0193e8cedfea4bb074f74ffde6d358c6eaf1eeb6
3
+ metadata.gz: b08f56ad7f7e184aaababef06f8470b8d0018d6c5e7badcc09b93b8a7877dd2e
4
+ data.tar.gz: c3387eeebb7c6597372bdaa23de4ff8cf3c208d2568cb94605a116ab1a3751c1
5
5
  SHA512:
6
- metadata.gz: f5e87488f2c01ed285782b1c9ee0393fd176f230ebd529204e7f6ef8fd8fe889b76d6c29a87d58c81c85db64cb92bb510e019676be0022c334625871efdba5c4
7
- data.tar.gz: e247e6383d61382f4120644cf91c6c08a2b2537eb2b008fed0dd8d79b5bf4c106f3bf72ab90c0352c6c33ba6fd144024af24e427b254e4b374c097fb60269e83
6
+ metadata.gz: 9b6de455407e64e63ec0cec68083a520e6088caa19babd97cc23f7e559a59f8ca978c63bf4a79ae4852b86e48e6014bcf2aaa617ec6a2a43da90dfb6ba5d90da
7
+ data.tar.gz: e0531b452f3f1a2334e8f0bb360a9e8188b8eb17648b3650d5c29de651ccf90b899eda371b157d386c933ab26302fa871284a5207fbba92d83707465ad2aa47d
@@ -8,7 +8,7 @@ module RailsConnector
8
8
 
9
9
  has_many :news, class_name: "RailsConnector::News", foreign_key: "channel_name"
10
10
  has_many :active_news,
11
- -> { where(["valid_from <= :now AND valid_until >= :now", { now: Time.now.to_s(:number) }]) },
11
+ -> { where(["valid_from <= :now AND valid_until >= :now", { now: Time.now.to_fs(:number) }]) },
12
12
  class_name: "RailsConnector::News", foreign_key: "channel_name"
13
13
 
14
14
  has_many :objects, through: :news
@@ -89,7 +89,7 @@ module RailsConnector
89
89
  # @api public
90
90
  def deliver_file
91
91
  if @obj.body_data_url
92
- redirect_to enforce_protocol_from_request(@obj.body_data_url)
92
+ redirect_to enforce_protocol_from_request(@obj.body_data_url), allow_other_host: true
93
93
  elsif stale?(last_modified: @obj.last_changed.utc)
94
94
  mime_type = @obj.mime_type
95
95
  mime_type += "; charset=utf-8" if %r{^text/}.match?(mime_type)
@@ -77,7 +77,7 @@ module RailsConnector
77
77
  def to_prepare
78
78
  BasicObj.reset_reflections
79
79
 
80
- unless Rails.configuration.cache_classes
80
+ if reloading_enabled?
81
81
  after_initialize
82
82
  NamedLink.reset_cache
83
83
  BasicObj.reset_type_cache
@@ -123,6 +123,14 @@ module RailsConnector
123
123
  @local_config_file = nil
124
124
  end
125
125
 
126
+ def reloading_enabled?
127
+ if Rails.configuration.respond_to?(:enable_reloading)
128
+ Rails.configuration.enable_reloading
129
+ else
130
+ !Rails.configuration.cache_classes
131
+ end
132
+ end
133
+
126
134
  protected
127
135
 
128
136
  def enable_authentication
@@ -70,23 +70,27 @@ module ::RailsConnector
70
70
  end
71
71
 
72
72
  initializer "zeitwerk.autoloader" do
73
- if Rails::VERSION::MAJOR >= 6 && Rails.autoloaders.zeitwerk_enabled?
74
- Rails.autoloaders.main.inflector.inflect("ses" => "SES")
75
- Rails.autoloaders.each do |autoloader|
76
- autoloader.ignore("#{config.root}/lib/generators")
77
- autoloader.ignore("#{config.root}/lib/meta_eager_loader.rb")
78
- autoloader.ignore("#{config.root}/lib/version.rb")
79
- autoloader.ignore("#{config.root}/lib/rails_connector/core_extensions.rb")
80
- autoloader.ignore("#{config.root}/lib/rails_connector/core_extensions/time.rb")
81
- autoloader.ignore("#{config.root}/lib/rails_connector/core_extensions/active_record/core.rb")
82
- autoloader.ignore("#{config.root}/lib/rails_connector/errors.rb")
83
- autoloader.ignore("#{config.root}/lib/rails_connector/fiona_date_time.rb")
84
- autoloader.ignore("#{config.root}/lib/rails_connector/rack_middlewares.rb")
85
- end
73
+ Rails.autoloaders.main.inflector.inflect("ses" => "SES")
74
+ Rails.autoloaders.each do |autoloader|
75
+ autoloader.ignore("#{config.root}/lib/generators")
76
+ autoloader.ignore("#{config.root}/lib/meta_eager_loader.rb")
77
+ autoloader.ignore("#{config.root}/lib/version.rb")
78
+ autoloader.ignore("#{config.root}/lib/rails_connector/core_extensions.rb")
79
+ autoloader.ignore("#{config.root}/lib/rails_connector/core_extensions/time.rb")
80
+ autoloader.ignore("#{config.root}/lib/rails_connector/core_extensions/active_record/core.rb")
81
+ autoloader.ignore("#{config.root}/lib/rails_connector/errors.rb")
82
+ autoloader.ignore("#{config.root}/lib/rails_connector/fiona_date_time.rb")
83
+ autoloader.ignore("#{config.root}/lib/rails_connector/rack_middlewares.rb")
86
84
  end
87
85
  end
88
86
 
89
- initializer "rails_connector.load_paths", before: :bootstrap_hook do
87
+ if Rails::VERSION::MAJOR >= 8
88
+ initializer "rails_connector.load_paths", before: :bootstrap_hook do
89
+ config.autoload_paths += paths["lib"].to_a
90
+ config.autoload_once_paths += paths["lib/rails_connector"].to_a
91
+ config.eager_load_paths += paths["lib/rails_connector"].to_a
92
+ end
93
+ else
90
94
  config.autoload_paths += paths["lib"].to_a
91
95
  config.autoload_once_paths += paths["lib/rails_connector"].to_a
92
96
  config.eager_load_paths += paths["lib/rails_connector"].to_a
@@ -13,7 +13,7 @@ module RailsConnector
13
13
  "#{table_name_prefix}" "news"
14
14
  end
15
15
 
16
- scope :active, -> { where("? BETWEEN valid_from AND valid_until", Time.now.to_s(:number)) }
16
+ scope :active, -> { where("? BETWEEN valid_from AND valid_until", Time.now.to_fs(:number)) }
17
17
 
18
18
  scope :for_channel, ->(channel_name) { where(channel_name: channel_name) }
19
19
  end
data/lib/version.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  module RailsConnector
2
2
  module Version
3
3
  def self.get
4
- "7.0.3"
4
+ "7.1.0"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: infopark_fiona_connector
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.3
4
+ version: 7.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Infopark AG
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2026-08-05 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: rails
@@ -16,7 +15,7 @@ dependencies:
16
15
  requirements:
17
16
  - - ">="
18
17
  - !ruby/object:Gem::Version
19
- version: '5.2'
18
+ version: '7.0'
20
19
  - - "<"
21
20
  - !ruby/object:Gem::Version
22
21
  version: '9.0'
@@ -26,7 +25,7 @@ dependencies:
26
25
  requirements:
27
26
  - - ">="
28
27
  - !ruby/object:Gem::Version
29
- version: '5.2'
28
+ version: '7.0'
30
29
  - - "<"
31
30
  - !ruby/object:Gem::Version
32
31
  version: '9.0'
@@ -36,7 +35,7 @@ dependencies:
36
35
  requirements:
37
36
  - - ">="
38
37
  - !ruby/object:Gem::Version
39
- version: '5.2'
38
+ version: '7.0'
40
39
  - - "<"
41
40
  - !ruby/object:Gem::Version
42
41
  version: '9.0'
@@ -46,7 +45,7 @@ dependencies:
46
45
  requirements:
47
46
  - - ">="
48
47
  - !ruby/object:Gem::Version
49
- version: '5.2'
48
+ version: '7.0'
50
49
  - - "<"
51
50
  - !ruby/object:Gem::Version
52
51
  version: '9.0'
@@ -120,6 +119,26 @@ dependencies:
120
119
  - - "~>"
121
120
  - !ruby/object:Gem::Version
122
121
  version: '2.5'
122
+ - !ruby/object:Gem::Dependency
123
+ name: mysql2
124
+ requirement: !ruby/object:Gem::Requirement
125
+ requirements:
126
+ - - "~>"
127
+ - !ruby/object:Gem::Version
128
+ version: '0.5'
129
+ - - "<"
130
+ - !ruby/object:Gem::Version
131
+ version: 0.5.7
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '0.5'
139
+ - - "<"
140
+ - !ruby/object:Gem::Version
141
+ version: 0.5.7
123
142
  - !ruby/object:Gem::Dependency
124
143
  name: rsolr
125
144
  requirement: !ruby/object:Gem::Requirement
@@ -255,7 +274,6 @@ licenses:
255
274
  - LGPL-3.0
256
275
  metadata:
257
276
  rubygems_mfa_required: 'true'
258
- post_install_message:
259
277
  rdoc_options: []
260
278
  require_paths:
261
279
  - lib
@@ -263,15 +281,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
263
281
  requirements:
264
282
  - - ">="
265
283
  - !ruby/object:Gem::Version
266
- version: 2.6.0
284
+ version: 3.2.0
267
285
  required_rubygems_version: !ruby/object:Gem::Requirement
268
286
  requirements:
269
287
  - - ">="
270
288
  - !ruby/object:Gem::Version
271
289
  version: 1.3.5
272
290
  requirements: []
273
- rubygems_version: 3.3.7
274
- signing_key:
291
+ rubygems_version: 3.6.9
275
292
  specification_version: 4
276
293
  summary: Infopark Fiona Connector
277
294
  test_files: []