sequel-table_inheritance 0.1.2 → 0.1.3

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: b67c3763d27dc1f170724e94da63e7e2ba40c3ab
4
- data.tar.gz: be5bec3b9d2c7a035d115d0f6fa7eecff47b0888
3
+ metadata.gz: 990ffca5c84259449f0611fc60340be0c5eaf0e1
4
+ data.tar.gz: a7862c8e89c3864e00cb8703553c464e8d7cc543
5
5
  SHA512:
6
- metadata.gz: ec03d9e27d385a094c8967574bd70eb6c63861ea6a830d49715ec3f2feda6f4bbf2c40b5aaf5f7526afcecb7f41f7e09c01c3c00df62291a9bb5b5265f67a4fe
7
- data.tar.gz: d84fd765d8c69354de64d0a7f06bae564c59b041559ee5a701a35cdb9aa3ebd9c47d2da0c947e598e85b734769361ee11dfa336dcf0e276b943732ffca326e01
6
+ metadata.gz: e74da1f33ffc291fad375213039bcaf703f4ba2627be83e5aac312e90d644c1fbabe61a5af6904c310189f97ca03cff0d2fdda4a1fb4f46fc299a1842e8c223f
7
+ data.tar.gz: c408696275db6864a8bc4221ba6e81c6fbdf1673b1ab210471d0fde7f4b41bb7da4fa895640839e24ea511e011e08ae1054f531a8abae1e76247afaf38005dd3
@@ -186,8 +186,9 @@ module Sequel
186
186
  # :key_chooser :: proc returning key for the provided model instance
187
187
  # :table_map :: Hash with class name symbols keys mapping to table name symbol values
188
188
  # Overrides implicit table names
189
- # :subclass_load :: subclass loading strategy, defaults to :lazy
190
- # options: :eager, :eager_only, :lazy or :lazy_only
189
+ # :subclass_load :: Subclass loading strategy,
190
+ # options are :eager, :eager_only, :lazy or :lazy_only.
191
+ # Defaults to :lazy.
191
192
  def self.configure(model, opts = OPTS)
192
193
  SingleTableInheritance.configure model, opts[:key], opts
193
194
 
@@ -196,7 +197,7 @@ module Sequel
196
197
  @cti_subclass_datasets = {}
197
198
  @cti_models = [self]
198
199
  @cti_tables = [table_name]
199
- @cti_instance_dataset = db.from(table_name)
200
+ @cti_instance_dataset = @instance_dataset
200
201
  @cti_table_columns = columns
201
202
  @cti_table_map = opts[:table_map] || {}
202
203
  end
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "sequel-table_inheritance"
8
- s.version = '0.1.2'
8
+ s.version = '0.1.3'
9
9
  s.authors = ["Quinn Harris"]
10
10
  s.email = ["sequel@quinnharris.me"]
11
11
 
@@ -13,6 +13,7 @@ Gem::Specification.new do |s|
13
13
  s.description = s.summary
14
14
  s.homepage = "https://github.com/QuinnHarris/sequel-table_inheritance"
15
15
  s.license = "MIT"
16
+ s.required_ruby_version = ">= 1.8.7"
16
17
 
17
18
  s.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
19
  s.bindir = "bin"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sequel-table_inheritance
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Quinn Harris
@@ -94,7 +94,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
94
94
  requirements:
95
95
  - - ">="
96
96
  - !ruby/object:Gem::Version
97
- version: '0'
97
+ version: 1.8.7
98
98
  required_rubygems_version: !ruby/object:Gem::Requirement
99
99
  requirements:
100
100
  - - ">="