shim 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/shim/version.rb +1 -1
  2. data/lib/shim.rb +8 -10
  3. metadata +1 -1
data/lib/shim/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Shim
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
data/lib/shim.rb CHANGED
@@ -1,17 +1,15 @@
1
1
  require "shim/version"
2
2
 
3
3
  module Shim
4
- class << self
5
- attr_accessor :layout, :content_path
6
- @layout = "application"
7
- @content_path = "shim/"
4
+ mattr_accessor :layout, :content_path
5
+ @@content_path = "shim/"
6
+ @@layout = "application"
8
7
 
9
- def config(&block)
10
- if block.arity == 1
11
- self[&block]
12
- else
13
- instance_eval &block
14
- end
8
+ def config(&block)
9
+ if block.arity == 1
10
+ self[&block]
11
+ else
12
+ instance_eval &block
15
13
  end
16
14
  end
17
15
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shim
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: