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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5bf8ac3683a1e55c9178d17d85703ec445c26f8a544db4a778252fa3128eb333
4
- data.tar.gz: 8213e1aec0fff6f4357721ed1df892a3b31069ad2c93a53b0a64c2c40c4a87ad
3
+ metadata.gz: e42c0e91bac640eb6118eb6905396a24e3cb7913c1c1dcff1adfea7a6b2b42d7
4
+ data.tar.gz: 11f959d558113fccd719e4455efcefe65c76163d9814dbdcd208db2e29319fc7
5
5
  SHA512:
6
- metadata.gz: f7373307fa00fad6e75bf8db7b0c490dd1b808d37b05c3406c5a862c39b8170befef1057b01e1c9577966ed11b1d1bf4ada88741ac5bd213314fb241de656fea
7
- data.tar.gz: 13b9377037fd8be26000f9bf746d858645f4326423139beee6a7032f1c37e19fc7290baf10572be84aa3d7c2a303086dc18b5697ec215b8c11c7d0796085bfb9
6
+ metadata.gz: 42ff2f6eb4ae91f8a511c7b1f6e68362aeb9eb0e099e7fb3f65423c6c9bc1b4eec6799ade19d4bde04607b2a748c139c55d2e4e8c0b6553e4dc6b4784a9cf3fb
7
+ data.tar.gz: 48c4bc781e7467655e5b1fd02bd9bb202cf76e8a3794360fa74f8dfcebfadb4b40da9a4e60a8beb88ecda7515ee392bf967bd79a14f077a09dc9be46a5515b45
@@ -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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FunHtml
4
- VERSION = '0.3.1'
4
+ VERSION = '0.3.2'
5
5
  end
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.1
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-04-22 00:00:00.000000000 Z
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: