heartml 1.0.0.beta16 → 1.0.0.beta17

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: 33b3883d286639fd0120ce59444d69f5a69a77fff208d5fcc057338210bcde4d
4
- data.tar.gz: a385e62cf6d4232ba5ede351c4a0c6e885bd7260ea35afff78ee35eaf7449fee
3
+ metadata.gz: 472d4b41b5c7e6b3642f760e372a526cfcd616aa46ac73e1293937035fd5b91f
4
+ data.tar.gz: c96192107e486944439b83976b6ce79f846fdae544b3a0ae7cfcceecaab7f538
5
5
  SHA512:
6
- metadata.gz: 4da9a2ac04771a7f7024caf8f2db678f6459a54f7090513a2a00402e6ec65626ed61a90abdf314219ace4a310d6d87eaafb65f97a6c1994b0fdf5861897bb051
7
- data.tar.gz: d19f2e2285950719c5456087e6eff9f27577da175257ec8ec58cecd0188ee57690934d0e3f06c2156f1dc5e4828857284d0fdf0b0ab051c2af9441c89cbc6de0
6
+ metadata.gz: 2940a6ecd8eebd9b24a7dd1f30da984569aa11c9b5f77e679847a5668e5717e257aa121546e2e59338625a0464631207158c3d79dff6b92a2186a05edcf2d760
7
+ data.tar.gz: 956b7f57627c4dc972985e3ba37095bc50329f7b8a4cf6b1519a3e77c216588ac43da9392304814fc031d0efd0357d4941d94de57fa12f6257f8f1d08ec74654
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [1.0.0.beta17] — 2024-10-27
6
+
7
+ - Add `.` effect shortcut for `@textContent = .`
8
+
5
9
  ## [1.0.0.beta16] — 2024-10-26
6
10
 
7
11
  - Fix rendering logic in Bridgetown 2.0 beta
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- heartml (1.0.0.beta16)
4
+ heartml (1.0.0.beta17)
5
5
  concurrent-ruby (~> 1.2)
6
6
  nokolexbor (>= 0.4.2)
7
7
 
@@ -71,6 +71,11 @@ module Heartml
71
71
  statements = syntax.split(";").map(&:strip)
72
72
 
73
73
  statements.each do |statement| # rubocop:disable Metrics
74
+ if statement.start_with?(".")
75
+ # shortcut for text content
76
+ statement = "@textContent=#{statement}"
77
+ end
78
+
74
79
  if statement.start_with?("@")
75
80
  # property assignment
76
81
  expression = statement.split("=").map(&:strip)
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Heartml
4
4
  # @return [String]
5
- VERSION = "1.0.0.beta16"
5
+ VERSION = "1.0.0.beta17"
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: heartml
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.beta16
4
+ version: 1.0.0.beta17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jared White
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-26 00:00:00.000000000 Z
11
+ date: 2024-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby