hyper-mesh 1.0.0.lap24 → 1.0.0.lap25

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: f71958166fcd1ea5b7b054c460a431f45ebae9389098d3046e805a38225235d6
4
- data.tar.gz: 9bcf2cb4090bc56920db979d5e016fdcfa450497c375b8487efa8e94e73da837
3
+ metadata.gz: cf69b27d4d7d5c32b7ff57827e054e2a813b95d8d7aa50c9b6898095d08f65eb
4
+ data.tar.gz: 2f402ffb7500ee5405c3347cae56888336d084faa4541ecf495690e0b77c9ba2
5
5
  SHA512:
6
- metadata.gz: 59e3c865aa085a2a16ee573d8dcd147d0dc96d91e04fa4799e29e3dc80cce5aba5801e837686a612c2ac72b15f42a21767c8250695552a882c24fd1bdd34fb41
7
- data.tar.gz: aaa9fb686b480a3ad322e835fa7f8a95a13e37f4a508a374c94aa75585f12f03eb5053f4d33c819269a09f8864f27d67ed639f7146992e96f2c89555307e6d9a
6
+ metadata.gz: d6d12d61111eb2ac208055e473798f7f26cad25ba0274a89d18db09bf37ecd4916037689e4068b8f51e276a0a73198137cddb1a94dfd4a58ca714e925aabed8d
7
+ data.tar.gz: 02d342432080da9079d869793000d19316f93b26c7cd99d5ed14cc2c013f4ffeb3dbfe6d31483c00227d2aebcb51bd0add3e9e52fba2bf596f3132b1e0880e08
@@ -1,3 +1,3 @@
1
1
  module Hypermesh
2
- VERSION = '1.0.0.lap24'
2
+ VERSION = '1.0.0.lap25'
3
3
  end
@@ -58,7 +58,7 @@ module ReactiveRecord
58
58
 
59
59
  isomorphic_method(:find_in_db) do |f, klass, attribute, value|
60
60
  f.send_to_server klass.name, attribute, value if RUBY_ENGINE == 'opal'
61
- f.when_on_server { @server_data_cache[klass, ["find_by_#{attribute}", value], :id] }
61
+ f.when_on_server { @server_data_cache[klass, ["find_by", { attribute => value }], 'id'] }
62
62
  end
63
63
 
64
64
  class << self
@@ -224,10 +224,8 @@ module React
224
224
  class Element
225
225
 
226
226
  def while_loading(display = "", &loading_display_block)
227
-
228
227
  loaded_children = []
229
228
  loaded_children = block.call.dup if block
230
-
231
229
  if display.respond_to? :as_node
232
230
  display = display.as_node
233
231
  loading_display_block = lambda { display.render }
@@ -288,7 +286,7 @@ if RUBY_ENGINE == 'opal'
288
286
  var node_wl_attr = node.getAttribute('data-reactive_record_enclosing_while_loading_container_id');
289
287
  if (node_wl_attr === null || node_wl_attr === "") {
290
288
  var while_loading_container = node.closest('[data-reactive_record_while_loading_container_id]');
291
- if (while_loading_container !== null && while_loading_container.length > 0) {
289
+ if (while_loading_container !== null) {
292
290
  var container_id = while_loading_container.getAttribute('data-reactive_record_while_loading_container_id');
293
291
  node.setAttribute('data-reactive_record_enclosing_while_loading_container_id', container_id);
294
292
  }
@@ -299,6 +297,7 @@ if RUBY_ENGINE == 'opal'
299
297
  def reactive_record_link_set_while_loading_container_class
300
298
  node = dom_node
301
299
  loading = (waiting_on_resources ? `true` : `false`)
300
+ #puts "******* reactive_record_link_set_while_loading_container_class #{self} #{node} #{loading}"
302
301
  %x{
303
302
  if (typeof node === "undefined" || node === null) return;
304
303
  var while_loading_container_id = node.getAttribute('data-reactive_record_while_loading_container_id');
@@ -224,8 +224,8 @@ module ReactiveRecord
224
224
  else
225
225
  begin
226
226
  secured_method = "__secure_remote_access_to_#{[*method].first}"
227
- if @value.class < ActiveRecord::Base and @value.attributes.has_key?(method) # TODO: second check is not needed, its built into check_permmissions, check should be does class respond to check_permissions...
228
- @value.check_permission_with_acting_user(@acting_user, :view_permitted?, method)
227
+ if cache_item.value.class < ActiveRecord::Base and cache_item.value.attributes.has_key?(method) # TODO: second check is not needed, its built into check_permmissions, check should be does class respond to check_permissions...
228
+ cache_item.value.check_permission_with_acting_user(@acting_user, :view_permitted?, method)
229
229
  cache_item.build_new_cache_item(cache_item.value.send(*method), method, method)
230
230
  elsif cache_item.value.respond_to? secured_method
231
231
  cache_item.build_new_cache_item(cache_item.value.send(secured_method, @acting_user, *([*method][1..-1])), method, method)
@@ -289,6 +289,7 @@ module ReactiveRecord
289
289
 
290
290
  # SECURITY - SAFE
291
291
  def apply_method(method)
292
+
292
293
  if method.is_a? Array and method.first == "find_by_id"
293
294
  method[0] = "find"
294
295
  elsif method.is_a? String and method =~ /^\*[0-9]+$/
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hyper-mesh
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.lap24
4
+ version: 1.0.0.lap25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mitch VanDuyn
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-02-28 00:00:00.000000000 Z
12
+ date: 2018-03-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
@@ -31,28 +31,28 @@ dependencies:
31
31
  requirements:
32
32
  - - '='
33
33
  - !ruby/object:Gem::Version
34
- version: 1.0.0.lap24
34
+ version: 1.0.0.lap25
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - '='
40
40
  - !ruby/object:Gem::Version
41
- version: 1.0.0.lap24
41
+ version: 1.0.0.lap25
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: hyper-operation
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
46
  - - '='
47
47
  - !ruby/object:Gem::Version
48
- version: 1.0.0.lap24
48
+ version: 1.0.0.lap25
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - '='
54
54
  - !ruby/object:Gem::Version
55
- version: 1.0.0.lap24
55
+ version: 1.0.0.lap25
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: bundler
58
58
  requirement: !ruby/object:Gem::Requirement
@@ -129,14 +129,14 @@ dependencies:
129
129
  requirements:
130
130
  - - '='
131
131
  - !ruby/object:Gem::Version
132
- version: 1.0.0.lap24
132
+ version: 1.0.0.lap25
133
133
  type: :development
134
134
  prerelease: false
135
135
  version_requirements: !ruby/object:Gem::Requirement
136
136
  requirements:
137
137
  - - '='
138
138
  - !ruby/object:Gem::Version
139
- version: 1.0.0.lap24
139
+ version: 1.0.0.lap25
140
140
  - !ruby/object:Gem::Dependency
141
141
  name: hyper-trace
142
142
  requirement: !ruby/object:Gem::Requirement