jsmenubuilder 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- checksums.yaml.gz.sig +0 -0
- data/lib/jsmenubuilder.rb +8 -2
- data.tar.gz.sig +0 -0
- metadata +4 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 1136e56549d163e21801f88829f9d34a23e28a67
|
4
|
+
data.tar.gz: 907aeedb40fa563edb791d2a9cc61ea764c0e5c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd5cb9f39bffb04ae4ddcefae41d037ed1800fd3a081dd7ceee16722fdd236fede12a6aadc9dd6c39c237f8863a4dc7a27a57864765333929b526ed222995a24
|
7
|
+
data.tar.gz: dd94a3a4ecfa836422f37e0b2e4d4bcd9bee03978362f775cc2498325aa5534cd53841717a1425b7259a8b71ceddf5f7eefa8efb7988afd49adebcc59360b33a
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/jsmenubuilder.rb
CHANGED
@@ -144,7 +144,7 @@ EOF
|
|
144
144
|
|
145
145
|
if unknown.is_a? String then
|
146
146
|
type = unknown
|
147
|
-
|
147
|
+
elsif unknown.is_a? Hash
|
148
148
|
options = unknown
|
149
149
|
end
|
150
150
|
|
@@ -161,7 +161,12 @@ EOF
|
|
161
161
|
puts 'inside import'.info if @debug
|
162
162
|
doc = Rexle.new(xml)
|
163
163
|
type = doc.root.attributes[:mode]
|
164
|
-
|
164
|
+
|
165
|
+
type = if type == 'fullpage' then
|
166
|
+
'full_page_tabs'
|
167
|
+
elsif type.nil?
|
168
|
+
doc.root.name unless type
|
169
|
+
end
|
165
170
|
|
166
171
|
tabs = doc.root.xpath('tab').inject({}) do |r, tab|
|
167
172
|
r.merge(tab.attributes[:title] => tab.children.join.strip)
|
@@ -178,6 +183,7 @@ EOF
|
|
178
183
|
|
179
184
|
h = { active: default_tab, tabs: tabs}
|
180
185
|
build(type, h)
|
186
|
+
self
|
181
187
|
|
182
188
|
end
|
183
189
|
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jsmenubuilder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
35
35
|
haYJPATx3zs+9jtQoiFg+keM0CPYk/5LgCv9jxxzQcSS20C8O9MWRVvYfIr47ak7
|
36
36
|
yXrDPmRvbJLTNjDv6Tkg3vU6
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date: 2019-07-
|
38
|
+
date: 2019-07-16 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: rexle
|
@@ -83,7 +83,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
83
83
|
- !ruby/object:Gem::Version
|
84
84
|
version: '0'
|
85
85
|
requirements: []
|
86
|
-
|
86
|
+
rubyforge_project:
|
87
|
+
rubygems_version: 2.5.2.1
|
87
88
|
signing_key:
|
88
89
|
specification_version: 4
|
89
90
|
summary: Generates HTML based tabs using HTML, CSS, and JavaScript.
|
metadata.gz.sig
CHANGED
Binary file
|