diff --git a/test/unit/page_renderer_test.rb b/test/unit/page_renderer_test.rb index a0a538011..f837ff674 100644 --- a/test/unit/page_renderer_test.rb +++ b/test/unit/page_renderer_test.rb @@ -239,8 +239,9 @@ def test_footnotes def test_toc assert_markup_parsed_as( - %{

Title

\n
\n

Title

\n
\n

Section 1

\n\n

Foo

\n\n

Section 2

\n\n

Bar

}, "#Title\n* Toc\n{:toc}\n\n##Section 1\n\nFoo\n\n##Section 2\n\nBar\n") end diff --git a/vendor/rails/actionmailer/Rakefile b/vendor/rails/actionmailer/Rakefile index c53b979f5..528e31a25 100644 --- a/vendor/rails/actionmailer/Rakefile +++ b/vendor/rails/actionmailer/Rakefile @@ -54,7 +54,7 @@ spec = Gem::Specification.new do |s| s.rubyforge_project = "actionmailer" s.homepage = "http://www.rubyonrails.org" - s.add_dependency('actionpack', '= 2.3.16' + PKG_BUILD) + s.add_dependency('actionpack', '= 2.3.17' + PKG_BUILD) s.requirements << 'none' s.require_path = 'lib' diff --git a/vendor/rails/actionmailer/actionmailer.gemspec b/vendor/rails/actionmailer/actionmailer.gemspec index ef1980d73..126bca1ca 100644 --- a/vendor/rails/actionmailer/actionmailer.gemspec +++ b/vendor/rails/actionmailer/actionmailer.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |s| s.name = 'actionmailer' - s.version = '2.3.15' + s.version = '2.3.17' s.summary = 'Service layer for easy email delivery and testing.' s.description = 'Makes it trivial to test and deliver emails sent from a single service layer.' @@ -10,5 +10,5 @@ Gem::Specification.new do |s| s.require_path = 'lib' - s.add_dependency 'actionpack', '= 2.3.15' + s.add_dependency 'actionpack', '= 2.3.17' end diff --git a/vendor/rails/actionmailer/lib/action_mailer/version.rb b/vendor/rails/actionmailer/lib/action_mailer/version.rb index 60de274dc..669f051a2 100644 --- a/vendor/rails/actionmailer/lib/action_mailer/version.rb +++ b/vendor/rails/actionmailer/lib/action_mailer/version.rb @@ -2,7 +2,7 @@ module ActionMailer module VERSION #:nodoc: MAJOR = 2 MINOR = 3 - TINY = 16 + TINY = 17 STRING = [MAJOR, MINOR, TINY].join('.') end diff --git a/vendor/rails/actionpack/Rakefile b/vendor/rails/actionpack/Rakefile index e6e285a87..9d261d8c9 100644 --- a/vendor/rails/actionpack/Rakefile +++ b/vendor/rails/actionpack/Rakefile @@ -78,7 +78,7 @@ spec = Gem::Specification.new do |s| s.requirements << 'none' - s.add_dependency('activesupport', '= 2.3.16' + PKG_BUILD) + s.add_dependency('activesupport', '= 2.3.17' + PKG_BUILD) s.add_dependency('rack', '~> 1.1.0') s.require_path = 'lib' diff --git a/vendor/rails/actionpack/actionpack.gemspec b/vendor/rails/actionpack/actionpack.gemspec index 36369f4d7..51788ec45 100644 --- a/vendor/rails/actionpack/actionpack.gemspec +++ b/vendor/rails/actionpack/actionpack.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |s| s.name = 'actionpack' - s.version = '2.3.15' + s.version = '2.3.17' s.summary = 'Web-flow and rendering framework putting the VC in MVC.' s.description = 'Eases web-request routing, handling, and response as a half-way front, half-way page controller. Implemented with specific emphasis on enabling easy unit/integration testing that doesn\'t require a browser.' @@ -10,6 +10,6 @@ Gem::Specification.new do |s| s.require_path = 'lib' - s.add_dependency 'activesupport', '= 2.3.15' + s.add_dependency 'activesupport', '= 2.3.17' s.add_dependency 'rack', '~> 1.1.0' end diff --git a/vendor/rails/actionpack/lib/action_pack/version.rb b/vendor/rails/actionpack/lib/action_pack/version.rb index 0519eb0c9..85be0bed8 100644 --- a/vendor/rails/actionpack/lib/action_pack/version.rb +++ b/vendor/rails/actionpack/lib/action_pack/version.rb @@ -2,7 +2,7 @@ module ActionPack #:nodoc: module VERSION #:nodoc: MAJOR = 2 MINOR = 3 - TINY = 16 + TINY = 17 STRING = [MAJOR, MINOR, TINY].join('.') end diff --git a/vendor/rails/actionpack/test/template/active_record_helper_test.rb b/vendor/rails/actionpack/test/template/active_record_helper_test.rb index 6ec4c84a5..0c2a6a97d 100644 --- a/vendor/rails/actionpack/test/template/active_record_helper_test.rb +++ b/vendor/rails/actionpack/test/template/active_record_helper_test.rb @@ -213,15 +213,15 @@ def Post.content_columns() [ Column.new(:datetime, "written_on", "Written on") ] end def test_error_for_block - assert_dom_equal %(

1 error prohibited this post from being saved

There were problems with the following fields:

), error_messages_for("post") - assert_equal %(

1 error prohibited this post from being saved

There were problems with the following fields:

), error_messages_for("post", :class => "errorDeathByClass", :id => "errorDeathById", :header_tag => "h1") - assert_equal %(

1 error prohibited this post from being saved

There were problems with the following fields:

), error_messages_for("post", :class => nil, :id => "errorDeathById", :header_tag => "h1") - assert_equal %(

1 error prohibited this post from being saved

There were problems with the following fields:

), error_messages_for("post", :class => "errorDeathByClass", :id => nil, :header_tag => "h1") + assert_dom_equal %(

1 error prohibited this post from being saved

There were problems with the following fields:

), error_messages_for("post") + assert_equal %(

1 error prohibited this post from being saved

There were problems with the following fields:

), error_messages_for("post", :class => "errorDeathByClass", :id => "errorDeathById", :header_tag => "h1") + assert_equal %(

1 error prohibited this post from being saved

There were problems with the following fields:

), error_messages_for("post", :class => nil, :id => "errorDeathById", :header_tag => "h1") + assert_equal %(

1 error prohibited this post from being saved

There were problems with the following fields:

), error_messages_for("post", :class => "errorDeathByClass", :id => nil, :header_tag => "h1") end def test_error_messages_for_escapes_html @dirty_post = DirtyPost.new - assert_dom_equal %(

1 error prohibited this dirty post from being saved

There were problems with the following fields:

), error_messages_for("dirty_post") + assert_dom_equal %(

1 error prohibited this dirty post from being saved

There were problems with the following fields:

), error_messages_for("dirty_post") end def test_error_messages_for_handles_nil @@ -230,7 +230,7 @@ def test_error_messages_for_handles_nil def test_error_message_on_escapes_html @dirty_post = DirtyPost.new - assert_dom_equal "
can't be <em>empty</em>
", error_message_on(:dirty_post, :author_name) + assert_dom_equal "
can't be <em>empty</em>
", error_message_on(:dirty_post, :author_name) end def test_error_message_on_handles_nil @@ -238,43 +238,43 @@ def test_error_message_on_handles_nil end def test_error_message_on - assert_dom_equal "
can't be empty
", error_message_on(:post, :author_name) + assert_dom_equal "
can't be empty
", error_message_on(:post, :author_name) end def test_error_message_on_no_instance_variable other_post = @post - assert_dom_equal "
can't be empty
", error_message_on(other_post, :author_name) + assert_dom_equal "
can't be empty
", error_message_on(other_post, :author_name) end def test_error_message_on_with_options_hash - assert_dom_equal "
beforecan't be emptyafter
", error_message_on(:post, :author_name, :css_class => 'differentError', :prepend_text => 'before', :append_text => 'after') + assert_dom_equal "
beforecan't be emptyafter
", error_message_on(:post, :author_name, :css_class => 'differentError', :prepend_text => 'before', :append_text => 'after') end def test_error_messages_for_many_objects - assert_dom_equal %(

2 errors prohibited this post from being saved

There were problems with the following fields:

), error_messages_for("post", "user") + assert_dom_equal %(

2 errors prohibited this post from being saved

There were problems with the following fields:

), error_messages_for("post", "user") # reverse the order, error order changes and so does the title - assert_dom_equal %(

2 errors prohibited this user from being saved

There were problems with the following fields:

), error_messages_for("user", "post") + assert_dom_equal %(

2 errors prohibited this user from being saved

There were problems with the following fields:

), error_messages_for("user", "post") # add the default to put post back in the title - assert_dom_equal %(

2 errors prohibited this post from being saved

There were problems with the following fields:

), error_messages_for("user", "post", :object_name => "post") + assert_dom_equal %(

2 errors prohibited this post from being saved

There were problems with the following fields:

), error_messages_for("user", "post", :object_name => "post") # symbols work as well - assert_dom_equal %(

2 errors prohibited this post from being saved

There were problems with the following fields:

), error_messages_for(:user, :post, :object_name => :post) + assert_dom_equal %(

2 errors prohibited this post from being saved

There were problems with the following fields:

), error_messages_for(:user, :post, :object_name => :post) # any default works too - assert_dom_equal %(

2 errors prohibited this monkey from being saved

There were problems with the following fields:

), error_messages_for(:user, :post, :object_name => "monkey") + assert_dom_equal %(

2 errors prohibited this monkey from being saved

There were problems with the following fields:

), error_messages_for(:user, :post, :object_name => "monkey") # should space object name - assert_dom_equal %(

2 errors prohibited this chunky bacon from being saved

There were problems with the following fields:

), error_messages_for(:user, :post, :object_name => "chunky_bacon") + assert_dom_equal %(

2 errors prohibited this chunky bacon from being saved

There were problems with the following fields:

), error_messages_for(:user, :post, :object_name => "chunky_bacon") # hide header and explanation messages with nil or empty string - assert_dom_equal %(
), error_messages_for(:user, :post, :header_message => nil, :message => "") + assert_dom_equal %(
), error_messages_for(:user, :post, :header_message => nil, :message => "") # override header and explanation messages header_message = "Yikes! Some errors" message = "Please fix the following fields and resubmit:" - assert_dom_equal %(

#{header_message}

#{message}

), error_messages_for(:user, :post, :header_message => header_message, :message => message) + assert_dom_equal %(

#{header_message}

#{message}

), error_messages_for(:user, :post, :header_message => header_message, :message => message) end def test_error_messages_for_non_instance_variable @@ -284,10 +284,10 @@ def test_error_messages_for_non_instance_variable @post = nil #explicitly set object - assert_dom_equal %(

1 error prohibited this post from being saved

There were problems with the following fields:

), error_messages_for("post", :object => actual_post) + assert_dom_equal %(

1 error prohibited this post from being saved

There were problems with the following fields:

), error_messages_for("post", :object => actual_post) #multiple objects - assert_dom_equal %(

2 errors prohibited this user from being saved

There were problems with the following fields:

), error_messages_for("user", "post", :object => [actual_user, actual_post]) + assert_dom_equal %(

2 errors prohibited this user from being saved

There were problems with the following fields:

), error_messages_for("user", "post", :object => [actual_user, actual_post]) #nil object assert_equal '', error_messages_for('user', :object => nil) diff --git a/vendor/rails/actionpack/test/template/erb_util_test.rb b/vendor/rails/actionpack/test/template/erb_util_test.rb index 06f095470..3df6c1aeb 100644 --- a/vendor/rails/actionpack/test/template/erb_util_test.rb +++ b/vendor/rails/actionpack/test/template/erb_util_test.rb @@ -8,7 +8,7 @@ class ErbUtilTest < Test::Unit::TestCase assert_equal expected, html_escape(given) end - unless given == '"' + unless given == '"' || given == "'" define_method "test_json_escape_#{expected.gsub /\W/, ''}" do assert_equal ERB::Util::JSON_ESCAPE[given], json_escape(given) end @@ -26,10 +26,10 @@ def test_html_escape_passes_html_escpe_unmodified assert_equal "

", escaped assert escaped.html_safe? end - + def test_rest_in_ascii (0..127).to_a.map(&:chr).each do |chr| - next if %w(& " < >).include?(chr) + next if %w(& " < > ').include?(chr) assert_equal chr, html_escape(chr) end end diff --git a/vendor/rails/actionpack/test/template/form_helper_test.rb b/vendor/rails/actionpack/test/template/form_helper_test.rb index 5b62674fe..27416a12f 100644 --- a/vendor/rails/actionpack/test/template/form_helper_test.rb +++ b/vendor/rails/actionpack/test/template/form_helper_test.rb @@ -743,7 +743,7 @@ def test_nested_fields_for_with_an_existing_record_on_a_nested_attributes_one_to assert_dom_equal expected, output_buffer end - + def test_nested_fields_for_with_existing_records_on_a_nested_attributes_one_to_one_association_with_explicit_hidden_field_placement @post.author = Author.new(321) @@ -754,7 +754,7 @@ def test_nested_fields_for_with_existing_records_on_a_nested_attributes_one_to_o concat af.text_field(:name) end end - + expected = '

' + '' + '' + @@ -799,7 +799,7 @@ def test_nested_fields_for_with_existing_records_on_a_nested_attributes_collecti end end end - + expected = '' + '' + '' + @@ -1195,8 +1195,8 @@ def test_default_form_builder_with_active_record_helpers end expected = %() + - %(
can't be empty
) + - %(

1 error prohibited this post from being saved

There were problems with the following fields:

) + + %(
can't be empty
) + + %(

1 error prohibited this post from being saved

There were problems with the following fields:

) + %(
) assert_dom_equal expected, output_buffer @@ -1213,14 +1213,14 @@ def test_default_form_builder_no_instance_variable end expected = %(
) + - %(
can't be empty
) + - %(

1 error prohibited this post from being saved

There were problems with the following fields:

) + + %(
can't be empty
) + + %(

1 error prohibited this post from being saved

There were problems with the following fields:

) + %(
) assert_dom_equal expected, output_buffer end - + def test_default_form_builder_without_object form_for(:post) do |f| @@ -1229,8 +1229,8 @@ def test_default_form_builder_without_object end expected = %(
) + - %(
can't be empty
) + - %(

1 error prohibited this post from being saved

There were problems with the following fields:

) + + %(
can't be empty
) + + %(

1 error prohibited this post from being saved

There were problems with the following fields:

) + %(
) assert_dom_equal expected, output_buffer diff --git a/vendor/rails/actionpack/test/template/text_helper_test.rb b/vendor/rails/actionpack/test/template/text_helper_test.rb index 03c2611a4..9b110005e 100644 --- a/vendor/rails/actionpack/test/template/text_helper_test.rb +++ b/vendor/rails/actionpack/test/template/text_helper_test.rb @@ -259,7 +259,6 @@ def test_auto_link_parsing http://en.wikipedia.org/wiki/Wikipedia:Today%27s_featured_picture_%28animation%29/January_20%2C_2007 http://www.mail-archive.com/rails@lists.rubyonrails.org/ http://www.amazon.com/Testing-Equal-Sign-In-Path/ref=pd_bbs_sr_1?ie=UTF8&s=books&qid=1198861734&sr=8-1 - http://en.wikipedia.org/wiki/Texas_hold'em https://www.google.com/doku.php?id=gps:resource:scs:start http://connect.oraclecorp.com/search?search[q]=green+france&search[type]=Group http://of.openfoundry.org/projects/492/download#4th.Release.3 @@ -269,6 +268,11 @@ def test_auto_link_parsing urls.each do |url| assert_equal generate_result(url), auto_link(url) end + + assert_equal( + %{http://en.wikipedia.org/wiki/Texas_hold'em}, + auto_link("http://en.wikipedia.org/wiki/Texas_hold'em") + ) end def generate_result(link_text, href = nil) diff --git a/vendor/rails/activerecord/Rakefile b/vendor/rails/activerecord/Rakefile index 47570bda3..6ebc65578 100644 --- a/vendor/rails/activerecord/Rakefile +++ b/vendor/rails/activerecord/Rakefile @@ -192,7 +192,7 @@ spec = Gem::Specification.new do |s| s.files = s.files + Dir.glob( "#{dir}/**/*" ).delete_if { |item| item.include?( "\.svn" ) } end - s.add_dependency('activesupport', '= 2.3.16' + PKG_BUILD) + s.add_dependency('activesupport', '= 2.3.17' + PKG_BUILD) s.files.delete FIXTURES_ROOT + "/fixture_database.sqlite" s.files.delete FIXTURES_ROOT + "/fixture_database_2.sqlite" diff --git a/vendor/rails/activerecord/activerecord.gemspec b/vendor/rails/activerecord/activerecord.gemspec index 94ea63db3..8754472f2 100644 --- a/vendor/rails/activerecord/activerecord.gemspec +++ b/vendor/rails/activerecord/activerecord.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |s| s.name = 'activerecord' - s.version = '2.3.15' + s.version = '2.3.17' s.summary = 'Implements the ActiveRecord pattern for ORM.' s.description = 'Implements the ActiveRecord pattern (Fowler, PoEAA) for ORM. It ties database tables and classes together for business objects, like Customer or Subscription, that can find, save, and destroy themselves without resorting to manual SQL.' @@ -13,5 +13,5 @@ Gem::Specification.new do |s| s.rdoc_options = ['--main', 'README'] s.extra_rdoc_files = ['README'] - s.add_dependency 'activesupport', '= 2.3.15' + s.add_dependency 'activesupport', '= 2.3.17' end diff --git a/vendor/rails/activerecord/lib/active_record/attribute_methods.rb b/vendor/rails/activerecord/lib/active_record/attribute_methods.rb index 22630b3e8..54fe1f25c 100644 --- a/vendor/rails/activerecord/lib/active_record/attribute_methods.rb +++ b/vendor/rails/activerecord/lib/active_record/attribute_methods.rb @@ -80,7 +80,9 @@ def define_attribute_methods end unless instance_method_already_implemented?("#{name}=") - if create_time_zone_conversion_attribute?(name, column) + if self.serialized_attributes[name] + define_write_method_for_serialized_attribute(name) + elsif create_time_zone_conversion_attribute?(name, column) define_write_method_for_time_zone_conversion(name) else define_write_method(name.to_sym) @@ -130,7 +132,7 @@ def cache_attribute?(attr_name) # Suffixes a, ?, c become regexp /(a|\?|c)$/ def rebuild_attribute_method_regexp suffixes = attribute_method_suffixes.map { |s| Regexp.escape(s) } - @@attribute_method_regexp = /(#{suffixes.join('|')})$/.freeze + @@attribute_method_regexp = /(#{suffixes.join('|')})\z/.freeze end # Default to =, ?, _before_type_cast @@ -184,6 +186,19 @@ def define_question_method(attr_name) def define_write_method(attr_name) evaluate_attribute_method attr_name, "def #{attr_name}=(new_value);write_attribute('#{attr_name}', new_value);end", "#{attr_name}=" end + + # Defined for all serialized attributes. Disallows assigning already serialized YAML. + def define_write_method_for_serialized_attribute(attr_name) + method_body = <<-EOV + def #{attr_name}=(value) + if value.is_a?(String) and value =~ /^---/ + raise ActiveRecordError, "You tried to assign already serialized content to #{attr_name}. This is disabled due to security issues." + end + write_attribute(:#{attr_name}, value) + end + EOV + evaluate_attribute_method attr_name, method_body, "#{attr_name}=" + end # Defined for all +datetime+ and +timestamp+ attributes when +time_zone_aware_attributes+ are enabled. # This enhanced write method will automatically convert the time passed to it to the zone stored in Time.zone. diff --git a/vendor/rails/activerecord/lib/active_record/base.rb b/vendor/rails/activerecord/lib/active_record/base.rb index cfc6e86b9..c11b702af 100755 --- a/vendor/rails/activerecord/lib/active_record/base.rb +++ b/vendor/rails/activerecord/lib/active_record/base.rb @@ -2998,11 +2998,11 @@ def convert_number_column_value(value) def remove_attributes_protected_from_mass_assignment(attributes) safe_attributes = if self.class.accessible_attributes.nil? && self.class.protected_attributes.nil? - attributes.reject { |key, value| attributes_protected_by_default.include?(key.gsub(/\(.+/, "")) } + attributes.reject { |key, value| attributes_protected_by_default.include?(key.gsub(/\(.+/m, "")) } elsif self.class.protected_attributes.nil? - attributes.reject { |key, value| !self.class.accessible_attributes.include?(key.gsub(/\(.+/, "")) || attributes_protected_by_default.include?(key.gsub(/\(.+/, "")) } + attributes.reject { |key, value| !self.class.accessible_attributes.include?(key.gsub(/\(.+/m, "")) || attributes_protected_by_default.include?(key.gsub(/\(.+/m, "")) } elsif self.class.accessible_attributes.nil? - attributes.reject { |key, value| self.class.protected_attributes.include?(key.gsub(/\(.+/,"")) || attributes_protected_by_default.include?(key.gsub(/\(.+/, "")) } + attributes.reject { |key, value| self.class.protected_attributes.include?(key.gsub(/\(.+/m,"")) || attributes_protected_by_default.include?(key.gsub(/\(.+/m, "")) } else raise "Declare either attr_protected or attr_accessible for #{self.class}, but not both." end diff --git a/vendor/rails/activerecord/lib/active_record/version.rb b/vendor/rails/activerecord/lib/active_record/version.rb index 8aaf96e8b..ee51ca871 100644 --- a/vendor/rails/activerecord/lib/active_record/version.rb +++ b/vendor/rails/activerecord/lib/active_record/version.rb @@ -2,7 +2,7 @@ module ActiveRecord module VERSION #:nodoc: MAJOR = 2 MINOR = 3 - TINY = 16 + TINY = 17 STRING = [MAJOR, MINOR, TINY].join('.') end diff --git a/vendor/rails/activerecord/test/cases/base_test.rb b/vendor/rails/activerecord/test/cases/base_test.rb index 242be2afc..f23894e8b 100755 --- a/vendor/rails/activerecord/test/cases/base_test.rb +++ b/vendor/rails/activerecord/test/cases/base_test.rb @@ -1499,6 +1499,12 @@ def test_nil_serialized_attribute_with_class_constraint assert_nil topic.content end + def test_should_raise_exception_on_assigning_already_serialized_content + topic = Topic.new + serialized_content = %w[foo bar].to_yaml + assert_raise(ActiveRecord::ActiveRecordError) { topic.content = serialized_content } + end + def test_should_raise_exception_on_serialized_attribute_with_type_mismatch myobj = MyObject.new('value1', 'value2') topic = Topic.new(:content => myobj) diff --git a/vendor/rails/activeresource/Rakefile b/vendor/rails/activeresource/Rakefile index 89f765d7c..0400dbe18 100644 --- a/vendor/rails/activeresource/Rakefile +++ b/vendor/rails/activeresource/Rakefile @@ -66,7 +66,7 @@ spec = Gem::Specification.new do |s| s.files = s.files + Dir.glob( "#{dir}/**/*" ).delete_if { |item| item.include?( "\.svn" ) } end - s.add_dependency('activesupport', '= 2.3.16' + PKG_BUILD) + s.add_dependency('activesupport', '= 2.3.17' + PKG_BUILD) s.require_path = 'lib' diff --git a/vendor/rails/activeresource/activeresource.gemspec b/vendor/rails/activeresource/activeresource.gemspec index 16027300f..7dcc6a3c9 100644 --- a/vendor/rails/activeresource/activeresource.gemspec +++ b/vendor/rails/activeresource/activeresource.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |s| s.name = 'activeresource' - s.version = '2.3.15' + s.version = '2.3.17' s.summary = 'Think Active Record for web resources.' s.description = 'Wraps web resources in model classes that can be manipulated through XML over REST.' @@ -13,5 +13,5 @@ Gem::Specification.new do |s| s.rdoc_options = ['--main', 'README'] s.extra_rdoc_files = ['README'] - s.add_dependency 'activesupport', '= 2.3.15' + s.add_dependency 'activesupport', '= 2.3.17' end diff --git a/vendor/rails/activeresource/lib/active_resource/version.rb b/vendor/rails/activeresource/lib/active_resource/version.rb index 9625b974b..9a26a789b 100644 --- a/vendor/rails/activeresource/lib/active_resource/version.rb +++ b/vendor/rails/activeresource/lib/active_resource/version.rb @@ -2,7 +2,7 @@ module ActiveResource module VERSION #:nodoc: MAJOR = 2 MINOR = 3 - TINY = 16 + TINY = 17 STRING = [MAJOR, MINOR, TINY].join('.') end diff --git a/vendor/rails/activesupport/activesupport.gemspec b/vendor/rails/activesupport/activesupport.gemspec index b7bbcdaa5..7e49d68e7 100644 --- a/vendor/rails/activesupport/activesupport.gemspec +++ b/vendor/rails/activesupport/activesupport.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |s| s.name = 'activesupport' - s.version = '2.3.15' + s.version = '2.3.17' s.summary = 'Support and utility classes used by the Rails framework.' s.description = 'Utility library which carries commonly used classes and goodies from the Rails framework' diff --git a/vendor/rails/activesupport/lib/active_support/core_ext/string/output_safety.rb b/vendor/rails/activesupport/lib/active_support/core_ext/string/output_safety.rb index 0e784637d..f3a8e5cb3 100644 --- a/vendor/rails/activesupport/lib/active_support/core_ext/string/output_safety.rb +++ b/vendor/rails/activesupport/lib/active_support/core_ext/string/output_safety.rb @@ -2,7 +2,7 @@ class ERB module Util - HTML_ESCAPE = { '&' => '&', '>' => '>', '<' => '<', '"' => '"', "'" => ''' } + HTML_ESCAPE = { '&' => '&', '>' => '>', '<' => '<', '"' => '"', "'" => ''' } JSON_ESCAPE = { '&' => '\u0026', '>' => '\u003E', '<' => '\u003C' } # A utility method for escaping HTML tag characters. diff --git a/vendor/rails/activesupport/lib/active_support/version.rb b/vendor/rails/activesupport/lib/active_support/version.rb index 7f8e7d2ba..da33a8a7c 100644 --- a/vendor/rails/activesupport/lib/active_support/version.rb +++ b/vendor/rails/activesupport/lib/active_support/version.rb @@ -2,7 +2,7 @@ module ActiveSupport module VERSION #:nodoc: MAJOR = 2 MINOR = 3 - TINY = 16 + TINY = 17 STRING = [MAJOR, MINOR, TINY].join('.') end diff --git a/vendor/rails/railties/Rakefile b/vendor/rails/railties/Rakefile index 25fe0319f..9f6545b60 100644 --- a/vendor/rails/railties/Rakefile +++ b/vendor/rails/railties/Rakefile @@ -313,11 +313,11 @@ spec = Gem::Specification.new do |s| EOF s.add_dependency('rake', '>= 0.8.3') - s.add_dependency('activesupport', '= 2.3.16' + PKG_BUILD) - s.add_dependency('activerecord', '= 2.3.16' + PKG_BUILD) - s.add_dependency('actionpack', '= 2.3.16' + PKG_BUILD) - s.add_dependency('actionmailer', '= 2.3.16' + PKG_BUILD) - s.add_dependency('activeresource', '= 2.3.16' + PKG_BUILD) + s.add_dependency('activesupport', '= 2.3.17' + PKG_BUILD) + s.add_dependency('activerecord', '= 2.3.17' + PKG_BUILD) + s.add_dependency('actionpack', '= 2.3.17' + PKG_BUILD) + s.add_dependency('actionmailer', '= 2.3.17' + PKG_BUILD) + s.add_dependency('activeresource', '= 2.3.17' + PKG_BUILD) s.rdoc_options << '--exclude' << '.' diff --git a/vendor/rails/railties/guides/source/active_record_querying.textile b/vendor/rails/railties/guides/source/active_record_querying.textile index 442521cbf..43be8075f 100644 --- a/vendor/rails/railties/guides/source/active_record_querying.textile +++ b/vendor/rails/railties/guides/source/active_record_querying.textile @@ -867,10 +867,11 @@ Client.exists?(1,2,3) Client.exists?([1,2,3]) -Further more, +exists+ takes a +conditions+ option much like find: +Further more, +exists+ takes a hash or array like what you would pass into a +conditions+ option: -Client.exists?(:conditions => "first_name = 'Ryan'") +Client.exists?(:first_name => 'Ryan') +Client.exists?(['first_name = ?', 'Ryan']) It's even possible to use +exists?+ without any arguments: diff --git a/vendor/rails/railties/lib/rails/version.rb b/vendor/rails/railties/lib/rails/version.rb index 9a3660011..157fec690 100644 --- a/vendor/rails/railties/lib/rails/version.rb +++ b/vendor/rails/railties/lib/rails/version.rb @@ -2,7 +2,7 @@ module Rails module VERSION #:nodoc: MAJOR = 2 MINOR = 3 - TINY = 16 + TINY = 17 STRING = [MAJOR, MINOR, TINY].join('.') end diff --git a/vendor/rails/railties/railties.gemspec b/vendor/rails/railties/railties.gemspec index b70741de4..e89c36f25 100644 --- a/vendor/rails/railties/railties.gemspec +++ b/vendor/rails/railties/railties.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |s| s.name = 'rails' - s.version = '2.3.15' + s.version = '2.3.17' s.summary = 'Web-application framework with template engine, control-flow layer, and ORM.' s.description = "Rails is a framework for building web-application using CGI, FCGI, mod_ruby, or WEBrick\non top of either MySQL, PostgreSQL, SQLite, DB2, SQL Server, or Oracle with eRuby- or Builder-based templates." @@ -14,9 +14,9 @@ Gem::Specification.new do |s| s.rdoc_options = ['--exclude', '.'] s.add_dependency 'rake', '>= 0.8.3' - s.add_dependency 'activesupport', '= 2.3.15' - s.add_dependency 'activerecord', '= 2.3.15' - s.add_dependency 'actionpack', '= 2.3.15' - s.add_dependency 'actionmailer', '= 2.3.15' - s.add_dependency 'activeresource', '= 2.3.15' + s.add_dependency 'activesupport', '= 2.3.17' + s.add_dependency 'activerecord', '= 2.3.17' + s.add_dependency 'actionpack', '= 2.3.17' + s.add_dependency 'actionmailer', '= 2.3.17' + s.add_dependency 'activeresource', '= 2.3.17' end