nydp-html 0.0.6 → 0.0.6.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
  SHA1:
3
- metadata.gz: 8fe3d466c6715379afd8d86097c281ff3d8160b9
4
- data.tar.gz: 53f72b3ca8999c3e620e91d0f0217b534d956b7e
3
+ metadata.gz: 47d9b6d6f103aae16c3822178b8f9f38e8ba410f
4
+ data.tar.gz: 3f6ba06cf97d197d19a4022df6b285e3322e47ea
5
5
  SHA512:
6
- metadata.gz: 3c90ac967f80d3a1876679ed0cc75255b057d7628aab54ebcdcd39e94380323a33a267b3ea9d65d72431b09cdb3faa061e436a89446b758fb41f10d03c4b6d65
7
- data.tar.gz: 648d435dfacb619a167d710b173c7040d4de9529a73bbbd4682dfa7f2a6534db6020e20378835fe71c9b0b2453a64d041cc14c14d200c4bb8df6e70547dd6c5a
6
+ metadata.gz: 42df76213c6aa2f6e26c5c3a36d5e1dd9397189c27d87555d61a770fc0d4ad4f6e0227c44a4a23487e480510a09d32ea6bb2db133dc22b565906e3451e656d01
7
+ data.tar.gz: 261fcd6fecc87b1dc084a04f49da98aca40f4a6b695070b7ed67d0d9759adf0db188a852b8c727101a0144bc2eafdf207de390ff37fe3a191ea49c853982c5d4
@@ -15,4 +15,4 @@
15
15
  (suite "a"
16
16
  ("returns an anchor tag"
17
17
  (link-to "click here!" "/other-page.html" { class "turbo" })
18
- "<a href='/other-page.html'>click here!</a>"))))
18
+ "<a href='/other-page.html' class='turbo'>click here!</a>"))))
@@ -62,4 +62,4 @@
62
62
  (def html-tag/ (name attrs) "<~|name|~(as-tag-attrs attrs)/>")
63
63
  (def html-tag (name attrs . content) "<~|name|~(as-tag-attrs attrs)>~(apply joinstr "" content)</~|name|>")
64
64
  (def img (src) (html-tag/ "img" { src src }))
65
- (def link-to (txt path attrs) (html-tag "a" { href path } txt))
65
+ (def link-to (txt path attrs) (html-tag "a" (hash-merge { href path } attrs) txt))
@@ -1,5 +1,5 @@
1
1
  module Nydp
2
2
  module Html
3
- VERSION = "0.0.6"
3
+ VERSION = "0.0.6.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nydp-html
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Conan Dalton