live 0.17.0 → 0.18.0

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: 9e821b6c491dfd6033b870fa426fd43b0e0e14c3bb19d9a77796d991f3263c84
4
- data.tar.gz: 529f78570c91e31ba58ad95651a534586c630e4f1cfd46fef05070bf544b161a
3
+ metadata.gz: 60950078e2e7d82103adc0279e199fa145d1b6a0b545438bbc399e0c7cac3dac
4
+ data.tar.gz: 184593b1192049d2a84bddd13fbc3fb0cc9a64795da3d311dfe27c75354f9bdb
5
5
  SHA512:
6
- metadata.gz: 174e05351add100c37874f34e0527c331886c13a02144d98a558d51e48758f425403cd4855b43d0e801d006b8d27e9e73fa0df15bda1c2501cb500be013a87d1
7
- data.tar.gz: eff442c283edf136bb43ee8fa0b5ce398fbb608a5f28ccc16fc9fcbe15be5d9b4cb5349835e6897e6002d312b99a0f95bc3f5ec604d1e01a28fa965c3c9de3b6
6
+ metadata.gz: d3d1142cda8813184f3d62d7d995f51fd5db97de25ea21684bf3c83cdd1fc3c78cbb41d904aec8f9fd24d9ef037d46452217d4295ae64c56500485ed3d15fb41
7
+ data.tar.gz: 80c93426d454e93da4cfeb4bc49e54fc85c8a6ff168e1dd7f0b2bbf8e88c039ac21929e6071af3333a14ab70a1196edaf384ceb98792ea821a60f5b08834919f
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/live/version.rb CHANGED
@@ -4,5 +4,5 @@
4
4
  # Copyright, 2021-2024, by Samuel Williams.
5
5
 
6
6
  module Live
7
- VERSION = "0.17.0"
7
+ VERSION = "0.18.0"
8
8
  end
data/lib/live/view.rb CHANGED
@@ -9,9 +9,13 @@ require "xrb/builder"
9
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
+ def tag_name
13
+ "live-view"
14
+ end
15
+
12
16
  # @returns [Object] The generated HTML.
13
17
  def build_markup(builder)
14
- builder.inline_tag :div, id: @id, class: "live", data: @data do
18
+ builder.inline_tag self.tag_name, id: @id, data: @data do
15
19
  render(builder)
16
20
  end
17
21
  end
data/readme.md CHANGED
@@ -36,6 +36,17 @@ In order to protect users of this project, we require all contributors to comply
36
36
 
37
37
  This project is best served by a collaborative and respectful environment. Treat each other professionally, respect differing viewpoints, and engage constructively. Harassment, discrimination, or harmful behavior is not tolerated. Communicate clearly, listen actively, and support one another. If any issues arise, please inform the project maintainers.
38
38
 
39
+ ## Releases
40
+
41
+ Please see the [project releases](https://socketry.github.io/live/releases/index) for all releases.
42
+
43
+ ### v0.18.0
44
+
45
+ - **Breaking Change**: Live now uses Web Components for managing life-cycle events instead of observers. You will need to use `live-js` v0.16.0 or later with this version of `live`, which emits `<live-view>` elements (instead of `<div>` elements).
46
+ - Using older versions of `live-js` with this version of `live` may result in unexpected behavior or errors.
47
+ - Using older versions of `live` with `live-js` v0.16.0 or later may also result in unexpected behavior or errors.
48
+ - Updating both `live` and `live-js` to their latest versions is recommended to ensure compatibility, and requires no changes to application code.
49
+
39
50
  ## See Also
40
51
 
41
52
  - [live-js](https://github.com/socketry/live-js) – The client-side JavaScript library.
data/releases.md ADDED
@@ -0,0 +1,8 @@
1
+ # Releases
2
+
3
+ ## v0.18.0
4
+
5
+ - **Breaking Change**: Live now uses Web Components for managing life-cycle events instead of observers. You will need to use `live-js` v0.16.0 or later with this version of `live`, which emits `<live-view>` elements (instead of `<div>` elements).
6
+ - Using older versions of `live-js` with this version of `live` may result in unexpected behavior or errors.
7
+ - Using older versions of `live` with `live-js` v0.16.0 or later may also result in unexpected behavior or errors.
8
+ - Updating both `live` and `live-js` to their latest versions is recommended to ensure compatibility, and requires no changes to application code.
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: live
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0
4
+ version: 0.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
8
8
  - Olle Jonsson
9
9
  - Tatsuhiro Ujihisa
10
- autorequire:
11
10
  bindir: bin
12
11
  cert_chain:
13
12
  - |
@@ -39,7 +38,7 @@ cert_chain:
39
38
  Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
40
39
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
41
40
  -----END CERTIFICATE-----
42
- date: 2024-11-24 00:00:00.000000000 Z
41
+ date: 1980-01-02 00:00:00.000000000 Z
43
42
  dependencies:
44
43
  - !ruby/object:Gem::Dependency
45
44
  name: async-websocket
@@ -83,8 +82,6 @@ dependencies:
83
82
  - - "~>"
84
83
  - !ruby/object:Gem::Version
85
84
  version: '0.10'
86
- description:
87
- email:
88
85
  executables: []
89
86
  extensions: []
90
87
  extra_rdoc_files: []
@@ -97,13 +94,13 @@ files:
97
94
  - lib/live/view.rb
98
95
  - license.md
99
96
  - readme.md
97
+ - releases.md
100
98
  homepage: https://github.com/socketry/live
101
99
  licenses:
102
100
  - MIT
103
101
  metadata:
104
102
  documentation_uri: https://socketry.github.io/live/
105
103
  source_code_uri: https://github.com/socketry/live.git
106
- post_install_message:
107
104
  rdoc_options: []
108
105
  require_paths:
109
106
  - lib
@@ -111,15 +108,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
111
108
  requirements:
112
109
  - - ">="
113
110
  - !ruby/object:Gem::Version
114
- version: '3.1'
111
+ version: '3.2'
115
112
  required_rubygems_version: !ruby/object:Gem::Requirement
116
113
  requirements:
117
114
  - - ">="
118
115
  - !ruby/object:Gem::Version
119
116
  version: '0'
120
117
  requirements: []
121
- rubygems_version: 3.5.22
122
- signing_key:
118
+ rubygems_version: 3.6.9
123
119
  specification_version: 4
124
120
  summary: Live HTML tags updated via a WebSocket.
125
121
  test_files: []
metadata.gz.sig CHANGED
Binary file