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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c76a876242c3b905316693f8d0f4593caa7e51f8e286c9fbb2c484e22da3f6a1
4
- data.tar.gz: 71c34429b7a4283913b86c852a66d007096aaaca36e789ee0202e07f686a00e6
3
+ metadata.gz: 661f23ca4451ee0385d659f70b7e53ae9d43e7d30d75928ce4c4b7e0feb6e309
4
+ data.tar.gz: f9cc43dc228fbc06cc53bc25595961030578bf5fb66503114a461be7629f4ab8
5
5
  SHA512:
6
- metadata.gz: 03e945cb3e35a5a18b9280da8d1dd3a880fccf8c547612e8ca5f0505e0965bb827a7a669582d5ad01bd8f1310bf498ac895d7f9ef240fe9bc1f3e2d1af449a2e
7
- data.tar.gz: '09aab39f13a026cc31f002fed5e04638fe693bcb8c3bc7ef58573d6b6243d30d224d401970b92480b0cd2ceb24ae5890165b4d6754732c1daec641a816dd559d'
6
+ metadata.gz: e763b428c839e7efa19a230150f6fcbd81a1e57bf9f51ff37b524b3f964210dbd7ad9938b4f67b4bc0de50242197208b37d2789ecead0b5cab189d58a764742c
7
+ data.tar.gz: 0b6ead14425a9261d4ffbd1677ba9da9ac62ef458d012af8404aa1bfadfb8db9869e7d3211084f1a4dabbef5855e3e4d0e8667d2b6cdea5b73a2b1b8d91dffc2
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -42,9 +42,13 @@ module HtmlCom
42
42
 
43
43
  attr_reader :tab, :active
44
44
 
45
- def initialize(headings: %w(tab1 tab2 tab3))
45
+ # current options for type:
46
+ # :tabs, :full_page_tabs
47
+
48
+ def initialize(type=:tabs, headings: %w(tab1 tab2 tab3))
46
49
 
47
- @build = JsMenuBuilder.new(:tabs, headings: headings)
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(:tabs, tabs: tabs, active: @active_tab)
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.0
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-12 00:00:00.000000000 Z
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.1.1
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.1.1
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