shim 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/app/helpers/shim/pages_helper.rb +1 -1
- data/lib/shim.rb +5 -8
- data/lib/shim/configuration.rb +8 -0
- data/lib/shim/version.rb +1 -1
- metadata +2 -1
data/lib/shim.rb
CHANGED
@@ -1,16 +1,13 @@
|
|
1
1
|
require "shim/version"
|
2
|
+
require "shim/configuration"
|
2
3
|
|
3
4
|
module Shim
|
4
|
-
mattr_accessor :layout, :content_path
|
5
|
+
mattr_accessor :layout, :content_path, :configuration
|
5
6
|
@@content_path = "shim/"
|
6
7
|
@@layout = "application"
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
self[&block]
|
11
|
-
else
|
12
|
-
instance_eval &block
|
13
|
-
end
|
8
|
+
@@configuration = Shim::Configuration.configure do |config|
|
9
|
+
config.active_nav_class = "current-page"
|
10
|
+
config
|
14
11
|
end
|
15
12
|
|
16
13
|
require 'shim/engine'
|
data/lib/shim/version.rb
CHANGED
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.1.
|
4
|
+
version: 0.1.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -104,6 +104,7 @@ files:
|
|
104
104
|
- config/routes.rb
|
105
105
|
- lib/shim.rb
|
106
106
|
- lib/shim/cli.rb
|
107
|
+
- lib/shim/configuration.rb
|
107
108
|
- lib/shim/engine.rb
|
108
109
|
- lib/shim/version.rb
|
109
110
|
- lib/tasks/shim_tasks.rake
|