plutonium 0.15.9 → 0.15.11

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: 3b2141de8e221952e48ec05c98fdd3daf1491f5acbf52ea7426a200426a2cdb5
4
- data.tar.gz: c42d5d1c89bff5c1141b2dc053e552d03800be87515354b3793b261c0321b068
3
+ metadata.gz: 02f41dc7dbc1acba39129993dfb099f4239793bc554fc1394808994d26cafa3b
4
+ data.tar.gz: 76a3998821276f287638849e0db4333a28b693531e491b438f84da0462c8347a
5
5
  SHA512:
6
- metadata.gz: 4738b043d687cfe05a908749b9db742d7334d874add0ff51c26da8fc2dcf675aebe8333fe2a58d47dcda312e52c4a463a61d6a3f2fdf64b2a26b3a5a7da21d8f
7
- data.tar.gz: 43b7d66a30196c427f93c595568ae51ce6d2f8cad581d12f0e0d5a83398f68bf372c82d0346bc3cca9c4fce0020f9db3d180e77afff129c14055b17ab2900713
6
+ metadata.gz: d3a2fe33ca3ea7af06ead8067a0b806282f9103947bf85faa67bd7a6df069bbfce9e49d00c66faae7796e4aa4eecb9619d484c6322ab439d49f330991c60787d
7
+ data.tar.gz: c089b043c6b74bc0fa1e889bd87d7fecfb3636625b26470df0a262467764f75ecb40a33ad3c1487976c58df0e9666ba38742c3ecb21f3bf3dfdeb693e55c1e0d
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Plutonium
2
- VERSION = "0.15.9"
2
+ VERSION = "0.15.11"
3
3
  NEXT_MAJOR_VERSION = VERSION.split(".").tap { |v|
4
4
  v[1] = v[1].to_i + 1
5
5
  v[2] = 0
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.9
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-08 00:00:00.000000000 Z
11
+ date: 2024-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: zeitwerk