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.
@@ -2,9 +2,8 @@ class RareMap
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 9
5
- PATCH = 6
6
- BUILD = 'beta'
5
+ PATCH = 7
7
6
 
8
- STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
7
+ STRING = [MAJOR, MINOR, PATCH].compact.join('.')
9
8
  end
10
9
  end
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 do |sym|
19
- opt[sym] ||= {}
20
- opt[sym][group_name] ||= {}
21
- end
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.6.beta
5
- prerelease: 6
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-07 00:00:00.000000000 Z
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: 1146274272557933272
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: 1.3.1
149
+ version: '0'
150
150
  requirements: []
151
151
  rubyforge_project:
152
152
  rubygems_version: 1.8.24