0
-# Be sure to restart your server when you modify this file
0
+RAILS_GEM_VERSION = '2.0.2'
0
+ENV['RAILS_ENV'] ||= 'production'
0
-# Uncomment below to force Rails into production mode when
0
-# you don't control web/app server and can't set it the proper way
0
-# ENV['RAILS_ENV'] ||= 'production'
0
-# Specifies gem version of Rails to use when vendor/rails is not present
0
-RAILS_GEM_VERSION = '2.1.0' unless defined? RAILS_GEM_VERSION
0
-# Bootstrap the Rails environment, frameworks, and default configuration
0
require File.join(File.dirname(__FILE__), 'boot')
0
Rails::Initializer.run do |config|
0
- # Settings in config/environments/* take precedence over those specified here.
0
- # Application configuration should go into files in config/initializers
0
- # -- all .rb files in that directory are automatically loaded.
0
- # See Rails::Configuration for more options.
0
- # Skip frameworks you're not going to use. To use Rails without a database
0
- # you must remove the Active Record framework.
0
- # config.frameworks -= [ :active_record, :active_resource, :action_mailer ]
0
- # Specify gems that this application depends on.
0
- # They can then be installed with "rake gems:install" on new installations.
0
- # config.gem "hpricot", :version => '0.6', :source => "http://code.whytheluckystiff.net"
0
- # config.gem "aws-s3", :lib => "aws/s3"
0
- # Only load the plugins named here, in the order given. By default, all plugins
0
- # in vendor/plugins are loaded in alphabetical order.
0
- # :all can be used as a placeholder for all plugins not explicitly named
0
- # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
0
- # Add additional load paths for your own custom dirs
0
- # config.load_paths += %W( #{RAILS_ROOT}/extras )
0
- # Force all environments to use the same logger level
0
- # (by default production uses :info, the others :debug)
0
- # config.log_level = :debug
0
- # Make Time.zone default to the specified zone, and make Active Record store time values
0
- # in the database in UTC, and return them converted to the specified local zone.
0
- # Run "rake -D time" for a list of tasks for finding time zone names. Uncomment to use default local time.
0
- config.time_zone = 'UTC'
0
- # Your secret key for verifying cookie session data integrity.
0
- # If you change this key, all old sessions will become invalid!
0
- # Make sure the secret is at least 30 characters and all random,
0
- # no regular words or you'll be exposed to dictionary attacks.
0
- config.action_controller.session = {
0
- :session_key => '_bookqueue_session',
0
- :secret => '19a72d0ed7a6265bcf61e40c67e6deb41b6cd053f43afb4452d523ff84bd8a6148dfd062c1a1350f34269603c7630d7e4f359335c28115eb0f1726ce17f15496'
0
+ config.action_controller.session = { :session_key => "_myapp_session", :secret => "some secret phrase of at least 30 characters" }
0
+ config.load_paths += Dir["#{RAILS_ROOT}/vendor/gems/**"].map do |dir|
0
+ File.directory?(lib = "#{dir}/lib") ? lib : dir
0
- # Use the database for sessions instead of the cookie-based default,
0
- # which shouldn't be used to store highly confidential information
0
- # (create the session table with "rake db:sessions:create")
0
- # config.action_controller.session_store = :active_record_store
0
+require('twitter/console')
0
- # Use SQL instead of Active Record's schema dumper when creating the test database.
0
- # This is necessary if your schema can't be completely dumped by the schema dumper,
0
- # like if you have constraints or database-specific column types
0
- # config.active_record.schema_format = :sql
0
+twitter_config = File.join(File.dirname(__FILE__), '..', 'config', 'twitter.yml')
0
+TWITTER = Twitter::Client.from_config(twitter_config)
0
- # Activate observers that should always be running
0
- # config.active_record.observers = :cacher, :garbage_collector