plutonium 0.15.1 → 0.15.3

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: 307fb5dad4c2e8939eeb21880f8c17875addd10250bbdb0e41657ec7318aacb6
4
- data.tar.gz: 9de4a57e5a7f35f4819c832fef7d0d8370b0ec2ff1f8b546e562c7d330e405c1
3
+ metadata.gz: efeff0c37b9324cda81466502842699a582497d5e1317c91f164b25874a32449
4
+ data.tar.gz: 6a96d30f12ebfd707bf82fb32d1603edcf800fe1182764e68da44ec48f39067c
5
5
  SHA512:
6
- metadata.gz: '0391c0561b9d75ab2793f60e80b7084e705c3f4766b83d47c18944c2fd9fe0b0615bbb920e321e2147ac166359ad8038a951d8ddbd2637373bc2ac5ee74bb699'
7
- data.tar.gz: cd3a020f588252e9517281887c332fec3b491c12802946d7d3f19f597659a6ca6f77a823aaf016c7a0aeb0bc0df3cd430e73e30cfc7ffa28c3cfc1a522219fdc
6
+ metadata.gz: ec41dc9bd147b822dcc2073b716226d335b2b66d3f8804fce6d51b5be0ff6b23f0beeed1c9bd57c9f630f5590b2d27f2563de463e2b7ea2fbf48d6889c7c21a2
7
+ data.tar.gz: 1cc88ca30635864a7a3d522811046382229b2ad1078b48bc31c500094b92e01b18dc4be5f86ba4d2c52f4f548bcdf55d65b34e54e7306852b86e9586cb954b0c
@@ -18,11 +18,12 @@ module Plutonium
18
18
  end
19
19
 
20
20
  class_methods do
21
- include Plutonium::Lib::SmartCache
22
-
23
21
  def inherited(subclass)
24
22
  super
25
23
 
24
+ subclass.include Plutonium::Lib::SmartCache
25
+ subclass.memoize_unless_reloading :current_package
26
+ subclass.memoize_unless_reloading :current_engine
26
27
  subclass.boot
27
28
  end
28
29
 
@@ -42,13 +43,11 @@ module Plutonium
42
43
  def current_package
43
44
  (current_engine == Rails.application.class) ? nil : current_engine.module_parent
44
45
  end
45
- memoize_unless_reloading :current_package
46
46
 
47
47
  def current_engine
48
48
  potential_package = module_parents[-2]
49
49
  potential_package.nil? ? Rails.application.class : ("#{potential_package}::Engine".safe_constantize || Rails.application.class)
50
50
  end
51
- memoize_unless_reloading :current_engine
52
51
  end
53
52
  end
54
53
  end
@@ -1,5 +1,5 @@
1
1
  module Plutonium
2
- VERSION = "0.15.1"
2
+ VERSION = "0.15.3"
3
3
  NEXT_MAJOR_VERSION = VERSION.split(".").tap { |v|
4
4
  v[1] = v[1].to_i + 1
5
5
  v[2] = 0
data/lib/plutonium.rb CHANGED
@@ -26,6 +26,7 @@ module Plutonium
26
26
  loader.ignore("#{__dir__}/generators")
27
27
  loader.ignore("#{__dir__}/plutonium/railtie.rb")
28
28
  loader.inflector.inflect("ui" => "UI")
29
+ loader.inflector.inflect("workflow_dsl" => "WorkflowDSL")
29
30
  loader.enable_reloading if defined?(Rails.env) && Rails.env.development?
30
31
  loader.setup
31
32
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plutonium
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.1
4
+ version: 0.15.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Froelich