diff options
-rw-r--r-- | arel.gemspec | 9 | ||||
-rw-r--r-- | lib/arel.rb | 2 | ||||
-rw-r--r-- | lib/arel/crud.rb | 6 | ||||
-rw-r--r-- | lib/arel/select_manager.rb | 8 | ||||
-rw-r--r-- | lib/arel/table.rb | 8 | ||||
-rw-r--r-- | lib/arel/visitors/to_sql.rb | 2 |
6 files changed, 16 insertions, 19 deletions
diff --git a/arel.gemspec b/arel.gemspec index eb0fbefc8d..f2ee5f8d1b 100644 --- a/arel.gemspec +++ b/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 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 |