marty 1.2.6 → 1.2.7

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
  SHA1:
3
- metadata.gz: a43ada9ddaab7056da1f6ba07f3f346e586e914b
4
- data.tar.gz: 96f089596edaa9ff0e7859333443335225e24694
3
+ metadata.gz: c3dc35ae633f21db48c26bae34c248217eceaae4
4
+ data.tar.gz: 0ed7a6b6e1aa3029c9e0ac28227cf3273a4dddc3
5
5
  SHA512:
6
- metadata.gz: a1f36125117b6f1f8b83422c4bfccc15a0cd2f401fb570b3ed60add7bb403a692277e263dd660f6e099bda55689c964421db77255839122f3ff7b867de837977
7
- data.tar.gz: 83c6831a7e8ee10b17f642fca62a233b7e01e767fc70e8829e525cffc92eb09ff65e621a8359b80dec67e657072cf958976873fdb5122ffbab88f2fdf6262899
6
+ metadata.gz: a503bcdbe8f0236a479959206eaaeaad6a39334cc4e18d41e89ffa2399b3289a55cb6e5966f93a6c801589af85ee960fe2b29ad95d50864c2005d11d58319817
7
+ data.tar.gz: 83b322c8cfe6f3d4d67779531d7450cbc2f8afd3e49c7517ac8511d1263d1959da4a18f05ad834528877be42be9223299606a013fe265b079b4e1b2db2a52cfd
@@ -78,8 +78,6 @@ class Marty::DataGrid < Marty::Base
78
78
 
79
79
  has_mcfly
80
80
 
81
- lazy_load :data
82
-
83
81
  validates_presence_of :name, :data, :metadata
84
82
 
85
83
  mcfly_validates_uniqueness_of :name
@@ -218,6 +216,15 @@ class Marty::DataGrid < Marty::Base
218
216
  res
219
217
  end
220
218
 
219
+ cached_delorean_fn :lookup_grid, sig: 4 do
220
+ |pt, dg, h, distinct|
221
+ raise "bad DataGrid #{dg}" unless Marty::DataGrid === dg
222
+ raise "non-hash arg #{h}" unless Hash === h
223
+ dgh = dg.attributes.slice('id', 'group_id', 'created_dt', 'metadata')
224
+ res = plv_lookup_grid_distinct(h, dgh, false, distinct)
225
+ res["result"]
226
+ end
227
+
221
228
  cached_delorean_fn :lookup_grid_h, sig: 4 do
222
229
  |pt, dgn, h, distinct|
223
230
 
data/lib/marty/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Marty
2
- VERSION = "1.2.6"
2
+ VERSION = "1.2.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: marty
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.6
4
+ version: 1.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arman Bostani