flickwerk 0.3.2 → 0.3.4

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: 345f0a2e87adf7c5b68542723b564d9cd84de0991a7c52f100ed20cf3cf712e0
4
- data.tar.gz: 31d4905e5d5b9ca8f5bd967d07a66ace54b1b963a12d619462cfa34cc8732fa6
3
+ metadata.gz: 4223c58c7b8ca4390a393fb3fdecd94589d28792e1f3ca9f70ffddb047a221a7
4
+ data.tar.gz: 6dced993633543c71ca62eabb097a1bfcb9078ef5ae7206596731fa5ddf06be6
5
5
  SHA512:
6
- metadata.gz: f066e5ec937af4c9544928f38dd17454ecbb396c594096087e66271f6d985ac84622296be5261e2fb86ca519ee062cda7ec8b77b90b49cc2060f7439bfb614c6
7
- data.tar.gz: 7813581a4e322803963a25e9af118101b0b72dbed06e8a19b66d9675307b7e23d4e3f4f0e5b438dd1beb80aafeef095446288c34dde747c18794ce4acd5441aa
6
+ metadata.gz: 96fb8c8e4868f352a08545794206397d97649b18c6ddeb66590053f44375867ad60a97bddbdb744a80b4fe7f8c4a9f1db9bae3d406ebe2101156d7a074f7c500
7
+ data.tar.gz: 479fa390071404bc09f6db49cfd48f9531c3a3868194ec6aade9457ece880c50caed137fd5fdca67c8804c08ea87bf0c5c6d52a70ad3eac676c219ece85ac254
@@ -2,14 +2,9 @@
2
2
 
3
3
  require "flickwerk/patch_finder"
4
4
  require "flickwerk/patch_loader"
5
+ require "rails/railtie"
5
6
 
6
7
  class Flickwerk::Railtie < Rails::Railtie
7
- initializer "flickwerk.add_paths", before: :set_autoload_paths do |app|
8
- Flickwerk.patch_paths.each do |path|
9
- app.config.autoload_paths << path
10
- end
11
- end
12
-
13
8
  initializer "flickwerk.find_patches" do |app|
14
9
  app.reloader.to_prepare do
15
10
  Flickwerk.patch_paths.each do |path|
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Flickwerk
4
- VERSION = "0.3.2"
4
+ VERSION = "0.3.4"
5
5
  end
data/lib/flickwerk.rb CHANGED
@@ -12,9 +12,9 @@ module Flickwerk
12
12
  mattr_accessor :aliases, default: {}
13
13
 
14
14
  def self.included(engine)
15
- engine.root.glob("app/patches/*").each do |path|
16
- engine.patch_paths << path
17
- end
15
+ engine_patch_paths = engine.root.glob("app/patches/*")
16
+ engine.config.autoload_paths += engine_patch_paths
17
+ Flickwerk.patch_paths += engine_patch_paths
18
18
  end
19
19
 
20
20
  def self.patch(class_name, with:)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flickwerk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Meyerhoff
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-01-08 00:00:00.000000000 Z
11
+ date: 2025-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties