html_skeleton 0.5.6 → 0.5.7
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 +4 -4
- data/MIT-LICENSE +1 -3
- data/README.md +5 -2
- data/lib/html_skeleton.rb +4 -4
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1dae9f42404480eca66cc9349a9e4915a9448f9a02cc6ddfb10e4bb2cc7923d8
|
|
4
|
+
data.tar.gz: 8ab9ee93b688c9894ff0496a2dc15f97a2d72d32fadcb82136cdb8440cd126b8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 681c51b989d252e006cca7f9eba2b38b6b7120f8146ed1653c8e49234e7f35a90566c26c839e208f2c380cdb4f1db1da2a0db0128fdf13f08d2501405fbec8c0
|
|
7
|
+
data.tar.gz: 64b8c8595995942e47a3ce1add80205025d7ffa07b883919920b5dfdde84ae3783813446317433c8d2226a20ae2da5d6a719a6241cb36426c7106e952d40b099
|
data/MIT-LICENSE
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2012-2023 Dittmar Krall (www.matiq.com)
|
|
1
|
+
Copyright (c) 2012-2024 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
|
-
[](http://badge.fury.io/rb/html_skeleton)
|
|
4
4
|
[](https://rubygems.org/gems/html_skeleton)
|
|
5
|
+
[](https://github.com/matique/html_skeleton/actions/workflows/rake.yml)
|
|
6
|
+
[](https://github.com/standardrb/standard)
|
|
7
|
+
[](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-
|
|
125
|
+
Copyright (c) 2012-2024 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 = {}, &
|
|
11
|
-
set_calendar_options(options, &
|
|
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 = {}, &
|
|
19
|
-
set_table_options(options, &
|
|
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,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: html_skeleton
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dittmar Krall
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2024-10-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: minitest
|
|
@@ -45,7 +45,7 @@ homepage: https://github.com/matique/html_skeleton
|
|
|
45
45
|
licenses:
|
|
46
46
|
- MIT
|
|
47
47
|
metadata: {}
|
|
48
|
-
post_install_message:
|
|
48
|
+
post_install_message:
|
|
49
49
|
rdoc_options: []
|
|
50
50
|
require_paths:
|
|
51
51
|
- lib
|
|
@@ -60,8 +60,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
61
|
version: '0'
|
|
62
62
|
requirements: []
|
|
63
|
-
rubygems_version: 3.
|
|
64
|
-
signing_key:
|
|
63
|
+
rubygems_version: 3.5.20
|
|
64
|
+
signing_key:
|
|
65
65
|
specification_version: 4
|
|
66
66
|
summary: A simple helper for creating HTML calendars and tables
|
|
67
67
|
test_files: []
|