phlex 2.0.0.rc2 → 2.0.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
- data/README.md +7 -23
- data/lib/phlex/errors/runtime_error.rb +5 -0
- data/lib/phlex/fifo_cache_store.rb +3 -1
- data/lib/phlex/html/standard_elements.rb +517 -828
- data/lib/phlex/html/void_elements.rb +47 -80
- data/lib/phlex/html.rb +71 -9
- data/lib/phlex/kit.rb +11 -2
- data/lib/phlex/sgml/elements.rb +8 -8
- data/lib/phlex/sgml/state.rb +2 -3
- data/lib/phlex/sgml.rb +24 -18
- data/lib/phlex/svg.rb +39 -0
- data/lib/phlex/version.rb +1 -1
- data/lib/phlex.rb +45 -12
- metadata +7 -11
- data/lib/phlex/null_cache_store.rb +0 -9
- data/lib/phlex/testing/capybara.rb +0 -28
- data/lib/phlex/testing/nokogiri.rb +0 -19
- data/lib/phlex/testing/nokolexbor.rb +0 -19
- data/lib/phlex/testing/sgml.rb +0 -9
- data/lib/phlex/testing.rb +0 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0712c76cf9aa500d76c2d12b3732f83decaa7d63e8daa436ab021a07c5b1c6e7
|
4
|
+
data.tar.gz: '08a67945fba53765a3558d652ba2b412591925c2b366456fc883349d594b0cd0'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 776b639fe42f7df74ede2eb210da4e3c5f726ebc5dd8c2a45aa238c5904c1e08fc0ae3c712134641e20bd3a27675e8e359d8b7288cceae87d41f166072841daa
|
7
|
+
data.tar.gz: 459ac3fb8a6205d87eff0c2369e4355250e297df44dd0da712b29df01d0a16238ce03a2a4ca724aba6d38195e3a6af32d45c48d45ea788b7a943d2c357c76ac7
|
data/README.md
CHANGED
@@ -1,34 +1,18 @@
|
|
1
|
-
|
1
|
+
# Phlex
|
2
2
|
|
3
|
-
Phlex lets you
|
3
|
+
Phlex lets you build object-oriented web views in pure Ruby.
|
4
4
|
|
5
|
-
- [
|
6
|
-
- [
|
5
|
+
- [v2 Docs](https://www.phlex.fun)
|
6
|
+
- [v1 Docs](https://v1.phlex.fun)
|
7
7
|
|
8
8
|
## Versioning and Maintenance
|
9
9
|
|
10
|
-
Phlex does not follow
|
10
|
+
Phlex does not follow Semantic Versioning (SemVer). Instead, we follow [BreakVer](https://www.taoensso.com/break-versioning).
|
11
|
+
|
12
|
+
### Security
|
11
13
|
|
12
14
|
When a security issue is brought to our attention, we aim to release patches as soon as possible. We aim to patch with a new `non-breaking` version:
|
13
15
|
|
14
16
|
- every `minor` version that was released in the last year;
|
15
17
|
- the latest `minor` version of the latest two `major` versions, even if over a year old; and
|
16
18
|
- the `main` branch in GitHub.
|
17
|
-
|
18
|
-
## Prior Art 🎨
|
19
|
-
|
20
|
-
- [markaby](https://github.com/markaby/markaby)
|
21
|
-
- [erector](https://github.com/erector/erector)
|
22
|
-
- [papercraft](https://github.com/digital-fabric/papercraft)
|
23
|
-
- [matestack](https://github.com/matestack/matestack-ui-core)
|
24
|
-
- [arbre](https://github.com/activeadmin/arbre)
|
25
|
-
- [tubby](https://github.com/judofyr/tubby)
|
26
|
-
- [hoshi](https://github.com/pete/hoshi)
|
27
|
-
- [hyperstack](https://github.com/hyperstack-org/hyperstack)
|
28
|
-
- [clearwater](https://github.com/clearwater-rb/clearwater)
|
29
|
-
- [paggio](https://github.com/opal/paggio)
|
30
|
-
- [Inesita](https://github.com/inesita-rb/inesita)
|
31
|
-
- [compony](https://github.com/kalsan/compony)
|
32
|
-
- [tagz](https://github.com/ahoward/tagz)
|
33
|
-
- [html](https://github.com/ismasan/html)
|
34
|
-
- [fortitude](https://github.com/ageweke/fortitude)
|
@@ -39,7 +39,9 @@ class Phlex::FIFOCacheStore
|
|
39
39
|
when String, Symbol, Integer, Float, Time, true, false, nil
|
40
40
|
value
|
41
41
|
else
|
42
|
-
if value.respond_to?(:
|
42
|
+
if value.respond_to?(:cache_key_with_version)
|
43
|
+
map_key(value.cache_key_with_version)
|
44
|
+
elsif value.respond_to?(:cache_key)
|
43
45
|
map_key(value.cache_key)
|
44
46
|
else
|
45
47
|
raise ArgumentError.new("Invalid cache key: #{value.class}")
|