[ap4r-devel] [356] trunk: Supported Rails2.0 provisionally.
kato-k at rubyforge.org
kato-k at rubyforge.org
Wed Dec 12 04:31:53 EST 2007
Revision: 356
Author: kato-k
Date: 2007-12-12 04:31:52 -0500 (Wed, 12 Dec 2007)
Log Message:
-----------
Supported Rails2.0 provisionally.
Modified Paths:
--------------
trunk/ap4r/lib/ap4r/retention_history.rb
trunk/samples/HelloWorld/config/environment.rb
Modified: trunk/ap4r/lib/ap4r/retention_history.rb
===================================================================
--- trunk/ap4r/lib/ap4r/retention_history.rb 2007-12-10 09:33:00 UTC (rev 355)
+++ trunk/ap4r/lib/ap4r/retention_history.rb 2007-12-12 09:31:52 UTC (rev 356)
@@ -7,14 +7,16 @@
module ReliableMsg #:nodoc:
# This class is too much experimental.
- # The aim: for performance monitoring, records unprocessed message count
+ # The aim: for performance monitoring, records unprocessed message count
# in every queues at some interval.
class RetentionHistory
include DRbUndumped
- LOOP_INTERVAL = 1.seconds
- SHELF_LIFE = 10.minutes
-# SHELF_LIFE = 10.seconds
+ # to_i method is required for ActiveSupport 2.0 where return value of seconds method
+ # is not Fixnum.
+ LOOP_INTERVAL = 1.seconds.to_i
+ SHELF_LIFE = 10.minutes.to_i
+# SHELF_LIFE = 10.seconds.to_i
attr_reader :data
def initialize(qm, logger, config)
Modified: trunk/samples/HelloWorld/config/environment.rb
===================================================================
--- trunk/samples/HelloWorld/config/environment.rb 2007-12-10 09:33:00 UTC (rev 355)
+++ trunk/samples/HelloWorld/config/environment.rb 2007-12-12 09:31:52 UTC (rev 356)
@@ -5,7 +5,7 @@
# ENV['RAILS_ENV'] ||= 'production'
# Specifies gem version of Rails to use when vendor/rails is not present
-RAILS_GEM_VERSION = '1.2.3' unless defined? RAILS_GEM_VERSION
+RAILS_GEM_VERSION = '1.2.6' unless defined? RAILS_GEM_VERSION
# Bootstrap the Rails environment, frameworks, and default configuration
require File.join(File.dirname(__FILE__), 'boot')
@@ -26,6 +26,17 @@
# (by default production uses :info, the others :debug)
# config.log_level = :debug
+ if RAILS_GEM_VERSION.to_i == 2
+ # Your secret key for verifying cookie session data integrity.
+ # If you change this key, all old sessions will become invalid!
+ # Make sure the secret is at least 30 characters and all random,
+ # no regular words or you'll be exposed to dictionary attacks.
+ config.action_controller.session = {
+ :session_key => '_HelloWorld_on_Rails20_session',
+ :secret => '842ed669f0a2139d3919f50b4044e4226810fc8eab12b23a2a3475b001b6f083985fc0083d800d19b9d908c25945e1367da329d424b3b05b0b5bd73e0a088e9a'
+ }
+ end
+
# Use the database for sessions instead of the file system
# (create the session table with 'rake db:sessions:create')
# config.action_controller.session_store = :active_record_store
More information about the ap4r-devel
mailing list