brianjlandau-foreigner 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,3 @@
1
+ pkg
2
+ pkg/*
3
+ pkg/**/*
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.0
1
+ 0.7.1
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{brianjlandau-foreigner}
8
- s.version = "0.7.0"
8
+ s.version = "0.7.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Matthew Higgins", "Brian Landau"]
@@ -16,7 +16,8 @@ Gem::Specification.new do |s|
16
16
  "README"
17
17
  ]
18
18
  s.files = [
19
- "MIT-LICENSE",
19
+ ".gitignore",
20
+ "MIT-LICENSE",
20
21
  "README",
21
22
  "Rakefile",
22
23
  "VERSION",
@@ -20,8 +20,8 @@ module Foreigner
20
20
  if (foreign_keys = @connection.foreign_keys(table_name)).any?
21
21
  add_foreign_key_statements = foreign_keys.map do |foreign_key|
22
22
  statement_parts = [ ('add_foreign_key ' + foreign_key.from_table.inspect) ]
23
- if options[:database].present?
24
- statement_parts << %Q["#{options[:database]}.#{foreign_key.to_table.to_s}"]
23
+ if foreign_key.options[:database].present?
24
+ statement_parts << %Q["#{foreign_key.options[:database]}.#{foreign_key.to_table.to_s}"]
25
25
  else
26
26
  statement_parts << foreign_key.to_table.inspect
27
27
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brianjlandau-foreigner
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
4
+ hash: 1
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 7
9
- - 0
10
- version: 0.7.0
9
+ - 1
10
+ version: 0.7.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Matthew Higgins
@@ -29,6 +29,7 @@ extensions: []
29
29
  extra_rdoc_files:
30
30
  - README
31
31
  files:
32
+ - .gitignore
32
33
  - MIT-LICENSE
33
34
  - README
34
35
  - Rakefile