katalyst-kpop 3.1.3 → 3.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d5adfb4a892226d834e9ed002c343964bd45009b2252ee24dbbcccc72a1951f4
4
- data.tar.gz: 28a74a4957712b99d982b8bea445194b771417133093365172daa5f07c9febf7
3
+ metadata.gz: c852e3f43261b621b91b0b3690526302181bab2bc35b390d7f8ce9257378e911
4
+ data.tar.gz: ee1b3f12f3a12c05ae911124e1798a82cc7c5a7ba21861b0366c6900f17d9762
5
5
  SHA512:
6
- metadata.gz: 1d5e9858fb006f6cc1d953e4a7c628b3471f0bb5bd72f4728e4aee7d90c1d9073c7aa8f45f6af9608055ed7029f4d349dd04e7329a4549871aff0d4996d092cd
7
- data.tar.gz: 7f1983c2bf435f102371fd6108b042756201b9f4044cfe2f17f6d8e8af843886480beb594e591add996b8195d6605888011a8d207baa59d96cc426b7fe902e63
6
+ metadata.gz: '08f84e0ede4f722b45275a0156dfd4f03bfad25e883f330d05614abfeed6a56b43d1ef81977f0ebfe403b08dd891f011de103be2e9736661294e9668d2110fea'
7
+ data.tar.gz: b32ac86aa2f6734b7e13b26cad8b28943218546dc72ff5892e64331f5810eae46e122260a24143e5376be3bc0e56db2019795bd8860f252e63ae3821a2aef395
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "rails"
3
+ require "rails/railtie"
4
4
  require "turbo-rails"
5
5
 
6
6
  module Katalyst
@@ -8,11 +8,7 @@ module Katalyst
8
8
  class Engine < ::Rails::Engine
9
9
  isolate_namespace Katalyst::Kpop
10
10
  config.eager_load_namespaces << Katalyst::Kpop
11
- config.autoload_once_paths = %W(
12
- #{root}/app/helpers
13
- #{root}/app/controllers
14
- #{root}/app/controllers/concerns
15
- )
11
+ config.paths.add("lib", autoload_once: true)
16
12
 
17
13
  initializer "kpop.assets" do
18
14
  config.after_initialize do |app|
@@ -39,6 +35,15 @@ module Katalyst
39
35
  app.config.importmap.cache_sweepers << root.join("app/assets/builds")
40
36
  end
41
37
  end
38
+
39
+ initializer "kpop.rspec" do
40
+ next unless defined?(RSpec) && RSpec.respond_to?(:configure)
41
+
42
+ RSpec.configure do |config|
43
+ config.include Katalyst::Kpop::Matchers, type: :component
44
+ config.include Katalyst::Kpop::Matchers, type: :request
45
+ end
46
+ end
42
47
  end
43
48
  end
44
49
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "rspec/rails/matchers/base_matcher"
3
+ require "rspec/rails"
4
4
 
5
5
  module Katalyst
6
6
  module Kpop
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "katalyst/kpop/matchers/base"
4
-
5
3
  module Katalyst
6
4
  module Kpop
7
5
  module Matchers
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "katalyst/kpop/matchers/base"
4
-
5
3
  module Katalyst
6
4
  module Kpop
7
5
  module Matchers
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "rspec/rails/matchers/base_matcher"
4
-
5
3
  module Katalyst
6
4
  module Kpop
7
5
  module Matchers
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "katalyst/kpop/matchers/capybara_matcher"
4
-
5
3
  module Katalyst
6
4
  module Kpop
7
5
  module Matchers
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "katalyst/kpop/matchers/capybara_matcher"
4
-
5
3
  module Katalyst
6
4
  module Kpop
7
5
  module Matchers
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "katalyst/kpop/matchers/base"
4
-
5
3
  module Katalyst
6
4
  module Kpop
7
5
  module Matchers
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "katalyst/kpop/matchers/base"
4
-
5
3
  module Katalyst
6
4
  module Kpop
7
5
  module Matchers
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "katalyst/kpop/matchers/capybara_matcher"
4
-
5
3
  module Katalyst
6
4
  module Kpop
7
5
  module Matchers
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "katalyst/kpop/matchers/capybara_matcher"
4
-
5
3
  module Katalyst
6
4
  module Kpop
7
5
  module Matchers
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "katalyst/kpop/matchers/base"
4
-
5
3
  module Katalyst
6
4
  module Kpop
7
5
  module Matchers
@@ -1,17 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "katalyst/kpop/matchers/base"
4
- require "katalyst/kpop/matchers/capybara_matcher"
5
- require "katalyst/kpop/matchers/capybara_parser"
6
- require "katalyst/kpop/matchers/chained_matcher"
7
- require "katalyst/kpop/matchers/frame_matcher"
8
- require "katalyst/kpop/matchers/modal_matcher"
9
- require "katalyst/kpop/matchers/redirect_matcher"
10
- require "katalyst/kpop/matchers/response_matcher"
11
- require "katalyst/kpop/matchers/stream_matcher"
12
- require "katalyst/kpop/matchers/title_finder"
13
- require "katalyst/kpop/matchers/title_matcher"
14
-
15
3
  module Katalyst
16
4
  module Kpop
17
5
  module Matchers
@@ -72,8 +60,3 @@ module Katalyst
72
60
  end
73
61
  end
74
62
  end
75
-
76
- RSpec.configure do |config|
77
- config.include Katalyst::Kpop::Matchers, type: :component
78
- config.include Katalyst::Kpop::Matchers, type: :request
79
- end
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "katalyst/kpop/engine"
4
-
5
3
  module Katalyst
6
4
  module Kpop
7
5
  module Turbo
data/lib/katalyst/kpop.rb CHANGED
@@ -3,11 +3,9 @@
3
3
  require "katalyst/html_attributes"
4
4
  require "view_component"
5
5
 
6
- require "katalyst/kpop/engine"
7
- require "katalyst/kpop/turbo"
8
-
9
6
  module Katalyst
10
7
  module Kpop
11
- extend ActiveSupport::Autoload
12
8
  end
13
9
  end
10
+
11
+ require "katalyst/kpop/engine"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: katalyst-kpop
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.3
4
+ version: 3.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Katalyst Interactive
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-26 00:00:00.000000000 Z
11
+ date: 2024-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: katalyst-html-attributes
@@ -95,7 +95,6 @@ files:
95
95
  - app/javascript/kpop/utils/stream_renderer.js
96
96
  - app/views/layouts/kpop/frame.html.erb
97
97
  - config/importmap.rb
98
- - config/routes.rb
99
98
  - lib/katalyst/kpop.rb
100
99
  - lib/katalyst/kpop/engine.rb
101
100
  - lib/katalyst/kpop/matchers.rb
data/config/routes.rb DELETED
@@ -1,2 +0,0 @@
1
- Rails.application.routes.draw do
2
- end