weaver 0.5.2 → 0.5.3
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 +4 -4
- data/lib/weaver/version.rb +1 -1
- data/lib/weaver.rb +6 -7
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3a74138768d74895a436e2101fab2e145f966fde
|
|
4
|
+
data.tar.gz: 5a45ca01dd09d2a46f4c45c6393c308e90f66d06
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 536af8edfb5ea4480c6c99eb1f3074db1e06f3a0d319eecfd975ece11491c16cb641cb66373b2736aefb76364b909a9af768c563819eb7b45e522b511605628f
|
|
7
|
+
data.tar.gz: a2862f358ac7db179682bbd76d4fc7e696bc7b3e1cd8743a266bb836e6e8c5cb94e483b7d568f3d93e9e403909e790d42fc03ff75cd952265b71765c16915f7f
|
data/lib/weaver/version.rb
CHANGED
data/lib/weaver.rb
CHANGED
|
@@ -224,8 +224,7 @@ module Weaver
|
|
|
224
224
|
end
|
|
225
225
|
end
|
|
226
226
|
|
|
227
|
-
|
|
228
|
-
def link(url, title=nil, &block)
|
|
227
|
+
def hyperlink(url, title=nil, &block)
|
|
229
228
|
if !title
|
|
230
229
|
title = url
|
|
231
230
|
end
|
|
@@ -2140,7 +2139,7 @@ $( document ).ready(function() {
|
|
|
2140
2139
|
li item[:options] do
|
|
2141
2140
|
if item.has_key? :menu
|
|
2142
2141
|
|
|
2143
|
-
|
|
2142
|
+
hyperlink "/#" do
|
|
2144
2143
|
icon item[:icon]
|
|
2145
2144
|
span :class => "nav-label" do
|
|
2146
2145
|
text item[:name]
|
|
@@ -2158,7 +2157,7 @@ $( document ).ready(function() {
|
|
|
2158
2157
|
if inneritem.has_key?(:menu)
|
|
2159
2158
|
raise "Second level menu not supported"
|
|
2160
2159
|
else
|
|
2161
|
-
|
|
2160
|
+
hyperlink "#{inneritem[:link]}" do
|
|
2162
2161
|
icon inneritem[:icon]
|
|
2163
2162
|
span :class => "nav-label" do
|
|
2164
2163
|
text inneritem[:name]
|
|
@@ -2169,7 +2168,7 @@ $( document ).ready(function() {
|
|
|
2169
2168
|
end
|
|
2170
2169
|
end
|
|
2171
2170
|
elsif
|
|
2172
|
-
|
|
2171
|
+
hyperlink "#{item[:link]}" do
|
|
2173
2172
|
icon item[:icon]
|
|
2174
2173
|
span :class => "nav-label" do
|
|
2175
2174
|
text item[:name]
|
|
@@ -2274,14 +2273,14 @@ $( document ).ready(function() {
|
|
|
2274
2273
|
if inneritem.has_key?(:menu)
|
|
2275
2274
|
raise "Second level menu not supported"
|
|
2276
2275
|
else
|
|
2277
|
-
|
|
2276
|
+
hyperlink inneritem[:link], inneritem[:name]
|
|
2278
2277
|
end
|
|
2279
2278
|
end
|
|
2280
2279
|
end
|
|
2281
2280
|
end
|
|
2282
2281
|
end
|
|
2283
2282
|
elsif
|
|
2284
|
-
|
|
2283
|
+
hyperlink "#{item[:link]}" do
|
|
2285
2284
|
span :class => "nav-label" do
|
|
2286
2285
|
icon item[:icon]
|
|
2287
2286
|
text item[:name]
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: weaver
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- David Siaw
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-11-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|