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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: 2f303aa79ef11bb30ff2289012d37c775e7ff786331240f2284455166f9aac30
4
- data.tar.gz: 4160d4d6bfb62fd333e694c03c455f2061dad62aa50f69b8ff6281f31ac4c60d
2
+ SHA1:
3
+ metadata.gz: 1136e56549d163e21801f88829f9d34a23e28a67
4
+ data.tar.gz: 907aeedb40fa563edb791d2a9cc61ea764c0e5c6
5
5
  SHA512:
6
- metadata.gz: ae6a8105f95911bc57cc108494b879314a5af1c310e72201db8b2f351278b7f6e71e4e6a8fc33350876cfa8998358fa0bd2dfb59e7cfe75ba90f69c16e7236c6
7
- data.tar.gz: 7ce31bcbacefd42b138ec5767fbb63c1cafb628a8ff4ed1153d9d44b8a16e6b37d95f2c659bc17cbb45e4b399c0b33caf32d6bf241db5e7107a0951eb571de03
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
- else
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
- type = 'full_page_tabs' if type == 'fullpage'
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.1
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-14 00:00:00.000000000 Z
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
- rubygems_version: 3.0.1
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