live_record 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (88) hide show
  1. checksums.yaml +4 -4
  2. data/.blade.yml +0 -0
  3. data/.gitignore +0 -0
  4. data/.rspec +0 -0
  5. data/.travis.yml +0 -0
  6. data/Gemfile +0 -0
  7. data/README.md +2 -0
  8. data/Rakefile +0 -0
  9. data/app/assets/javascripts/live_record.coffee +0 -0
  10. data/app/assets/javascripts/live_record/helpers.coffee +0 -0
  11. data/app/assets/javascripts/live_record/helpers/case_converter.coffee +0 -0
  12. data/app/assets/javascripts/live_record/helpers/load_records.coffee +0 -0
  13. data/app/assets/javascripts/live_record/helpers/spaceship.coffee +0 -0
  14. data/app/assets/javascripts/live_record/init.coffee +0 -0
  15. data/app/assets/javascripts/live_record/model.coffee +0 -0
  16. data/app/assets/javascripts/live_record/model/all.coffee +0 -0
  17. data/app/assets/javascripts/live_record/model/create.coffee +0 -0
  18. data/app/assets/javascripts/live_record/plugins.coffee +0 -0
  19. data/app/assets/javascripts/live_record/plugins/live_dom.coffee +0 -0
  20. data/app/assets/javascripts/live_record/plugins/live_dom/apply_to_model.coffee +0 -0
  21. data/app/channels/live_record/autoloads_channel.rb +0 -0
  22. data/app/channels/live_record/base_channel.rb +0 -0
  23. data/app/channels/live_record/base_channel/helpers.rb +0 -0
  24. data/app/channels/live_record/base_channel/search_adapters.rb +0 -0
  25. data/app/channels/live_record/changes_channel.rb +0 -0
  26. data/app/channels/live_record/publications_channel.rb +0 -0
  27. data/config.ru +0 -0
  28. data/config/puma.rb +0 -0
  29. data/developer_guide.md +1 -1
  30. data/lib/assets/compiled/live_record.js +0 -0
  31. data/lib/live_record.rb +0 -0
  32. data/lib/live_record/action_view_extensions/view_helper.rb +0 -0
  33. data/lib/live_record/configure.rb +0 -0
  34. data/lib/live_record/engine.rb +0 -0
  35. data/lib/live_record/generators/install_generator.rb +0 -0
  36. data/lib/live_record/generators/templates/create_live_record_updates.rb +0 -0
  37. data/lib/live_record/generators/templates/index.html.erb +1 -2
  38. data/lib/live_record/generators/templates/javascript.coffee.rb +0 -0
  39. data/lib/live_record/generators/templates/javascript.js.rb +0 -0
  40. data/lib/live_record/generators/templates/live_record_channel.rb +0 -0
  41. data/lib/live_record/generators/templates/live_record_update.rb +0 -0
  42. data/lib/live_record/generators/templates/model.rb.rb +0 -0
  43. data/lib/live_record/generators/templates/show.html.erb +0 -0
  44. data/lib/live_record/model/callbacks.rb +0 -0
  45. data/lib/live_record/version.rb +1 -1
  46. data/live_record.gemspec +0 -0
  47. data/package-lock.json +0 -0
  48. data/package.json +1 -1
  49. data/spec/factories/categories.rb +0 -0
  50. data/spec/factories/posts.rb +0 -0
  51. data/spec/factories/users.rb +0 -0
  52. data/spec/features/live_record_syncing_spec.rb +0 -0
  53. data/spec/helpers/wait.rb +0 -0
  54. data/spec/internal/app/assets/config/manifest.js +0 -0
  55. data/spec/internal/app/assets/javascripts/application.js +0 -0
  56. data/spec/internal/app/assets/javascripts/cable.js +0 -0
  57. data/spec/internal/app/assets/javascripts/categories.coffee +0 -0
  58. data/spec/internal/app/assets/javascripts/posts.coffee +0 -0
  59. data/spec/internal/app/assets/javascripts/users.coffee +0 -0
  60. data/spec/internal/app/channels/application_cable/channel.rb +0 -0
  61. data/spec/internal/app/channels/application_cable/connection.rb +0 -0
  62. data/spec/internal/app/controllers/application_controller.rb +0 -0
  63. data/spec/internal/app/controllers/posts_controller.rb +0 -0
  64. data/spec/internal/app/controllers/users_controller.rb +0 -0
  65. data/spec/internal/app/models/application_record.rb +0 -0
  66. data/spec/internal/app/models/category.rb +0 -0
  67. data/spec/internal/app/models/live_record_update.rb +0 -0
  68. data/spec/internal/app/models/post.rb +0 -0
  69. data/spec/internal/app/models/user.rb +0 -0
  70. data/spec/internal/app/views/layouts/application.html.erb +0 -0
  71. data/spec/internal/app/views/posts/_form.html.erb +0 -0
  72. data/spec/internal/app/views/posts/_post.json.jbuilder +0 -0
  73. data/spec/internal/app/views/posts/edit.html.erb +0 -0
  74. data/spec/internal/app/views/posts/index.html.erb +0 -0
  75. data/spec/internal/app/views/posts/index.json.jbuilder +0 -0
  76. data/spec/internal/app/views/posts/new.html.erb +0 -0
  77. data/spec/internal/app/views/posts/show.html.erb +0 -0
  78. data/spec/internal/app/views/posts/show.json.jbuilder +0 -0
  79. data/spec/internal/app/views/users/_user.json.jbuilder +0 -0
  80. data/spec/internal/app/views/users/index.json.jbuilder +0 -0
  81. data/spec/internal/config/cable.yml +0 -0
  82. data/spec/internal/config/database.yml +0 -0
  83. data/spec/internal/config/routes.rb +0 -0
  84. data/spec/internal/db/schema.rb +0 -0
  85. data/spec/internal/public/favicon.ico +0 -0
  86. data/spec/rails_helper.rb +0 -0
  87. data/spec/spec_helper.rb +0 -0
  88. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b5a40c5c67afc7ce3ca08efdb23364a8b64ba52c9866542c419cc8be866417e3
4
- data.tar.gz: 8f828c95bf5cc5eee7f86cd852c17dfbd0e23266708422e0c049f6fbe3b9d61b
3
+ metadata.gz: d16fe8ac7dd7a7567542874e45f9395e5abb8347bc689392a289ae5dcbc25a7e
4
+ data.tar.gz: c5594dc7ff06bfd9a4ef10cd837b12484961e8bfb9356ca66e7c13e617a1d811
5
5
  SHA512:
6
- metadata.gz: fe89b6e9e2891f1ab53cf2501349e86d2a0a711729665f336837cb6b8e49a147a112561b5b114db05c0f703b5e581fc4a8d98db1b1b5bdc7a028cd5dc90f39a3
7
- data.tar.gz: 0df15ec20627867ba4f0fb3508e400123599c873e25d39f0a82600f7176b8255f308c70da8ed7165d3a99aba5bf0779e05343f57ccfd2657dbed7e0d66096965
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
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
data/config.ru CHANGED
File without changes
File without changes
@@ -4,7 +4,7 @@
4
4
 
5
5
  ```bash
6
6
  # [increment gem VERSION]
7
- gem build live_record
7
+ gem build live_record.gemspec
8
8
  gem push live_record-X.X.X.gem
9
9
  ```
10
10
 
File without changes
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
@@ -1,3 +1,3 @@
1
1
  module LiveRecord
2
- VERSION = '1.0.1'.freeze
2
+ VERSION = '1.0.2'.freeze
3
3
  end
File without changes
File without changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jrpolidario/live_record",
3
- "version": "1.0.1",
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
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
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.1
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-06-05 00:00:00.000000000 Z
11
+ date: 2018-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails