plutonium 0.15.9 → 0.15.10
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '09172a90865acf0fb8b929464cd3314470ad63ec7bc9dbfd2a5e132f1147ed3a'
|
4
|
+
data.tar.gz: a652d15c85664a3ad4ae371988b19cc8a3a3846500d53e1b8ebe21ca0e82c77b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b04ba22b0c86f7de0e2319f9a984e3d9adc4d35b15f2bfaa227b6525a1e1912627badfa09bbb4c6726d2adc7fae29c6287912056bc5844d5a28ce273e0a07a0d
|
7
|
+
data.tar.gz: 85d376dfe9514b215bfad51a7bf848a543bd37f6afb4af971b2c9da4d69ea8a4075dfec62dafad39f571b03e782348dd90287bb82d5389b6781ddc13509d8d4b
|
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
|
#
|
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.10
|
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
|