plutonium 0.15.2 → 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: f7af9842b0dca317dc9cb8ca805d2a73373660f99e897f36862e93d6c3fa637b
4
- data.tar.gz: 3daa392b9b27adc9e4d82fa760a38cf6a953c4be1394ad7cbaf2cad88012c1af
3
+ metadata.gz: efeff0c37b9324cda81466502842699a582497d5e1317c91f164b25874a32449
4
+ data.tar.gz: 6a96d30f12ebfd707bf82fb32d1603edcf800fe1182764e68da44ec48f39067c
5
5
  SHA512:
6
- metadata.gz: 020a6db84fe590b28095f4d2f2a60cc61b58a7d1cd4304bf944d464182439d0a4f3d4967c63846282ae8abbc05b5f016d1abae22516518c4ad73745308a359d8
7
- data.tar.gz: 5987f4b5ee94790630c3bc1051b804223837e0fe28713fa5944c66fe719d7c727361d7d411a133c5435d7198db667e586a873314bf189891045c4e33c1aaa458
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.2"
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,7 +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("dsl" => "DSL")
29
+ loader.inflector.inflect("workflow_dsl" => "WorkflowDSL")
30
30
  loader.enable_reloading if defined?(Rails.env) && Rails.env.development?
31
31
  loader.setup
32
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.2
4
+ version: 0.15.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Froelich