turbo-scroll 0.1.6 → 0.1.7

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: 63ed03eee912eb13ef2ad5fca52c16030ebecf3f8cea94ad1b67a349a2ede8cd
4
- data.tar.gz: abaaff4452192d92b244e6ef7bcdc0dfa5cb9d43ce859012d39bee0c16fab1cb
3
+ metadata.gz: 8b83933f7e20d2c652a9c79a4c398f10500021703704a0c1b40e37c50f7500f4
4
+ data.tar.gz: e1259d89dc7e1fdea2223ae9fb5bdcfd8b9447f60a67ab60936c62a2ae83f9c2
5
5
  SHA512:
6
- metadata.gz: 23028478ad69fe8927fae26c4a7209ef27533acfa3beff8faf54c972e39c24a71f07080c153d877d3a407b04a765e5e9fa89235c0b913cd34201467e76284af1
7
- data.tar.gz: b5f9c28be794ae767b3256907540a8ca29e3acfcee7fcc4fb549ae9722610676566660daa9ea5dee7ed244e9aed5ff85c556f75ebc29d90cdf86225ec93ce5be
6
+ metadata.gz: 5617fc74b11bbe4386748fb107960100f5ff8c78d9b671f40a6880eaf917dc062f39265f2811c7569b4b36d16c8d39dc7b2aee99cfb784e0e98bd22c2bc6c7bd
7
+ data.tar.gz: 07b35bd7481d1b8475bb79d0c41f2d473758d7da08f9e6072522ba4ba67f26b057adda246beab59a64cb8bb50e42fb2694e22a89cdefbbd0a8137af6d4a98cb3
@@ -1,5 +1,17 @@
1
1
  module TurboScroll
2
2
  class Railtie < ::Rails::Railtie
3
+ config.before_initialize do
4
+ module ::ViewComponent
5
+ class Base < ActionView::Base
6
+ class << self
7
+ def config
8
+ @config ||= ViewComponent::Config.defaults
9
+ end
10
+ end
11
+ end
12
+ end
13
+ end
14
+
3
15
  initializer "turbo-scrolls.load_components" do
4
16
  ActiveSupport.on_load(:action_view) do
5
17
  require_relative "auto"
@@ -9,11 +21,12 @@ module TurboScroll
9
21
  require_relative "spin_loader"
10
22
  end
11
23
  end
24
+
12
25
  initializer "turbo-scrolls.view_helpers" do |app|
13
26
  ActiveSupport.on_load(:action_view) do
14
27
  include TurboScroll::ViewHelpers
15
28
  end
16
- app.config.i18n.load_path += Dir[File.expand_path(File.join(File.dirname(__FILE__), '../locales', '*.yml')).to_s]
29
+ app.config.i18n.load_path += Dir[File.expand_path(File.join(File.dirname(__FILE__), "../locales", "*.yml")).to_s]
17
30
  end
18
31
  end
19
32
  end
@@ -1,3 +1,3 @@
1
1
  module TurboScroll
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: turbo-scroll
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Koen handekyn
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-26 00:00:00.000000000 Z
11
+ date: 2023-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -120,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
120
120
  - !ruby/object:Gem::Version
121
121
  version: '0'
122
122
  requirements: []
123
- rubygems_version: 3.3.7
123
+ rubygems_version: 3.4.10
124
124
  signing_key:
125
125
  specification_version: 4
126
126
  summary: Modern infinite page scrolling for Rails.