rare_map 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +2 -2
- data/lib/rare_map/schema_parser.rb +2 -1
- data/lib/rare_map/version.rb +1 -1
- metadata +2 -2
data/README.rdoc
CHANGED
@@ -21,11 +21,11 @@ Add following lines to config/database.yml of rails
|
|
21
21
|
* database.yml
|
22
22
|
|
23
23
|
rare_map:
|
24
|
-
|
24
|
+
legacy_db1:
|
25
25
|
adapter: sqlite3
|
26
26
|
database: db/db1.sqlite3
|
27
27
|
|
28
|
-
|
28
|
+
legacy_db2:
|
29
29
|
adapter: mysql2
|
30
30
|
host: localhost
|
31
31
|
database: db_name
|
@@ -10,7 +10,8 @@ module RareMap
|
|
10
10
|
when /^create_table/
|
11
11
|
name = line.match(/create_table\s+['"]([^'"]+)['"]/)[1]
|
12
12
|
id = line.match(/:id\s*=>\s*false/) ? false : true
|
13
|
-
|
13
|
+
pk = line.match(/:primary_key\s*=>\s*['"](.+)['"]/)
|
14
|
+
primary_key = pk[1] if pk
|
14
15
|
tables << Table.new(name, :id => id, :primary_key => primary_key)
|
15
16
|
when /^t\./
|
16
17
|
name = line.match(/t\.\w+\s+['"]([^'"]+)['"]/)[1]
|
data/lib/rare_map/version.rb
CHANGED
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: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -142,7 +142,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
142
142
|
version: '0'
|
143
143
|
segments:
|
144
144
|
- 0
|
145
|
-
hash:
|
145
|
+
hash: -3825559018675521113
|
146
146
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
147
147
|
none: false
|
148
148
|
requirements:
|