sadie 0.0.15 → 0.0.16

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 +1 -0
  2. data/lib/sadie/version.rb +1 -1
  3. data/lib/sadie.rb +20 -5
  4. metadata +7 -7
data/CHANGELOG CHANGED
@@ -8,4 +8,5 @@
8
8
  [0.0.13] Minor API fixes to prep for Olsen
9
9
  [0.0.14] updated documentation
10
10
  [0.0.15] actually committed changes to code this time...doh
11
+ [0.0.16] bugfixes, updated tests
11
12
 
data/lib/sadie/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Sadie
2
- VERSION = "0.0.15"
2
+ VERSION = "0.0.16"
3
3
  end
data/lib/sadie.rb CHANGED
@@ -146,12 +146,13 @@ class Sadie
146
146
  # iterate over constructor args, but do primers_dirpath last since it
147
147
  # causes a call to initializePrimers
148
148
  options.each do |key, value|
149
- if ( key.eql? "sadie.primers_dirpath")
149
+ if key.eql? "sadie.primers_dirpath"
150
150
  delay_set_primers_dirpath = value
151
151
  else
152
152
  set( key, value )
153
153
  end
154
154
  end
155
+
155
156
  defined? delay_set_primers_dirpath \
156
157
  and set( "sadie.primers_dirpath", delay_set_primers_dirpath )
157
158
 
@@ -337,7 +338,21 @@ class Sadie
337
338
  # the cheap setter. key, value pairs stored via this method are kept in memory
338
339
  def setCheap( k, v )
339
340
 
340
- # puts "setCheap( #{k}, #{v} )"
341
+ puts "setCheap( #{k}, #{v} )"
342
+
343
+ if k.eql? "sadie.primer_plugins_dirpath"
344
+ puts "adding primer plugins dirpath via setCheap"
345
+ if v.respond_to? "each"
346
+ v.each do |plugindir|
347
+ addPrimerPluginsDirPath plugindir
348
+ end
349
+ else
350
+ addPrimerPluginsDirPath v
351
+ end
352
+ v = @plugins_dir_paths
353
+ end
354
+
355
+
341
356
 
342
357
  # set it, mark not expensive and primed
343
358
  _set( k, v )
@@ -501,7 +516,7 @@ class Sadie
501
516
  # called by initializePrimers so it's not necessary to call this separate from that
502
517
  def initializePrimerPlugins
503
518
 
504
- plugins_dirpath = get( "sadie.primer_plugins_dirpath" ) \
519
+ defined? @plugins_dir_paths \
505
520
  or raise 'sadie.primer_plugins_dirpath not set'
506
521
 
507
522
  puts "Initializing primer plugins..."
@@ -778,9 +793,9 @@ class Sadie
778
793
 
779
794
  # direct access setter for shortterm memory
780
795
  def _set( key, value )
781
-
782
796
  # puts "_set> key: #{key}, value: #{value}"
783
- @shortterm["#{key}"] = value
797
+ @shortterm["#{key}"] = value
798
+ # end
784
799
  end
785
800
 
786
801
  def _unset( key )
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.15
4
+ version: 0.0.16
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-04-16 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: dbi
16
- requirement: &19051400 !ruby/object:Gem::Requirement
16
+ requirement: &9069140 !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: *19051400
24
+ version_requirements: *9069140
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: mysql
27
- requirement: &19050980 !ruby/object:Gem::Requirement
27
+ requirement: &9068720 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *19050980
35
+ version_requirements: *9068720
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: dbd-mysql
38
- requirement: &19050560 !ruby/object:Gem::Requirement
38
+ requirement: &9068300 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *19050560
46
+ version_requirements: *9068300
47
47
  description: Sadie is a data framework intended to ease the pain of managing related
48
48
  data.
49
49
  email: