htmlcom 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/htmlcom.rb +7 -3
- metadata +10 -10
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 661f23ca4451ee0385d659f70b7e53ae9d43e7d30d75928ce4c4b7e0feb6e309
|
4
|
+
data.tar.gz: f9cc43dc228fbc06cc53bc25595961030578bf5fb66503114a461be7629f4ab8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e763b428c839e7efa19a230150f6fcbd81a1e57bf9f51ff37b524b3f964210dbd7ad9938b4f67b4bc0de50242197208b37d2789ecead0b5cab189d58a764742c
|
7
|
+
data.tar.gz: 0b6ead14425a9261d4ffbd1677ba9da9ac62ef458d012af8404aa1bfadfb8db9869e7d3211084f1a4dabbef5855e3e4d0e8667d2b6cdea5b73a2b1b8d91dffc2
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/htmlcom.rb
CHANGED
@@ -42,9 +42,13 @@ module HtmlCom
|
|
42
42
|
|
43
43
|
attr_reader :tab, :active
|
44
44
|
|
45
|
-
|
45
|
+
# current options for type:
|
46
|
+
# :tabs, :full_page_tabs
|
47
|
+
|
48
|
+
def initialize(type=:tabs, headings: %w(tab1 tab2 tab3))
|
46
49
|
|
47
|
-
@
|
50
|
+
@type = type
|
51
|
+
@build = JsMenuBuilder.new(type, headings: headings)
|
48
52
|
|
49
53
|
@tab = headings.map do |heading|
|
50
54
|
Tab.new heading, content: "<h3>#{heading}</h3>", callback: self
|
@@ -82,7 +86,7 @@ module HtmlCom
|
|
82
86
|
tab.title ? tab.to_a : nil
|
83
87
|
end.compact.to_h
|
84
88
|
|
85
|
-
@build = JsMenuBuilder.new(
|
89
|
+
@build = JsMenuBuilder.new(@type, tabs: tabs, active: @active_tab)
|
86
90
|
|
87
91
|
end
|
88
92
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: htmlcom
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -35,28 +35,28 @@ cert_chain:
|
|
35
35
|
WiRgzz3/21eCm7N/8s5UGa7uDJXDDxf/i/QsEUJn1VcorDbODN3DbcPYph26bgQm
|
36
36
|
vY6P53Z8DPcEft++oI9aZl1n
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date: 2019-07-
|
38
|
+
date: 2019-07-13 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: jsmenubuilder
|
42
42
|
requirement: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
|
-
- - "~>"
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
version: '0.1'
|
47
44
|
- - ">="
|
48
45
|
- !ruby/object:Gem::Version
|
49
|
-
version: 0.
|
46
|
+
version: 0.2.0
|
47
|
+
- - "~>"
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '0.2'
|
50
50
|
type: :runtime
|
51
51
|
prerelease: false
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
53
53
|
requirements:
|
54
|
-
- - "~>"
|
55
|
-
- !ruby/object:Gem::Version
|
56
|
-
version: '0.1'
|
57
54
|
- - ">="
|
58
55
|
- !ruby/object:Gem::Version
|
59
|
-
version: 0.
|
56
|
+
version: 0.2.0
|
57
|
+
- - "~>"
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: '0.2'
|
60
60
|
description:
|
61
61
|
email: james@jamesrobertson.eu
|
62
62
|
executables: []
|
metadata.gz.sig
CHANGED
Binary file
|