live_record 1.0.0 → 1.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: d893afc1c4b65f1decccc6176b8f6e9e5818a2b2e7ac21c5f2b903e6672e0f66
4
- data.tar.gz: 4d52d78b3675ce187cfce06daff4cf22e0240508f66f84f808c30be0dbd17e8d
3
+ metadata.gz: b5a40c5c67afc7ce3ca08efdb23364a8b64ba52c9866542c419cc8be866417e3
4
+ data.tar.gz: 8f828c95bf5cc5eee7f86cd852c17dfbd0e23266708422e0c049f6fbe3b9d61b
5
5
  SHA512:
6
- metadata.gz: ced22fae06d98ca59e4912db8b462998a26ac43708c6da7a8ef0c8fdd8efaed31fd0ac3597e39377ced20fda8a2afff7d2825d1849900b340938ed2ad2a1d8bc
7
- data.tar.gz: 70f8f687b78ef517e488f7a534caee2a6b83e29fd6e6f3f5d6a35b33d62b1a5f6dd0bce6bb3ab45c22a46bcc19c41354badea4c3506a9b75e0ec43b344ca8912
6
+ metadata.gz: fe89b6e9e2891f1ab53cf2501349e86d2a0a711729665f336837cb6b8e49a147a112561b5b114db05c0f703b5e581fc4a8d98db1b1b5bdc7a028cd5dc90f39a3
7
+ data.tar.gz: 0df15ec20627867ba4f0fb3508e400123599c873e25d39f0a82600f7176b8255f308c70da8ed7165d3a99aba5bf0779e05343f57ccfd2657dbed7e0d66096965
data/Gemfile CHANGED
@@ -9,5 +9,5 @@ group :development, :test do
9
9
  # do not require to prevent Capybara deprecation warning on rspec run
10
10
  gem 'capybara', '~> 3.1', require: false
11
11
 
12
- gem 'sprockets-export', '~> 1.0.0', require: false
12
+ gem 'sprockets-export', '~> 1.0', require: false
13
13
  end
data/README.md CHANGED
@@ -157,7 +157,7 @@
157
157
  1. Add the following to your `Gemfile`:
158
158
 
159
159
  ```ruby
160
- gem 'live_record', '~> 1.0.0'
160
+ gem 'live_record', '~> 1.0'
161
161
  ```
162
162
 
163
163
  2. Run:
@@ -1,3 +1,3 @@
1
1
  module LiveRecord
2
- VERSION = '1.0.0'.freeze
2
+ VERSION = '1.0.1'.freeze
3
3
  end
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jrpolidario/live_record",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Auto-syncs records in client-side JS (through a Model DSL) from changes (updates/destroy) in the backend Rails server through ActionCable.\\n Also supports streaming newly created records to client-side JS.\\n Supports lost connection restreaming for both new records (create), and record-changes (updates/destroy).\\n Auto-updates DOM elements mapped to a record attribute, from changes (updates/destroy).",
5
5
  "main": "lib/assets/compiled/live_record.js",
6
6
  "repository": {
@@ -8,5 +8,6 @@
8
8
  this.App || (this.App = {});
9
9
 
10
10
  App.cable = ActionCable.createConsumer();
11
+ LiveRecord.init(App.cable);
11
12
 
12
13
  }).call(this);
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: live_record
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jules Roman B. Polidario
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-01 00:00:00.000000000 Z
11
+ date: 2018-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails