live 0.18.0 → 0.18.1

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: 60950078e2e7d82103adc0279e199fa145d1b6a0b545438bbc399e0c7cac3dac
4
- data.tar.gz: 184593b1192049d2a84bddd13fbc3fb0cc9a64795da3d311dfe27c75354f9bdb
3
+ metadata.gz: e03f037493e99c9b309201c8f658f3f4bdd1dfc2516498a13202f157e7f73211
4
+ data.tar.gz: 37b81f8c41e3115724de8bb4e836ff4b8dcd26741920ec8cee4c0e7331781b8a
5
5
  SHA512:
6
- metadata.gz: d3d1142cda8813184f3d62d7d995f51fd5db97de25ea21684bf3c83cdd1fc3c78cbb41d904aec8f9fd24d9ef037d46452217d4295ae64c56500485ed3d15fb41
7
- data.tar.gz: 80c93426d454e93da4cfeb4bc49e54fc85c8a6ff168e1dd7f0b2bbf8e88c039ac21929e6071af3333a14ab70a1196edaf384ceb98792ea821a60f5b08834919f
6
+ metadata.gz: 356991404963632fb53677321ab6b3b89395891916cc6485106bc8f8c8de42fe1be56d2c69dddb441cb94943ac19b1fe3d3382ee8ebb0a5c50c9cc57a3778858
7
+ data.tar.gz: 7a04b36d8ef732f273b3f41e6df786a405697b9866a1e97ad2c28c2ac8f0f92fea807d12364d5a686bf0dfaaa0b9ee2d7036330a003bedd855b6033f60d0deef
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/live/element.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2021-2024, by Samuel Williams.
4
+ # Copyright, 2021-2026, by Samuel Williams.
5
5
 
6
6
  require "json"
7
7
  require "securerandom"
@@ -145,7 +145,7 @@ module Live
145
145
  end
146
146
 
147
147
  def dispatch_event(selector, type, **options)
148
- rpc(:dispatch_event, selector, event, options)
148
+ rpc(:dispatch_event, selector, type, options)
149
149
  end
150
150
 
151
151
  # Render the element.
data/lib/live/version.rb CHANGED
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2021-2024, by Samuel Williams.
4
+ # Copyright, 2021-2026, by Samuel Williams.
5
5
 
6
6
  module Live
7
- VERSION = "0.18.0"
7
+ VERSION = "0.18.1"
8
8
  end
data/lib/live/view.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2021-2024, by Samuel Williams.
4
+ # Copyright, 2021-2026, by Samuel Williams.
5
5
 
6
6
  require_relative "element"
7
7
  require "xrb/builder"
data/license.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # MIT License
2
2
 
3
- Copyright, 2021-2024, by Samuel Williams.
3
+ Copyright, 2021-2026, by Samuel Williams.
4
4
  Copyright, 2023, by Olle Jonsson.
5
5
  Copyright, 2024, by Tatsuhiro Ujihisa.
6
6
 
data/readme.md CHANGED
@@ -28,6 +28,32 @@ We welcome contributions to this project.
28
28
  4. Push to the branch (`git push origin my-new-feature`).
29
29
  5. Create new Pull Request.
30
30
 
31
+ ### Running Tests
32
+
33
+ To run the test suite:
34
+
35
+ ``` shell
36
+ bundle exec sus
37
+ ```
38
+
39
+ ### Making 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
+
50
+ ### v0.18.0
51
+
52
+ - **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).
53
+ - Using older versions of `live-js` with this version of `live` may result in unexpected behavior or errors.
54
+ - Using older versions of `live` with `live-js` v0.16.0 or later may also result in unexpected behavior or errors.
55
+ - Updating both `live` and `live-js` to their latest versions is recommended to ensure compatibility, and requires no changes to application code.
56
+
31
57
  ### Developer Certificate of Origin
32
58
 
33
59
  In order to protect users of this project, we require all contributors to comply with the [Developer Certificate of Origin](https://developercertificate.org/). This ensures that all contributions are properly licensed and attributed.
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.18.0
4
+ version: 0.18.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -108,14 +108,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
108
108
  requirements:
109
109
  - - ">="
110
110
  - !ruby/object:Gem::Version
111
- version: '3.2'
111
+ version: '3.3'
112
112
  required_rubygems_version: !ruby/object:Gem::Requirement
113
113
  requirements:
114
114
  - - ">="
115
115
  - !ruby/object:Gem::Version
116
116
  version: '0'
117
117
  requirements: []
118
- rubygems_version: 3.6.9
118
+ rubygems_version: 4.0.6
119
119
  specification_version: 4
120
120
  summary: Live HTML tags updated via a WebSocket.
121
121
  test_files: []
metadata.gz.sig CHANGED
Binary file