flickwerk 0.3.4 → 0.3.6
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 +4 -4
- data/CHANGELOG.md +7 -1
- data/README.md +2 -2
- data/Rakefile +1 -1
- data/lib/flickwerk/patch_finder.rb +1 -1
- data/lib/flickwerk/patchify.rb +1 -0
- data/lib/flickwerk/version.rb +1 -1
- data/lib/flickwerk.rb +3 -2
- metadata +3 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f3da8654ba124877d9b5cb6ae4b48b8a4dc07a7267fb7f0ba9c79548780aeb3
|
4
|
+
data.tar.gz: 0f53467d7f21b2db331b69f4c190c400d17b9d567206ccc833d7a332ecb9cb42
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3fe97fb74b5347b314ad50084be26060256c13dab1cc1345ca928c63252044c61f24854733973ff97b1dd88a25449f4f8421346d69fec9c42b4d3b34d1d59ab9
|
7
|
+
data.tar.gz: 7a48441ede74b0923fae76f0df59f520d35b4a454a85c522b2f63ac243b8b9b0595c4dedaeb2738e6addfe4f521c574ce7f1f26a2f55a73dd6f30ef6503e50c2
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,10 @@
|
|
1
|
-
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
## [v0.3.6] - 2025-08-23
|
4
|
+
|
5
|
+
* Fix typo by @jarednorman in https://github.com/friendlycart/flickwerk/pull/13
|
6
|
+
* Update Manual Patch example in README.md by @tvdeyen in https://github.com/friendlycart/flickwerk/pull/14
|
7
|
+
* require fileutils by @tvdeyen in https://github.com/friendlycart/flickwerk/pull/15
|
2
8
|
|
3
9
|
## [0.1.0] - 2024-11-27
|
4
10
|
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Flickwerk
|
2
2
|
|
3
|
-
A Railtie for loading autoloadable patches using Zeitwerk. This speeds up Rails bootup and reload time
|
3
|
+
A Railtie for loading autoloadable patches using Zeitwerk. This speeds up Rails bootup and reload time considerably, because other solutions out there load the patches and the associated classes on application bootup, and this gem defers loading the patches until the patched classes are autoloaded.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
@@ -129,7 +129,7 @@ class MyGem::Engine < Rails::Engine
|
|
129
129
|
include Flickwerk
|
130
130
|
|
131
131
|
initializer "my_gem.patch_user_class", before: "flickwerk.add_patches" do
|
132
|
-
Flickwerk.patch(Spree.class_variable_get(:@@user_class), "MyGem::UserClassPatch")
|
132
|
+
Flickwerk.patch(Spree.class_variable_get(:@@user_class), with: "MyGem::UserClassPatch")
|
133
133
|
end
|
134
134
|
end
|
135
135
|
```
|
data/Rakefile
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
module Flickwerk
|
4
4
|
class PatchFinder
|
5
|
-
DECORATED_CLASS_PATTERN = /(?:::)?(?<decorated_class>[\w.:]+?)(?:\.singleton_class)?\.prepend[\s(]/
|
5
|
+
DECORATED_CLASS_PATTERN = /(?:::)?(?<decorated_class>[A-Z][\w.:]+?)(?:\.singleton_class)?\.prepend[\s(]/
|
6
6
|
|
7
7
|
attr_reader :path, :autoloader
|
8
8
|
|
data/lib/flickwerk/patchify.rb
CHANGED
data/lib/flickwerk/version.rb
CHANGED
data/lib/flickwerk.rb
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require_relative "flickwerk/version"
|
4
|
+
require "active_support"
|
4
5
|
require "active_support/core_ext/module/attribute_accessors"
|
5
|
-
require "flickwerk/railtie"
|
6
|
+
require "flickwerk/railtie"
|
6
7
|
|
7
8
|
module Flickwerk
|
8
9
|
class Error < StandardError; end
|
9
10
|
|
10
11
|
mattr_accessor :patch_paths, default: []
|
11
|
-
mattr_accessor :patches, default: Hash.new
|
12
|
+
mattr_accessor :patches, default: Hash.new { [] }
|
12
13
|
mattr_accessor :aliases, default: {}
|
13
14
|
|
14
15
|
def self.included(engine)
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
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.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Martin Meyerhoff
|
8
|
-
autorequire:
|
9
8
|
bindir: exe
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: railties
|
@@ -53,7 +52,6 @@ metadata:
|
|
53
52
|
homepage_uri: https://github.com/friendlycart/flickwerk
|
54
53
|
source_code_uri: https://github.com/friendlycart/flickwerk
|
55
54
|
changelog_uri: https://github.com/friendlycart/flickwerk/blob/main/CHANGELOG.md
|
56
|
-
post_install_message:
|
57
55
|
rdoc_options: []
|
58
56
|
require_paths:
|
59
57
|
- lib
|
@@ -68,8 +66,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
68
66
|
- !ruby/object:Gem::Version
|
69
67
|
version: '0'
|
70
68
|
requirements: []
|
71
|
-
rubygems_version: 3.
|
72
|
-
signing_key:
|
69
|
+
rubygems_version: 3.6.7
|
73
70
|
specification_version: 4
|
74
71
|
summary: Support for lazy loading patches in Rails engines
|
75
72
|
test_files: []
|