isomorfeus-data 2.0.4 → 2.0.5

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: cb9108f2f9e715878385080c0baaa26f956306df3aaa7972671909c1ebefb5cd
4
- data.tar.gz: 19e1f6d114a2bb41d3ccf8a5d06c18ea788f19d84e5c695c701889857f4709d4
3
+ metadata.gz: 455e8b083641020d3d3dfa97b34d4144087fb19c11f551c240cdf4e946f60df0
4
+ data.tar.gz: 20f440fa635643a147bbcfb2571b9bcb0afcef57e57977de08725ac7cf732870
5
5
  SHA512:
6
- metadata.gz: dd5ec492a7d4a2332c54d8d796ec384acf73d83bf0942e9f1484abc2572fb11b37e39760467ee7b2f5d9279deac3409e855d47e56b1113ed0509912c2088b5dc
7
- data.tar.gz: 5d4f243fdbc432b8b2b435e45bbf6c94c8e6bef437fb8ff9ff8cfe00f15f92f977a249fe808e51a209a4c849dcff80ccb5fca7ef9ba16f5d6d3c611baa943cce
6
+ metadata.gz: 46f6c764a5d12fe8b46730ee1cc1b18d8a99a52c56fff668143abcd30a4961b55813f9bbc8840c7ca80a8bf365b8faa3f3a06a6a0d0fc802dc2f4037f2a6a406
7
+ data.tar.gz: e34bd37b4b16359a2cf14a863fefd327cac00568f9048c1466c6061cc922072046bca750fcd36be150fac6e7876c96671d7d5f71c4b3715610e773b37f910cc6
@@ -1,5 +1,5 @@
1
1
  module Isomorfeus
2
2
  module Data
3
- VERSION = '2.0.4'
3
+ VERSION = '2.0.5'
4
4
  end
5
5
  end
@@ -108,9 +108,10 @@ module LucidDocument
108
108
 
109
109
  execute_load do |key:|
110
110
  doc = self.ferret_accelerator.load_doc(key)
111
- return nil unless doc
112
- doc.delete(:key)
113
- self.new(key: key, fields: doc)
111
+ if doc
112
+ doc.delete(:key)
113
+ self.new(key: key, fields: doc)
114
+ end
114
115
  end
115
116
 
116
117
  execute_save do
@@ -1,6 +1,10 @@
1
1
  class LucidQueryResult
2
2
  attr_reader :key
3
3
 
4
+ def [](accessor_name)
5
+ self.send(accessor_name.to_sym)
6
+ end
7
+
4
8
  def sid
5
9
  [@class_name, @key]
6
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: isomorfeus-data
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.4
4
+ version: 2.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Biedermann
@@ -142,28 +142,28 @@ dependencies:
142
142
  requirements:
143
143
  - - '='
144
144
  - !ruby/object:Gem::Version
145
- version: 2.0.4
145
+ version: 2.0.5
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.4
152
+ version: 2.0.5
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.4
159
+ version: 2.0.5
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.4
166
+ version: 2.0.5
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: rake
169
169
  requirement: !ruby/object:Gem::Requirement