aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2012-01-12 11:36:24 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2012-01-12 11:37:54 -0800
commit34f7d3442e7b0fa8f6dd2d270ee26545232ca816 (patch)
tree91efe7d1e820995efece5ee806694b608a2e2370 /lib
parent529013d974312595555e2f080c5494ea23b3d892 (diff)
downloadrails-34f7d3442e7b0fa8f6dd2d270ee26545232ca816.tar.gz
rails-34f7d3442e7b0fa8f6dd2d270ee26545232ca816.tar.bz2
rails-34f7d3442e7b0fa8f6dd2d270ee26545232ca816.zip
bumping to 3.0.0
Diffstat (limited to 'lib')
-rw-r--r--lib/arel.rb2
-rw-r--r--lib/arel/crud.rb6
-rw-r--r--lib/arel/select_manager.rb8
-rw-r--r--lib/arel/table.rb8
-rw-r--r--lib/arel/visitors/to_sql.rb2
5 files changed, 13 insertions, 13 deletions
diff --git a/lib/arel.rb b/lib/arel.rb
index 8d5895dbea..e092fd7998 100644
--- a/lib/arel.rb
+++ b/lib/arel.rb
@@ -33,7 +33,7 @@ require 'arel/sql_literal'
####
module Arel
- VERSION = '3.0.0.rc1'
+ VERSION = '3.0.0'
def self.sql raw_sql
Arel::Nodes::SqlLiteral.new raw_sql
diff --git a/lib/arel/crud.rb b/lib/arel/crud.rb
index 43805dd464..6c29d5fee4 100644
--- a/lib/arel/crud.rb
+++ b/lib/arel/crud.rb
@@ -22,7 +22,7 @@ module Arel
def update values
if $VERBOSE
warn <<-eowarn
-update (#{caller.first}) is deprecated and will be removed in ARel 3.0.0. Please
+update (#{caller.first}) is deprecated and will be removed in ARel 4.0.0. Please
switch to `compile_update`
eowarn
end
@@ -45,7 +45,7 @@ switch to `compile_update`
def insert values
if $VERBOSE
warn <<-eowarn
-insert (#{caller.first}) is deprecated and will be removed in ARel 3.0.0. Please
+insert (#{caller.first}) is deprecated and will be removed in ARel 4.0.0. Please
switch to `compile_insert`
eowarn
end
@@ -62,7 +62,7 @@ switch to `compile_insert`
def delete
if $VERBOSE
warn <<-eowarn
-delete (#{caller.first}) is deprecated and will be removed in ARel 3.0.0. Please
+delete (#{caller.first}) is deprecated and will be removed in ARel 4.0.0. Please
switch to `compile_delete`
eowarn
end
diff --git a/lib/arel/select_manager.rb b/lib/arel/select_manager.rb
index 82b73cf3aa..32f833f686 100644
--- a/lib/arel/select_manager.rb
+++ b/lib/arel/select_manager.rb
@@ -49,7 +49,7 @@ module Arel
def where_clauses
if $VERBOSE
- warn "(#{caller.first}) where_clauses is deprecated and will be removed in arel 3.0.0 with no replacement"
+ warn "(#{caller.first}) where_clauses is deprecated and will be removed in arel 4.0.0 with no replacement"
end
to_sql = Visitors::ToSql.new @engine.connection
@ctx.wheres.map { |c| to_sql.accept c }
@@ -160,7 +160,7 @@ module Arel
end
def wheres
- warn "#{caller[0]}: SelectManager#wheres is deprecated and will be removed in ARel 3.0.0 with no replacement"
+ warn "#{caller[0]}: SelectManager#wheres is deprecated and will be removed in ARel 4.0.0 with no replacement"
Compatibility::Wheres.new @engine.connection, @ctx.wheres
end
@@ -238,7 +238,7 @@ module Arel
def joins manager
if $VERBOSE
- warn "joins is deprecated and will be removed in 3.0.0"
+ warn "joins is deprecated and will be removed in 4.0.0"
warn "please remove your call to joins from #{caller.first}"
end
manager.join_sql
@@ -266,7 +266,7 @@ module Arel
def insert values
if $VERBOSE
warn <<-eowarn
-insert (#{caller.first}) is deprecated and will be removed in ARel 3.0.0. Please
+insert (#{caller.first}) is deprecated and will be removed in ARel 4.0.0. Please
switch to `compile_insert`
eowarn
end
diff --git a/lib/arel/table.rb b/lib/arel/table.rb
index 82d160b87e..7a1983b3d2 100644
--- a/lib/arel/table.rb
+++ b/lib/arel/table.rb
@@ -32,7 +32,7 @@ module Arel
def primary_key
if $VERBOSE
warn <<-eowarn
-primary_key (#{caller.first}) is deprecated and will be removed in ARel 3.0.0
+primary_key (#{caller.first}) is deprecated and will be removed in ARel 4.0.0
eowarn
end
@primary_key ||= begin
@@ -54,7 +54,7 @@ primary_key (#{caller.first}) is deprecated and will be removed in ARel 3.0.0
def joins manager
if $VERBOSE
- warn "joins is deprecated and will be removed in 3.0.0"
+ warn "joins is deprecated and will be removed in 4.0.0"
warn "please remove your call to joins from #{caller.first}"
end
nil
@@ -104,7 +104,7 @@ primary_key (#{caller.first}) is deprecated and will be removed in ARel 3.0.0
if $VERBOSE
warn <<-eowarn
(#{caller.first}) Arel::Table#columns is deprecated and will be removed in
-Arel 3.0.0 with no replacement. PEW PEW PEW!!!
+Arel 4.0.0 with no replacement. PEW PEW PEW!!!
eowarn
end
@columns ||=
@@ -138,7 +138,7 @@ Arel 3.0.0 with no replacement. PEW PEW PEW!!!
if $VERBOSE
warn <<-eowarn
(#{caller.first}) Arel::Table.table_cache is deprecated and will be removed in
-Arel 3.0.0 with no replacement. PEW PEW PEW!!!
+Arel 4.0.0 with no replacement. PEW PEW PEW!!!
eowarn
end
@@table_cache ||= Hash[engine.connection.tables.map { |x| [x,true] }]
diff --git a/lib/arel/visitors/to_sql.rb b/lib/arel/visitors/to_sql.rb
index ccaa328a78..260cb6959f 100644
--- a/lib/arel/visitors/to_sql.rb
+++ b/lib/arel/visitors/to_sql.rb
@@ -47,7 +47,7 @@ module Arel
unless key
warn(<<-eowarn) if $VERBOSE
(#{caller.first}) Using UpdateManager without setting UpdateManager#key is
-deprecated and support will be removed in ARel 3.0.0. Please set the primary
+deprecated and support will be removed in ARel 4.0.0. Please set the primary
key on UpdateManager using UpdateManager#key=
eowarn
key = o.relation.primary_key