automatic_foreign_key 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require 'rubygems'
2
3
  require 'rake'
3
4
 
@@ -11,7 +12,7 @@ constraints when creating tables. It uses SQL-92 syntax and as such should be co
11
12
  gem.email = "michal.lomnicki@gmail.com"
12
13
  gem.homepage = "http://github.com/mlomnicki/automatic_foreign_key"
13
14
  gem.authors = ["Michał Łomnicki"]
14
- gem.add_dependency "redhillonrails_core", ">= 1.0.0"
15
+ gem.add_dependency "redhillonrails_core", ">= 1.0.2"
15
16
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
16
17
  end
17
18
  Jeweler::GemcutterTasks.new
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.0.1
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{automatic_foreign_key}
8
- s.version = "1.0.0"
8
+ s.version = "1.0.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Micha\305\202 \305\201omnicki"]
12
- s.date = %q{2010-03-13}
11
+ s.authors = ["Michał Łomnicki"]
12
+ s.date = %q{2010-03-29}
13
13
  s.description = %q{Automatic Key Migrations is a gem that automatically generates foreign-key
14
14
  constraints when creating tables. It uses SQL-92 syntax and as such should be compatible with most databases that support foreign-key constraints.}
15
15
  s.email = %q{michal.lomnicki@gmail.com}
@@ -30,14 +30,14 @@ constraints when creating tables. It uses SQL-92 syntax and as such should be co
30
30
  "init.rb",
31
31
  "install.rb",
32
32
  "lib/automatic_foreign_key.rb",
33
- "lib/red_hill_consulting/automatic_foreign_key/active_record/base.rb",
34
- "lib/red_hill_consulting/automatic_foreign_key/active_record/connection_adapters/table_definition.rb",
35
- "lib/red_hill_consulting/automatic_foreign_key/active_record/migration.rb"
33
+ "lib/automatic_foreign_key/active_record/base.rb",
34
+ "lib/automatic_foreign_key/active_record/connection_adapters/table_definition.rb",
35
+ "lib/automatic_foreign_key/active_record/migration.rb"
36
36
  ]
37
37
  s.homepage = %q{http://github.com/mlomnicki/automatic_foreign_key}
38
38
  s.rdoc_options = ["--charset=UTF-8"]
39
39
  s.require_paths = ["lib"]
40
- s.rubygems_version = %q{1.3.5}
40
+ s.rubygems_version = %q{1.3.6}
41
41
  s.summary = %q{Automatically generate foreign-key constraints when creating tables}
42
42
 
43
43
  if s.respond_to? :specification_version then
@@ -45,12 +45,12 @@ constraints when creating tables. It uses SQL-92 syntax and as such should be co
45
45
  s.specification_version = 3
46
46
 
47
47
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
48
- s.add_runtime_dependency(%q<redhillonrails_core>, [">= 1.0.0"])
48
+ s.add_runtime_dependency(%q<redhillonrails_core>, [">= 1.0.2"])
49
49
  else
50
- s.add_dependency(%q<redhillonrails_core>, [">= 1.0.0"])
50
+ s.add_dependency(%q<redhillonrails_core>, [">= 1.0.2"])
51
51
  end
52
52
  else
53
- s.add_dependency(%q<redhillonrails_core>, [">= 1.0.0"])
53
+ s.add_dependency(%q<redhillonrails_core>, [">= 1.0.2"])
54
54
  end
55
55
  end
56
56
 
@@ -1,4 +1,22 @@
1
- require 'redhillonrails_core'
2
- ActiveRecord::Base.send(:include, RedHillConsulting::AutomaticForeignKey::ActiveRecord::Base)
3
- ActiveRecord::Migration.send(:include, RedHillConsulting::AutomaticForeignKey::ActiveRecord::Migration)
4
- ActiveRecord::ConnectionAdapters::TableDefinition.send(:include, RedHillConsulting::AutomaticForeignKey::ActiveRecord::ConnectionAdapters::TableDefinition)
1
+ begin
2
+ require 'redhillonrails_core'
3
+ rescue
4
+ gem 'redhillonrails_core'
5
+ require 'redhillonrails_core'
6
+ end
7
+
8
+ module AutomaticForeignKey
9
+ module ActiveRecord
10
+ autoload :Base, 'automatic_foreign_key/active_record/base'
11
+ autoload :Migration, 'automatic_foreign_key/active_record/migration'
12
+
13
+ module ConnectionAdapters
14
+ autoload :TableDefinition, 'automatic_foreign_key/active_record/connection_adapters/table_definition'
15
+ end
16
+
17
+ end
18
+ end
19
+
20
+ ActiveRecord::Base.send(:include, AutomaticForeignKey::ActiveRecord::Base)
21
+ ActiveRecord::Migration.send(:include, AutomaticForeignKey::ActiveRecord::Migration)
22
+ ActiveRecord::ConnectionAdapters::TableDefinition.send(:include, AutomaticForeignKey::ActiveRecord::ConnectionAdapters::TableDefinition)
@@ -1,4 +1,4 @@
1
- module RedHillConsulting::AutomaticForeignKey::ActiveRecord
1
+ module AutomaticForeignKey::ActiveRecord
2
2
  module Base
3
3
  def self.included(base)
4
4
  base.extend(ClassMethods)
@@ -1,4 +1,4 @@
1
- module RedHillConsulting::AutomaticForeignKey::ActiveRecord::ConnectionAdapters
1
+ module AutomaticForeignKey::ActiveRecord::ConnectionAdapters
2
2
  module TableDefinition
3
3
  def self.included(base)
4
4
  base.class_eval do
@@ -1,4 +1,4 @@
1
- module RedHillConsulting::AutomaticForeignKey::ActiveRecord
1
+ module AutomaticForeignKey::ActiveRecord
2
2
  module Migration
3
3
  def self.included(base)
4
4
  base.extend(ClassMethods)
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: automatic_foreign_key
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ prerelease: false
5
+ segments:
6
+ - 1
7
+ - 0
8
+ - 1
9
+ version: 1.0.1
5
10
  platform: ruby
6
11
  authors:
7
12
  - "Micha\xC5\x82 \xC5\x81omnicki"
@@ -9,19 +14,23 @@ autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2010-03-13 00:00:00 +01:00
17
+ date: 2010-03-29 00:00:00 +02:00
13
18
  default_executable:
14
19
  dependencies:
15
20
  - !ruby/object:Gem::Dependency
16
21
  name: redhillonrails_core
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
20
24
  requirements:
21
25
  - - ">="
22
26
  - !ruby/object:Gem::Version
23
- version: 1.0.0
24
- version:
27
+ segments:
28
+ - 1
29
+ - 0
30
+ - 2
31
+ version: 1.0.2
32
+ type: :runtime
33
+ version_requirements: *id001
25
34
  description: |-
26
35
  Automatic Key Migrations is a gem that automatically generates foreign-key
27
36
  constraints when creating tables. It uses SQL-92 syntax and as such should be compatible with most databases that support foreign-key constraints.
@@ -46,9 +55,9 @@ files:
46
55
  - init.rb
47
56
  - install.rb
48
57
  - lib/automatic_foreign_key.rb
49
- - lib/red_hill_consulting/automatic_foreign_key/active_record/base.rb
50
- - lib/red_hill_consulting/automatic_foreign_key/active_record/connection_adapters/table_definition.rb
51
- - lib/red_hill_consulting/automatic_foreign_key/active_record/migration.rb
58
+ - lib/automatic_foreign_key/active_record/base.rb
59
+ - lib/automatic_foreign_key/active_record/connection_adapters/table_definition.rb
60
+ - lib/automatic_foreign_key/active_record/migration.rb
52
61
  has_rdoc: true
53
62
  homepage: http://github.com/mlomnicki/automatic_foreign_key
54
63
  licenses: []
@@ -62,18 +71,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
62
71
  requirements:
63
72
  - - ">="
64
73
  - !ruby/object:Gem::Version
74
+ segments:
75
+ - 0
65
76
  version: "0"
66
- version:
67
77
  required_rubygems_version: !ruby/object:Gem::Requirement
68
78
  requirements:
69
79
  - - ">="
70
80
  - !ruby/object:Gem::Version
81
+ segments:
82
+ - 0
71
83
  version: "0"
72
- version:
73
84
  requirements: []
74
85
 
75
86
  rubyforge_project:
76
- rubygems_version: 1.3.5
87
+ rubygems_version: 1.3.6
77
88
  signing_key:
78
89
  specification_version: 3
79
90
  summary: Automatically generate foreign-key constraints when creating tables