spqr 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/CHANGES +7 -0
  2. data/VERSION +1 -1
  3. data/lib/rhubarb/rhubarb.rb +9 -1
  4. metadata +2 -2
data/CHANGES CHANGED
@@ -1,3 +1,10 @@
1
+ version 0.1.4
2
+
3
+ * 0.1.3 introduced a compatibility issue with previous versions of
4
+ Rhubarb. These should be resolved here.
5
+
6
+ version 0.1.3 (c5c095db4d5f22d0fff6633237859cd33a319884)
7
+
1
8
  * This is a release featuring only minor enhancements to Rhubarb. If
2
9
  you don't use Rhubarb, there is no need to upgrade.
3
10
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.1.4
@@ -386,6 +386,14 @@ SELECT __freshest.* FROM (
386
386
  @creation_callbacks.each {|func| func.call}
387
387
  end
388
388
 
389
+ def db
390
+ @db || Persistence::db
391
+ end
392
+
393
+ def db=(d)
394
+ @db = d
395
+ end
396
+
389
397
  # Ensure that all the necessary accessors on our class instance are defined
390
398
  # and that all metaclass fields have the appropriate values
391
399
  def ensure_accessors
@@ -397,7 +405,7 @@ SELECT __freshest.* FROM (
397
405
  # The API purposefully does not expose the ability to create a
398
406
  # row with a given id, and created and updated values are
399
407
  # maintained automatically by the API.
400
- attr_accessor :columns, :colnames, :constraints, :dirtied, :refs, :creation_callbacks, :db
408
+ attr_accessor :columns, :colnames, :constraints, :dirtied, :refs, :creation_callbacks
401
409
  end
402
410
  end
403
411
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spqr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Benton
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-01-26 00:00:00 -06:00
12
+ date: 2010-02-01 00:00:00 -06:00
13
13
  default_executable: spqr-gen.rb
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency