motion 0.1.1 → 0.1.2

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: 2c9776bff100e3017a158810f93d3c374d97e6df42b8d9ffee43bf96da624b5b
4
- data.tar.gz: a0764632d832cd96b58b3ffa5c28e9598d09136b0dbe6eadc66ab074bc18d5bd
3
+ metadata.gz: f50ecf7f319478fcd72dca2dd6e55c36a67d803e6235d24c39ac36537528bb88
4
+ data.tar.gz: 10c88dabd3104c7351a5d2eeb6623564214171c1b26fdf9b25aca3d8297c2a46
5
5
  SHA512:
6
- metadata.gz: b5a0955da6087872bd9ec9940b8b3a674bf6fd2782ccad6b72460255703ff810e06e3d62ea99484a6c95d6fb48883953bbdec1cb3224af2513006ba60d5f3c54
7
- data.tar.gz: a0360a0b1a0422b38f5bd4f9a46ba203ed9f1d3a1a6adf6073c89ff77152c0ae5cf212d097e6ad8b864f2bf220772511887db3c1692d7c4b7be3d3f54be01ec5
6
+ metadata.gz: 31a107b75a0e553febfec1f0b93cc878c4c727f5f61ba1d0e39b89c9c7c1a7b45d5ecf188a49b9e1293c2f4056974afb755c1cb2cd4594895e95c3166e38563f
7
+ data.tar.gz: 7ad03d82e4a4ca05338368db8cda1b12813662f3f3fe2937f576baeb47b8b7c99b41b5bfc4ec9b11eb42facbce155990b7f278c6171603b0bf972b9adb641c52
@@ -70,8 +70,9 @@ module Motion
70
70
  def _ensure_declarative_stream_proxy(broadcast)
71
71
  return unless @_declarative_stream_proxies.add?(broadcast)
72
72
 
73
- # TODO: Something about this doesn't deal with the coder correctly.
74
- stream_from(broadcast) do |message|
73
+ # TODO: I feel like the fact that we have to specify the coder here is
74
+ # a bug in ActionCable. It should be the default for this karg.
75
+ stream_from(broadcast, coder: ActiveSupport::JSON) do |message|
75
76
  _handle_incoming_broadcast_to_declarative_stream(broadcast, message)
76
77
  rescue Exception => exception # rubocop:disable Lint/RescueException
77
78
  # It is very, very important that we do not allow an exception to
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Motion
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motion
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alec Larsen
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-06-25 00:00:00.000000000 Z
12
+ date: 2020-06-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri
@@ -40,8 +40,8 @@ dependencies:
40
40
  - !ruby/object:Gem::Version
41
41
  version: '5.2'
42
42
  description: |
43
- Motion extends Github's `view_component` gem with reactivity to interactions
44
- from the user and broadcasts on the server.
43
+ Motion extends Github's `view_component` to allow you to build reactive,
44
+ real-time frontend UI components in your Rails application using pure Ruby.
45
45
  email:
46
46
  - alec@unabridgedsoftware.com
47
47
  - drew@unabridgedsoftware.com
@@ -81,7 +81,7 @@ metadata:
81
81
  source_code_uri: https://github.com/unabridged/motion
82
82
  post_install_message: |
83
83
  Friendly reminder: When updating the motion gem, don't forget to update the
84
- NPM package as well (`bin/yarn add '@unabridged/motion@0.1.1'`).
84
+ NPM package as well (`bin/yarn add '@unabridged/motion@0.1.2'`).
85
85
  rdoc_options: []
86
86
  require_paths:
87
87
  - lib
@@ -99,5 +99,5 @@ requirements: []
99
99
  rubygems_version: 3.0.3
100
100
  signing_key:
101
101
  specification_version: 4
102
- summary: Reactive view components written in Ruby for Rails
102
+ summary: Reactive frontend UI components for Rails in pure Ruby.
103
103
  test_files: []