roda-component 0.1.39 → 0.1.40
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/roda/component.rb +5 -1
- data/lib/roda/component/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2a05e69fe508a7b44993e39f9b4f53064012fe64
|
|
4
|
+
data.tar.gz: e0fbce838aa675ca5771a36f7df6f2f182beb2b7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d6ea6bac8aa57c0725ed5ffae60f7d3786c6a2145a7d2630d34cf09c5fcf927e0e4d84604f5b01df6271835f05ac0771c331f45dd0d3651b07330bb4d81b8800
|
|
7
|
+
data.tar.gz: 4c69dda09a238b08ca58edeb20750c2b36619de47ea9405162ade2494d84038467a986725813f34d5b0d55ae4950f0f37452bf90f36ab13d369e9a8c6c73c3c7
|
data/lib/roda/component.rb
CHANGED
|
@@ -87,6 +87,7 @@ end
|
|
|
87
87
|
class Roda
|
|
88
88
|
class Component
|
|
89
89
|
def initialize(data = false)
|
|
90
|
+
self
|
|
90
91
|
end
|
|
91
92
|
|
|
92
93
|
def _initialize(scope = false)
|
|
@@ -116,6 +117,8 @@ class Roda
|
|
|
116
117
|
$faye.online = false
|
|
117
118
|
trigger :disconnect
|
|
118
119
|
end
|
|
120
|
+
|
|
121
|
+
self
|
|
119
122
|
end
|
|
120
123
|
|
|
121
124
|
end
|
|
@@ -421,7 +424,8 @@ class Roda
|
|
|
421
424
|
end
|
|
422
425
|
|
|
423
426
|
def load_component name, options = {}
|
|
424
|
-
component_opts[:class_name][name].split('::').inject(Object) {|o,c| o.const_get(c)}.new self, options
|
|
427
|
+
# component_opts[:comp][name] ||= component_opts[:class_name][name].split('::').inject(Object) {|o,c| o.const_get(c)}.new self, options
|
|
428
|
+
component_opts[:comp][name]
|
|
425
429
|
end
|
|
426
430
|
|
|
427
431
|
def render_fields data, options = {}
|