flickwerk 0.3.3 → 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: 3408516d5382df979190373fd3acb47eb26e91e6b52e9f9e770887a9e5c08382
4
- data.tar.gz: d04f410971901f342e3baaffa3549eacefe03da60088babe2c9f7cb6cc85dc50
3
+ metadata.gz: 4223c58c7b8ca4390a393fb3fdecd94589d28792e1f3ca9f70ffddb047a221a7
4
+ data.tar.gz: 6dced993633543c71ca62eabb097a1bfcb9078ef5ae7206596731fa5ddf06be6
5
5
  SHA512:
6
- metadata.gz: 9666d78b3dfb945fb959ad14ed966e9e7bca57f62a682c1f5cfae811a70fc0a30d1dcebfb841e0693dfceb90b31e92e13574a9ddad0615220f0245334b716f23
7
- data.tar.gz: 4e62dc30ebe97aa88e0a6f3e5cda2d4b7b27342ff093196807e6d1ba74c2285bd11ec87c0f407d60cf0f51e83693cffacf909c92d7b6e52ef72d5e7ab83d2dbe
6
+ metadata.gz: 96fb8c8e4868f352a08545794206397d97649b18c6ddeb66590053f44375867ad60a97bddbdb744a80b4fe7f8c4a9f1db9bae3d406ebe2101156d7a074f7c500
7
+ data.tar.gz: 479fa390071404bc09f6db49cfd48f9531c3a3868194ec6aade9457ece880c50caed137fd5fdca67c8804c08ea87bf0c5c6d52a70ad3eac676c219ece85ac254
@@ -5,12 +5,6 @@ require "flickwerk/patch_loader"
5
5
  require "rails/railtie"
6
6
 
7
7
  class Flickwerk::Railtie < Rails::Railtie
8
- initializer "flickwerk.add_paths", before: :set_autoload_paths do |app|
9
- Flickwerk.patch_paths.each do |path|
10
- app.config.autoload_paths << path
11
- end
12
- end
13
-
14
8
  initializer "flickwerk.find_patches" do |app|
15
9
  app.reloader.to_prepare do
16
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.3"
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
- Flickwerk.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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flickwerk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Meyerhoff