Permalink
Browse files

Initial commit

  • Loading branch information...
dcrec1 committed Sep 16, 2009
0 parents commit 20cf95b99e3b8b06ce417b9eaeffe6c524aa8de7
Showing with 22,366 additions and 0 deletions.
  1. +7 −0 .gitignore
  2. +3 −0 Capfile
  3. +10 −0 Rakefile
  4. +10 −0 app/controllers/application_controller.rb
  5. +3 −0 app/helpers/application_helper.rb
  6. +9 −0 config/asset_packages.yml
  7. +110 −0 config/boot.rb
  8. +25 −0 config/database.yml
  9. +15 −0 config/deploy.rb
  10. 0 config/deploy/production.rb
  11. 0 config/deploy/staging.rb
  12. +48 −0 config/environment.rb
  13. +22 −0 config/environments/cucumber.rb
  14. +17 −0 config/environments/development.rb
  15. +28 −0 config/environments/production.rb
  16. +28 −0 config/environments/staging.rb
  17. +29 −0 config/environments/test.rb
  18. +7 −0 config/initializers/backtrace_silencers.rb
  19. +10 −0 config/initializers/inflections.rb
  20. +5 −0 config/initializers/mime_types.rb
  21. +19 −0 config/initializers/new_rails_defaults.rb
  22. +15 −0 config/initializers/session_store.rb
  23. +5 −0 config/locales/en.yml
  24. +43 −0 config/routes.rb
  25. +14 −0 db/schema.rb
  26. +2 −0 doc/README_FOR_APP
  27. +154 −0 features/step_definitions/webrat_steps.rb
  28. +25 −0 features/support/env.rb
  29. +27 −0 features/support/paths.rb
  30. +34 −0 lib/tasks/cucumber.rake
  31. +167 −0 lib/tasks/rspec.rake
  32. +30 −0 public/404.html
  33. +30 −0 public/422.html
  34. +30 −0 public/500.html
  35. 0 public/favicon.ico
  36. BIN public/images/rails.png
  37. +188 −0 public/javascripts/jquery-ui.js
  38. +19 −0 public/javascripts/jquery.js
  39. +1 −0 public/javascripts/jrails.js
  40. +5 −0 public/robots.txt
  41. +4 −0 script/about
  42. +6 −0 script/autospec
  43. +3 −0 script/console
  44. +9 −0 script/cucumber
  45. +3 −0 script/dbconsole
  46. +3 −0 script/destroy
  47. +3 −0 script/generate
  48. +3 −0 script/performance/benchmarker
  49. +3 −0 script/performance/profiler
  50. +3 −0 script/plugin
  51. +3 −0 script/runner
  52. +3 −0 script/server
  53. +10 −0 script/spec
  54. +9 −0 script/spec_server
  55. +2 −0 spec/rcov.opts
  56. +263 −0 spec/resource_helper.rb
  57. +4 −0 spec/spec.opts
  58. +47 −0 spec/spec_helper.rb
  59. +9 −0 test/performance/browsing_test.rb
  60. +38 −0 test/test_helper.rb
  61. +122 −0 vendor/plugins/asset_packager/CHANGELOG
  62. +178 −0 vendor/plugins/asset_packager/README
  63. +22 −0 vendor/plugins/asset_packager/Rakefile
  64. +8 −0 vendor/plugins/asset_packager/about.yml
  65. +2 −0 vendor/plugins/asset_packager/init.rb
  66. +1 −0 vendor/plugins/asset_packager/install.rb
  67. +205 −0 vendor/plugins/asset_packager/lib/jsmin.rb
  68. +212 −0 vendor/plugins/asset_packager/lib/synthesis/asset_package.rb
  69. +39 −0 vendor/plugins/asset_packager/lib/synthesis/asset_package_helper.rb
  70. +23 −0 vendor/plugins/asset_packager/tasks/asset_packager_tasks.rake
  71. +100 −0 vendor/plugins/asset_packager/test/asset_package_helper_development_test.rb
  72. +140 −0 vendor/plugins/asset_packager/test/asset_package_helper_production_test.rb
  73. +92 −0 vendor/plugins/asset_packager/test/asset_packager_test.rb
  74. +20 −0 vendor/plugins/asset_packager/test/asset_packages.yml
  75. +2 −0 vendor/plugins/asset_packager/test/assets/javascripts/application.js
  76. +4 −0 vendor/plugins/asset_packager/test/assets/javascripts/bar.js
  77. +815 −0 vendor/plugins/asset_packager/test/assets/javascripts/controls.js
  78. +913 −0 vendor/plugins/asset_packager/test/assets/javascripts/dragdrop.js
  79. +958 −0 vendor/plugins/asset_packager/test/assets/javascripts/effects.js
  80. +4 −0 vendor/plugins/asset_packager/test/assets/javascripts/foo.js
  81. +2,006 −0 vendor/plugins/asset_packager/test/assets/javascripts/prototype.js
  82. +16 −0 vendor/plugins/asset_packager/test/assets/stylesheets/bar.css
  83. +16 −0 vendor/plugins/asset_packager/test/assets/stylesheets/foo.css
  84. +16 −0 vendor/plugins/asset_packager/test/assets/stylesheets/header.css
  85. +16 −0 vendor/plugins/asset_packager/test/assets/stylesheets/screen.css
  86. +16 −0 vendor/plugins/asset_packager/test/assets/stylesheets/subdir/bar.css
  87. +16 −0 vendor/plugins/asset_packager/test/assets/stylesheets/subdir/foo.css
  88. +24 −0 vendor/plugins/dynamic_error_pages/README.textile
  89. +49 −0 vendor/plugins/dynamic_error_pages/Rakefile
  90. +1 −0 vendor/plugins/dynamic_error_pages/init.rb
  91. +17 −0 vendor/plugins/dynamic_error_pages/lib/dynamic_error_pages.rb
  92. +23 −0 vendor/plugins/dynamic_error_pages/spec/dynamic_error_pages_spec.rb
  93. +3 −0 vendor/plugins/dynamic_error_pages/spec/spec_helper.rb
  94. +20 −0 vendor/plugins/formtastic/MIT-LICENSE
  95. +503 −0 vendor/plugins/formtastic/README.textile
  96. +9 −0 vendor/plugins/formtastic/RELEASE_PROCESS
  97. +58 −0 vendor/plugins/formtastic/Rakefile
  98. +4 −0 vendor/plugins/formtastic/VERSION.yml
  99. +49 −0 vendor/plugins/formtastic/formtastic.gemspec
  100. +21 −0 vendor/plugins/formtastic/generators/formtastic_stylesheets/formtastic_stylesheets_generator.rb
  101. +137 −0 vendor/plugins/formtastic/generators/formtastic_stylesheets/templates/formtastic.css
  102. +10 −0 vendor/plugins/formtastic/generators/formtastic_stylesheets/templates/formtastic_changes.css
  103. +1 −0 vendor/plugins/formtastic/install.rb
  104. +1,312 −0 vendor/plugins/formtastic/lib/formtastic.rb
  105. +10 −0 vendor/plugins/formtastic/lib/justin_french/formtastic.rb
  106. +8 −0 vendor/plugins/formtastic/lib/locale/en.yml
  107. +3 −0 vendor/plugins/formtastic/rails/init.rb
  108. +3,079 −0 vendor/plugins/formtastic/spec/formtastic_spec.rb
  109. +14 −0 vendor/plugins/formtastic/spec/test_helper.rb
  110. +1 −0 vendor/plugins/formtastic/tasks/formtastic_tasks.rake
  111. +1 −0 vendor/plugins/formtastic/uninstall.rb
  112. +55 −0 vendor/plugins/hoptoad_notifier/INSTALL
  113. +22 −0 vendor/plugins/hoptoad_notifier/MIT-LICENSE
  114. +232 −0 vendor/plugins/hoptoad_notifier/README
  115. +30 −0 vendor/plugins/hoptoad_notifier/Rakefile
  116. +8 −0 vendor/plugins/hoptoad_notifier/TESTING
  117. +28 −0 vendor/plugins/hoptoad_notifier/ginger_scenarios.rb
  118. +1 −0 vendor/plugins/hoptoad_notifier/install.rb
  119. +418 −0 vendor/plugins/hoptoad_notifier/lib/hoptoad_notifier.rb
  120. +26 −0 vendor/plugins/hoptoad_notifier/lib/hoptoad_tasks.rb
  121. +22 −0 vendor/plugins/hoptoad_notifier/recipes/hoptoad.rb
  122. +28 −0 vendor/plugins/hoptoad_notifier/script/integration_test.rb
  123. +66 −0 vendor/plugins/hoptoad_notifier/tasks/hoptoad_notifier_tasks.rake
  124. +148 −0 vendor/plugins/hoptoad_notifier/test/configuration_test.rb
  125. +393 −0 vendor/plugins/hoptoad_notifier/test/controller_test.rb
  126. +113 −0 vendor/plugins/hoptoad_notifier/test/helper.rb
  127. +131 −0 vendor/plugins/hoptoad_notifier/test/hoptoad_tasks_test.rb
  128. +114 −0 vendor/plugins/hoptoad_notifier/test/logger_test.rb
  129. +191 −0 vendor/plugins/hoptoad_notifier/test/notifier_test.rb
  130. +1 −0 vendor/plugins/hoptoad_notifier/vendor/ginger/.gitignore
  131. +20 −0 vendor/plugins/hoptoad_notifier/vendor/ginger/LICENCE
  132. +50 −0 vendor/plugins/hoptoad_notifier/vendor/ginger/README.textile
  133. +57 −0 vendor/plugins/hoptoad_notifier/vendor/ginger/Rakefile
  134. +42 −0 vendor/plugins/hoptoad_notifier/vendor/ginger/bin/ginger
  135. +33 −0 vendor/plugins/hoptoad_notifier/vendor/ginger/ginger.gemspec
  136. +21 −0 vendor/plugins/hoptoad_notifier/vendor/ginger/lib/ginger.rb
  137. +20 −0 vendor/plugins/hoptoad_notifier/vendor/ginger/lib/ginger/configuration.rb
  138. +56 −0 vendor/plugins/hoptoad_notifier/vendor/ginger/lib/ginger/kernel.rb
  139. +24 −0 vendor/plugins/hoptoad_notifier/vendor/ginger/lib/ginger/scenario.rb
  140. +7 −0 vendor/plugins/hoptoad_notifier/vendor/ginger/spec/ginger/configuration_spec.rb
  141. +7 −0 vendor/plugins/hoptoad_notifier/vendor/ginger/spec/ginger/kernel_spec.rb
  142. +50 −0 vendor/plugins/hoptoad_notifier/vendor/ginger/spec/ginger/scenario_spec.rb
  143. +14 −0 vendor/plugins/hoptoad_notifier/vendor/ginger/spec/ginger_spec.rb
  144. +7 −0 vendor/plugins/hoptoad_notifier/vendor/ginger/spec/spec_helper.rb
  145. +101 −0 vendor/plugins/inherited_resources/CHANGELOG
  146. +20 −0 vendor/plugins/inherited_resources/MIT-LICENSE
  147. +523 −0 vendor/plugins/inherited_resources/README.rdoc
  148. +37 −0 vendor/plugins/inherited_resources/Rakefile
  149. +1 −0 vendor/plugins/inherited_resources/VERSION
  150. +71 −0 vendor/plugins/inherited_resources/inherited_resources.gemspec
  151. +1 −0 vendor/plugins/inherited_resources/init.rb
  152. +23 −0 vendor/plugins/inherited_resources/lib/inherited_resources.rb
  153. +78 −0 vendor/plugins/inherited_resources/lib/inherited_resources/actions.rb
  154. +42 −0 vendor/plugins/inherited_resources/lib/inherited_resources/base.rb
  155. +325 −0 vendor/plugins/inherited_resources/lib/inherited_resources/base_helpers.rb
  156. +89 −0 vendor/plugins/inherited_resources/lib/inherited_resources/belongs_to_helpers.rb
  157. +334 −0 vendor/plugins/inherited_resources/lib/inherited_resources/class_methods.rb
  158. +26 −0 vendor/plugins/inherited_resources/lib/inherited_resources/dsl.rb
  159. +20 −0 vendor/plugins/inherited_resources/lib/inherited_resources/dumb_responder.rb
  160. +65 −0 vendor/plugins/inherited_resources/lib/inherited_resources/has_scope_helpers.rb
  161. +156 −0 vendor/plugins/inherited_resources/lib/inherited_resources/legacy/respond_to.rb
  162. +200 −0 vendor/plugins/inherited_resources/lib/inherited_resources/legacy/responder.rb
  163. +155 −0 vendor/plugins/inherited_resources/lib/inherited_resources/polymorphic_helpers.rb
  164. +95 −0 vendor/plugins/inherited_resources/lib/inherited_resources/singleton_helpers.rb
  165. +179 −0 vendor/plugins/inherited_resources/lib/inherited_resources/url_helpers.rb
  166. +139 −0 vendor/plugins/inherited_resources/test/aliases_test.rb
  167. +125 −0 vendor/plugins/inherited_resources/test/association_chain_test.rb
  168. +225 −0 vendor/plugins/inherited_resources/test/base_test.rb
  169. +87 −0 vendor/plugins/inherited_resources/test/belongs_to_test.rb
  170. +137 −0 vendor/plugins/inherited_resources/test/class_methods_test.rb
  171. +76 −0 vendor/plugins/inherited_resources/test/customized_belongs_to_test.rb
  172. +70 −0 vendor/plugins/inherited_resources/test/defaults_test.rb
  173. +88 −0 vendor/plugins/inherited_resources/test/flash_test.rb
  174. +112 −0 vendor/plugins/inherited_resources/test/has_scope_test.rb
  175. +17 −0 vendor/plugins/inherited_resources/test/locales/en.yml
  176. +108 −0 vendor/plugins/inherited_resources/test/nested_belongs_to_test.rb
  177. +164 −0 vendor/plugins/inherited_resources/test/optional_belongs_to_test.rb
  178. +186 −0 vendor/plugins/inherited_resources/test/polymorphic_test.rb
  179. +51 −0 vendor/plugins/inherited_resources/test/redirect_to_test.rb
  180. +155 −0 vendor/plugins/inherited_resources/test/respond_to_test.rb
  181. +83 −0 vendor/plugins/inherited_resources/test/singleton_test.rb
  182. +30 −0 vendor/plugins/inherited_resources/test/test_helper.rb
  183. +537 −0 vendor/plugins/inherited_resources/test/url_helpers_test.rb
  184. +1 −0 vendor/plugins/inherited_resources/test/views/cities/edit.html.erb
  185. +1 −0 vendor/plugins/inherited_resources/test/views/cities/index.html.erb
  186. +1 −0 vendor/plugins/inherited_resources/test/views/cities/new.html.erb
  187. +1 −0 vendor/plugins/inherited_resources/test/views/cities/show.html.erb
  188. +1 −0 vendor/plugins/inherited_resources/test/views/comments/edit.html.erb
  189. +1 −0 vendor/plugins/inherited_resources/test/views/comments/index.html.erb
  190. +1 −0 vendor/plugins/inherited_resources/test/views/comments/new.html.erb
  191. +1 −0 vendor/plugins/inherited_resources/test/views/comments/show.html.erb
  192. +1 −0 vendor/plugins/inherited_resources/test/views/employees/edit.html.erb
  193. +1 −0 vendor/plugins/inherited_resources/test/views/employees/index.html.erb
  194. +1 −0 vendor/plugins/inherited_resources/test/views/employees/new.html.erb
  195. +1 −0 vendor/plugins/inherited_resources/test/views/employees/show.html.erb
  196. +1 −0 vendor/plugins/inherited_resources/test/views/managers/edit.html.erb
  197. +1 −0 vendor/plugins/inherited_resources/test/views/managers/new.html.erb
  198. +1 −0 vendor/plugins/inherited_resources/test/views/managers/show.html.erb
  199. +1 −0 vendor/plugins/inherited_resources/test/views/painters/edit.html.erb
  200. +1 −0 vendor/plugins/inherited_resources/test/views/painters/index.html.erb
  201. +1 −0 vendor/plugins/inherited_resources/test/views/painters/new.html.erb
  202. +1 −0 vendor/plugins/inherited_resources/test/views/painters/show.html.erb
  203. +1 −0 vendor/plugins/inherited_resources/test/views/pets/edit.html.erb
  204. +1 −0 vendor/plugins/inherited_resources/test/views/pets/index.html.erb
  205. +1 −0 vendor/plugins/inherited_resources/test/views/pets/new.html.erb
  206. +1 −0 vendor/plugins/inherited_resources/test/views/pets/show.html.erb
  207. +1 −0 vendor/plugins/inherited_resources/test/views/products/edit.html.erb
  208. +1 −0 vendor/plugins/inherited_resources/test/views/products/index.html.erb
  209. +1 −0 vendor/plugins/inherited_resources/test/views/products/new.html.erb
  210. +1 −0 vendor/plugins/inherited_resources/test/views/products/show.html.erb
  211. +1 −0 vendor/plugins/inherited_resources/test/views/professors/edit.html.erb
  212. +1 −0 vendor/plugins/inherited_resources/test/views/professors/index.html.erb
  213. +1 −0 vendor/plugins/inherited_resources/test/views/professors/new.html.erb
  214. +1 −0 vendor/plugins/inherited_resources/test/views/professors/show.html.erb
  215. +1 −0 vendor/plugins/inherited_resources/test/views/projects/index.html.erb
  216. +1 −0 vendor/plugins/inherited_resources/test/views/projects/index.json.erb
  217. +1 −0 vendor/plugins/inherited_resources/test/views/projects/respond_to_skip_default_template.html.erb
  218. +1 −0 vendor/plugins/inherited_resources/test/views/projects/respond_with_resource.html.erb
  219. +1 −0 vendor/plugins/inherited_resources/test/views/students/edit.html.erb
  220. +1 −0 vendor/plugins/inherited_resources/test/views/students/new.html.erb
  221. +1 −0 vendor/plugins/inherited_resources/test/views/trees/edit.html.erb
  222. +1 −0 vendor/plugins/inherited_resources/test/views/trees/index.html.erb
  223. +1 −0 vendor/plugins/inherited_resources/test/views/trees/new.html.erb
  224. +1 −0 vendor/plugins/inherited_resources/test/views/trees/show.html.erb
  225. +1 −0 vendor/plugins/inherited_resources/test/views/users/edit.html.erb
  226. +1 −0 vendor/plugins/inherited_resources/test/views/users/index.html.erb
  227. +1 −0 vendor/plugins/inherited_resources/test/views/users/new.html.erb
  228. +1 −0 vendor/plugins/inherited_resources/test/views/users/show.html.erb
  229. +43 −0 vendor/plugins/jrails/CHANGELOG
  230. +18 −0 vendor/plugins/jrails/LICENSE
  231. +21 −0 vendor/plugins/jrails/README.rdoc
  232. +18 −0 vendor/plugins/jrails/Rakefile
  233. +4 −0 vendor/plugins/jrails/VERSION.yml
  234. +30 −0 vendor/plugins/jrails/bin/jrails
  235. +1 −0 vendor/plugins/jrails/init.rb
  236. +9 −0 vendor/plugins/jrails/install.rb
  237. +188 −0 vendor/plugins/jrails/javascripts/jquery-ui.js
  238. +19 −0 vendor/plugins/jrails/javascripts/jquery.js
  239. +1 −0 vendor/plugins/jrails/javascripts/jrails.js
  240. +197 −0 vendor/plugins/jrails/javascripts/sources/jrails.js
  241. +50 −0 vendor/plugins/jrails/jrails.gemspec
  242. +421 −0 vendor/plugins/jrails/lib/jrails.rb
  243. +15 −0 vendor/plugins/jrails/rails/init.rb
  244. +25 −0 vendor/plugins/jrails/tasks/jrails.rake
  245. +43 −0 vendor/plugins/remarkable_extensions/README.textile
  246. +49 −0 vendor/plugins/remarkable_extensions/Rakefile
  247. +11 −0 vendor/plugins/remarkable_extensions/init.rb
  248. +36 −0 vendor/plugins/remarkable_extensions/lib/action_controller/have_actions_matcher.rb
  249. +119 −0 vendor/plugins/remarkable_extensions/lib/action_controller/have_filter_matcher.rb
  250. +3 −0 vendor/plugins/remarkable_extensions/lib/remarkable_extensions.rb
  251. +18 −0 vendor/plugins/remarkable_extensions/locales/en.yml
  252. +18 −0 vendor/plugins/remarkable_extensions/locales/pt.yml
  253. +44 −0 vendor/plugins/remarkable_extensions/spec/action_controller/have_actions_matcher_spec.rb
  254. +136 −0 vendor/plugins/remarkable_extensions/spec/action_controller/have_filter_matcher_spec.rb
  255. +15 −0 vendor/plugins/remarkable_extensions/spec/application/application.rb
  256. 0 vendor/plugins/remarkable_extensions/spec/application/examples/_example.html.erb
  257. 0 vendor/plugins/remarkable_extensions/spec/application/examples/example.html.erb
  258. 0 vendor/plugins/remarkable_extensions/spec/application/examples/example.xml.builder
  259. 0 vendor/plugins/remarkable_extensions/spec/application/examples/new.html.erb
  260. 0 vendor/plugins/remarkable_extensions/spec/application/layouts/examples.html.erb
  261. 0 vendor/plugins/remarkable_extensions/spec/application/projects/new.html.erb
  262. +39 −0 vendor/plugins/remarkable_extensions/spec/application/tasks_controller.rb
  263. +93 −0 vendor/plugins/remarkable_extensions/spec/functional_builder.rb
  264. +45 −0 vendor/plugins/remarkable_extensions/spec/spec_helper.rb
  265. +42 −0 vendor/plugins/remarkable_inherited_resources/README.textile
  266. +49 −0 vendor/plugins/remarkable_inherited_resources/Rakefile
  267. +12 −0 vendor/plugins/remarkable_inherited_resources/init.rb
  268. +7 −0 vendor/plugins/remarkable_inherited_resources/lib/en.yml
  269. +7 −0 vendor/plugins/remarkable_inherited_resources/lib/pt.yml
  270. +20 −0 vendor/plugins/remarkable_inherited_resources/lib/remarkable_inherited_resources.rb
  271. +100 −0 vendor/plugins/remarkable_inherited_resources/spec/model_builder.rb
  272. +23 −0 vendor/plugins/remarkable_inherited_resources/spec/remarkable_inherited_resources_spec.rb
  273. +25 −0 vendor/plugins/remarkable_inherited_resources/spec/spec_helper.rb
@@ -0,0 +1,7 @@
+.DS_Store
+log/*
+tmp/*
+db/*.sqlite3
+coverage
+solr
+public/system
@@ -0,0 +1,3 @@
+load 'deploy' if respond_to?(:namespace) # cap2 differentiator
+Dir['vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) }
+load 'config/deploy'
@@ -0,0 +1,10 @@
+# Add your own tasks in files placed in lib/tasks ending in .rake,
+# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
+
+require(File.join(File.dirname(__FILE__), 'config', 'boot'))
+
+require 'rake'
+require 'rake/testtask'
+require 'rake/rdoctask'
+
+require 'tasks/rails'
@@ -0,0 +1,10 @@
+# Filters added to this controller apply to all controllers in the application.
+# Likewise, all the methods added will be available for all controllers.
+
+class ApplicationController < ActionController::Base
+ helper :all # include all helpers, all the time
+ protect_from_forgery # See ActionController::RequestForgeryProtection for details
+
+ # Scrub sensitive parameters from your log
+ # filter_parameter_logging :password
+end
@@ -0,0 +1,3 @@
+# Methods added to this helper will be available to all templates in the application.
+module ApplicationHelper
+end
@@ -0,0 +1,9 @@
+---
+javascripts:
+- base:
+ - jquery-ui
+ - jrails
+ - jquery
+stylesheets:
+- base: []
+
@@ -0,0 +1,110 @@
+# Don't change this file!
+# Configure your app in config/environment.rb and config/environments/*.rb
+
+RAILS_ROOT = "#{File.dirname(__FILE__)}/.." unless defined?(RAILS_ROOT)
+
+module Rails
+ class << self
+ def boot!
+ unless booted?
+ preinitialize
+ pick_boot.run
+ end
+ end
+
+ def booted?
+ defined? Rails::Initializer
+ end
+
+ def pick_boot
+ (vendor_rails? ? VendorBoot : GemBoot).new
+ end
+
+ def vendor_rails?
+ File.exist?("#{RAILS_ROOT}/vendor/rails")
+ end
+
+ def preinitialize
+ load(preinitializer_path) if File.exist?(preinitializer_path)
+ end
+
+ def preinitializer_path
+ "#{RAILS_ROOT}/config/preinitializer.rb"
+ end
+ end
+
+ class Boot
+ def run
+ load_initializer
+ Rails::Initializer.run(:set_load_path)
+ end
+ end
+
+ class VendorBoot < Boot
+ def load_initializer
+ require "#{RAILS_ROOT}/vendor/rails/railties/lib/initializer"
+ Rails::Initializer.run(:install_gem_spec_stubs)
+ Rails::GemDependency.add_frozen_gem_path
+ end
+ end
+
+ class GemBoot < Boot
+ def load_initializer
+ self.class.load_rubygems
+ load_rails_gem
+ require 'initializer'
+ end
+
+ def load_rails_gem
+ if version = self.class.gem_version
+ gem 'rails', version
+ else
+ gem 'rails'
+ end
+ rescue Gem::LoadError => load_error
+ $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.)
+ exit 1
+ end
+
+ class << self
+ def rubygems_version
+ Gem::RubyGemsVersion rescue nil
+ end
+
+ def gem_version
+ if defined? RAILS_GEM_VERSION
+ RAILS_GEM_VERSION
+ elsif ENV.include?('RAILS_GEM_VERSION')
+ ENV['RAILS_GEM_VERSION']
+ else
+ parse_gem_version(read_environment_rb)
+ end
+ end
+
+ def load_rubygems
+ require 'rubygems'
+ min_version = '1.3.1'
+ unless rubygems_version >= min_version
+ $stderr.puts %Q(Rails requires RubyGems >= #{min_version} (you have #{rubygems_version}). Please `gem update --system` and try again.)
+ exit 1
+ end
+
+ rescue LoadError
+ $stderr.puts %Q(Rails requires RubyGems >= #{min_version}. Please install RubyGems and try again: http://rubygems.rubyforge.org)
+ exit 1
+ end
+
+ def parse_gem_version(text)
+ $1 if text =~ /^[^#]*RAILS_GEM_VERSION\s*=\s*["']([!~<>=]*\s*[\d.]+)["']/
+ end
+
+ private
+ def read_environment_rb
+ File.read("#{RAILS_ROOT}/config/environment.rb")
+ end
+ end
+ end
+end
+
+# All that for this:
+Rails.boot!
@@ -0,0 +1,25 @@
+# SQLite version 3.x
+# gem install sqlite3-ruby (not necessary on OS X Leopard)
+development:
+ adapter: sqlite3
+ database: db/development.sqlite3
+ pool: 5
+ timeout: 5000
+
+# Warning: The database defined as "test" will be erased and
+# re-generated from your development database when you run "rake".
+# Do not set this db to the same as development or production.
+test: &TEST
+ adapter: sqlite3
+ database: db/test.sqlite3
+ pool: 5
+ timeout: 5000
+
+production:
+ adapter: sqlite3
+ database: db/production.sqlite3
+ pool: 5
+ timeout: 5000
+
+cucumber:
+ <<: *TEST
@@ -0,0 +1,15 @@
+set :application, "set your application name here"
+set :repository, "set your repository location here"
+
+# If you aren't deploying to /u/apps/#{application} on the target
+# servers (which is the default), you can specify the actual location
+# via the :deploy_to variable:
+# set :deploy_to, "/var/www/#{application}"
+
+# If you aren't using Subversion to manage your source code, specify
+# your SCM below:
+# set :scm, :subversion
+
+role :app, "your app-server here"
+role :web, "your web-server here"
+role :db, "your db-server here", :primary => true
No changes.
No changes.
@@ -0,0 +1,48 @@
+# Be sure to restart your server when you modify this file
+
+# Specifies gem version of Rails to use when vendor/rails is not present
+RAILS_GEM_VERSION = '2.3.3' 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 'less'
+ config.gem 'haml'
+ config.gem 'mleung-koujou', :lib => 'koujou', :source => 'http://gems.github.com'
+ config.gem 'cucumber', :lib => false
+ config.gem 'remarkable_rails', :lib => false
+ config.gem 'rspec-rails', :lib => false
+ config.gem 'rspec', :lib => false
+ # 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.
+
+ # Add additional load paths for your own custom dirs
+ # config.load_paths += %W( #{RAILS_ROOT}/extras )
+
+ # Specify gems that this application depends on and have them installed with rake gems:install
+ # config.gem "bj"
+ # config.gem "hpricot", :version => '0.6', :source => "http://code.whytheluckystiff.net"
+ # config.gem "sqlite3-ruby", :lib => "sqlite3"
+ # config.gem "aws-s3", :lib => "aws/s3"
+
+ # Only load the plugins named here, in the order given (default is alphabetical).
+ # :all can be used as a placeholder for all plugins not explicitly named
+ # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
+
+ # Skip frameworks you're not going to use. To use Rails without a database,
+ # you must remove the Active Record framework.
+ # config.frameworks -= [ :active_record, :active_resource, :action_mailer ]
+
+ # Activate observers that should always be running
+ # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
+
+ # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
+ # Run "rake -D time" for a list of tasks for finding time zone names.
+ config.time_zone = 'UTC'
+
+ # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
+ # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}')]
+ # config.i18n.default_locale = :de
+end
@@ -0,0 +1,22 @@
+config.cache_classes = true # This must be true for Cucumber to operate correctly!
+
+# Log error messages when you accidentally call methods on nil.
+config.whiny_nils = true
+
+# Show full error reports and disable caching
+config.action_controller.consider_all_requests_local = true
+config.action_controller.perform_caching = false
+
+# Disable request forgery protection in test environment
+config.action_controller.allow_forgery_protection = false
+
+# Tell Action Mailer not to deliver emails to the real world.
+# The :test delivery method accumulates sent emails in the
+# ActionMailer::Base.deliveries array.
+config.action_mailer.delivery_method = :test
+
+config.gem 'cucumber', :lib => false, :version => '>=0.3.96' unless File.directory?(File.join(Rails.root, 'vendor/plugins/cucumber'))
+config.gem 'webrat', :lib => false, :version => '>=0.5.0' unless File.directory?(File.join(Rails.root, 'vendor/plugins/webrat'))
+config.gem 'rspec', :lib => false, :version => '>=1.2.6' unless File.directory?(File.join(Rails.root, 'vendor/plugins/rspec'))
+config.gem 'rspec-rails', :lib => 'spec/rails', :version => '>=1.2.6' unless File.directory?(File.join(Rails.root, 'vendor/plugins/rspec-rails'))
+
@@ -0,0 +1,17 @@
+# Settings specified here will take precedence over those in config/environment.rb
+
+# In the development environment your application's code is reloaded on
+# every request. This slows down response time but is perfect for development
+# since you don't have to restart the webserver when you make code changes.
+config.cache_classes = false
+
+# Log error messages when you accidentally call methods on nil.
+config.whiny_nils = true
+
+# Show full error reports and disable caching
+config.action_controller.consider_all_requests_local = true
+config.action_view.debug_rjs = true
+config.action_controller.perform_caching = false
+
+# Don't care if the mailer can't send
+config.action_mailer.raise_delivery_errors = false
@@ -0,0 +1,28 @@
+# Settings specified here will take precedence over those in config/environment.rb
+
+# The production environment is meant for finished, "live" apps.
+# Code is not reloaded between requests
+config.cache_classes = true
+
+# Full error reports are disabled and caching is turned on
+config.action_controller.consider_all_requests_local = false
+config.action_controller.perform_caching = true
+config.action_view.cache_template_loading = true
+
+# See everything in the log (default is :info)
+# config.log_level = :debug
+
+# Use a different logger for distributed setups
+# config.logger = SyslogLogger.new
+
+# Use a different cache store in production
+# config.cache_store = :mem_cache_store
+
+# Enable serving of images, stylesheets, and javascripts from an asset server
+# config.action_controller.asset_host = "http://assets.example.com"
+
+# Disable delivery errors, bad email addresses will be ignored
+# config.action_mailer.raise_delivery_errors = false
+
+# Enable threaded mode
+# config.threadsafe!
@@ -0,0 +1,28 @@
+# Settings specified here will take precedence over those in config/environment.rb
+
+# The production environment is meant for finished, "live" apps.
+# Code is not reloaded between requests
+config.cache_classes = true
+
+# Full error reports are disabled and caching is turned on
+config.action_controller.consider_all_requests_local = false
+config.action_controller.perform_caching = true
+config.action_view.cache_template_loading = true
+
+# See everything in the log (default is :info)
+# config.log_level = :debug
+
+# Use a different logger for distributed setups
+# config.logger = SyslogLogger.new
+
+# Use a different cache store in production
+# config.cache_store = :mem_cache_store
+
+# Enable serving of images, stylesheets, and javascripts from an asset server
+# config.action_controller.asset_host = "http://assets.example.com"
+
+# Disable delivery errors, bad email addresses will be ignored
+# config.action_mailer.raise_delivery_errors = false
+
+# Enable threaded mode
+# config.threadsafe!
@@ -0,0 +1,29 @@
+# Settings specified here will take precedence over those in config/environment.rb
+
+# The test environment is used exclusively to run your application's
+# test suite. You never need to work with it otherwise. Remember that
+# your test database is "scratch space" for the test suite and is wiped
+# and recreated between test runs. Don't rely on the data there!
+config.cache_classes = true
+
+# Log error messages when you accidentally call methods on nil.
+config.whiny_nils = true
+
+# Show full error reports and disable caching
+config.action_controller.consider_all_requests_local = true
+config.action_controller.perform_caching = false
+config.action_view.cache_template_loading = true
+
+# Disable request forgery protection in test environment
+config.action_controller.allow_forgery_protection = false
+
+# Tell Action Mailer not to deliver emails to the real world.
+# The :test delivery method accumulates sent emails in the
+# ActionMailer::Base.deliveries array.
+config.action_mailer.delivery_method = :test
+
+# Use SQL instead of Active Record's schema dumper when creating the test database.
+# This is necessary if your schema can't be completely dumped by the schema dumper,
+# like if you have constraints or database-specific column types
+# config.active_record.schema_format = :sql
+require File.expand_path(File.dirname(__FILE__) + '/resource_helper')
@@ -0,0 +1,7 @@
+# Be sure to restart your server when you modify this file.
+
+# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
+# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
+
+# You can also remove all the silencers if you're trying do debug a problem that might steem from framework code.
+# Rails.backtrace_cleaner.remove_silencers!
Oops, something went wrong.

0 comments on commit 20cf95b

Please sign in to comment.