rare_map 0.9.6.beta → 0.9.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rare_map/version.rb +2 -3
- data/lib/rare_map.rb +4 -7
- metadata +6 -6
data/lib/rare_map/version.rb
CHANGED
data/lib/rare_map.rb
CHANGED
@@ -15,13 +15,10 @@ class RareMap
|
|
15
15
|
|
16
16
|
databases = DatabaseToSchemaBuilder.build
|
17
17
|
databases.each do |group_name, tables|
|
18
|
-
[:foreign_key, :alias, :primary_key].each
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
foreign_keys = opt[:foreign_key][group_name]
|
23
|
-
aliases = opt[:alias][group_name]
|
24
|
-
primary_keys = opt[:primary_key][group_name]
|
18
|
+
[:foreign_key, :alias, :primary_key].each { |sym| opt[sym] ||= {} }
|
19
|
+
foreign_keys = opt[:foreign_key][group_name] || nil
|
20
|
+
aliases = opt[:alias][group_name] || {}
|
21
|
+
primary_keys = opt[:primary_key][group_name] || {}
|
25
22
|
|
26
23
|
schemata = tables.inject({}) { |o, i| o = o.merge(i[:schema]) }
|
27
24
|
primary_keys.each do |table, primary_key|
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rare_map
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
5
|
-
prerelease:
|
4
|
+
version: 0.9.7
|
5
|
+
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Wei-Ming Wu
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-10-
|
12
|
+
date: 2012-10-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -140,13 +140,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
140
140
|
version: '0'
|
141
141
|
segments:
|
142
142
|
- 0
|
143
|
-
hash:
|
143
|
+
hash: -4273128051063044158
|
144
144
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
145
145
|
none: false
|
146
146
|
requirements:
|
147
|
-
- - ! '
|
147
|
+
- - ! '>='
|
148
148
|
- !ruby/object:Gem::Version
|
149
|
-
version:
|
149
|
+
version: '0'
|
150
150
|
requirements: []
|
151
151
|
rubyforge_project:
|
152
152
|
rubygems_version: 1.8.24
|