sadie 0.0.51 → 0.0.52
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +1 -0
- data/lib/sadie/version.rb +1 -1
- data/lib/sadie.rb +36 -14
- metadata +5 -5
data/CHANGELOG
CHANGED
data/lib/sadie/version.rb
CHANGED
data/lib/sadie.rb
CHANGED
@@ -261,6 +261,7 @@ class Sadie
|
|
261
261
|
sadiekey = params[:sadiekey]
|
262
262
|
end
|
263
263
|
|
264
|
+
|
264
265
|
whichEacherFrame != Sadie::EACH and debug! 10, "whicheacherframe: #{whichEacherFrame}, occur_at: #{occur_at}"
|
265
266
|
|
266
267
|
if midEacherInit?
|
@@ -282,6 +283,11 @@ class Sadie
|
|
282
283
|
|
283
284
|
elsif whichEacherFrame == occur_at
|
284
285
|
|
286
|
+
# bugfix: running eachers that aren't supposed to be run because they're
|
287
|
+
# in the same eacher file
|
288
|
+
#puts "sadiekey: #{sadiekey}, getEacherKey: #{getEacherKey}"
|
289
|
+
#return if sadiekey != getEacherKey
|
290
|
+
|
285
291
|
occur_at != Sadie::EACH and debug! 10, "pre-yield for skey: #{sadiekey}, #{occur_at}"
|
286
292
|
|
287
293
|
if block.arity == 0
|
@@ -304,23 +310,18 @@ class Sadie
|
|
304
310
|
|
305
311
|
occur_at != Sadie::EACH and debug! 8, "eacherFrame(#{occur_at}): #{sadiekey}"
|
306
312
|
|
307
|
-
key = sadiekey
|
308
|
-
# if defined? @eacher_frame_redirect
|
309
|
-
# if @eacher_frame_redirect.has_key? key
|
310
|
-
# key = @eacher_frame_redirect[key]
|
311
|
-
# end
|
312
|
-
# end
|
313
|
-
|
314
313
|
setEacherFrame( occur_at )
|
315
314
|
defined? param and setEacherParam( param )
|
316
|
-
|
315
|
+
setEacherKey sadiekey
|
316
|
+
if filepaths = eacherFilepaths( sadiekey )
|
317
317
|
filepaths.each do |filepath|
|
318
|
-
occur_at != Sadie::EACH and debug! 8, "eacher frame loading: #{filepath} for
|
318
|
+
occur_at != Sadie::EACH and debug! 8, "eacher frame loading: #{filepath} for sadiekey: #{sadiekey}"
|
319
319
|
load filepath
|
320
320
|
end
|
321
321
|
end
|
322
322
|
unsetEacherParam
|
323
323
|
unsetEacherFrame
|
324
|
+
unsetEacherKey
|
324
325
|
end
|
325
326
|
|
326
327
|
|
@@ -516,7 +517,7 @@ class Sadie
|
|
516
517
|
# the cheap setter. key, value pairs stored via this method are kept in memory
|
517
518
|
def setCheap( k, v )
|
518
519
|
|
519
|
-
|
520
|
+
# debug! 8, "setting cheap: [#{k},#{v}]"
|
520
521
|
Sadie::eacherFrame( k, BEFORE ) if ! eacherUnbalanced?( k )
|
521
522
|
setUnbalancedEacher k
|
522
523
|
|
@@ -619,6 +620,12 @@ class Sadie
|
|
619
620
|
@flag_primed[primers_dirpath] = true
|
620
621
|
end
|
621
622
|
|
623
|
+
def getEacherKey
|
624
|
+
return nil if ! defined? @eacher_key
|
625
|
+
@eacher_key.last
|
626
|
+
end
|
627
|
+
|
628
|
+
|
622
629
|
|
623
630
|
# ------------------------------------------------------------------------------------------------
|
624
631
|
# ------------------------------------------------------------------------------------------------
|
@@ -734,18 +741,33 @@ class Sadie
|
|
734
741
|
end
|
735
742
|
|
736
743
|
def setEacherParam( p )
|
737
|
-
@eacher_param =
|
744
|
+
defined? @eacher_param or @eacher_param = Array.new
|
745
|
+
@eacher_param.push p
|
738
746
|
end
|
739
747
|
|
740
748
|
def unsetEacherParam
|
741
|
-
@eacher_param
|
749
|
+
if defined? @eacher_param
|
750
|
+
@eacher_param.pop
|
751
|
+
end
|
742
752
|
end
|
743
753
|
|
744
754
|
def getEacherParam
|
745
|
-
@eacher_param
|
755
|
+
return nil if ! defined? @eacher_param
|
756
|
+
@eacher_param.last
|
746
757
|
end
|
747
758
|
|
748
|
-
|
759
|
+
def setEacherKey( k )
|
760
|
+
defined? @eacher_key or @eacher_key = Array.new
|
761
|
+
@eacher_key.push k
|
762
|
+
end
|
763
|
+
|
764
|
+
def unsetEacherKey
|
765
|
+
if defined? @eacher_key
|
766
|
+
@eacher_key.pop
|
767
|
+
end
|
768
|
+
end
|
769
|
+
|
770
|
+
|
749
771
|
def isEacherKey?( key )
|
750
772
|
|
751
773
|
defined? @eacher_frame_redirect or return false
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sadie
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.52
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-05-01 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: dbi
|
16
|
-
requirement: &
|
16
|
+
requirement: &14999900 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *14999900
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: dbd-mysql
|
27
|
-
requirement: &
|
27
|
+
requirement: &14999480 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *14999480
|
36
36
|
description: Sadie is a data framework intended to ease the pain of managing related
|
37
37
|
data.
|
38
38
|
email:
|