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 +4 -4
- data/lib/flickwerk/railtie.rb +1 -6
- data/lib/flickwerk/version.rb +1 -1
- data/lib/flickwerk.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4223c58c7b8ca4390a393fb3fdecd94589d28792e1f3ca9f70ffddb047a221a7
|
4
|
+
data.tar.gz: 6dced993633543c71ca62eabb097a1bfcb9078ef5ae7206596731fa5ddf06be6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96fb8c8e4868f352a08545794206397d97649b18c6ddeb66590053f44375867ad60a97bddbdb744a80b4fe7f8c4a9f1db9bae3d406ebe2101156d7a074f7c500
|
7
|
+
data.tar.gz: 479fa390071404bc09f6db49cfd48f9531c3a3868194ec6aade9457ece880c50caed137fd5fdca67c8804c08ea87bf0c5c6d52a70ad3eac676c219ece85ac254
|
data/lib/flickwerk/railtie.rb
CHANGED
@@ -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|
|
data/lib/flickwerk/version.rb
CHANGED
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/*")
|
16
|
-
|
17
|
-
|
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.
|
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-
|
11
|
+
date: 2025-01-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|