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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 35bbefcf5b9f49f4082f7b92e949e0dd5c13bb39fb65d435563ce6d93b8b002e
4
- data.tar.gz: b5455009b59c52b2dc18364adcb4907dd17295b2fac82c42ee76dbe98106889c
3
+ metadata.gz: 4c026ac28ef7bc6f31e884f1c49c67dfc4a27076fc0ea7a665c8a96c0b3dcaa3
4
+ data.tar.gz: 0f3f6e499197804439e4b10ce59b373ab50f205b44401a8138d34fac5aad33c5
5
5
  SHA512:
6
- metadata.gz: 5f9a7b014d2821888a97afe5d822dcc04acede2623cfd2ac84d2ee9eb68aff30cf8e571b81d3c54cf3b344d06ea96de6f95b9a37213d5bb5acf805393150dccb
7
- data.tar.gz: 1e940060016ea5d3ecf707bf33d0ad70ebb43e576825cb477be4a091eeec00787530cf8fb315e399196ae81c3cc88d8059e38ef6eeaeb816843f576a6124dc63
6
+ metadata.gz: cf1c198dd1adae024f45a146674e8f48d9a4ed3a4d9b01f192991e5d80d2288fe09579795988e93d5e03690b2928cf71f3ba96fb918b1ab5995170ffedaa6b48
7
+ data.tar.gz: d2e7cab80ad487d991593856905581dfad3c293e834d2d2684d292df872f668774a5ab418c929865b171bd4a6932483fa24bdc7606be35ab40ddb073e8d1d0e6
data/README.md CHANGED
@@ -1,34 +1,18 @@
1
- <a href="https://www.phlex.fun/"><img alt="Phlex logo" src="https://www.phlex.fun/assets/logo.png" width="180" /></a>
1
+ # Phlex
2
2
 
3
- Phlex lets you compose web views in pure Ruby.
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 semantic versioning (SemVer). Instead, we follow [BreakVer](https://www.taoensso.com/break-versioning).
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)
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ class Phlex::RuntimeError < RuntimeError
4
+ include Phlex::Error
5
+ end
@@ -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?(:cache_key)
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}")