isomorfeus-data 1.0.0.zeta2 → 1.0.0.zeta3

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: c5f29c76957ad252efd2510a30747df75bbf7ef711f2c21fca922685918198b2
4
- data.tar.gz: fee6f1fc0e92e8c238ea315cd6155ca1a21c47543d5dd2880ff67265167bc894
3
+ metadata.gz: 4bd4f56c47f0e35e92cb2ffce8cd66c6b21693e8ec77264fca858aab28d2c945
4
+ data.tar.gz: 981a0207222d39c8376b119ffb5525a3eb0980cb97146510da6475a12f233b2d
5
5
  SHA512:
6
- metadata.gz: d9ea25f3e4ca511b747bf2f2d930c14bf05d5d00a1b5b05b1ff0001fb13f16527e81875f71e612d5ddd9f8e3e8b956e1ec3a63e0bad99e27af020cf05866d206
7
- data.tar.gz: 95b82e958f0e91647822ef4db30c36b6fbbdab9c14b643d29a23b713d935aaa21a10f343c5c120d0a1dc707f6b107217a25be336a99eeac34d65ecaffd72b014
6
+ metadata.gz: '09708f8a5e486651f31f9c05d41c516a9fc504dee4d383b1206ea67587bfd1ddaeec92d9f76dd6ee8330a1fcfa2a5045d3eb5d89dc1c0be74e8c534778bdc639'
7
+ data.tar.gz: 7ae386fe56475f9027bfef60c508a6a3995817d892f42acbd712e0801888d1c90e5bdba1020b9326459ed92aefd9961b7ce9b907c934f987c19482ffafbc5fbd
@@ -1,5 +1,5 @@
1
1
  module Isomorfeus
2
2
  module Data
3
- VERSION = '1.0.0.zeta2'
3
+ VERSION = '1.0.0.zeta3'
4
4
  end
5
5
  end
@@ -35,20 +35,17 @@ module LucidArray
35
35
  end
36
36
 
37
37
  def items
38
- Redux.register_used_store_path(*@store_path)
39
38
  raw_array = Redux.fetch_by_path(*@store_path)
40
39
  raw_array ? raw_array : []
41
40
  end
42
41
 
43
42
  def method_missing(method_name, *args, &block)
44
- Redux.register_used_store_path(*@store_path)
45
43
  raw_array = Redux.fetch_by_path(*@store_path)
46
44
  data_array = raw_array ? raw_array : []
47
45
  data_array.send(method_name, *args, &block)
48
46
  end
49
47
 
50
48
  def to_transport(inline: false)
51
- Redux.register_used_store_path(*@store_path)
52
49
  raw_array = Redux.fetch_by_path(*@store_path)
53
50
  if inline
54
51
  { '_inline' => { @props_json => (raw_array ? raw_array : []) }}
@@ -76,8 +73,6 @@ module LucidArray
76
73
 
77
74
  props_json = instance.instance_variable_get(:@props_json)
78
75
 
79
- Redux.register_used_store_path(:data_state, :arrays, self.name, props_json)
80
-
81
76
  Isomorfeus::Transport.promise_send_path('Isomorfeus::Data::Handler::ArrayLoadHandler', self.name, props_json).then do |response|
82
77
  if response[:agent_response].key?(:error)
83
78
  `console.error(#{response[:agent_response][:error].to_n})`
@@ -105,7 +105,6 @@ module LucidCollection
105
105
  end
106
106
 
107
107
  def find_node_by_id(node_id)
108
- Redux.register_used_store_path(*@store_path)
109
108
  nodes_as_cids.each do |node_cid|
110
109
  return LucidNode::Base.node_from_cid(node_cid) if node_cid[1] == node_id
111
110
  end
@@ -120,7 +119,6 @@ module LucidCollection
120
119
  end
121
120
 
122
121
  def nodes_as_cids
123
- Redux.register_used_store_path(*@store_path)
124
122
  node_cids = Redux.fetch_by_path(*@store_path)
125
123
  node_cids ? node_cids : []
126
124
  end
@@ -156,8 +154,6 @@ module LucidCollection
156
154
 
157
155
  props_json = instance.instance_variable_get(:@props_json)
158
156
 
159
- Redux.register_used_store_path(:data_state, :collections, self.name, props_json)
160
-
161
157
  Isomorfeus::Transport.promise_send_path('Isomorfeus::Data::Handler::CollectionLoadHandler', self.name, props_json).then do |response|
162
158
  if response[:agent_response].key?(:error)
163
159
  `console.error(#{response[:agent_response][:error].to_n})`
@@ -103,7 +103,6 @@ module LucidEdge
103
103
  end
104
104
 
105
105
  def from_as_cid
106
- Redux.register_used_store_path(:data_state, :edges, @class_name, @id, :from)
107
106
  return @changed_from_cid if @changed_from_cid
108
107
  cid = Redux.fetch_by_path(:data_state, :edges, @class_name, @id, :from)
109
108
  cid ? cid : nil
@@ -120,14 +119,12 @@ module LucidEdge
120
119
  end
121
120
 
122
121
  def to_as_cid
123
- Redux.register_used_store_path(:data_state, :edges, @class_name, @id, :to)
124
122
  return @changed_to_cid if @changed_to_cid
125
123
  cid = Redux.fetch_by_path(:data_state, :edges, @class_name, @id, :to)
126
124
  cid ? cid : nil
127
125
  end
128
126
 
129
127
  def to_transport(*args)
130
- Redux.register_used_store_path(:data_state, :edges, @class_name, @id)
131
128
  final_attributes = {}
132
129
  self.class.attributes.each do |attr|
133
130
  next if attr == :id
@@ -141,7 +138,6 @@ module LucidEdge
141
138
  attribute_options[name] = options
142
139
 
143
140
  define_method(name) do
144
- Redux.register_used_store_path(:data_state, :edges, @class_name, @id, :attributes, name)
145
141
  if changed_attributes.key?(name)
146
142
  changed_attributes[name]
147
143
  else
@@ -151,7 +147,6 @@ module LucidEdge
151
147
 
152
148
  define_method("#{name}=") do |arg|
153
149
  validate_attribute!(name, arg)
154
- Redux.register_used_store_path(:data_state, :edges, @class_name, @id, :attributes, name)
155
150
  changed_attributes.set(name, arg)
156
151
  end
157
152
  end
@@ -319,7 +319,6 @@ module LucidGraph
319
319
 
320
320
  def own_edges_as_cids
321
321
  path = @store_path + [:edges]
322
- Redux.register_used_store_path(*path)
323
322
  edge_cids = Redux.fetch_by_path(*path)
324
323
  edge_cids ? Set.new(edge_cids) : Set.new
325
324
  end
@@ -341,7 +340,6 @@ module LucidGraph
341
340
  def included_nodes
342
341
  incl_nodes = {}
343
342
  path = @store_path + [:included_nodes]
344
- Redux.register_used_store_path(*path)
345
343
  self.class.included_nodes.each_key do |name|
346
344
  node_cid = Redux.fetch_by_path(*(path + [name]))
347
345
  incl_nodes[name] = LucidNode::Base.node_from_cid(node_cid) if node_cid
@@ -363,7 +361,6 @@ module LucidGraph
363
361
 
364
362
  def own_nodes_as_cids
365
363
  path = @store_path + [:nodes]
366
- Redux.register_used_store_path(*path)
367
364
  node_cids = Redux.fetch_by_path(*path)
368
365
  node_cids ? Set.new(node_cids) : Set.new
369
366
  end
@@ -443,7 +440,6 @@ module LucidGraph
443
440
  included_nodes[name] = { class: node_class, anonymous: true, block: block }
444
441
  define_method(name) do
445
442
  path = @store_path + [:included_nodes, name]
446
- Redux.register_used_store_path(*path)
447
443
  node_cid = Redux.fetch_by_path(*path)
448
444
  node_cid ? self.class.included_nodes[name][:class].node_from_cid(node_cid) : nil
449
445
  end
@@ -467,8 +463,6 @@ module LucidGraph
467
463
 
468
464
  props_json = instance.instance_variable_get(:@props_json)
469
465
 
470
- Redux.register_used_store_path(:data_state, :graphs, self.name, props_json)
471
-
472
466
  Isomorfeus::Transport.promise_send_path('Isomorfeus::Data::Handler::GraphLoadHandler', self.name, props_json).then do |response|
473
467
  if response[:agent_response].key?(:error)
474
468
  `console.error(#{response[:agent_response][:error].to_n})`
@@ -44,20 +44,17 @@ module LucidHash
44
44
 
45
45
  def [](name)
46
46
  path = @store_path + [@props_json, name]
47
- Redux.register_used_store_path(*path)
48
47
  result = Redux.fetch_by_path(*path)
49
48
  result ? result : nil
50
49
  end
51
50
 
52
51
  def key?(name)
53
52
  path = @store_path + [@props_json, name]
54
- Redux.register_used_store_path(*path)
55
53
  Redux.fetch_by_path(*path) ? true : false
56
54
  end
57
55
 
58
56
  def method_missing(method_name, *args, &block)
59
57
  path = @store_path + [@props_json]
60
- Redux.register_used_store_path(*path)
61
58
  raw_hash = Redux.fetch_by_path(*path)
62
59
  if raw_hash
63
60
  Hash.new(raw_hash).send(method_name, *args, &block)
@@ -90,8 +87,6 @@ module LucidHash
90
87
 
91
88
  props_json = instance.instance_variable_get(:@props_json)
92
89
 
93
- Redux.register_used_store_path(:data_state, :hashes, self.name, props_json)
94
-
95
90
  Isomorfeus::Transport.promise_send_path('Isomorfeus::Data::Handler::HashLoadHandler', self.name, props_json).then do |response|
96
91
  if response[:agent_response].key?(:error)
97
92
  `console.error(#{response[:agent_response][:error].to_n})`
@@ -109,7 +109,6 @@ module LucidNode
109
109
  end
110
110
 
111
111
  def to_transport(*args)
112
- Redux.register_used_store_path(:data_state, :nodes, @class_name, @id)
113
112
  final_attributes = {}
114
113
  self.class.attributes.each do |attr|
115
114
  next if attr == :id
@@ -123,7 +122,6 @@ module LucidNode
123
122
  attribute_options[name] = options
124
123
 
125
124
  define_method(name) do
126
- Redux.register_used_store_path(:data_state, :nodes, @class_name, @id, :attributes, name)
127
125
  if changed_attributes.key?(name)
128
126
  changed_attributes[name]
129
127
  else
@@ -133,7 +131,6 @@ module LucidNode
133
131
 
134
132
  define_method("#{name}=") do |arg|
135
133
  validate_attribute!(name, arg)
136
- Redux.register_used_store_path(:data_state, :nodes, @class_name, @id, :attributes, name)
137
134
  changed_attributes.set(name, arg)
138
135
  end
139
136
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: isomorfeus-data
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.zeta2
4
+ version: 1.0.0.zeta3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Biedermann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-25 00:00:00.000000000 Z
11
+ date: 2019-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -86,56 +86,56 @@ dependencies:
86
86
  requirements:
87
87
  - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: 16.9.13
89
+ version: 16.9.17
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
- version: 16.9.13
96
+ version: 16.9.17
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: isomorfeus-redux
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 4.0.11
103
+ version: 4.0.12
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 4.0.11
110
+ version: 4.0.12
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: isomorfeus-transport
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - '='
116
116
  - !ruby/object:Gem::Version
117
- version: 1.0.0.zeta2
117
+ version: 1.0.0.zeta3
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - '='
123
123
  - !ruby/object:Gem::Version
124
- version: 1.0.0.zeta2
124
+ version: 1.0.0.zeta3
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: isomorfeus-installer
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - '='
130
130
  - !ruby/object:Gem::Version
131
- version: 1.0.0.zeta2
131
+ version: 1.0.0.zeta3
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - '='
137
137
  - !ruby/object:Gem::Version
138
- version: 1.0.0.zeta2
138
+ version: 1.0.0.zeta3
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: opal-webpack-loader
141
141
  requirement: !ruby/object:Gem::Requirement