live 0.14.0 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/live/element.rb +9 -3
- data/lib/live/version.rb +1 -1
- data/lib/live/view.rb +3 -5
- data.tar.gz.sig +0 -0
- metadata +6 -6
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35d2a64d31fa83855d4dd194f497ef9c948c9d03fde7fabf73256bdccec8d03e
|
4
|
+
data.tar.gz: 161456e3ee4ded05ff1c6e58e81d78a098ed28a19d33d9da4217f2d4bc190db1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba9b1e779713e8330e440d1d3f3fbb67b4ef41708e0d549828790d135f4e7e80e4420292e923dad5941be0e9ff538c6184383600773490fd6ee36ec8e796228c
|
7
|
+
data.tar.gz: f1f9df657949d4c56d5b99ccb2a280e4f9599d45152a1a96db3ca039401593d48df0fbe5e510d749f98e719b768fdd5fa9211bd58a25fa0c48e40b23fd137954
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/live/element.rb
CHANGED
@@ -138,11 +138,17 @@ module Live
|
|
138
138
|
builder.text(self.class.name)
|
139
139
|
end
|
140
140
|
|
141
|
+
def append_markup(output)
|
142
|
+
build_markup(::XRB::Builder.new(output))
|
143
|
+
end
|
144
|
+
|
145
|
+
def build_markup(builder)
|
146
|
+
render(builder)
|
147
|
+
end
|
148
|
+
|
141
149
|
# @returns [Object] The generated HTML.
|
142
150
|
def to_html
|
143
|
-
XRB::Builder.fragment
|
144
|
-
render(builder)
|
145
|
-
end
|
151
|
+
XRB::Builder.fragment(&self.method(:build_markup))
|
146
152
|
end
|
147
153
|
|
148
154
|
# Convenience method for rendering the view as a string.
|
data/lib/live/version.rb
CHANGED
data/lib/live/view.rb
CHANGED
@@ -10,11 +10,9 @@ module Live
|
|
10
10
|
# Represents a single division of content on the page an provides helpers for rendering the content.
|
11
11
|
class View < Element
|
12
12
|
# @returns [Object] The generated HTML.
|
13
|
-
def
|
14
|
-
|
15
|
-
builder
|
16
|
-
render(builder)
|
17
|
-
end
|
13
|
+
def build_markup(builder)
|
14
|
+
builder.inline_tag :div, id: @id, class: "live", data: @data do
|
15
|
+
render(builder)
|
18
16
|
end
|
19
17
|
end
|
20
18
|
end
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: live
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.15.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
@@ -39,7 +39,7 @@ cert_chain:
|
|
39
39
|
Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
|
40
40
|
voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
|
41
41
|
-----END CERTIFICATE-----
|
42
|
-
date: 2024-
|
42
|
+
date: 2024-10-28 00:00:00.000000000 Z
|
43
43
|
dependencies:
|
44
44
|
- !ruby/object:Gem::Dependency
|
45
45
|
name: async-websocket
|
@@ -73,16 +73,16 @@ dependencies:
|
|
73
73
|
name: xrb
|
74
74
|
requirement: !ruby/object:Gem::Requirement
|
75
75
|
requirements:
|
76
|
-
- - "
|
76
|
+
- - "~>"
|
77
77
|
- !ruby/object:Gem::Version
|
78
|
-
version: '0'
|
78
|
+
version: '0.10'
|
79
79
|
type: :runtime
|
80
80
|
prerelease: false
|
81
81
|
version_requirements: !ruby/object:Gem::Requirement
|
82
82
|
requirements:
|
83
|
-
- - "
|
83
|
+
- - "~>"
|
84
84
|
- !ruby/object:Gem::Version
|
85
|
-
version: '0'
|
85
|
+
version: '0.10'
|
86
86
|
description:
|
87
87
|
email:
|
88
88
|
executables: []
|
metadata.gz.sig
CHANGED
Binary file
|