mushin 0.36.0 → 0.38.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 497e4a6188e7a2203070ee18a00e035f2587d280
4
- data.tar.gz: 1f875f3b4b187a72ae09e7b3dd8dda6b244de2dc
3
+ metadata.gz: 573eda23321efec6f16f6fcbe5a3909c2a200760
4
+ data.tar.gz: f65d54ee36ec939da1998e82e308a8f6d534ce99
5
5
  SHA512:
6
- metadata.gz: 3c7f3856d5f517d15fa7eb4e9e26a8b6d5592f393aacd615e16eb498f0634b6da173c1627ce8701ed2e3f330497407762d4a1f453b9b5094b1bab47b4cf4572d
7
- data.tar.gz: 8cb2d2a0cc0b7cf0ed3d62ddc656384879b5c15fa9acac40db0989c0403aab59fc64c451df5afce0417cd95de6b8ad88c407f5c06a14929078efd39e8189f59d
6
+ metadata.gz: 809bd85a5ed9df1d7832bdb4ebeefb1111c40c9618f57f9ca078ef32c9d73d31d136bdd2286eefb882c67adbb684304e85041ca5507a8c7bb411fcdb42d09f71
7
+ data.tar.gz: 6933c29e08c135609e0874793ad42884ef00feca96df8f8639ba899e412be4fa8fb0d79b64fa9e5c867fcd3ac67fd05189ab6536b931e44314112f3733ae4b42
data/exe/generator.rb CHANGED
@@ -42,7 +42,9 @@ module Mushin
42
42
  end
43
43
 
44
44
  @content = <<-FOO
45
- class Main < Mushin::Ext
45
+ class Main
46
+ using Mushin::Ext
47
+
46
48
  def initialize app=nil, opts={}, params={}
47
49
  @app = app
48
50
  @opts = opts
data/lib/mushin/ext.rb CHANGED
@@ -1,10 +1,12 @@
1
1
  module Mushin
2
- class Ext
3
- def initialize app
4
- raise NotImplementedError, "Mushin Extenstions implement :initialize that takes an app"
5
- end
6
- def call env
7
- raise NotImplementedError, "Mushin Extenstions implement :call that takes an env"
8
- end
2
+ module Ext
3
+ refine Class do
4
+ def initialize app
5
+ raise NotImplementedError, "Mushin Extenstions implement :initialize that takes an app"
6
+ end
7
+ def call env
8
+ raise NotImplementedError, "Mushin Extenstions implement :call that takes an env"
9
+ end
10
+ end
9
11
  end
10
12
  end
@@ -1,3 +1,3 @@
1
1
  module Mushin
2
- VERSION = "0.36.0"
2
+ VERSION = "0.38.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mushin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.36.0
4
+ version: 0.38.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - zotherstupidguy