sadie 0.0.49 → 0.0.50

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/CHANGELOG +2 -1
  2. data/lib/sadie/version.rb +1 -1
  3. data/lib/sadie.rb +6 -4
  4. metadata +5 -5
data/CHANGELOG CHANGED
@@ -21,4 +21,5 @@
21
21
  [0.0.46] massive code cleanup. moved lots of things to private. documented all public methods.
22
22
  [0.0.47] eachers now sane and can be set on any key, even other eacher provided keys
23
23
  [0.0.48] fixed bug that limited to one the number of eachers that could be associated with a key.
24
- [0.0.49] botched the upload...resubmitting
24
+ [0.0.49] botched the upload...resubmitting
25
+ [0.0.50] fixed isset? bug (was only working for non-expensive keys)
data/lib/sadie/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Sadie
2
- VERSION = "0.0.49"
2
+ VERSION = "0.0.50"
3
3
  end
data/lib/sadie.rb CHANGED
@@ -261,7 +261,7 @@ class Sadie
261
261
  sadiekey = params["sadiekey"]
262
262
  end
263
263
 
264
- whichEacherFrame != Sadie::EACH and debug! 8, "whicheacherframe: #{whichEacherFrame}, occur_at: #{occur_at}"
264
+ whichEacherFrame != Sadie::EACH and debug! 10, "whicheacherframe: #{whichEacherFrame}, occur_at: #{occur_at}"
265
265
 
266
266
  if midEacherInit?
267
267
 
@@ -282,7 +282,7 @@ class Sadie
282
282
 
283
283
  elsif whichEacherFrame == occur_at
284
284
 
285
- occur_at != Sadie::EACH and debug! 8, "pre-yield for skey: #{sadiekey}, #{occur_at}"
285
+ occur_at != Sadie::EACH and debug! 10, "pre-yield for skey: #{sadiekey}, #{occur_at}"
286
286
 
287
287
  if block.arity == 0
288
288
  yield self
@@ -290,7 +290,7 @@ class Sadie
290
290
  yield self, getEacherParam
291
291
  end
292
292
 
293
- occur_at != Sadie::EACH and debug! 8, "post-yield for skey: #{sadiekey}, #{occur_at}"
293
+ occur_at != Sadie::EACH and debug! 10, "post-yield for skey: #{sadiekey}, #{occur_at}"
294
294
  end
295
295
  end
296
296
 
@@ -470,7 +470,9 @@ class Sadie
470
470
  #
471
471
  # returns true if sadie has a value for the key
472
472
  def isset?( key )
473
- return @shortterm.has_key?( key )
473
+ return true if @shortterm.has_key?( key )
474
+ return true if expensive?( key )
475
+ false
474
476
  end
475
477
 
476
478
  # ==method: setDestroyOnGet
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.49
4
+ version: 0.0.50
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-04-30 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: dbi
16
- requirement: &20123880 !ruby/object:Gem::Requirement
16
+ requirement: &24189020 !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: *20123880
24
+ version_requirements: *24189020
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: dbd-mysql
27
- requirement: &20123460 !ruby/object:Gem::Requirement
27
+ requirement: &24188600 !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: *20123460
35
+ version_requirements: *24188600
36
36
  description: Sadie is a data framework intended to ease the pain of managing related
37
37
  data.
38
38
  email: