class-table-inheritance 1.1.2 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/inherits-migration.rb +5 -1
- data/test/class_table_inheritance_test.rb +8 -0
- metadata +8 -17
- data/Rakefile +0 -23
- data/class-table-inheritance-1.0.0.gem +0 -0
- data/class-table-inheritance-1.1.0.gem +0 -0
- data/class-table-inheritance-1.1.1.gem +0 -0
- data/class-table-inheritance-1.2.0.gem +0 -0
- data/class-table-inheritance-1.2.1.gem +0 -0
- data/init.rb +0 -1
data/lib/inherits-migration.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'active_record'
|
2
|
+
|
1
3
|
module InheritsMigration
|
2
4
|
|
3
5
|
def self.included(base)
|
@@ -25,4 +27,6 @@ module InheritsMigration
|
|
25
27
|
end
|
26
28
|
end
|
27
29
|
|
28
|
-
ActiveRecord::ConnectionAdapters::SchemaStatements::send(:include, InheritsMigration)
|
30
|
+
#ActiveRecord::ConnectionAdapters::SchemaStatements::send(:include, InheritsMigration)
|
31
|
+
ActiveRecord::Base
|
32
|
+
ActiveRecord::ConnectionAdapters::SchemaStatements::send(:include, InheritsMigration)
|
metadata
CHANGED
@@ -1,25 +1,24 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: class-table-inheritance
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 23
|
5
4
|
prerelease: false
|
6
5
|
segments:
|
7
6
|
- 1
|
8
|
-
- 1
|
9
7
|
- 2
|
10
|
-
|
8
|
+
- 0
|
9
|
+
version: 1.2.0
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- Bruno Frank Cordeiro
|
14
|
-
autorequire:
|
13
|
+
autorequire: name
|
15
14
|
bindir: bin
|
16
15
|
cert_chain: []
|
17
16
|
|
18
|
-
date: 2010-12-
|
17
|
+
date: 2010-12-02 00:00:00 -02:00
|
19
18
|
default_executable:
|
20
19
|
dependencies: []
|
21
20
|
|
22
|
-
description:
|
21
|
+
description:
|
23
22
|
email: bfscordeiro@gmail.com
|
24
23
|
executables: []
|
25
24
|
|
@@ -28,16 +27,10 @@ extensions: []
|
|
28
27
|
extra_rdoc_files:
|
29
28
|
- README
|
30
29
|
files:
|
31
|
-
- class-table-inheritance-1.0.0.gem
|
32
|
-
- class-table-inheritance-1.1.0.gem
|
33
|
-
- class-table-inheritance-1.1.1.gem
|
34
|
-
- class-table-inheritance-1.2.0.gem
|
35
|
-
- class-table-inheritance-1.2.1.gem
|
36
|
-
- init.rb
|
37
30
|
- lib/class-table-inheritance.rb
|
38
31
|
- lib/inherits-migration.rb
|
39
|
-
- Rakefile
|
40
32
|
- README
|
33
|
+
- test/class_table_inheritance_test.rb
|
41
34
|
has_rdoc: true
|
42
35
|
homepage:
|
43
36
|
licenses: []
|
@@ -52,7 +45,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
52
45
|
requirements:
|
53
46
|
- - ">="
|
54
47
|
- !ruby/object:Gem::Version
|
55
|
-
hash: 3
|
56
48
|
segments:
|
57
49
|
- 0
|
58
50
|
version: "0"
|
@@ -61,7 +53,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
61
53
|
requirements:
|
62
54
|
- - ">="
|
63
55
|
- !ruby/object:Gem::Version
|
64
|
-
hash: 3
|
65
56
|
segments:
|
66
57
|
- 0
|
67
58
|
version: "0"
|
@@ -72,5 +63,5 @@ rubygems_version: 1.3.7
|
|
72
63
|
signing_key:
|
73
64
|
specification_version: 3
|
74
65
|
summary: ActiveRecord plugin designed to allow simple multiple table (class) inheritance.
|
75
|
-
test_files:
|
76
|
-
|
66
|
+
test_files:
|
67
|
+
- test/class_table_inheritance_test.rb
|
data/Rakefile
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
require 'rake'
|
2
|
-
require 'rake/testtask'
|
3
|
-
require 'rake/rdoctask'
|
4
|
-
|
5
|
-
desc 'Default: run unit tests.'
|
6
|
-
task :default => :test
|
7
|
-
|
8
|
-
desc 'Test the class_table_inheritance plugin.'
|
9
|
-
Rake::TestTask.new(:test) do |t|
|
10
|
-
t.libs << 'lib'
|
11
|
-
t.libs << 'test'
|
12
|
-
t.pattern = 'test/**/*_test.rb'
|
13
|
-
t.verbose = true
|
14
|
-
end
|
15
|
-
|
16
|
-
desc 'Generate documentation for the class_table_inheritance plugin.'
|
17
|
-
Rake::RDocTask.new(:rdoc) do |rdoc|
|
18
|
-
rdoc.rdoc_dir = 'rdoc'
|
19
|
-
rdoc.title = 'ClassTableInheritance'
|
20
|
-
rdoc.options << '--line-numbers' << '--inline-source'
|
21
|
-
rdoc.rdoc_files.include('README')
|
22
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
23
|
-
end
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/init.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
require 'class-table-inheritance'
|