fun_html 0.3.1 → 0.3.2
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/lib/fun_html/attribute.rb +4 -0
- data/lib/fun_html/version.rb +1 -1
- data/rbi/fun_html.rbi +3 -0
- data/rbi/fun_html.rbx +3 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e42c0e91bac640eb6118eb6905396a24e3cb7913c1c1dcff1adfea7a6b2b42d7
|
4
|
+
data.tar.gz: 11f959d558113fccd719e4455efcefe65c76163d9814dbdcd208db2e29319fc7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42ff2f6eb4ae91f8a511c7b1f6e68362aeb9eb0e099e7fb3f65423c6c9bc1b4eec6799ade19d4bde04607b2a748c139c55d2e4e8c0b6553e4dc6b4784a9cf3fb
|
7
|
+
data.tar.gz: 48c4bc781e7467655e5b1fd02bd9bb202cf76e8a3794360fa74f8dfcebfadb4b40da9a4e60a8beb88ecda7515ee392bf967bd79a14f077a09dc9be46a5515b45
|
data/lib/fun_html/attribute.rb
CHANGED
@@ -57,6 +57,10 @@ module FunHtml
|
|
57
57
|
write(" data-#{suffix}=\"", value)
|
58
58
|
end
|
59
59
|
|
60
|
+
def attribute(name, value)
|
61
|
+
write(" #{name}=\"", value)
|
62
|
+
end
|
63
|
+
|
60
64
|
# CSS class name(s) for styling, the name changed to protect the Ruby.
|
61
65
|
def klass(value)
|
62
66
|
write(' class="', value)
|
data/lib/fun_html/version.rb
CHANGED
data/rbi/fun_html.rbi
CHANGED
@@ -72,6 +72,9 @@ module FunHtml
|
|
72
72
|
sig { params(suffix: String, value: String).returns(FunHtml::Attribute) }
|
73
73
|
def data(suffix, value); end
|
74
74
|
|
75
|
+
sig { params(name: String, value: String).returns(FunHtml::Attribute) }
|
76
|
+
def attribute(name, value); end
|
77
|
+
|
75
78
|
sig { params(value: String).returns(FunHtml::Attribute) }
|
76
79
|
def klass(value); end
|
77
80
|
|
data/rbi/fun_html.rbx
CHANGED
@@ -72,6 +72,9 @@ module FunHtml
|
|
72
72
|
sig { params(suffix: String, value: String).returns(FunHtml::Attribute) }
|
73
73
|
def data(suffix, value); end
|
74
74
|
|
75
|
+
sig { params(name: String, value: String).returns(FunHtml::Attribute) }
|
76
|
+
def attribute(name, value); end
|
77
|
+
|
75
78
|
sig { params(value: String).returns(FunHtml::Attribute) }
|
76
79
|
def klass(value); end
|
77
80
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fun_html
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Weir
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-06-30 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: It probably is not much fun, despite the name.
|
14
14
|
email:
|