html-native 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f4e5910254a0afad80152339f40b75051ac6045ab51b95f3a0cfd44c6d9d9c81
4
- data.tar.gz: a291bbadcb69cb44f067c7c17c01a39b542f8f9bfaebceb95f1b76731c6bbbef
3
+ metadata.gz: 6ba13af6f45f467e85f5880d5fd690a5e0cad66b6fbbe1a1a9e790c8d6c1f564
4
+ data.tar.gz: 7f41524489dff7db2c4876bb761b1fc06fe7d3a61b30a4d4606bdc3a2ce03400
5
5
  SHA512:
6
- metadata.gz: 27da9d8f7a378e0a2eff7b989fae29f8ab04b000715542f87906ecda76cae0b4dd31a82fd3fab4e3dd50ca64954efd64727ac3d4bdbda13d497d6c3cffcba7d4
7
- data.tar.gz: 846abdea65fb7711610a9a22a5b80c85527fc67c34af386924af7b4092bd32e41a0b1587eef4ff26a8d13c1949801dd4e4e18274ba99f8a7b5aea046b06a1658
6
+ metadata.gz: 989fbc6f4dd146d6eaaadeb5f34a42172163c6c1b786128377b806aa099e6a64fea71af58af27a56397ff16e30a66973f16a5c3c99229736ac8cb7b7f49fe737
7
+ data.tar.gz: ea723f768aec7c753d26c6ffa47fb8077b747d8afd256668ee09838d593b0eb45dcd479381179ae4bbfc7a2433789fdaddc5801e0ded3c085a6a7c468e2b33b0
@@ -52,6 +52,6 @@ module HTMLComponent
52
52
  "#{k}=\"#{v}\"" # render this appropriately for numeric fields (might already)
53
53
  end
54
54
  end.join(" ")
55
- formatted.empty? ? "" : " " + formatted
55
+ formatted.prepend(" ") unless formatted.empty?
56
56
  end
57
57
  end
@@ -25,3 +25,9 @@ module HTMLComponent
25
25
  end
26
26
  end
27
27
  end
28
+
29
+ class String
30
+ def component
31
+ HTMLComponent::Builder.new(self)
32
+ end
33
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: html-native
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kellen Watt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-26 00:00:00.000000000 Z
11
+ date: 2021-01-30 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: An html generation DSL designed for fluid code creation.
14
14
  email: