phlex 2.0.0.rc2 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -21
- 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 +22 -16
- 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: 4c026ac28ef7bc6f31e884f1c49c67dfc4a27076fc0ea7a665c8a96c0b3dcaa3
|
4
|
+
data.tar.gz: 0f3f6e499197804439e4b10ce59b373ab50f205b44401a8138d34fac5aad33c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf1c198dd1adae024f45a146674e8f48d9a4ed3a4d9b01f192991e5d80d2288fe09579795988e93d5e03690b2928cf71f3ba96fb918b1ab5995170ffedaa6b48
|
7
|
+
data.tar.gz: d2e7cab80ad487d991593856905581dfad3c293e834d2d2684d292df872f668774a5ab418c929865b171bd4a6932483fa24bdc7606be35ab40ddb073e8d1d0e6
|
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
5
|
- [v1 Stable Docs](https://www.phlex.fun)
|
6
6
|
- [v2 Beta Docs](https://beta.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}")
|