Commit a6543bbf3a3833cfd1e0c1595f099aa267ec9eb2

updated to 2.0.1

Commit diff

app/controllers/application.rb

 
66
77 # See ActionController::RequestForgeryProtection for details
88 # Uncomment the :secret if you're not using the cookie session store
9 protect_from_forgery # :secret => '33d4b3ee6fc0266b90063ecbf256076b'
9 protect_from_forgery # :secret => 'fc3d46c3fbc4bb4ff24b81d2125e1662'
1010end
toggle raw diff

config/environment.rb

 
55# ENV['RAILS_ENV'] ||= 'production'
66
77# Specifies gem version of Rails to use when vendor/rails is not present
8RAILS_GEM_VERSION = '1.99.1' unless defined? RAILS_GEM_VERSION
8RAILS_GEM_VERSION = '2.0.1' unless defined? RAILS_GEM_VERSION
99
1010# Bootstrap the Rails environment, frameworks, and default configuration
1111require File.join(File.dirname(__FILE__), 'boot')
3838 # no regular words or you'll be exposed to dictionary attacks.
3939 config.action_controller.session = {
4040 :session_key => '_rails-skeleton_session',
41 :secret => '5743a49340356dd047cbd67b2b9d0412b69ce923f20810e5a039c38293d0a80bafe89728fe2bde1f580dc5a5ac6f287ceaed055617ca7a268e42aa60f492397b'
41 :secret => 'd621ee17b00e1f40f6e23159735767aa4b06587e6380e8d9b153ef23a281b23d93ff52a8825e0c453d753affcbe6fedb3c71244cadfca9c8a80f1820fc455592'
4242 }
4343
4444 # Use the database for sessions instead of the cookie-based default,
toggle raw diff

public/javascripts/controls.js

 
8686 Element.hide(this.update);
8787
8888 Event.observe(this.element, 'blur', this.onBlur.bindAsEventListener(this));
89 Event.observe(this.element, 'keypress', this.onKeyPress.bindAsEventListener(this));
89 Event.observe(this.element, 'keydown', this.onKeyPress.bindAsEventListener(this));
9090 },
9191
9292 show: function() {
142142 case Event.KEY_UP:
143143 this.markPrevious();
144144 this.render();
145 if(Prototype.Browser.WebKit) Event.stop(event);
145 Event.stop(event);
146146 return;
147147 case Event.KEY_DOWN:
148148 this.markNext();
149149 this.render();
150 if(Prototype.Browser.WebKit) Event.stop(event);
150 Event.stop(event);
151151 return;
152152 }
153153 else
toggle raw diff

public/javascripts/prototype.js

 
1/* Prototype JavaScript framework, version 1.6.0
1/* Prototype JavaScript framework, version 1.6.0.1
22 * (c) 2005-2007 Sam Stephenson
33 *
44 * Prototype is freely distributable under the terms of an MIT-style license.
77 *--------------------------------------------------------------------------*/
88
99var Prototype = {
10 Version: '1.6.0',
10 Version: '1.6.0.1',
1111
1212 Browser: {
1313 IE: !!(window.attachEvent && !window.opera),
21942194}
21952195
21962196if (Prototype.Browser.Opera) {
2197 Element.Methods._getStyle = Element.Methods.getStyle;
2198 Element.Methods.getStyle = function(element, style) {
2199 switch(style) {
2200 case 'left':
2201 case 'top':
2202 case 'right':
2203 case 'bottom':
2204 if (Element._getStyle(element, 'position') == 'static') return null;
2205 default: return Element._getStyle(element, style);
2197 Element.Methods.getStyle = Element.Methods.getStyle.wrap(
2198 function(proceed, element, style) {
2199 switch (style) {
2200 case 'left': case 'top': case 'right': case 'bottom':
2201 if (proceed(element, 'position') === 'static') return null;
2202 case 'height': case 'width':
2203 // returns '0px' for hidden elements; we want it to return null
2204 if (!Element.visible(element)) return null;
2205
2206 // returns the border-box dimensions rather than the content-box
2207 // dimensions, so we subtract padding and borders from the value
2208 var dim = parseInt(proceed(element, style), 10);
2209
2210 if (dim !== element['offset' + style.capitalize()])
2211 return dim + 'px';
2212
2213 var properties;
2214 if (style === 'height') {
2215 properties = ['border-top-width', 'padding-top',
2216 'padding-bottom', 'border-bottom-width'];
2217 }
2218 else {
2219 properties = ['border-left-width', 'padding-left',
2220 'padding-right', 'border-right-width'];
2221 }
2222 return properties.inject(dim, function(memo, property) {
2223 var val = proceed(element, property);
2224 return val === null ? memo : memo - parseInt(val, 10);
2225 }) + 'px';
2226 default: return proceed(element, style);
2227 }
22062228 }
2207 };
2208 Element.Methods._readAttribute = Element.Methods.readAttribute;
2209 Element.Methods.readAttribute = function(element, attribute) {
2210 if (attribute == 'title') return element.title;
2211 return Element._readAttribute(element, attribute);
2212 };
2229 );
2230
2231 Element.Methods.readAttribute = Element.Methods.readAttribute.wrap(
2232 function(proceed, element, attribute) {
2233 if (attribute === 'title') return element.title;
2234 return proceed(element, attribute);
2235 }
2236 );
22132237}
22142238
22152239else if (Prototype.Browser.IE) {
24042404 };
24052405
24062406 // Safari returns margins on body which is incorrect if the child is absolutely
2407 // positioned. For performance reasons, redefine Position.cumulativeOffset for
2407 // positioned. For performance reasons, redefine Element#cumulativeOffset for
24082408 // KHTML/WebKit only.
24092409 Element.Methods.cumulativeOffset = function(element) {
24102410 var valueT = 0, valueL = 0;
26932693document.viewport = {
26942694 getDimensions: function() {
26952695 var dimensions = { };
2696 var B = Prototype.Browser;
26962697 $w('width height').each(function(d) {
26972698 var D = d.capitalize();
2698 dimensions[d] = self['inner' + D] ||
2699 (document.documentElement['client' + D] || document.body['client' + D]);
2699 dimensions[d] = (B.WebKit && !document.evaluate) ? self['inner' + D] :
2700 (B.Opera) ? document.body['client' + D] : document.documentElement['client' + D];
27002701 });
27012702 return dimensions;
27022703 },
toggle raw diff

test/test_helper.rb

 
1515 # in MySQL. Turn off transactional fixtures in this case; however, if you
1616 # don't care one way or the other, switching from MyISAM to InnoDB tables
1717 # is recommended.
18 #
19 # The only drawback to using transactional fixtures is when you actually
20 # need to test transactions. Since your test is bracketed by a transaction,
21 # any transactions started in your code will be automatically rolled back.
1822 self.use_transactional_fixtures = true
1923
2024 # Instantiated fixtures are slow, but give you @david where otherwise you
toggle raw diff