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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 35bbefcf5b9f49f4082f7b92e949e0dd5c13bb39fb65d435563ce6d93b8b002e
4
- data.tar.gz: b5455009b59c52b2dc18364adcb4907dd17295b2fac82c42ee76dbe98106889c
3
+ metadata.gz: 0712c76cf9aa500d76c2d12b3732f83decaa7d63e8daa436ab021a07c5b1c6e7
4
+ data.tar.gz: '08a67945fba53765a3558d652ba2b412591925c2b366456fc883349d594b0cd0'
5
5
  SHA512:
6
- metadata.gz: 5f9a7b014d2821888a97afe5d822dcc04acede2623cfd2ac84d2ee9eb68aff30cf8e571b81d3c54cf3b344d06ea96de6f95b9a37213d5bb5acf805393150dccb
7
- data.tar.gz: 1e940060016ea5d3ecf707bf33d0ad70ebb43e576825cb477be4a091eeec00787530cf8fb315e399196ae81c3cc88d8059e38ef6eeaeb816843f576a6124dc63
6
+ metadata.gz: 776b639fe42f7df74ede2eb210da4e3c5f726ebc5dd8c2a45aa238c5904c1e08fc0ae3c712134641e20bd3a27675e8e359d8b7288cceae87d41f166072841daa
7
+ data.tar.gz: 459ac3fb8a6205d87eff0c2369e4355250e297df44dd0da712b29df01d0a16238ce03a2a4ca724aba6d38195e3a6af32d45c48d45ea788b7a943d2c357c76ac7
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
- - [v1 Stable Docs](https://www.phlex.fun)
6
- - [v2 Beta Docs](https://beta.phlex.fun)
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 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}")