roda-component 0.1.70 → 0.1.71
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 +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b6fb9a39108018748f98ad1a2959a9032227e67e
|
|
4
|
+
data.tar.gz: ff6fa473302db00691a09a685f3dfc0d59e1111e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bca040b8972bb59f40d5d457285137245bd457c442f0a42cfba9410148e9125c65a43fe8036858d33e9017eb14d37bdaf721b2b2e0d578f234e59074852d6756
|
|
7
|
+
data.tar.gz: 8293fb0c9ed200a9a47c09e479b6ad3b72ef8e8ca69513571bb0c56c0a1eef01e61f3149648bcce28bde0d4276ba53d10f305a93a1a511a9c204a5754145e2f6
|
data/lib/roda/component.rb
CHANGED
|
@@ -330,7 +330,11 @@ class Roda
|
|
|
330
330
|
|
|
331
331
|
# set the current roda app
|
|
332
332
|
def set_app app
|
|
333
|
-
|
|
333
|
+
begin
|
|
334
|
+
@_app = app.respond_to?(:new) ? app.new : app
|
|
335
|
+
rescue
|
|
336
|
+
@_app = app.respond_to?(:new) ? app.new('') : app
|
|
337
|
+
end
|
|
334
338
|
end
|
|
335
339
|
|
|
336
340
|
# roda app method
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: roda-component
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.71
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- cj
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-04-
|
|
11
|
+
date: 2015-04-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: opal
|