environmentalist 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (110) hide show
  1. data/History.txt +11 -0
  2. data/{README.textile → README.rdoc} +5 -5
  3. data/Rakefile +2 -2
  4. data/VERSION.yml +1 -1
  5. data/lib/conf/preinitializer.rb +4 -4
  6. metadata +22 -222
  7. data/test/rails210test/README +0 -256
  8. data/test/rails210test/Rakefile +0 -10
  9. data/test/rails210test/app/controllers/application.rb +0 -15
  10. data/test/rails210test/app/helpers/application_helper.rb +0 -3
  11. data/test/rails210test/config/boot.rb +0 -111
  12. data/test/rails210test/config/demo/environment.rb +0 -22
  13. data/test/rails210test/config/development/database.yml +0 -5
  14. data/test/rails210test/config/development/environment.rb +0 -17
  15. data/test/rails210test/config/environment.rb +0 -67
  16. data/test/rails210test/config/initializers/inflections.rb +0 -10
  17. data/test/rails210test/config/initializers/mime_types.rb +0 -5
  18. data/test/rails210test/config/initializers/new_rails_defaults.rb +0 -15
  19. data/test/rails210test/config/postboot.rb +0 -27
  20. data/test/rails210test/config/preinitializer.rb +0 -20
  21. data/test/rails210test/config/production/database.yml +0 -5
  22. data/test/rails210test/config/production/environment.rb +0 -22
  23. data/test/rails210test/config/routes.rb +0 -41
  24. data/test/rails210test/config/staging/environment.rb +0 -22
  25. data/test/rails210test/config/test/database.yml +0 -5
  26. data/test/rails210test/config/test/environment.rb +0 -22
  27. data/test/rails210test/doc/README_FOR_APP +0 -2
  28. data/test/rails210test/log/development.log +0 -0
  29. data/test/rails210test/log/production.log +0 -0
  30. data/test/rails210test/log/server.log +0 -0
  31. data/test/rails210test/log/test.log +0 -0
  32. data/test/rails210test/public/404.html +0 -30
  33. data/test/rails210test/public/422.html +0 -30
  34. data/test/rails210test/public/500.html +0 -30
  35. data/test/rails210test/public/dispatch.cgi +0 -10
  36. data/test/rails210test/public/dispatch.fcgi +0 -24
  37. data/test/rails210test/public/dispatch.rb +0 -10
  38. data/test/rails210test/public/favicon.ico +0 -0
  39. data/test/rails210test/public/images/rails.png +0 -0
  40. data/test/rails210test/public/index.html +0 -274
  41. data/test/rails210test/public/javascripts/application.js +0 -2
  42. data/test/rails210test/public/javascripts/controls.js +0 -963
  43. data/test/rails210test/public/javascripts/dragdrop.js +0 -972
  44. data/test/rails210test/public/javascripts/effects.js +0 -1120
  45. data/test/rails210test/public/javascripts/prototype.js +0 -4225
  46. data/test/rails210test/public/robots.txt +0 -5
  47. data/test/rails210test/script/about +0 -3
  48. data/test/rails210test/script/console +0 -3
  49. data/test/rails210test/script/dbconsole +0 -3
  50. data/test/rails210test/script/destroy +0 -3
  51. data/test/rails210test/script/generate +0 -3
  52. data/test/rails210test/script/performance/benchmarker +0 -3
  53. data/test/rails210test/script/performance/profiler +0 -3
  54. data/test/rails210test/script/performance/request +0 -3
  55. data/test/rails210test/script/plugin +0 -3
  56. data/test/rails210test/script/process/inspector +0 -3
  57. data/test/rails210test/script/process/reaper +0 -3
  58. data/test/rails210test/script/process/spawner +0 -3
  59. data/test/rails210test/script/runner +0 -3
  60. data/test/rails210test/script/server +0 -3
  61. data/test/rails210test/test/test_helper.rb +0 -38
  62. data/test/rails212/README +0 -256
  63. data/test/rails212/Rakefile +0 -10
  64. data/test/rails212/app/controllers/application.rb +0 -15
  65. data/test/rails212/app/helpers/application_helper.rb +0 -3
  66. data/test/rails212/config/boot.rb +0 -109
  67. data/test/rails212/config/database.yml +0 -19
  68. data/test/rails212/config/environment.rb +0 -67
  69. data/test/rails212/config/environments/development.rb +0 -17
  70. data/test/rails212/config/environments/production.rb +0 -22
  71. data/test/rails212/config/environments/test.rb +0 -22
  72. data/test/rails212/config/initializers/inflections.rb +0 -10
  73. data/test/rails212/config/initializers/mime_types.rb +0 -5
  74. data/test/rails212/config/initializers/new_rails_defaults.rb +0 -17
  75. data/test/rails212/config/routes.rb +0 -43
  76. data/test/rails212/doc/README_FOR_APP +0 -2
  77. data/test/rails212/log/development.log +0 -0
  78. data/test/rails212/log/production.log +0 -0
  79. data/test/rails212/log/server.log +0 -0
  80. data/test/rails212/log/test.log +0 -0
  81. data/test/rails212/public/404.html +0 -30
  82. data/test/rails212/public/422.html +0 -30
  83. data/test/rails212/public/500.html +0 -30
  84. data/test/rails212/public/dispatch.cgi +0 -10
  85. data/test/rails212/public/dispatch.fcgi +0 -24
  86. data/test/rails212/public/dispatch.rb +0 -10
  87. data/test/rails212/public/favicon.ico +0 -0
  88. data/test/rails212/public/images/rails.png +0 -0
  89. data/test/rails212/public/index.html +0 -274
  90. data/test/rails212/public/javascripts/application.js +0 -2
  91. data/test/rails212/public/javascripts/controls.js +0 -963
  92. data/test/rails212/public/javascripts/dragdrop.js +0 -972
  93. data/test/rails212/public/javascripts/effects.js +0 -1120
  94. data/test/rails212/public/javascripts/prototype.js +0 -4225
  95. data/test/rails212/public/robots.txt +0 -5
  96. data/test/rails212/script/about +0 -4
  97. data/test/rails212/script/console +0 -3
  98. data/test/rails212/script/dbconsole +0 -3
  99. data/test/rails212/script/destroy +0 -3
  100. data/test/rails212/script/generate +0 -3
  101. data/test/rails212/script/performance/benchmarker +0 -3
  102. data/test/rails212/script/performance/profiler +0 -3
  103. data/test/rails212/script/performance/request +0 -3
  104. data/test/rails212/script/plugin +0 -3
  105. data/test/rails212/script/process/inspector +0 -3
  106. data/test/rails212/script/process/reaper +0 -3
  107. data/test/rails212/script/process/spawner +0 -3
  108. data/test/rails212/script/runner +0 -3
  109. data/test/rails212/script/server +0 -3
  110. data/test/rails212/test/test_helper.rb +0 -38
@@ -1,10 +0,0 @@
1
- # Add your own tasks in files placed in lib/tasks ending in .rake,
2
- # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
-
4
- require(File.join(File.dirname(__FILE__), 'config', 'boot'))
5
-
6
- require 'rake'
7
- require 'rake/testtask'
8
- require 'rake/rdoctask'
9
-
10
- require 'tasks/rails'
@@ -1,15 +0,0 @@
1
- # Filters added to this controller apply to all controllers in the application.
2
- # Likewise, all the methods added will be available for all controllers.
3
-
4
- class ApplicationController < ActionController::Base
5
- helper :all # include all helpers, all the time
6
-
7
- # See ActionController::RequestForgeryProtection for details
8
- # Uncomment the :secret if you're not using the cookie session store
9
- protect_from_forgery # :secret => '0b1bfabd38d2fdccdf2cf62c2a322916'
10
-
11
- # See ActionController::Base for details
12
- # Uncomment this to filter the contents of submitted sensitive data parameters
13
- # from your application log (in this case, all fields with names like "password").
14
- # filter_parameter_logging :password
15
- end
@@ -1,3 +0,0 @@
1
- # Methods added to this helper will be available to all templates in the application.
2
- module ApplicationHelper
3
- end
@@ -1,111 +0,0 @@
1
- # Don't change this file!
2
- # Configure your app in config/environment.rb and config/environments/*.rb
3
-
4
- RAILS_ROOT = "#{File.dirname(__FILE__)}/.." unless defined?(RAILS_ROOT)
5
-
6
- module Rails
7
- class << self
8
- def boot!
9
- unless booted?
10
- preinitialize
11
- pick_boot.run
12
- end
13
- end
14
-
15
- def booted?
16
- defined? Rails::Initializer
17
- end
18
-
19
- def pick_boot
20
- (vendor_rails? ? VendorBoot : GemBoot).new
21
- end
22
-
23
- def vendor_rails?
24
- File.exist?("#{RAILS_ROOT}/vendor/rails")
25
- end
26
-
27
- def preinitialize
28
- load(preinitializer_path) if File.exist?(preinitializer_path)
29
- end
30
-
31
- def preinitializer_path
32
- "#{RAILS_ROOT}/config/preinitializer.rb"
33
- end
34
- end
35
-
36
- class Boot
37
- def run
38
- load_initializer
39
- Rails::Initializer.run(:set_load_path)
40
- end
41
- end
42
-
43
- class VendorBoot < Boot
44
- def load_initializer
45
- require "#{RAILS_ROOT}/vendor/rails/railties/lib/initializer"
46
- Rails::Initializer.run(:install_gem_spec_stubs)
47
- end
48
- end
49
-
50
- class GemBoot < Boot
51
- def load_initializer
52
- self.class.load_rubygems
53
- load_rails_gem
54
- require 'initializer'
55
- end
56
-
57
- def load_rails_gem
58
- if version = self.class.gem_version
59
- gem 'rails', version
60
- else
61
- gem 'rails'
62
- end
63
- rescue Gem::LoadError => load_error
64
- $stderr.puts %(Missing the Rails #{version} gem. Please `gem install -v=#{version} rails`, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed.)
65
- exit 1
66
- end
67
-
68
- class << self
69
- def rubygems_version
70
- Gem::RubyGemsVersion if defined? Gem::RubyGemsVersion
71
- end
72
-
73
- def gem_version
74
- if defined? RAILS_GEM_VERSION
75
- RAILS_GEM_VERSION
76
- elsif ENV.include?('RAILS_GEM_VERSION')
77
- ENV['RAILS_GEM_VERSION']
78
- else
79
- parse_gem_version(read_environment_rb)
80
- end
81
- end
82
-
83
- def load_rubygems
84
- require 'rubygems'
85
-
86
- unless rubygems_version >= '0.9.4'
87
- $stderr.puts %(Rails requires RubyGems >= 0.9.4 (you have #{rubygems_version}). Please `gem update --system` and try again.)
88
- exit 1
89
- end
90
-
91
- rescue LoadError
92
- $stderr.puts %(Rails requires RubyGems >= 0.9.4. Please install RubyGems and try again: http://rubygems.rubyforge.org)
93
- exit 1
94
- end
95
-
96
- def parse_gem_version(text)
97
- $1 if text =~ /^[^#]*RAILS_GEM_VERSION\s*=\s*["']([!~<>=]*\s*[\d.]+)["']/
98
- end
99
-
100
- private
101
- def read_environment_rb
102
- File.read("#{RAILS_ROOT}/config/environment.rb")
103
- end
104
- end
105
- end
106
- end
107
-
108
- # All that for this:
109
- Rails.boot!
110
- # Load postboot file to change Rails paths
111
- require File.join(File.dirname(__FILE__), 'postboot')
@@ -1,22 +0,0 @@
1
- # Settings specified here will take precedence over those in config/environment.rb
2
-
3
- # The production environment is meant for finished, "live" apps.
4
- # Code is not reloaded between requests
5
- config.cache_classes = true
6
-
7
- # Use a different logger for distributed setups
8
- # config.logger = SyslogLogger.new
9
-
10
- # Full error reports are disabled and caching is turned on
11
- config.action_controller.consider_all_requests_local = false
12
- config.action_controller.perform_caching = true
13
- config.action_view.cache_template_loading = true
14
-
15
- # Use a different cache store in production
16
- # config.cache_store = :mem_cache_store
17
-
18
- # Enable serving of images, stylesheets, and javascripts from an asset server
19
- # config.action_controller.asset_host = "http://assets.example.com"
20
-
21
- # Disable delivery errors, bad email addresses will be ignored
22
- # config.action_mailer.raise_delivery_errors = false
@@ -1,5 +0,0 @@
1
- ---
2
- development:
3
- adapter: sqlite3
4
- timeout: 5000
5
- database: db/development.sqlite3
@@ -1,17 +0,0 @@
1
- # Settings specified here will take precedence over those in config/environment.rb
2
-
3
- # In the development environment your application's code is reloaded on
4
- # every request. This slows down response time but is perfect for development
5
- # since you don't have to restart the webserver when you make code changes.
6
- config.cache_classes = false
7
-
8
- # Log error messages when you accidentally call methods on nil.
9
- config.whiny_nils = true
10
-
11
- # Show full error reports and disable caching
12
- config.action_controller.consider_all_requests_local = true
13
- config.action_view.debug_rjs = true
14
- config.action_controller.perform_caching = false
15
-
16
- # Don't care if the mailer can't send
17
- config.action_mailer.raise_delivery_errors = false
@@ -1,67 +0,0 @@
1
- # Be sure to restart your server when you modify this file
2
-
3
- # Uncomment below to force Rails into production mode when
4
- # you don't control web/app server and can't set it the proper way
5
- # ENV['RAILS_ENV'] ||= 'production'
6
-
7
- # Specifies gem version of Rails to use when vendor/rails is not present
8
- RAILS_GEM_VERSION = '2.1.0' unless defined? RAILS_GEM_VERSION
9
-
10
- # Bootstrap the Rails environment, frameworks, and default configuration
11
- require File.join(File.dirname(__FILE__), 'boot')
12
-
13
- Rails::Initializer.run do |config|
14
- # Settings in config/environments/* take precedence over those specified here.
15
- # Application configuration should go into files in config/initializers
16
- # -- all .rb files in that directory are automatically loaded.
17
- # See Rails::Configuration for more options.
18
-
19
- # Skip frameworks you're not going to use. To use Rails without a database
20
- # you must remove the Active Record framework.
21
- # config.frameworks -= [ :active_record, :active_resource, :action_mailer ]
22
-
23
- # Specify gems that this application depends on.
24
- # They can then be installed with "rake gems:install" on new installations.
25
- # config.gem "bj"
26
- # config.gem "hpricot", :version => '0.6', :source => "http://code.whytheluckystiff.net"
27
- # config.gem "aws-s3", :lib => "aws/s3"
28
-
29
- # Only load the plugins named here, in the order given. By default, all plugins
30
- # in vendor/plugins are loaded in alphabetical order.
31
- # :all can be used as a placeholder for all plugins not explicitly named
32
- # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
33
-
34
- # Add additional load paths for your own custom dirs
35
- # config.load_paths += %W( #{RAILS_ROOT}/extras )
36
-
37
- # Force all environments to use the same logger level
38
- # (by default production uses :info, the others :debug)
39
- # config.log_level = :debug
40
-
41
- # Make Time.zone default to the specified zone, and make Active Record store time values
42
- # in the database in UTC, and return them converted to the specified local zone.
43
- # Run "rake -D time" for a list of tasks for finding time zone names. Uncomment to use default local time.
44
- config.time_zone = 'UTC'
45
-
46
- # Your secret key for verifying cookie session data integrity.
47
- # If you change this key, all old sessions will become invalid!
48
- # Make sure the secret is at least 30 characters and all random,
49
- # no regular words or you'll be exposed to dictionary attacks.
50
- config.action_controller.session = {
51
- :session_key => '_rails210_session',
52
- :secret => '158e0ea2ae97260236b527f68ab0fb405bb64374fc3f6885570f375b62e488c0e4747fb354c7d7a1f47caa3fdcd54a5cb42ada1468fe3a8f428dc008c3e4f1de'
53
- }
54
-
55
- # Use the database for sessions instead of the cookie-based default,
56
- # which shouldn't be used to store highly confidential information
57
- # (create the session table with "rake db:sessions:create")
58
- # config.action_controller.session_store = :active_record_store
59
-
60
- # Use SQL instead of Active Record's schema dumper when creating the test database.
61
- # This is necessary if your schema can't be completely dumped by the schema dumper,
62
- # like if you have constraints or database-specific column types
63
- # config.active_record.schema_format = :sql
64
-
65
- # Activate observers that should always be running
66
- # config.active_record.observers = :cacher, :garbage_collector
67
- end
@@ -1,10 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Add new inflection rules using the following format
4
- # (all these examples are active by default):
5
- # Inflector.inflections do |inflect|
6
- # inflect.plural /^(ox)$/i, '\1en'
7
- # inflect.singular /^(ox)en/i, '\1'
8
- # inflect.irregular 'person', 'people'
9
- # inflect.uncountable %w( fish sheep )
10
- # end
@@ -1,5 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Add new mime types for use in respond_to blocks:
4
- # Mime::Type.register "text/richtext", :rtf
5
- # Mime::Type.register_alias "text/html", :iphone
@@ -1,15 +0,0 @@
1
- # These settings change the behavior of Rails 2 apps and will be defaults
2
- # for Rails 3. You can remove this initializer when Rails 3 is released.
3
-
4
- # Include Active Record class name as root for JSON serialized output.
5
- ActiveRecord::Base.include_root_in_json = true
6
-
7
- # Store the full class name (including module namespace) in STI type column.
8
- ActiveRecord::Base.store_full_sti_class = true
9
-
10
- # Use ISO 8601 format for JSON serialized times and dates.
11
- ActiveSupport.use_standard_json_time_format = true
12
-
13
- # Don't escape HTML entities in JSON, leave that for the #json_escape helper.
14
- # if you're including raw json in an HTML page.
15
- ActiveSupport.escape_html_entities_in_json = false
@@ -1,27 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- rails_env = ENV['RAILS_ENV'] || 'development'
4
-
5
- env_dir = File.join(RAILS_ROOT, 'config', rails_env)
6
- db_file = File.join(env_dir, 'database.yml')
7
- env_file = File.join(env_dir, 'environment.rb')
8
-
9
- raise "#{env_dir} environment directory cannot be found." unless File.exists?(env_dir)
10
- raise "#{db_file} is missing. You cannot continue without this." unless File.exists?(db_file)
11
- raise "#{env_file} environment file is missing." unless File.exists?(env_file)
12
-
13
- # Now, let's open up Rails and tell it to find our environment files elsewhere.
14
- module Rails
15
- class Configuration
16
-
17
- def database_configuration_file
18
- File.join(root_path, 'config', environment, 'database.yml')
19
- end
20
-
21
- # The path to the current environment's file (development.rb, etc.). By
22
- # default the file is at <tt>config/environments/#{environment}.rb</tt>.
23
- def environment_path
24
- "#{root_path}/config/#{environment}/environment.rb"
25
- end
26
- end
27
- end
@@ -1,20 +0,0 @@
1
- # Ensure that proper versions of gems in config/geminstaller.yml are activated.
2
- require 'rubygems'
3
- gem 'rails', '= 2.3.0'
4
- gem 'geminstaller', '= 0.5.2'
5
- require 'geminstaller'
6
-
7
- rails_env = ENV['RAILS_ENV'] || 'development'
8
-
9
- perform_install = %w(development test).include?(rails_env)
10
-
11
- # Activate gems
12
- common_gemfile = File.join(RAILS_ROOT, 'config', 'geminstaller.yml')
13
- env_gemfile = File.join(RAILS_ROOT, "config", rails_env, "geminstaller.yml")
14
-
15
- [common_gemfile, env_gemfile].each do |file|
16
- if File.exists?(file)
17
- GemInstaller.install("--exceptions --config=#{common_gemfile}") if perform_install
18
- GemInstaller.autogem("--exceptions --config=#{common_gemfile}")
19
- end
20
- end
@@ -1,5 +0,0 @@
1
- ---
2
- production:
3
- adapter: sqlite3
4
- timeout: 5000
5
- database: db/production.sqlite3
@@ -1,22 +0,0 @@
1
- # Settings specified here will take precedence over those in config/environment.rb
2
-
3
- # The production environment is meant for finished, "live" apps.
4
- # Code is not reloaded between requests
5
- config.cache_classes = true
6
-
7
- # Use a different logger for distributed setups
8
- # config.logger = SyslogLogger.new
9
-
10
- # Full error reports are disabled and caching is turned on
11
- config.action_controller.consider_all_requests_local = false
12
- config.action_controller.perform_caching = true
13
- config.action_view.cache_template_loading = true
14
-
15
- # Use a different cache store in production
16
- # config.cache_store = :mem_cache_store
17
-
18
- # Enable serving of images, stylesheets, and javascripts from an asset server
19
- # config.action_controller.asset_host = "http://assets.example.com"
20
-
21
- # Disable delivery errors, bad email addresses will be ignored
22
- # config.action_mailer.raise_delivery_errors = false
@@ -1,41 +0,0 @@
1
- ActionController::Routing::Routes.draw do |map|
2
- # The priority is based upon order of creation: first created -> highest priority.
3
-
4
- # Sample of regular route:
5
- # map.connect 'products/:id', :controller => 'catalog', :action => 'view'
6
- # Keep in mind you can assign values other than :controller and :action
7
-
8
- # Sample of named route:
9
- # map.purchase 'products/:id/purchase', :controller => 'catalog', :action => 'purchase'
10
- # This route can be invoked with purchase_url(:id => product.id)
11
-
12
- # Sample resource route (maps HTTP verbs to controller actions automatically):
13
- # map.resources :products
14
-
15
- # Sample resource route with options:
16
- # map.resources :products, :member => { :short => :get, :toggle => :post }, :collection => { :sold => :get }
17
-
18
- # Sample resource route with sub-resources:
19
- # map.resources :products, :has_many => [ :comments, :sales ], :has_one => :seller
20
-
21
- # Sample resource route with more complex sub-resources
22
- # map.resources :products do |products|
23
- # products.resources :comments
24
- # products.resources :sales, :collection => { :recent => :get }
25
- # end
26
-
27
- # Sample resource route within a namespace:
28
- # map.namespace :admin do |admin|
29
- # # Directs /admin/products/* to Admin::ProductsController (app/controllers/admin/products_controller.rb)
30
- # admin.resources :products
31
- # end
32
-
33
- # You can have the root of your site routed with map.root -- just remember to delete public/index.html.
34
- # map.root :controller => "welcome"
35
-
36
- # See how all your routes lay out with "rake routes"
37
-
38
- # Install the default routes as the lowest priority.
39
- map.connect ':controller/:action/:id'
40
- map.connect ':controller/:action/:id.:format'
41
- end
@@ -1,22 +0,0 @@
1
- # Settings specified here will take precedence over those in config/environment.rb
2
-
3
- # The production environment is meant for finished, "live" apps.
4
- # Code is not reloaded between requests
5
- config.cache_classes = true
6
-
7
- # Use a different logger for distributed setups
8
- # config.logger = SyslogLogger.new
9
-
10
- # Full error reports are disabled and caching is turned on
11
- config.action_controller.consider_all_requests_local = false
12
- config.action_controller.perform_caching = true
13
- config.action_view.cache_template_loading = true
14
-
15
- # Use a different cache store in production
16
- # config.cache_store = :mem_cache_store
17
-
18
- # Enable serving of images, stylesheets, and javascripts from an asset server
19
- # config.action_controller.asset_host = "http://assets.example.com"
20
-
21
- # Disable delivery errors, bad email addresses will be ignored
22
- # config.action_mailer.raise_delivery_errors = false
@@ -1,5 +0,0 @@
1
- ---
2
- test:
3
- adapter: sqlite3
4
- timeout: 5000
5
- database: db/test.sqlite3