Browse files

bumping to 3.0.0

  • Loading branch information...
1 parent 529013d commit 34f7d3442e7b0fa8f6dd2d270ee26545232ca816 @tenderlove tenderlove committed Jan 12, 2012
Showing with 16 additions and 19 deletions.
  1. +3 −6 arel.gemspec
  2. +1 −1 lib/arel.rb
  3. +3 −3 lib/arel/crud.rb
  4. +4 −4 lib/arel/select_manager.rb
  5. +4 −4 lib/arel/table.rb
  6. +1 −1 lib/arel/visitors/to_sql.rb
View
9 arel.gemspec
@@ -2,11 +2,11 @@
Gem::Specification.new do |s|
s.name = "arel"
- s.version = "3.0.0.rc1.20111214132513"
+ s.version = "3.0.0.20120112113618"
- s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Aaron Patterson", "Bryan Halmkamp", "Emilio Tagua", "Nick Kallen"]
- s.date = "2011-12-14"
+ s.date = "2012-01-12"
s.description = "Arel is a SQL AST manager for Ruby. It\n\n1. Simplifies the generation of complex SQL queries\n2. Adapts to various RDBMS systems\n\nIt is intended to be a framework framework; that is, you can build your own ORM\nwith it, focusing on innovative object and collection modeling as opposed to\ndatabase compatibility and query generation."
s.email = ["aaron@tenderlovemaking.com", "bryan@brynary.com", "miloops@gmail.com", "nick@example.org"]
s.extra_rdoc_files = ["History.txt", "MIT-LICENSE.txt", "Manifest.txt", "README.markdown"]
@@ -23,16 +23,13 @@ Gem::Specification.new do |s|
s.specification_version = 3
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
- s.add_development_dependency(%q<minitest>, ["~> 2.9"])
s.add_development_dependency(%q<hoe>, ["~> 2.12"])
s.add_development_dependency(%q<rdoc>, ["~> 3.10"])
else
- s.add_dependency(%q<minitest>, ["~> 2.9"])
s.add_dependency(%q<hoe>, ["~> 2.12"])
s.add_dependency(%q<rdoc>, ["~> 3.10"])
end
else
- s.add_dependency(%q<minitest>, ["~> 2.9"])
s.add_dependency(%q<hoe>, ["~> 2.12"])
s.add_dependency(%q<rdoc>, ["~> 3.10"])
end
View
2 lib/arel.rb
@@ -33,7 +33,7 @@
####
module Arel
- VERSION = '3.0.0.rc1'
+ VERSION = '3.0.0'
def self.sql raw_sql
Arel::Nodes::SqlLiteral.new raw_sql
View
6 lib/arel/crud.rb
@@ -22,7 +22,7 @@ def compile_update values
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 @@ def create_insert
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 @@ def compile_delete
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
View
8 lib/arel/select_manager.rb
@@ -49,7 +49,7 @@ def as other
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 @@ def orders
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 @@ def source
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 @@ def to_a # :nodoc:
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
View
8 lib/arel/table.rb
@@ -32,7 +32,7 @@ def initialize name, engine = Table.engine
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 @@ def from table
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 @@ def columns
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 @@ def self.table_cache engine # :nodoc:
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] }]
View
2 lib/arel/visitors/to_sql.rb
@@ -47,7 +47,7 @@ def visit_Arel_Nodes_UpdateStatement o
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

0 comments on commit 34f7d34

Please sign in to comment.