live_record 1.0.1 → 1.0.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/.blade.yml +0 -0
- data/.gitignore +0 -0
- data/.rspec +0 -0
- data/.travis.yml +0 -0
- data/Gemfile +0 -0
- data/README.md +2 -0
- data/Rakefile +0 -0
- data/app/assets/javascripts/live_record.coffee +0 -0
- data/app/assets/javascripts/live_record/helpers.coffee +0 -0
- data/app/assets/javascripts/live_record/helpers/case_converter.coffee +0 -0
- data/app/assets/javascripts/live_record/helpers/load_records.coffee +0 -0
- data/app/assets/javascripts/live_record/helpers/spaceship.coffee +0 -0
- data/app/assets/javascripts/live_record/init.coffee +0 -0
- data/app/assets/javascripts/live_record/model.coffee +0 -0
- data/app/assets/javascripts/live_record/model/all.coffee +0 -0
- data/app/assets/javascripts/live_record/model/create.coffee +0 -0
- data/app/assets/javascripts/live_record/plugins.coffee +0 -0
- data/app/assets/javascripts/live_record/plugins/live_dom.coffee +0 -0
- data/app/assets/javascripts/live_record/plugins/live_dom/apply_to_model.coffee +0 -0
- data/app/channels/live_record/autoloads_channel.rb +0 -0
- data/app/channels/live_record/base_channel.rb +0 -0
- data/app/channels/live_record/base_channel/helpers.rb +0 -0
- data/app/channels/live_record/base_channel/search_adapters.rb +0 -0
- data/app/channels/live_record/changes_channel.rb +0 -0
- data/app/channels/live_record/publications_channel.rb +0 -0
- data/config.ru +0 -0
- data/config/puma.rb +0 -0
- data/developer_guide.md +1 -1
- data/lib/assets/compiled/live_record.js +0 -0
- data/lib/live_record.rb +0 -0
- data/lib/live_record/action_view_extensions/view_helper.rb +0 -0
- data/lib/live_record/configure.rb +0 -0
- data/lib/live_record/engine.rb +0 -0
- data/lib/live_record/generators/install_generator.rb +0 -0
- data/lib/live_record/generators/templates/create_live_record_updates.rb +0 -0
- data/lib/live_record/generators/templates/index.html.erb +1 -2
- data/lib/live_record/generators/templates/javascript.coffee.rb +0 -0
- data/lib/live_record/generators/templates/javascript.js.rb +0 -0
- data/lib/live_record/generators/templates/live_record_channel.rb +0 -0
- data/lib/live_record/generators/templates/live_record_update.rb +0 -0
- data/lib/live_record/generators/templates/model.rb.rb +0 -0
- data/lib/live_record/generators/templates/show.html.erb +0 -0
- data/lib/live_record/model/callbacks.rb +0 -0
- data/lib/live_record/version.rb +1 -1
- data/live_record.gemspec +0 -0
- data/package-lock.json +0 -0
- data/package.json +1 -1
- data/spec/factories/categories.rb +0 -0
- data/spec/factories/posts.rb +0 -0
- data/spec/factories/users.rb +0 -0
- data/spec/features/live_record_syncing_spec.rb +0 -0
- data/spec/helpers/wait.rb +0 -0
- data/spec/internal/app/assets/config/manifest.js +0 -0
- data/spec/internal/app/assets/javascripts/application.js +0 -0
- data/spec/internal/app/assets/javascripts/cable.js +0 -0
- data/spec/internal/app/assets/javascripts/categories.coffee +0 -0
- data/spec/internal/app/assets/javascripts/posts.coffee +0 -0
- data/spec/internal/app/assets/javascripts/users.coffee +0 -0
- data/spec/internal/app/channels/application_cable/channel.rb +0 -0
- data/spec/internal/app/channels/application_cable/connection.rb +0 -0
- data/spec/internal/app/controllers/application_controller.rb +0 -0
- data/spec/internal/app/controllers/posts_controller.rb +0 -0
- data/spec/internal/app/controllers/users_controller.rb +0 -0
- data/spec/internal/app/models/application_record.rb +0 -0
- data/spec/internal/app/models/category.rb +0 -0
- data/spec/internal/app/models/live_record_update.rb +0 -0
- data/spec/internal/app/models/post.rb +0 -0
- data/spec/internal/app/models/user.rb +0 -0
- data/spec/internal/app/views/layouts/application.html.erb +0 -0
- data/spec/internal/app/views/posts/_form.html.erb +0 -0
- data/spec/internal/app/views/posts/_post.json.jbuilder +0 -0
- data/spec/internal/app/views/posts/edit.html.erb +0 -0
- data/spec/internal/app/views/posts/index.html.erb +0 -0
- data/spec/internal/app/views/posts/index.json.jbuilder +0 -0
- data/spec/internal/app/views/posts/new.html.erb +0 -0
- data/spec/internal/app/views/posts/show.html.erb +0 -0
- data/spec/internal/app/views/posts/show.json.jbuilder +0 -0
- data/spec/internal/app/views/users/_user.json.jbuilder +0 -0
- data/spec/internal/app/views/users/index.json.jbuilder +0 -0
- data/spec/internal/config/cable.yml +0 -0
- data/spec/internal/config/database.yml +0 -0
- data/spec/internal/config/routes.rb +0 -0
- data/spec/internal/db/schema.rb +0 -0
- data/spec/internal/public/favicon.ico +0 -0
- data/spec/rails_helper.rb +0 -0
- data/spec/spec_helper.rb +0 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d16fe8ac7dd7a7567542874e45f9395e5abb8347bc689392a289ae5dcbc25a7e
|
|
4
|
+
data.tar.gz: c5594dc7ff06bfd9a4ef10cd837b12484961e8bfb9356ca66e7c13e617a1d811
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 380b8a970144853275350f9068ef3408187315615eebed8848b73d70a5559fac2f168f4195d3c85c156030689fc84893783b940656c408b0a85f591669c3b3b4
|
|
7
|
+
data.tar.gz: de72a7eb8b6345bb80792fb063edfbc808e1a1acac785d43f431d55a1f852f2278eba672c13983ea3bdf2610cefa525dd4c8d46cf65ee14697b9f40b8d5741c0
|
data/.blade.yml
CHANGED
|
File without changes
|
data/.gitignore
CHANGED
|
File without changes
|
data/.rspec
CHANGED
|
File without changes
|
data/.travis.yml
CHANGED
|
File without changes
|
data/Gemfile
CHANGED
|
File without changes
|
data/README.md
CHANGED
|
@@ -804,6 +804,8 @@ end
|
|
|
804
804
|
* see [developer_guide.md](developer_guide.md)
|
|
805
805
|
|
|
806
806
|
## Changelog
|
|
807
|
+
* 1.0.2
|
|
808
|
+
* removed unnecessary remnant code from past debugging
|
|
807
809
|
* 1.0.0
|
|
808
810
|
* extracted as a Node module (JS code is now modularised, and now requires a major version increment; thus 1.0.0)
|
|
809
811
|
* 0.3.4
|
data/Rakefile
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/config.ru
CHANGED
|
File without changes
|
data/config/puma.rb
CHANGED
|
File without changes
|
data/developer_guide.md
CHANGED
|
File without changes
|
data/lib/live_record.rb
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/lib/live_record/engine.rb
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
LiveRecord.helpers.loadRecords({modelName: '<%= singular_table_name.camelcase %>'})
|
|
3
|
-
LiveRecord.Model.all.<%= singular_table_name.camelcase %>.subscribe();
|
|
4
3
|
</script>
|
|
5
4
|
<p id="notice"><%%= notice %></p>
|
|
6
5
|
|
|
@@ -32,4 +31,4 @@
|
|
|
32
31
|
|
|
33
32
|
<br>
|
|
34
33
|
|
|
35
|
-
<%%= link_to 'New <%= singular_table_name.titleize %>', new_<%= singular_table_name %>_path %>
|
|
34
|
+
<%%= link_to 'New <%= singular_table_name.titleize %>', new_<%= singular_table_name %>_path %>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/lib/live_record/version.rb
CHANGED
data/live_record.gemspec
CHANGED
|
File without changes
|
data/package-lock.json
CHANGED
|
File without changes
|
data/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jrpolidario/live_record",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
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": {
|
|
File without changes
|
data/spec/factories/posts.rb
CHANGED
|
File without changes
|
data/spec/factories/users.rb
CHANGED
|
File without changes
|
|
File without changes
|
data/spec/helpers/wait.rb
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/spec/internal/db/schema.rb
CHANGED
|
File without changes
|
|
File without changes
|
data/spec/rails_helper.rb
CHANGED
|
File without changes
|
data/spec/spec_helper.rb
CHANGED
|
File without changes
|
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.
|
|
4
|
+
version: 1.0.2
|
|
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-
|
|
11
|
+
date: 2018-09-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|