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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/live/element.rb +2 -2
- data/lib/live/version.rb +2 -2
- data/lib/live/view.rb +1 -1
- data/license.md +1 -1
- data/readme.md +26 -0
- data.tar.gz.sig +0 -0
- metadata +3 -3
- 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: e03f037493e99c9b309201c8f658f3f4bdd1dfc2516498a13202f157e7f73211
|
|
4
|
+
data.tar.gz: 37b81f8c41e3115724de8bb4e836ff4b8dcd26741920ec8cee4c0e7331781b8a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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-
|
|
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,
|
|
148
|
+
rpc(:dispatch_event, selector, type, options)
|
|
149
149
|
end
|
|
150
150
|
|
|
151
151
|
# Render the element.
|
data/lib/live/version.rb
CHANGED
data/lib/live/view.rb
CHANGED
data/license.md
CHANGED
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.
|
|
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.
|
|
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:
|
|
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
|