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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eaab906065ecdbf4b12963290822dc369ca386b6
4
- data.tar.gz: 534f51cb22faaebeaccc83f7bee24e36964c547d
3
+ metadata.gz: 9c79ef56cdffd2349f724543164dd0bd80725d21
4
+ data.tar.gz: b24c1b331871b3df761de88e9aa6f6decd31d77b
5
5
  SHA512:
6
- metadata.gz: 7c13e2d97df6646b961b4a1855ddcd8101e4b63ad176e90303a31fee260379815586a39eaaeb739bc72993f85148b4d263bec99fefe1f9628b80b812be5c9359
7
- data.tar.gz: b347d51597cd0d916d236628ff7116a15139efe6a58a3e680c9794b13d9c28da93011d3ba973be4085c7abb4a0f2f6360028f779b5ad56b06b73db1922123968
6
+ metadata.gz: f7d9c353d59c39c2676173e48b5095df45d21341cdb2c7807e9852385b09fded924aa2fa0f202a8e74abc9b642d6a1a75496ed516f3f80675e86353b2b6f66f9
7
+ data.tar.gz: 0044b20e03b825448f446ea9d7439c60fabb8d0c32aa4b1d8c37309f34f385d59c7a33fd4d812add963c7902430accbdd1c24bc9c8a01bdfcf2f55b761a68368
@@ -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
@@ -1,3 +1,3 @@
1
1
  class Wedge
2
- VERSION = '0.1.31'
2
+ VERSION = '0.1.32'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wedge
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.31
4
+ version: 0.1.32
5
5
  platform: ruby
6
6
  authors:
7
7
  - cj