html_skeleton 0.5.6 → 0.5.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b51e674d0b2f06dd01fad882c8f7c428a0b4b43051338bf4c53776bc28d49e68
4
- data.tar.gz: c486881cc2293281a495b09c2fb6902579c182b756d6c70e355f4d7331558b5d
3
+ metadata.gz: e6f6d5b648b4dc9703c470281b79d7392a003f8139b3386420c96aa7db9995b4
4
+ data.tar.gz: b69c9716290e8a146c9f6308133d02a124762272841b96f8961f361a39105810
5
5
  SHA512:
6
- metadata.gz: a85077f0d9d9458f6a1802b0ea090c6ec05748ed8d65b8b2ea44cdfff7f7a0643266fe442b5b8a3de06c9e814e241dbe1a714804b574ae15e39814d047fec30e
7
- data.tar.gz: 1061c2d580b80308e6b5ce3e429b491a8c1ce1459c956eb509919f4945b70a2a76aba60cfaa15382468e426cd543a822df89f3ae1727f922b20d480044d888f1
6
+ metadata.gz: 00a28789dad9d0537e04db5fda65e84a01257898e021800681da4757cd7c4c190311c53f8efadf05bccd2291e5c5e9a2b9e4c3417a94110b024f1aecbd0a8db8
7
+ data.tar.gz: '08cfcb66c481cd060e76b20453d3fa07edbbf0a16534c3c4a8362859c3376a3aac77f534b5953f0eab6b8f463b156add7c25bc13a71fba261c31d501c90e2457'
data/MIT-LICENSE CHANGED
@@ -1,6 +1,4 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2012-2023 Dittmar Krall (www.matiq.com)
1
+ Copyright (c) 2012-2025 Dittmar Krall (www.matiq.com)
4
2
 
5
3
  Permission is hereby granted, free of charge, to any person obtaining
6
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -1,7 +1,10 @@
1
1
  # HtmlSkeleton
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/html_skeleton.png)](http://badge.fury.io/rb/html_skeleton)
4
- [![GEM Downloads](https://img.shields.io/gem/dt/html_skeleton?color=168AFE&logo=ruby&logoColor=FE1616)](https://rubygems.org/gems/html_skeleton)
3
+ [![Gem Version](https://img.shields.io/gem/v/html_skeleton?color=168AFE&logo=rubygems&logoColor=FE1616)](https://rubygems.org/gems/html_skeleton)
4
+ [![Downloads](https://img.shields.io/gem/dt/html_skeleton?color=168AFE&logo=rubygems&logoColor=FE1616)](https://rubygems.org/gems/html_skeleton)
5
+ [![GitHub Build](https://img.shields.io/github/actions/workflow/status/matique/html_skeleton/rake.yml?logo=github)](https://github.com/matique/html_skeleton/actions/workflows/rake.yml)
6
+ [![Ruby Style Guide](https://img.shields.io/badge/code_style-standard-168AFE.svg)](https://github.com/standardrb/standard)
7
+ [![MIT License](https://img.shields.io/badge/license-MIT-168AFE.svg)](http://choosealicense.com/licenses/mit/)
5
8
 
6
9
  HtmlSkeleton provides the frame for a calendar or a table,
7
10
  i.e. no loops are required to build up the HTML structure.
@@ -119,5 +122,5 @@ cell_proc: block || ->(row, col) { "<td>#{row} #{col}</td>"}
119
122
 
120
123
  ## Miscellaneous
121
124
 
122
- Copyright (c) 2012-2023 Dittmar Krall (www.matiq.com),
125
+ Copyright (c) 2012-2025 Dittmar Krall (www.matiq.com),
123
126
  released under the [MIT license](https://opensource.org/licenses/MIT).
data/lib/html_skeleton.rb CHANGED
@@ -7,16 +7,16 @@ require "html_skeleton_table"
7
7
  class HtmlSkeleton
8
8
  attr_reader :options
9
9
 
10
- def calendar(options = {}, &block)
11
- set_calendar_options(options, &block)
10
+ def calendar(options = {}, &)
11
+ set_calendar_options(options, &)
12
12
  month = @options[:month]
13
13
  frame = month ? "div" : "table"
14
14
  body = month ? a_month(@options[:year], month) : a_year(@options[:year])
15
15
  %(<#{frame} class="#{@options[:calendar_class]}"> #{body} </#{frame}>)
16
16
  end
17
17
 
18
- def table(rows, cols, options = {}, &block)
19
- set_table_options(options, &block)
18
+ def table(rows, cols, options = {}, &)
19
+ set_table_options(options, &)
20
20
  <<~TABLE
21
21
  <table class="#{@options[:table_class]}">
22
22
  #{table_header(cols)}
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: html_skeleton
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.6
4
+ version: 0.5.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dittmar Krall
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2023-12-11 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: minitest
@@ -45,23 +44,21 @@ homepage: https://github.com/matique/html_skeleton
45
44
  licenses:
46
45
  - MIT
47
46
  metadata: {}
48
- post_install_message:
49
47
  rdoc_options: []
50
48
  require_paths:
51
49
  - lib
52
50
  required_ruby_version: !ruby/object:Gem::Requirement
53
51
  requirements:
54
- - - ">="
52
+ - - "~>"
55
53
  - !ruby/object:Gem::Version
56
- version: '0'
54
+ version: '3'
57
55
  required_rubygems_version: !ruby/object:Gem::Requirement
58
56
  requirements:
59
57
  - - ">="
60
58
  - !ruby/object:Gem::Version
61
59
  version: '0'
62
60
  requirements: []
63
- rubygems_version: 3.4.20
64
- signing_key:
61
+ rubygems_version: 3.6.7
65
62
  specification_version: 4
66
63
  summary: A simple helper for creating HTML calendars and tables
67
64
  test_files: []