wedge 0.1.31 → 0.1.32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/roda/plugins/wedge.rb +7 -0
- data/lib/wedge/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: 9c79ef56cdffd2349f724543164dd0bd80725d21
|
4
|
+
data.tar.gz: b24c1b331871b3df761de88e9aa6f6decd31d77b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7d9c353d59c39c2676173e48b5095df45d21341cdb2c7807e9852385b09fded924aa2fa0f202a8e74abc9b642d6a1a75496ed516f3f80675e86353b2b6f66f9
|
7
|
+
data.tar.gz: 0044b20e03b825448f446ea9d7439c60fabb8d0c32aa4b1d8c37309f34f385d59c7a33fd4d812add963c7902430accbdd1c24bc9c8a01bdfcf2f55b761a68368
|
data/lib/roda/plugins/wedge.rb
CHANGED
@@ -2,6 +2,13 @@ class Roda
|
|
2
2
|
module RodaPlugins
|
3
3
|
class WedgePlugin
|
4
4
|
def self.configure(app, opts = false, &block)
|
5
|
+
case opts || block
|
6
|
+
when Proc
|
7
|
+
Wedge.config.instance_eval &opts
|
8
|
+
else
|
9
|
+
opts.each { |k, v| Wedge.config.send "#{k}=", v }
|
10
|
+
end
|
11
|
+
|
5
12
|
app.use Wedge::Middleware, opts || block
|
6
13
|
end
|
7
14
|
|
data/lib/wedge/version.rb
CHANGED