isomorfeus-data 2.0.10 → 2.0.11

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: bbfa143159bc482e9bc1de4131ef8e2dc0af7e339ca533cc30c86ff2c17f519b
4
- data.tar.gz: 96af3611a0f1abc8bf1460f913152dd824b658351c90b0e7a97c80ebe7ecc24b
3
+ metadata.gz: e20dfbc0fffcb6a9dae5dde4a51dc15efe3cee6853e7c06ec0a44832479c3f3b
4
+ data.tar.gz: 82f45e897f6afc83cbec00bbd0531ce9ebf86ae2bf54d4c1ebf4ededb857358e
5
5
  SHA512:
6
- metadata.gz: fdbb101a62bba32df9830f25490b18d222dcbd8cef0aae43053c64c2891f5cd16d2b8adf3f121732347c747b15c989deb882df9a97e7c54fa05b6c3e786bc62f
7
- data.tar.gz: 8556bcdf6f9364bfdcd029dc628ef840b9deded43247c89f5f519eba182516df887d1320e9036b72b68860f3765a5918f2a7932f6110e2da3cd8857e53795210
6
+ metadata.gz: 72462528f224761d6d4a54f8d1bb54e5943819b5d70469a50abb494d887834292af15408bd9c0f69ce207434f546c585c1ab53031f6b378ec4344170b2798cab
7
+ data.tar.gz: 5374484bc35170c9e15c73cbfa9af3c13cda1be7803390ae9763b85ce2e6c6f901f71b165345c36076ee27e0f792e9d9dfb798432f0f396a1fda02a9178be97a
@@ -1,12 +1,12 @@
1
1
  module Isomorfeus
2
2
  # available settings
3
3
  class << self
4
- def instance_from_sid(sid)
5
- data_class = cached_data_class(sid[0])
6
- data_class.new(key: sid[1])
7
- end
8
-
9
4
  if RUBY_ENGINE == 'opal'
5
+ def instance_from_sid(sid)
6
+ data_class = cached_data_class(sid[0])
7
+ data_class.new(key: sid[1], _loading: true)
8
+ end
9
+
10
10
  def cached_data_classes
11
11
  @cached_data_classes ||= `{}`
12
12
  end
@@ -17,6 +17,11 @@ module Isomorfeus
17
17
  cached_data_classes.JS[class_name] = "::#{class_name}".constantize
18
18
  end
19
19
  else
20
+ def instance_from_sid(sid)
21
+ data_class = cached_data_class(sid[0])
22
+ data_class.new(key: sid[1])
23
+ end
24
+
20
25
  def cached_data_classes
21
26
  @cached_data_classes ||= {}
22
27
  end
@@ -1,5 +1,5 @@
1
1
  module Isomorfeus
2
2
  module Data
3
- VERSION = '2.0.10'
3
+ VERSION = '2.0.11'
4
4
  end
5
5
  end
@@ -14,7 +14,7 @@ class LucidQueryResult
14
14
  end
15
15
 
16
16
  if RUBY_ENGINE == 'opal'
17
- def initialize(key: nil, result_set: nil)
17
+ def initialize(key: nil, result_set: nil, _loading: false)
18
18
  @class_name = 'LucidQueryResult'
19
19
  @key = key ? key.to_s : self.object_id.to_s
20
20
  @result_set = result_set
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: 2.0.10
4
+ version: 2.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Biedermann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-26 00:00:00.000000000 Z
11
+ date: 2022-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.14.6
75
+ version: 0.14.7
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 0.14.6
82
+ version: 0.14.7
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: isomorfeus-ferret
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -114,14 +114,14 @@ dependencies:
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 10.6.14
117
+ version: 10.6.23
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: 10.6.14
124
+ version: 10.6.23
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: isomorfeus-redux
127
127
  requirement: !ruby/object:Gem::Requirement
@@ -142,28 +142,28 @@ dependencies:
142
142
  requirements:
143
143
  - - '='
144
144
  - !ruby/object:Gem::Version
145
- version: 2.0.10
145
+ version: 2.0.11
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - '='
151
151
  - !ruby/object:Gem::Version
152
- version: 2.0.10
152
+ version: 2.0.11
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: isomorfeus
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
157
  - - '='
158
158
  - !ruby/object:Gem::Version
159
- version: 2.0.10
159
+ version: 2.0.11
160
160
  type: :development
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - '='
165
165
  - !ruby/object:Gem::Version
166
- version: 2.0.10
166
+ version: 2.0.11
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: rake
169
169
  requirement: !ruby/object:Gem::Requirement