lesli_system 1.0.5 → 1.0.6
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 +4 -4
- data/lib/lesli_system/engines.rb +3 -13
- data/lib/lesli_system/version.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3bae37158c58bc6627ed40053335a0a734aa13bc8202317a02cc24412cded3e1
|
|
4
|
+
data.tar.gz: 11f9dc18208c5e64dcb9f1ad35120b5f722ed796ba27c2a9ec12db6d98d98d91
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d8231e4d9c3cd8d1e890d30c74d25cfbcfec394ea3c4d86d4d5ca50fac965019423c5dfc3c3c287696f34caa61c2352fd255a4df7a7b71ced1e82f7e4b1f49fe
|
|
7
|
+
data.tar.gz: 9d19a1f9dce3242860ad4450bf200d33eece668c63af750b3517f66ee2e4820e0164b66e5eeecaa58b67e1370eb7197e342444085f856415fff857e857a2c514
|
data/lib/lesli_system/engines.rb
CHANGED
|
@@ -22,10 +22,10 @@ module LesliSystem
|
|
|
22
22
|
return ENGINES[engine]
|
|
23
23
|
end
|
|
24
24
|
|
|
25
|
-
def self.engines
|
|
25
|
+
def self.engines
|
|
26
26
|
return ENGINES unless ENGINES.empty?
|
|
27
27
|
|
|
28
|
-
engines_and_gems(:engine, LESLI_ENGINES
|
|
28
|
+
engines_and_gems(:engine, LESLI_ENGINES)
|
|
29
29
|
|
|
30
30
|
ENGINES["Root"] = {
|
|
31
31
|
:code => "root",
|
|
@@ -52,7 +52,7 @@ module LesliSystem
|
|
|
52
52
|
|
|
53
53
|
# Lesli::System.engines()
|
|
54
54
|
# Lesli::System.engines(:local => true)
|
|
55
|
-
def self.engines_and_gems engine_or_gem, lesli_gems
|
|
55
|
+
def self.engines_and_gems engine_or_gem, lesli_gems
|
|
56
56
|
|
|
57
57
|
# due we do not know the engine mounted path we have to look up for it every
|
|
58
58
|
# time we load the html view so we can use the dynamic route from the main rails app
|
|
@@ -65,16 +65,6 @@ module LesliSystem
|
|
|
65
65
|
# convert engine name to Ruby object
|
|
66
66
|
gem_instance = "#{lesli_gem}".constantize
|
|
67
67
|
|
|
68
|
-
# check if engines installed locally are required
|
|
69
|
-
if local
|
|
70
|
-
|
|
71
|
-
# build the path were engines should be installed
|
|
72
|
-
gem_local_path = Rails.root.join("engines", lesli_gem)
|
|
73
|
-
|
|
74
|
-
# do not include engines if not is locally installed
|
|
75
|
-
next unless File.exist?(gem_local_path)
|
|
76
|
-
end
|
|
77
|
-
|
|
78
68
|
gem_specification = Gem::Specification.find_by_name(lesli_gem.underscore)
|
|
79
69
|
|
|
80
70
|
path = (engine_or_gem == :engine) ? gem_instance::Engine.routes.find_script_name({}) : nil
|
data/lib/lesli_system/version.rb
CHANGED