rare_map 0.9.5.beta → 0.9.6.beta

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.
@@ -2,7 +2,7 @@ class RareMap
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 9
5
- PATCH = 5
5
+ PATCH = 6
6
6
  BUILD = 'beta'
7
7
 
8
8
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
data/lib/rare_map.rb CHANGED
@@ -14,7 +14,11 @@ class RareMap
14
14
  info = {}
15
15
 
16
16
  databases = DatabaseToSchemaBuilder.build
17
- databases.each do |group_name, tables|
17
+ databases.each do |group_name, tables|
18
+ [:foreign_key, :alias, :primary_key].each do |sym|
19
+ opt[sym] ||= {}
20
+ opt[sym][group_name] ||= {}
21
+ end
18
22
  foreign_keys = opt[:foreign_key][group_name]
19
23
  aliases = opt[:alias][group_name]
20
24
  primary_keys = opt[:primary_key][group_name]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rare_map
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.5.beta
4
+ version: 0.9.6.beta
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -140,7 +140,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
140
140
  version: '0'
141
141
  segments:
142
142
  - 0
143
- hash: -2253654636828043832
143
+ hash: 1146274272557933272
144
144
  required_rubygems_version: !ruby/object:Gem::Requirement
145
145
  none: false
146
146
  requirements: