stimulus_reflex 2.1.9 → 2.2.0
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/Gemfile.lock +2 -2
- data/README.md +6 -4
- data/lib/stimulus_reflex/channel.rb +0 -1
- data/lib/stimulus_reflex/version.rb +1 -1
- metadata +2 -4
- data/README.md.orig +0 -62
- data/tags +0 -38
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b59cee3f140e6a7788cb494990238f7b139059300d51aa5875d32fa20f71cf1d
|
|
4
|
+
data.tar.gz: dfbab0deec097762a108ad1ed2c1a818d86b63d929d4579898f23cfe394f7932
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8d5474a0cbb8cc0fbf76ad0282a3dac7bcf08e032afaf74691259e1fbe72b22ee00ac3df1beb170f1cff64ad9e2535e564c8f3bc83f3033ab518b2d7ef95a6e7
|
|
7
|
+
data.tar.gz: f799e483594b82ce5c8cf452209743e2357b5c3258ca10147890da1989c6a25d36f954aafc75d99fc405fba3940a10ee94aede2cea43493609bd89c9a42c351a
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
stimulus_reflex (2.
|
|
4
|
+
stimulus_reflex (2.2.0)
|
|
5
5
|
cable_ready (>= 4.0)
|
|
6
6
|
nokogiri
|
|
7
7
|
rack
|
|
@@ -149,7 +149,7 @@ GEM
|
|
|
149
149
|
actionpack (>= 4.0)
|
|
150
150
|
activesupport (>= 4.0)
|
|
151
151
|
sprockets (>= 3.0.0)
|
|
152
|
-
standard (0.1.
|
|
152
|
+
standard (0.1.10)
|
|
153
153
|
rubocop (~> 0.79.0)
|
|
154
154
|
rubocop-performance (~> 1.5.1)
|
|
155
155
|
standardrb (1.0.0)
|
data/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[](http://blog.codinghorror.com/the-best-code-is-no-code-at-all/)
|
|
2
2
|
[](https://codeclimate.com/github/hopsoft/stimulus_reflex/maintainability)
|
|
3
3
|

|
|
4
4
|

|
|
@@ -22,9 +22,7 @@ It works with seamlessly with the Rails tooling you already know and love.
|
|
|
22
22
|
|
|
23
23
|
**The goal is to help small teams do big things with familiar tools.**
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
_Originally inspired by [Phoenix LiveView](https://youtu.be/Z2DU0qLfPIY?t=670)._ 🙌
|
|
25
|
+
This project strives to live up to the vision outlined in [The Rails Doctrine](https://rubyonrails.org/doctrine/).
|
|
28
26
|
|
|
29
27
|
## Docs
|
|
30
28
|
|
|
@@ -65,3 +63,7 @@ View the [wiki](https://github.com/hopsoft/stimulus_reflex/wiki/Editor-Configura
|
|
|
65
63
|
## License
|
|
66
64
|
|
|
67
65
|
StimulusReflex is released under the [MIT License](LICENSE.txt).
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
_Originally inspired by [Phoenix LiveView](https://youtu.be/Z2DU0qLfPIY?t=670)._ 🙌
|
|
@@ -7,7 +7,6 @@ class StimulusReflex::Channel < ActionCable::Channel::Base
|
|
|
7
7
|
ids = connection.identifiers.map { |identifier| send(identifier).try(:id) || send(identifier) }
|
|
8
8
|
[
|
|
9
9
|
params[:channel],
|
|
10
|
-
params[:room],
|
|
11
10
|
ids.select(&:present?).join(";"),
|
|
12
11
|
].select(&:present?).join(":")
|
|
13
12
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: stimulus_reflex
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nathan Hopkins
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-02-
|
|
11
|
+
date: 2020-02-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rack
|
|
@@ -148,7 +148,6 @@ files:
|
|
|
148
148
|
- Gemfile.lock
|
|
149
149
|
- LICENSE.txt
|
|
150
150
|
- README.md
|
|
151
|
-
- README.md.orig
|
|
152
151
|
- Rakefile
|
|
153
152
|
- bin/console
|
|
154
153
|
- bin/loc
|
|
@@ -168,7 +167,6 @@ files:
|
|
|
168
167
|
- lib/stimulus_reflex/version.rb
|
|
169
168
|
- lib/tasks/stimulus_reflex/install.rake
|
|
170
169
|
- stimulus_reflex.gemspec
|
|
171
|
-
- tags
|
|
172
170
|
- test/generators/stimulus_reflex_generator_test.rb
|
|
173
171
|
- test/test_helper.rb
|
|
174
172
|
- test/tmp/app/reflexes/application_reflex.rb
|
data/README.md.orig
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
<p align="center">
|
|
2
|
-
<img src="https://raw.githubusercontent.com/hopsoft/stimulus_reflex/master/assets/stimulus-reflex-logo.svg?sanitize=true" height="100" />
|
|
3
|
-
</p>
|
|
4
|
-
<p align="center">
|
|
5
|
-
<a href="https://codefund.io/properties/525/visit-sponsor">
|
|
6
|
-
<img src="https://codefund.io/properties/525/sponsor" />
|
|
7
|
-
</a>
|
|
8
|
-
</p>
|
|
9
|
-
|
|
10
|
-
<<<<<<< HEAD
|
|
11
|
-
[](http://blog.codinghorror.com/the-best-code-is-no-code-at-all/)
|
|
12
|
-
=======
|
|
13
|
-
[](http://blog.codinghorror.com/the-best-code-is-no-code-at-all/)
|
|
14
|
-
>>>>>>> master
|
|
15
|
-
[](https://codeclimate.com/github/hopsoft/stimulus_reflex/maintainability)
|
|
16
|
-

|
|
17
|
-

|
|
18
|
-

|
|
19
|
-
[](https://stimulus-reflex.discourse.group)
|
|
20
|
-
|
|
21
|
-
# StimulusReflex
|
|
22
|
-
|
|
23
|
-
_reflex_ - an action that is performed as a response to a stimulus
|
|
24
|
-
|
|
25
|
-
**Build reactive applications with the Rails tooling you already know and love.** StimulusReflex is designed to work perfectly with [server rendered HTML](https://guides.rubyonrails.org/action_view_overview.html), [Russian doll caching](https://edgeguides.rubyonrails.org/caching_with_rails.html#russian-doll-caching), [Stimulus](https://stimulusjs.org/), [Turbolinks](https://www.youtube.com/watch?v=SWEts0rlezA), etc... and strives to live up to the vision outlined in [The Rails Doctrine](https://rubyonrails.org/doctrine/).
|
|
26
|
-
|
|
27
|
-
_Inspired by [Phoenix LiveView](https://youtu.be/Z2DU0qLfPIY?t=670)._ 🙌
|
|
28
|
-
|
|
29
|
-
## Docs
|
|
30
|
-
|
|
31
|
-
- [Official Documentation](https://docs.stimulusreflex.com)
|
|
32
|
-
|
|
33
|
-
## Demos
|
|
34
|
-
|
|
35
|
-
- http://expo.stimulusreflex.com
|
|
36
|
-
|
|
37
|
-
## Contributing
|
|
38
|
-
|
|
39
|
-
### Code of Conduct
|
|
40
|
-
|
|
41
|
-
Everyone interacting with StimulusReflex is expected to follow the [Code of Conduct](CODE_OF_CONDUCT.md)
|
|
42
|
-
|
|
43
|
-
### Coding Standards
|
|
44
|
-
|
|
45
|
-
This project uses [Standard](https://github.com/testdouble/standard) for Ruby code
|
|
46
|
-
and [Prettier-Standard](https://github.com/sheerun/prettier-standard) for JavaScript code to minimize bike shedding related to source formatting.
|
|
47
|
-
|
|
48
|
-
Please run `./bin/standardize` prior to submitting pull requests.
|
|
49
|
-
|
|
50
|
-
View the [wiki](https://github.com/hopsoft/stimulus_reflex/wiki/Editor-Configuration) to see recommendations for configuring your editor to work best with the project.
|
|
51
|
-
|
|
52
|
-
### Releasing
|
|
53
|
-
|
|
54
|
-
1. Bump version number at `lib/stimulus_reflex/version.rb`
|
|
55
|
-
1. Run `rake build`
|
|
56
|
-
1. Run `rake release`
|
|
57
|
-
1. Change directories `cd ./javascript`
|
|
58
|
-
1. Run `yarn publish` - NOTE: this will throw a fatal error because the tag already exists but the package will still publish
|
|
59
|
-
|
|
60
|
-
## License
|
|
61
|
-
|
|
62
|
-
StimulusReflex is released under the [MIT License](LICENSE.txt).
|
data/tags
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
!_TAG_FILE_FORMAT 2 /extended format; --format=1 will not append ;" to lines/
|
|
2
|
-
!_TAG_FILE_SORTED 1 /0=unsorted, 1=sorted, 2=foldcase/
|
|
3
|
-
!_TAG_PROGRAM_AUTHOR Darren Hiebert /dhiebert@users.sourceforge.net/
|
|
4
|
-
!_TAG_PROGRAM_NAME Exuberant Ctags //
|
|
5
|
-
!_TAG_PROGRAM_URL http://ctags.sourceforge.net /official site/
|
|
6
|
-
!_TAG_PROGRAM_VERSION 5.8 //
|
|
7
|
-
ApplicationReflex lib/generators/templates/application_reflex.rb /^class ApplicationReflex < StimulusReflex::Reflex$/;" c
|
|
8
|
-
ApplicationReflex test/tmp/app/reflexes/application_reflex.rb /^class ApplicationReflex < StimulusReflex::Reflex$/;" c
|
|
9
|
-
DemoReflex test/tmp/app/reflexes/demo_reflex.rb /^class DemoReflex < ApplicationReflex$/;" c
|
|
10
|
-
Engine lib/stimulus_reflex.rb /^ class Engine < Rails::Engine$/;" c class:StimulusReflex
|
|
11
|
-
StimulusReflex lib/stimulus_reflex.rb /^module StimulusReflex$/;" m
|
|
12
|
-
StimulusReflex lib/stimulus_reflex/channel.rb /^class StimulusReflex::Channel < ActionCable::Channel::Base$/;" c
|
|
13
|
-
StimulusReflex lib/stimulus_reflex/element.rb /^class StimulusReflex::Element$/;" c
|
|
14
|
-
StimulusReflex lib/stimulus_reflex/reflex.rb /^class StimulusReflex::Reflex$/;" c
|
|
15
|
-
StimulusReflex lib/stimulus_reflex/version.rb /^module StimulusReflex$/;" m
|
|
16
|
-
StimulusReflexGenerator lib/generators/stimulus_reflex_generator.rb /^class StimulusReflexGenerator < Rails::Generators::NamedBase$/;" c
|
|
17
|
-
StimulusReflexGeneratorTest test/generators/stimulus_reflex_generator_test.rb /^class StimulusReflexGeneratorTest < Rails::Generators::TestCase$/;" c
|
|
18
|
-
broadcast_error lib/stimulus_reflex/channel.rb /^ def broadcast_error(message, data = {})$/;" f class:StimulusReflex
|
|
19
|
-
broadcast_morphs lib/stimulus_reflex/channel.rb /^ def broadcast_morphs(selectors, data, html)$/;" f class:StimulusReflex
|
|
20
|
-
copy_controller_files lib/generators/stimulus_reflex_generator.rb /^ def copy_controller_files$/;" f class:StimulusReflexGenerator
|
|
21
|
-
copy_reflex_files lib/generators/stimulus_reflex_generator.rb /^ def copy_reflex_files$/;" f class:StimulusReflexGenerator
|
|
22
|
-
dataset lib/stimulus_reflex/element.rb /^ def dataset$/;" f class:StimulusReflex
|
|
23
|
-
delegate_call_to_reflex lib/stimulus_reflex/channel.rb /^ def delegate_call_to_reflex(reflex, method_name, arguments = [])$/;" f class:StimulusReflex
|
|
24
|
-
export.reflexAttribute javascript/schema.js /^ reflexAttribute: 'data-reflex',$/;" p
|
|
25
|
-
export.reflexPermanentAttribute javascript/schema.js /^ reflexPermanentAttribute: 'data-reflex-permanent',$/;" p
|
|
26
|
-
export.reflexRootAttribute javascript/schema.js /^ reflexRootAttribute: 'data-reflex-root',$/;" p
|
|
27
|
-
export.roomAttribute javascript/schema.js /^ roomAttribute: 'data-room'$/;" p
|
|
28
|
-
initialize lib/stimulus_reflex/element.rb /^ def initialize(attrs = {})$/;" f class:StimulusReflex
|
|
29
|
-
initialize lib/stimulus_reflex/reflex.rb /^ def initialize(channel, url: nil, element: nil, selectors: [])$/;" f class:StimulusReflex
|
|
30
|
-
initialize_controllers lib/generators/stimulus_reflex_generator.rb /^ def initialize_controllers$/;" f class:StimulusReflexGenerator
|
|
31
|
-
initialize_reflexes lib/generators/stimulus_reflex_generator.rb /^ def initialize_reflexes$/;" f class:StimulusReflexGenerator
|
|
32
|
-
is_reflex? lib/stimulus_reflex/channel.rb /^ def is_reflex?(reflex_class)$/;" f class:StimulusReflex
|
|
33
|
-
receive lib/stimulus_reflex/channel.rb /^ def receive(data)$/;" f class:StimulusReflex
|
|
34
|
-
render_page lib/stimulus_reflex/channel.rb /^ def render_page(url, reflex)$/;" f class:StimulusReflex
|
|
35
|
-
render_page_and_broadcast_morph lib/stimulus_reflex/channel.rb /^ def render_page_and_broadcast_morph(url, reflex, selectors, data = {})$/;" f class:StimulusReflex
|
|
36
|
-
request lib/stimulus_reflex/reflex.rb /^ def request$/;" f class:StimulusReflex
|
|
37
|
-
stream_name lib/stimulus_reflex/channel.rb /^ def stream_name$/;" f class:StimulusReflex
|
|
38
|
-
subscribed lib/stimulus_reflex/channel.rb /^ def subscribed$/;" f class:StimulusReflex
|