redhillonrails_core 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ 1.0.3
2
+ ActiveRecord 3.0beta compatibility
3
+ First ruby 1.9 fixes
1
4
  1.0.2
2
5
  * added missing dependencies
3
6
  1.0.1
data/Rakefile CHANGED
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require 'rubygems'
2
3
  require 'rake'
3
4
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.2
1
+ 1.0.3
@@ -1,3 +1,14 @@
1
+ begin
2
+ require 'active_record'
3
+ rescue
4
+ gem 'active_record'
5
+ require 'active_record'
6
+ end
7
+
8
+ # TODO: only needed adapters should be required here
9
+ require 'active_record/connection_adapters/postgresql_adapter'
10
+ require 'active_record/connection_adapters/mysql_adapter'
11
+ require 'active_record/connection_adapters/sqlite3_adapter'
1
12
  require 'red_hill_consulting/core'
2
13
  require 'red_hill_consulting/core/active_record'
3
14
  require 'red_hill_consulting/core/active_record/base'
@@ -23,21 +34,16 @@ ActiveRecord::ConnectionAdapters::Column.send(:include, RedHillConsulting::Core:
23
34
  ActiveRecord::ConnectionAdapters::AbstractAdapter.send(:include, RedHillConsulting::Core::ActiveRecord::ConnectionAdapters::AbstractAdapter)
24
35
  ActiveRecord::ConnectionAdapters::SchemaStatements.send(:include, RedHillConsulting::Core::ActiveRecord::ConnectionAdapters::SchemaStatements)
25
36
 
26
- if defined?(ActiveRecord::ConnectionAdapters::PostgreSQLAdapter) then
27
- ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.send(:include, RedHillConsulting::Core::ActiveRecord::ConnectionAdapters::PostgresqlAdapter)
28
- end
29
- if defined?(ActiveRecord::ConnectionAdapters::MysqlAdapter) then
30
- ActiveRecord::ConnectionAdapters::MysqlColumn.send(:include, RedHillConsulting::Core::ActiveRecord::ConnectionAdapters::MysqlColumn)
31
- ActiveRecord::ConnectionAdapters::MysqlAdapter.send(:include, RedHillConsulting::Core::ActiveRecord::ConnectionAdapters::MysqlAdapter)
32
- if ActiveRecord::Base.connection.send(:version)[0] < 5
33
- #include MySql4Adapter
34
- ActiveRecord::ConnectionAdapters::MysqlAdapter.send(:include, RedHillConsulting::Core::ActiveRecord::ConnectionAdapters::Mysql4Adapter)
35
- else
36
- #include MySql5Adapter
37
- ActiveRecord::ConnectionAdapters::MysqlAdapter.send(:include, RedHillConsulting::Core::ActiveRecord::ConnectionAdapters::Mysql5Adapter)
38
- end
39
-
40
- end
41
- if defined?(ActiveRecord::ConnectionAdapters::SQLite3Adapter) then
42
- ActiveRecord::ConnectionAdapters::SQLite3Adapter.send(:include, RedHillConsulting::Core::ActiveRecord::ConnectionAdapters::Sqlite3Adapter)
37
+ ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.send(:include, RedHillConsulting::Core::ActiveRecord::ConnectionAdapters::PostgresqlAdapter)
38
+
39
+ ActiveRecord::ConnectionAdapters::MysqlColumn.send(:include, RedHillConsulting::Core::ActiveRecord::ConnectionAdapters::MysqlColumn)
40
+ ActiveRecord::ConnectionAdapters::MysqlAdapter.send(:include, RedHillConsulting::Core::ActiveRecord::ConnectionAdapters::MysqlAdapter)
41
+ if ActiveRecord::Base.connection.send(:version)[0] < 5
42
+ #include MySql4Adapter
43
+ ActiveRecord::ConnectionAdapters::MysqlAdapter.send(:include, RedHillConsulting::Core::ActiveRecord::ConnectionAdapters::Mysql4Adapter)
44
+ else
45
+ #include MySql5Adapter
46
+ ActiveRecord::ConnectionAdapters::MysqlAdapter.send(:include, RedHillConsulting::Core::ActiveRecord::ConnectionAdapters::Mysql5Adapter)
43
47
  end
48
+
49
+ ActiveRecord::ConnectionAdapters::SQLite3Adapter.send(:include, RedHillConsulting::Core::ActiveRecord::ConnectionAdapters::Sqlite3Adapter)
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{redhillonrails_core}
8
- s.version = "1.0.2"
8
+ s.version = "1.0.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Micha\305\202 \305\201omnicki"]
12
- s.date = %q{2010-03-13}
12
+ s.date = %q{2010-04-05}
13
13
  s.description = %q{RedHill on Rails Core is a plugin that features to support other RedHill on Rails plugins. It creates and drops views and foreign-keys or obtains indexes directly from a model class.}
14
14
  s.email = %q{michal.lomnicki@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -48,7 +48,7 @@ Gem::Specification.new do |s|
48
48
  s.homepage = %q{http://github.com/mlomnicki/redhillonrails_core}
49
49
  s.rdoc_options = ["--charset=UTF-8"]
50
50
  s.require_paths = ["lib"]
51
- s.rubygems_version = %q{1.3.5}
51
+ s.rubygems_version = %q{1.3.6}
52
52
  s.summary = %q{RedHill on Rails Core is a plugin that features to support other RedHill on Rails plugins}
53
53
 
54
54
  if s.respond_to? :specification_version then
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redhillonrails_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ prerelease: false
5
+ segments:
6
+ - 1
7
+ - 0
8
+ - 3
9
+ version: 1.0.3
5
10
  platform: ruby
6
11
  authors:
7
12
  - "Micha\xC5\x82 \xC5\x81omnicki"
@@ -9,7 +14,7 @@ autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2010-03-13 00:00:00 +01:00
17
+ date: 2010-04-05 00:00:00 +02:00
13
18
  default_executable:
14
19
  dependencies: []
15
20
 
@@ -63,18 +68,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
63
68
  requirements:
64
69
  - - ">="
65
70
  - !ruby/object:Gem::Version
71
+ segments:
72
+ - 0
66
73
  version: "0"
67
- version:
68
74
  required_rubygems_version: !ruby/object:Gem::Requirement
69
75
  requirements:
70
76
  - - ">="
71
77
  - !ruby/object:Gem::Version
78
+ segments:
79
+ - 0
72
80
  version: "0"
73
- version:
74
81
  requirements: []
75
82
 
76
83
  rubyforge_project:
77
- rubygems_version: 1.3.5
84
+ rubygems_version: 1.3.6
78
85
  signing_key:
79
86
  specification_version: 3
80
87
  summary: RedHill on Rails Core is a plugin that features to support other RedHill on Rails plugins