actionpack 1.13.0 → 1.13.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of actionpack might be problematic. Click here for more details.

data/CHANGELOG CHANGED
@@ -1,3 +1,8 @@
1
+ *1.13.1* (January 18th, 2007)
2
+
3
+ * Fixed content-type bug in Prototype [sam]
4
+
5
+
1
6
  *1.13.0* (January 16th, 2007)
2
7
 
3
8
  * Modernize cookie testing code, and increase coverage (Heckle++) #7101 [Kevin Clark]
@@ -2,7 +2,7 @@ require 'rexml/document'
2
2
 
3
3
  module ActionController #:nodoc:
4
4
  module Assertions #:nodoc:
5
- module DeprecatedAssertions
5
+ module DeprecatedAssertions #:nodoc:
6
6
  def assert_success(message=nil) #:nodoc:
7
7
  assert_response(:success, message)
8
8
  end
@@ -112,7 +112,7 @@ class CGIMethods #:nodoc:
112
112
  end
113
113
  end
114
114
 
115
- class FormEncodedPairParser < StringScanner
115
+ class FormEncodedPairParser < StringScanner #:nodoc:
116
116
  attr_reader :top, :parent, :result
117
117
 
118
118
  def initialize(pairs = [])
@@ -24,7 +24,7 @@ class NilClass
24
24
  end
25
25
  end
26
26
 
27
- class Regexp
27
+ class Regexp #:nodoc:
28
28
  def number_of_captures
29
29
  Regexp.new("|#{source}").match('').captures.length
30
30
  end
@@ -305,7 +305,7 @@ module ActionController
305
305
  end
306
306
  end
307
307
 
308
- class Route
308
+ class Route #:nodoc:
309
309
  attr_accessor :segments, :requirements, :conditions
310
310
 
311
311
  def initialize
@@ -536,7 +536,7 @@ module ActionController
536
536
 
537
537
  end
538
538
 
539
- class Segment
539
+ class Segment #:nodoc:
540
540
  attr_accessor :is_optional
541
541
  alias_method :optional?, :is_optional
542
542
 
@@ -591,7 +591,7 @@ module ActionController
591
591
  end
592
592
  end
593
593
 
594
- class StaticSegment < Segment
594
+ class StaticSegment < Segment #:nodoc:
595
595
  attr_accessor :value, :raw
596
596
  alias_method :raw?, :raw
597
597
 
@@ -625,7 +625,7 @@ module ActionController
625
625
  end
626
626
  end
627
627
 
628
- class DividerSegment < StaticSegment
628
+ class DividerSegment < StaticSegment #:nodoc:
629
629
  def initialize(value = nil)
630
630
  super(value)
631
631
  self.raw = true
@@ -637,7 +637,7 @@ module ActionController
637
637
  end
638
638
  end
639
639
 
640
- class DynamicSegment < Segment
640
+ class DynamicSegment < Segment #:nodoc:
641
641
  attr_accessor :key, :default, :regexp
642
642
 
643
643
  def initialize(key = nil, options = {})
@@ -725,7 +725,7 @@ module ActionController
725
725
 
726
726
  end
727
727
 
728
- class ControllerSegment < DynamicSegment
728
+ class ControllerSegment < DynamicSegment #:nodoc:
729
729
  def regexp_chunk
730
730
  possible_names = Routing.possible_controllers.collect { |name| Regexp.escape name }
731
731
  "(?i-:(#{(regexp || Regexp.union(*possible_names)).source}))"
@@ -752,7 +752,7 @@ module ActionController
752
752
  end
753
753
  end
754
754
 
755
- class PathSegment < DynamicSegment
755
+ class PathSegment < DynamicSegment #:nodoc:
756
756
  EscapedSlash = CGI.escape("/")
757
757
  def interpolation_chunk
758
758
  "\#{CGI.escape(#{local_name}.to_s).gsub(#{EscapedSlash.inspect}, '/')}"
@@ -782,7 +782,7 @@ module ActionController
782
782
  end
783
783
  end
784
784
 
785
- class RouteBuilder
785
+ class RouteBuilder #:nodoc:
786
786
  attr_accessor :separators, :optional_separators
787
787
 
788
788
  def initialize
@@ -958,13 +958,13 @@ module ActionController
958
958
  end
959
959
  end
960
960
 
961
- class RouteSet
961
+ class RouteSet #:nodoc:
962
962
  # Mapper instances are used to build routes. The object passed to the draw
963
963
  # block in config/routes.rb is a Mapper instance.
964
964
  #
965
965
  # Mapper instances have relatively few instance methods, in order to avoid
966
966
  # clashes with named routes.
967
- class Mapper
967
+ class Mapper #:nodoc:
968
968
  def initialize(set)
969
969
  @set = set
970
970
  end
@@ -996,7 +996,7 @@ module ActionController
996
996
  # A NamedRouteCollection instance is a collection of named routes, and also
997
997
  # maintains an anonymous module that can be used to install helpers for the
998
998
  # named routes.
999
- class NamedRouteCollection
999
+ class NamedRouteCollection #:nodoc:
1000
1000
  include Enumerable
1001
1001
 
1002
1002
  attr_reader :routes, :helpers
@@ -1,6 +1,5 @@
1
1
  module ActionController
2
- module StatusCodes
3
-
2
+ module StatusCodes #:nodoc:
4
3
  # Defines the standard HTTP status codes, by integer, with their
5
4
  # corresponding default message texts.
6
5
  # Source: http://www.iana.org/assignments/http-status-codes
@@ -201,7 +201,8 @@ module HTML
201
201
 
202
202
 
203
203
  # An invalid selector.
204
- class InvalidSelectorError < StandardError ; end
204
+ class InvalidSelectorError < StandardError #:nodoc:
205
+ end
205
206
 
206
207
 
207
208
  class << self
@@ -2,7 +2,7 @@ module ActionPack #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 1
4
4
  MINOR = 13
5
- TINY = 0
5
+ TINY = 1
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -833,25 +833,26 @@ Ajax.Request.prototype = Object.extend(new Ajax.Base(), {
833
833
 
834
834
  request: function(url) {
835
835
  this.url = url;
836
- var params = this.options.parameters, method = this.options.method;
836
+ this.method = this.options.method;
837
+ var params = this.options.parameters;
837
838
 
838
- if (!['get', 'post'].include(method)) {
839
+ if (!['get', 'post'].include(this.method)) {
839
840
  // simulate other verbs over post
840
- params['_method'] = method;
841
- method = 'post';
841
+ params['_method'] = this.method;
842
+ this.method = 'post';
842
843
  }
843
844
 
844
845
  params = Hash.toQueryString(params);
845
846
  if (params && /Konqueror|Safari|KHTML/.test(navigator.userAgent)) params += '&_='
846
847
 
847
848
  // when GET, append parameters to URL
848
- if (method == 'get' && params)
849
+ if (this.method == 'get' && params)
849
850
  this.url += (this.url.indexOf('?') > -1 ? '&' : '?') + params;
850
851
 
851
852
  try {
852
853
  Ajax.Responders.dispatch('onCreate', this, this.transport);
853
854
 
854
- this.transport.open(method.toUpperCase(), this.url,
855
+ this.transport.open(this.method.toUpperCase(), this.url,
855
856
  this.options.asynchronous);
856
857
 
857
858
  if (this.options.asynchronous)
@@ -860,7 +861,7 @@ Ajax.Request.prototype = Object.extend(new Ajax.Base(), {
860
861
  this.transport.onreadystatechange = this.onStateChange.bind(this);
861
862
  this.setRequestHeaders();
862
863
 
863
- var body = method == 'post' ? (this.options.postBody || params) : null;
864
+ var body = this.method == 'post' ? (this.options.postBody || params) : null;
864
865
 
865
866
  this.transport.send(body);
866
867
 
@@ -887,7 +888,7 @@ Ajax.Request.prototype = Object.extend(new Ajax.Base(), {
887
888
  'Accept': 'text/javascript, text/html, application/xml, text/xml, */*'
888
889
  };
889
890
 
890
- if (this.options.method == 'post') {
891
+ if (this.method == 'post') {
891
892
  headers['Content-type'] = this.options.contentType +
892
893
  (this.options.encoding ? '; charset=' + this.options.encoding : '');
893
894
 
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: actionpack
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.13.0
7
- date: 2007-01-17 00:00:00 -06:00
6
+ version: 1.13.1
7
+ date: 2007-01-18 00:00:00 -06:00
8
8
  summary: Web-flow and rendering framework putting the VC in MVC.
9
9
  require_paths:
10
10
  - lib