html_skeleton 0.5.5 → 0.5.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +1 -3
- data/README.md +7 -5
- data/lib/html_skeleton.rb +4 -4
- metadata +23 -10
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,6 +1,10 @@
|
|
1
1
|
# HtmlSkeleton
|
2
2
|
|
3
|
-
[![Gem Version](https://badge.fury.io/rb/html_skeleton.
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/html_skeleton.svg)](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)
|
5
|
+
[![rake](https://github.com/matique/html_skeleton/actions/workflows/rake.yml/badge.svg)](https://github.com/matique/html_skeleton/actions/workflows/rake.yml)
|
6
|
+
[![Ruby Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://github.com/standardrb/standard)
|
7
|
+
[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](http://choosealicense.com/licenses/mit/)
|
4
8
|
|
5
9
|
HtmlSkeleton provides the frame for a calendar or a table,
|
6
10
|
i.e. no loops are required to build up the HTML structure.
|
@@ -118,7 +122,5 @@ cell_proc: block || ->(row, col) { "<td>#{row} #{col}</td>"}
|
|
118
122
|
|
119
123
|
## Miscellaneous
|
120
124
|
|
121
|
-
Copyright (c) 2012-
|
122
|
-
released under the MIT license
|
123
|
-
|
124
|
-
* https://opensource.org/licenses/MIT
|
125
|
+
Copyright (c) 2012-2024 Dittmar Krall (www.matiq.com),
|
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,15 +1,29 @@
|
|
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:
|
12
|
-
dependencies:
|
11
|
+
date: 2024-10-20 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: minitest
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
13
27
|
description: |2
|
14
28
|
A simple helper for creating HTML calendars and tables.
|
15
29
|
|
@@ -27,12 +41,11 @@ files:
|
|
27
41
|
- lib/html_skeleton.rb
|
28
42
|
- lib/html_skeleton_calendar.rb
|
29
43
|
- lib/html_skeleton_table.rb
|
30
|
-
homepage:
|
44
|
+
homepage: https://github.com/matique/html_skeleton
|
31
45
|
licenses:
|
32
46
|
- MIT
|
33
|
-
metadata:
|
34
|
-
|
35
|
-
post_install_message:
|
47
|
+
metadata: {}
|
48
|
+
post_install_message:
|
36
49
|
rdoc_options: []
|
37
50
|
require_paths:
|
38
51
|
- lib
|
@@ -47,8 +60,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
47
60
|
- !ruby/object:Gem::Version
|
48
61
|
version: '0'
|
49
62
|
requirements: []
|
50
|
-
rubygems_version: 3.
|
51
|
-
signing_key:
|
63
|
+
rubygems_version: 3.5.20
|
64
|
+
signing_key:
|
52
65
|
specification_version: 4
|
53
66
|
summary: A simple helper for creating HTML calendars and tables
|
54
67
|
test_files: []
|