view_component_reflex 2.1.1 → 2.1.2
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 +10 -0
- data/lib/view_component_reflex.rb +1 -0
- data/{app/reflexes → lib}/view_component_reflex/reflex.rb +0 -0
- data/lib/view_component_reflex/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0ab31dd62e6ea3047e6092dc2fed4fb4ec56c0c6b348217109a91a63a7f5f741
|
|
4
|
+
data.tar.gz: 51d03bf7e07b25c12fd5f2babd8c0346815c4e9cd7d4e0bfff6ff7df9d0acfcd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 305353ea23702dec039ddfb05304adbc894f40355649ab137ddce4a03e6fab42f2fc6f5f775236e29c12e2a2b24e0e28d2d6e2904b2135435e51b3aa2c7c3fbb
|
|
7
|
+
data.tar.gz: 8e1dc76c9d0efe24a7609ce25ab307daef5d861495c23be8a66d5bb6f96c88a1bba3b8c28735d4e55595b5b4e572db89ab65a6bae50c2430edb497387eff7f6d
|
data/README.md
CHANGED
|
@@ -279,9 +279,19 @@ Or install it yourself as:
|
|
|
279
279
|
$ gem install view_component_reflex
|
|
280
280
|
```
|
|
281
281
|
|
|
282
|
+
## Common problems
|
|
283
|
+
|
|
284
|
+
# Uninitialized constants \<component\>Reflex
|
|
285
|
+
A component needs to be wrapped in `<%= component_controller do %>` in order to properly initialize, otherwise the Reflex class won't get created.
|
|
286
|
+
|
|
282
287
|
## License
|
|
283
288
|
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
|
284
289
|
|
|
285
290
|
## Caveats
|
|
286
291
|
|
|
287
292
|
State uses session to maintain state as of right now. It also assumes your component view is written with the file extension `.html.erb`
|
|
293
|
+
|
|
294
|
+
## Support me
|
|
295
|
+
|
|
296
|
+
<a href="https://www.buymeacoffee.com/jleblanc" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee" height="40" ></a>
|
|
297
|
+
|
|
@@ -2,6 +2,7 @@ require "view_component_reflex/state_adapter/session"
|
|
|
2
2
|
require "view_component_reflex/state_adapter/memory"
|
|
3
3
|
require "view_component_reflex/engine"
|
|
4
4
|
require "stimulus_reflex"
|
|
5
|
+
require "view_component_reflex/reflex"
|
|
5
6
|
|
|
6
7
|
module ViewComponentReflex
|
|
7
8
|
# Your code goes here...
|
|
File without changes
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: view_component_reflex
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.1.
|
|
4
|
+
version: 2.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Joshua LeBlanc
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-08-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -69,9 +69,9 @@ files:
|
|
|
69
69
|
- README.md
|
|
70
70
|
- Rakefile
|
|
71
71
|
- app/components/view_component_reflex/component.rb
|
|
72
|
-
- app/reflexes/view_component_reflex/reflex.rb
|
|
73
72
|
- lib/view_component_reflex.rb
|
|
74
73
|
- lib/view_component_reflex/engine.rb
|
|
74
|
+
- lib/view_component_reflex/reflex.rb
|
|
75
75
|
- lib/view_component_reflex/state_adapter/memory.rb
|
|
76
76
|
- lib/view_component_reflex/state_adapter/session.rb
|
|
77
77
|
- lib/view_component_reflex/version.rb
|