mirror of
https://github.com/github/rails.git
synced 2026-02-08 21:25:19 -05:00
Fixed documentation and prepared for release of 0.12
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1216 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
@@ -1,4 +1,34 @@
|
||||
*SVN*
|
||||
*1.8.0* (19th April, 2005)
|
||||
|
||||
* Added assert_tag and assert_no_tag as a much improved alternative to the deprecated assert_template_xpath_match #1126 [Jamis Buck]
|
||||
|
||||
* Deprecated the majority of all the testing assertions and replaced them with a much smaller core and access to all the collections the old assertions relied on. That way the regular test/unit assertions can be used against these. Added documentation about how to use it all.
|
||||
|
||||
* Added a wide range of new Javascript effects:
|
||||
* Effect.Puff zooms the element out and makes it smoothly transparent at the same time, giving a "puff" illusion #996 [thomas@fesch.at]
|
||||
After the animation is completed, the display property will be set to none.
|
||||
This effect will work on relative and absolute positioned elements.
|
||||
|
||||
* Effect.Appear as the opposite of Effect.Fade #990 [thomas@fesch.at]
|
||||
You should return elements with style="display:none;" or a like class for this to work best and have no chance of flicker.
|
||||
|
||||
* Effect.Squish for scaling down an element and making it disappear at the end #972 [thomas@fesch.at]
|
||||
|
||||
* Effect.Scale for smoothly scaling images or text up and down #972 [thomas@fesch.at]
|
||||
|
||||
* Effect.Fade which smoothly turns opacity from 100 to 0 and then hides the element #960 [thomas@fesch.at]
|
||||
|
||||
* Added Request#xml_http_request? (and an alias xhr?) to that'll return true when the request came from one of the Javascript helper methods (Ajax). This can be used to give one behavior for modern browsers supporting Ajax, another to old browsers #1127 [Sam Stephenson]
|
||||
|
||||
* Changed render_partial to take local assigns as the second parameter instead of an explicit object and then the assigns. So the API changes from:
|
||||
|
||||
<%= render_partial "account", person, "rules" => regulations.rules %>
|
||||
|
||||
...to:
|
||||
|
||||
<%= render_partial "account", :account => person, :rules => regulations.rules %>
|
||||
|
||||
The old API will still work, though, and render_partial "account" will still assume :account => @account.
|
||||
|
||||
* Added support for web servers that use PATH_INFO instead of REQUEST_URI like IIS #1014 [BradG/Nicholas Seckar]
|
||||
|
||||
@@ -6,12 +36,6 @@
|
||||
|
||||
* Fixed that you can now pass an alternative :href option to link_to_function/remote in order to point to somewhere other than # if the javascript fails or is turned off. You can do the same with form_remote_tag by passing in :action. #1113 [Sam Stephenson]
|
||||
|
||||
* Added Request#xml_http_request? (and an alias xhr?) to that'll return true when the request came from one of the Javascript helper methods (Ajax). This can be used to give one behavior for modern browsers supporting Ajax, another to old browsers #1127 [Sam Stephenson]
|
||||
|
||||
* Added assert_tag and assert_no_tag as a much improved alternative to the deprecated assert_template_xpath_match #1126 [Jamis Buck]
|
||||
|
||||
* Deprecated the majority of all the testing assertions and replaced them with a much smaller core and access to all the collections the old assertions relied on. That way the regular test/unit assertions can be used against these. Added documentation about how to use it all.
|
||||
|
||||
* Fixed DateHelper to return values on the option tags such that they'll work properly in IE with form_remote_tag #1024 [rscottmace@gmail.com]
|
||||
|
||||
* Fixed FormTagHelper#check_box to respect checked #1049 [DelynnB]
|
||||
@@ -28,16 +52,6 @@
|
||||
|
||||
* Fixed error handling of broken layouts #1115 [Michael Schubert]
|
||||
|
||||
* Changed render_partial to take local assigns as the second parameter instead of an explicit object and then the assigns. So the API changes from:
|
||||
|
||||
<%= render_partial "account", person, "rules" => regulations.rules %>
|
||||
|
||||
...to:
|
||||
|
||||
<%= render_partial "account", :account => person, :rules => regulations.rules %>
|
||||
|
||||
The old API will still work, though, and render_partial "account" will still assume :account => @account.
|
||||
|
||||
* Added submit_to_remote that allows you to trigger an Ajax form submition at the click of the submission button, which allows for multiple targets in a single form through the use of multiple submit buttons #930 [yrashk@gmail.com]
|
||||
|
||||
* Fixed pagination to work with joins #1034 [scott@sigkill.org]
|
||||
@@ -90,20 +104,6 @@
|
||||
|
||||
* Fixed that on very rare occasions, webrick would raise a NoMethodError: private method 'split' called for nil #1001 [Flurin Egger]
|
||||
|
||||
* Added a wide range of new Javascript effects:
|
||||
* Effect.Puff zooms the element out and makes it smoothly transparent at the same time, giving a "puff" illusion #996 [thomas@fesch.at]
|
||||
After the animation is completed, the display property will be set to none.
|
||||
This effect will work on relative and absolute positioned elements.
|
||||
|
||||
* Effect.Appear as the opposite of Effect.Fade #990 [thomas@fesch.at]
|
||||
You should return elements with style="display:none;" or a like class for this to work best and have no chance of flicker.
|
||||
|
||||
* Effect.Squish for scaling down an element and making it disappear at the end #972 [thomas@fesch.at]
|
||||
|
||||
* Effect.Scale for smoothly scaling images or text up and down #972 [thomas@fesch.at]
|
||||
|
||||
* Effect.Fade which smoothly turns opacity from 100 to 0 and then hides the element #960 [thomas@fesch.at]
|
||||
|
||||
* Fixed problem with page caching #958 [Rick Olson]
|
||||
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ require 'rake/contrib/rubyforgepublisher'
|
||||
|
||||
PKG_BUILD = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : ''
|
||||
PKG_NAME = 'actionpack'
|
||||
PKG_VERSION = '1.7.0' + PKG_BUILD
|
||||
PKG_VERSION = '1.8.0' + PKG_BUILD
|
||||
PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
|
||||
|
||||
RELEASE_NAME = "REL #{PKG_VERSION}"
|
||||
@@ -61,7 +61,7 @@ spec = Gem::Specification.new do |s|
|
||||
s.has_rdoc = true
|
||||
s.requirements << 'none'
|
||||
|
||||
s.add_dependency('activesupport', '= 1.0.3' + PKG_BUILD)
|
||||
s.add_dependency('activesupport', '= 1.0.4' + PKG_BUILD)
|
||||
|
||||
s.require_path = 'lib'
|
||||
s.autorequire = 'action_controller'
|
||||
|
||||
@@ -134,15 +134,15 @@ module Test #:nodoc:
|
||||
# must meet the criteria described by the hash.
|
||||
# * <tt>:children</tt>: a hash, for counting children of a node. Accepts
|
||||
# the keys:
|
||||
# ** <tt>:count</tt>: either a number or a range which must equal (or
|
||||
# include) the number of children that match.
|
||||
# ** <tt>:less_than</tt>: the number of matching children must be less
|
||||
# than this number.
|
||||
# ** <tt>:greater_than</tt>: the number of matching children must be
|
||||
# greater than this number.
|
||||
# ** <tt>:only</tt>: another hash consisting of the keys to use
|
||||
# to match on the children, and only matching children will be
|
||||
# counted.
|
||||
# * <tt>:count</tt>: either a number or a range which must equal (or
|
||||
# include) the number of children that match.
|
||||
# * <tt>:less_than</tt>: the number of matching children must be less
|
||||
# than this number.
|
||||
# * <tt>:greater_than</tt>: the number of matching children must be
|
||||
# greater than this number.
|
||||
# * <tt>:only</tt>: another hash consisting of the keys to use
|
||||
# to match on the children, and only matching children will be
|
||||
# counted.
|
||||
# * <tt>:content</tt>: (text nodes only). The content of the node must
|
||||
# match the given value.
|
||||
#
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
require 'html/tokenizer'
|
||||
require 'html/node'
|
||||
|
||||
module HTML
|
||||
module HTML#:nodoc:
|
||||
|
||||
# A top-level HTMl document. You give it a body of text, and it will parse that
|
||||
# text into a tree of nodes.
|
||||
class Document
|
||||
class Document #:nodoc:
|
||||
|
||||
# The root of the parsed document.
|
||||
attr_reader :root
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
require 'strscan'
|
||||
|
||||
module HTML
|
||||
module HTML#:nodoc:
|
||||
|
||||
class Conditions < Hash
|
||||
class Conditions < Hash#:nodoc:
|
||||
def initialize(hash)
|
||||
super()
|
||||
hash = { :content => hash } unless Hash === hash
|
||||
@@ -53,7 +53,7 @@ module HTML
|
||||
end
|
||||
|
||||
# The base class of all nodes, textual and otherwise, in an HTML document.
|
||||
class Node
|
||||
class Node#:nodoc:
|
||||
# The array of children of this node. Not all nodes have children.
|
||||
attr_reader :children
|
||||
|
||||
@@ -167,7 +167,7 @@ module HTML
|
||||
end
|
||||
|
||||
# A node that represents text, rather than markup.
|
||||
class Text < Node
|
||||
class Text < Node#:nodoc:
|
||||
|
||||
attr_reader :content
|
||||
|
||||
@@ -223,7 +223,7 @@ module HTML
|
||||
# A Tag is any node that represents markup. It may be an opening tag, a
|
||||
# closing tag, or a self-closing tag. It has a name, and may have a hash of
|
||||
# attributes.
|
||||
class Tag < Node
|
||||
class Tag < Node#:nodoc:
|
||||
|
||||
# Either +nil+, <tt>:close</tt>, or <tt>:self</tt>
|
||||
attr_reader :closing
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
require 'strscan'
|
||||
|
||||
module HTML
|
||||
module HTML#:nodoc:
|
||||
|
||||
# A simple HTML tokenizer. It simply breaks a stream of text into tokens, where each
|
||||
# token is a string. Each string represents either "text", or an HTML element.
|
||||
@@ -13,7 +13,7 @@ module HTML
|
||||
# while token = tokenizer.next
|
||||
# p token
|
||||
# end
|
||||
class Tokenizer
|
||||
class Tokenizer#:nodoc:
|
||||
|
||||
# The current (byte) position in the text
|
||||
attr_reader :position
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
module HTML
|
||||
module Version
|
||||
module HTML#:nodoc:
|
||||
module Version#:nodoc:
|
||||
|
||||
MAJOR = 0
|
||||
MINOR = 5
|
||||
|
||||
Reference in New Issue
Block a user