Skip to content

Commit

Permalink
Move from plugins to gems to both reduce refinery size and optimise r…
Browse files Browse the repository at this point in the history
…efinery's footprint when running in an environment that can cache memory across apps that share the same gems, e.g. passenger. This will also make upgrading versions easier as you just have to install a later version of the gem.
  • Loading branch information
parndt committed Sep 30, 2009
1 parent af24f90 commit 84ff8b8
Show file tree
Hide file tree
Showing 99 changed files with 32 additions and 6,180 deletions.
14 changes: 9 additions & 5 deletions config/environment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,19 @@
# ENV['RAILS_ENV'] ||= 'production'

# Specifies gem version of Rails to use when vendor/rails is not present
RAILS_GEM_VERSION = '2.3.2' unless defined? RAILS_GEM_VERSION
RAILS_GEM_VERSION = '2.3.4' unless defined? RAILS_GEM_VERSION

# Bootstrap the Rails environment, frameworks, and default configuration
require File.join(File.dirname(__FILE__), 'boot')

Rails::Initializer.run do |config|
config.gem "rake", :version => ">= 0.8.3", :lib => "rake"
config.gem "friendly_id", :version => ">= 2.1.4", :lib => "friendly_id"
config.gem "mislav-will_paginate", :version => ">= 2.3.11", :lib => "will_paginate"
config.gem "rails", :version => ">= 2.3.2", :lib => "rails"
config.gem "rubyist-aasm", :version => ">= 2.1.1", :lib => "aasm"
config.gem "unicode", :version => ">= 0.1", :lib => "unicode"

# Settings in config/environments/* take precedence over those specified here.
# Application configuration should go into files in config/initializers
# -- all .rb files in that directory are automatically loaded.
Expand All @@ -23,7 +30,7 @@
# Only load the plugins named here, in the order given. By default, all plugins
# in vendor/plugins are loaded in alphabetical order.
# :all can be used as a placeholder for all plugins not explicitly named
config.plugins = [ :acts_as_state_machine, :authentication, :friendly_id, :acts_as_tree, :attachment_fu, :all ]
config.plugins = [ :authentication, :acts_as_tree, :attachment_fu, :all ]

# Add additional load paths for your own custom dirs
# config.load_paths += %W( #{RAILS_ROOT}/extras )
Expand Down Expand Up @@ -57,7 +64,4 @@
# Make Active Record use UTC-base instead of local time
# config.active_record.default_timezone = :utc
#

config.gem "unicode"

end
13 changes: 0 additions & 13 deletions vendor/plugins/acts_as_state_machine/CHANGELOG

This file was deleted.

20 changes: 0 additions & 20 deletions vendor/plugins/acts_as_state_machine/MIT-LICENSE

This file was deleted.

33 changes: 0 additions & 33 deletions vendor/plugins/acts_as_state_machine/README

This file was deleted.

28 changes: 0 additions & 28 deletions vendor/plugins/acts_as_state_machine/Rakefile

This file was deleted.

11 changes: 0 additions & 11 deletions vendor/plugins/acts_as_state_machine/TODO

This file was deleted.

5 changes: 0 additions & 5 deletions vendor/plugins/acts_as_state_machine/init.rb

This file was deleted.

Loading

0 comments on commit 84ff8b8

Please sign in to comment.