sequel_oracle_extensions 0.6.1 → 0.6.2

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.1
1
+ 0.6.2
@@ -116,15 +116,18 @@ module Sequel
116
116
  key = outm[row[:index_name]]
117
117
  unless subhash = hash[key]
118
118
  subhash = hash[key] = {
119
- :columns=>[], :unique=>(row[:uniqueness]=='UNIQUE'), :logging=>(row[:logging]=='YES'),
120
- :db_type=>row[:index_type], :valid=>(row[:status]=='VALID'),
119
+ :columns=>[], :unique=>(row[:uniqueness]=='UNIQUE'),
120
+ :db_type=>row[:index_type], :logging=>(row[:logging]=='YES'),
121
121
  :parallel=>(row[:degree]!='1' || row[:instances]!='1'),
122
122
  :tablespace=>outm[row[:tablespace_name]], :partitioned=>(row[:partitioned]=='YES'),
123
123
  :visible=>(row[:visibility]=='VISIBLE'), :compress=>(row[:compression]!='DISABLED')
124
124
  }
125
- case subhash[:db_type]; when 'BITMAP','NORMAL'
126
- subhash[:type] = :"#{subhash[:db_type].downcase}"
125
+ case subhash[:db_type]
126
+ when /\b(BITMAP|NORMAL|DOMAIN)$/
127
+ subhash[:type] = $1.downcase.intern
127
128
  end
129
+ subhash[:function_based] = true if /^FUNCTION-BASED\b/ === subhash[:db_type]
130
+ subhash[:valid] = (row[:status]=='VALID') unless row[:status]=='N/A'
128
131
  if row[:join_index]=='YES'
129
132
  join_indexes << row[:index_name]
130
133
  subhash[:join] = []
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{sequel_oracle_extensions}
8
- s.version = "0.6.1"
8
+ s.version = "0.6.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Joe Khoobyar"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sequel_oracle_extensions
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
4
+ hash: 3
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 1
10
- version: 0.6.1
9
+ - 2
10
+ version: 0.6.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Joe Khoobyar