plutonium 0.15.9 → 0.15.11
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 02f41dc7dbc1acba39129993dfb099f4239793bc554fc1394808994d26cafa3b
|
|
4
|
+
data.tar.gz: 76a3998821276f287638849e0db4333a28b693531e491b438f84da0462c8347a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d3a2fe33ca3ea7af06ead8067a0b806282f9103947bf85faa67bd7a6df069bbfce9e49d00c66faae7796e4aa4eecb9619d484c6322ab439d49f330991c60787d
|
|
7
|
+
data.tar.gz: c089b043c6b74bc0fa1e889bd87d7fecfb3636625b26470df0a262467764f75ecb40a33ad3c1487976c58df0e9666ba38742c3ecb21f3bf3dfdeb693e55c1e0d
|
data/docs/.vitepress/config.ts
CHANGED
|
@@ -17,7 +17,8 @@ export default defineConfig(withMermaid({
|
|
|
17
17
|
},
|
|
18
18
|
nav: [
|
|
19
19
|
{ text: "Home", link: "/" },
|
|
20
|
-
{ text: "Guide", link: "/guide/getting-started" }
|
|
20
|
+
{ text: "Guide", link: "/guide/getting-started" },
|
|
21
|
+
{ text: "Demo", link: "https://plutonium-app.onrender.com/" }
|
|
21
22
|
],
|
|
22
23
|
sidebar: {
|
|
23
24
|
'/guide/': [
|
|
@@ -21,9 +21,9 @@ module Plutonium
|
|
|
21
21
|
def inherited(subclass)
|
|
22
22
|
super
|
|
23
23
|
|
|
24
|
-
subclass.include Plutonium::Lib::SmartCache
|
|
25
|
-
subclass.memoize_unless_reloading :current_package
|
|
26
|
-
subclass.memoize_unless_reloading :current_engine
|
|
24
|
+
# subclass.include Plutonium::Lib::SmartCache
|
|
25
|
+
# subclass.memoize_unless_reloading :current_package
|
|
26
|
+
# subclass.memoize_unless_reloading :current_engine
|
|
27
27
|
subclass.boot
|
|
28
28
|
end
|
|
29
29
|
|
|
@@ -23,7 +23,7 @@ module Plutonium
|
|
|
23
23
|
end
|
|
24
24
|
|
|
25
25
|
class_methods do
|
|
26
|
-
include Plutonium::Lib::SmartCache
|
|
26
|
+
# include Plutonium::Lib::SmartCache
|
|
27
27
|
|
|
28
28
|
# Sets the resource class for the controller
|
|
29
29
|
# @param [ActiveRecord::Base] resource_class The resource class
|
|
@@ -40,7 +40,7 @@ module Plutonium
|
|
|
40
40
|
rescue NameError
|
|
41
41
|
raise NameError, "Failed to determine the resource class. Please call `controller_for(MyResource)` in #{name}."
|
|
42
42
|
end
|
|
43
|
-
memoize_unless_reloading :resource_class
|
|
43
|
+
# memoize_unless_reloading :resource_class
|
|
44
44
|
end
|
|
45
45
|
|
|
46
46
|
private
|
|
@@ -4,7 +4,7 @@ module Plutonium
|
|
|
4
4
|
module Resource
|
|
5
5
|
# Resource register manages the registration and lookup of resources.
|
|
6
6
|
class Register
|
|
7
|
-
include Plutonium::Lib::SmartCache
|
|
7
|
+
# include Plutonium::Lib::SmartCache
|
|
8
8
|
|
|
9
9
|
# Custom error class for frozen register operations
|
|
10
10
|
class FrozenRegisterError < StandardError; end
|
|
@@ -35,7 +35,7 @@ module Plutonium
|
|
|
35
35
|
freeze
|
|
36
36
|
@resources.map(&:constantize)
|
|
37
37
|
end
|
|
38
|
-
memoize_unless_reloading :resources
|
|
38
|
+
# memoize_unless_reloading :resources
|
|
39
39
|
|
|
40
40
|
# Returns a hash mapping route keys to their corresponding resource classes.
|
|
41
41
|
# This method will freeze the register if it hasn't been frozen already.
|
|
@@ -47,7 +47,7 @@ module Plutonium
|
|
|
47
47
|
[resource.model_name.singular_route_key.to_sym, resource]
|
|
48
48
|
end
|
|
49
49
|
end
|
|
50
|
-
memoize_unless_reloading :route_key_lookup
|
|
50
|
+
# memoize_unless_reloading :route_key_lookup
|
|
51
51
|
|
|
52
52
|
# Clears all registered resources and invalidates the cache.
|
|
53
53
|
#
|
|
@@ -78,7 +78,7 @@ module Plutonium
|
|
|
78
78
|
#
|
|
79
79
|
# @return [void]
|
|
80
80
|
def invalidate_cache
|
|
81
|
-
flush_smart_cache
|
|
81
|
+
# flush_smart_cache
|
|
82
82
|
end
|
|
83
83
|
end
|
|
84
84
|
end
|
data/lib/plutonium/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: plutonium
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.15.
|
|
4
|
+
version: 0.15.11
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Stefan Froelich
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-11-
|
|
11
|
+
date: 2024-11-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: zeitwerk
|