pupu 0.0.5.5 → 0.1.pre

Sign up to get free protection for your applications and to get access to all the features.
Files changed (141) hide show
  1. data/CHANGELOG +0 -16
  2. data/LICENSE +1 -1
  3. data/README.textile +3 -3
  4. data/Rakefile +28 -0
  5. data/TODO.txt +3 -8
  6. data/bin/pupu +24 -19
  7. data/examples/merb/README.textile +5 -3
  8. data/examples/merb/Rakefile +3 -3
  9. data/examples/merb/config/framework.rb +4 -4
  10. data/examples/merb/config/init.rb +0 -7
  11. data/examples/merb/public/pupu/autocompleter/README.textile +2 -2
  12. data/examples/merb/public/pupu/autocompleter/config.rb +1 -1
  13. data/examples/merb/public/pupu/blueprint/config.rb +7 -7
  14. data/examples/merb/public/pupu/flash/config.rb +1 -1
  15. data/examples/merb/public/pupu/lighter/config.rb +2 -2
  16. data/examples/merb/public/pupu/mootools/README.textile +1 -1
  17. data/examples/merb/public/pupu/mootools/config.rb +1 -1
  18. data/examples/rango/README.textile +6 -4
  19. data/examples/rango/init.rb +0 -7
  20. data/examples/rango/media/pupu/autocompleter/README.textile +2 -2
  21. data/examples/rango/media/pupu/autocompleter/config.rb +1 -1
  22. data/examples/rango/media/pupu/blueprint/config.rb +7 -7
  23. data/examples/rango/media/pupu/flash/config.rb +1 -1
  24. data/examples/rango/media/pupu/lighter/config.rb +2 -2
  25. data/examples/rango/media/pupu/mootools/README.textile +1 -1
  26. data/examples/rango/media/pupu/mootools/config.rb +1 -1
  27. data/lib/pupu.rb +1 -2
  28. data/lib/pupu/adapters/merb.rb +0 -12
  29. data/lib/pupu/adapters/rails.rb +0 -12
  30. data/lib/pupu/adapters/rango.rb +3 -25
  31. data/lib/pupu/cli.rb +11 -13
  32. data/lib/pupu/dsl.rb +13 -34
  33. data/lib/pupu/exceptions.rb +0 -2
  34. data/lib/pupu/github.rb +11 -23
  35. data/lib/pupu/helpers.rb +2 -8
  36. data/lib/pupu/metadata.rb +0 -2
  37. data/lib/pupu/parser.rb +4 -19
  38. data/lib/pupu/pupu.rb +21 -47
  39. data/lib/pupu/version.rb +3 -1
  40. data/pupu.gemspec +7 -15
  41. data/pupu.pre.gemspec +33 -5
  42. data/script/spec +14 -0
  43. data/spec/data/public/pupu/autocompleter/README.textile +2 -2
  44. data/spec/data/public/pupu/autocompleter/config.rb +1 -3
  45. data/{examples/merb/public/pupu/lighter/images/.gitignore → spec/pupu/adapters/merb_spec.rb} +0 -0
  46. data/{examples/rails/app/views/examples/arguments.html.erb → spec/pupu/adapters/rango_spec.rb} +0 -0
  47. data/spec/pupu/dsl_spec.rb +0 -3
  48. data/spec/pupu/exceptions_spec.rb +0 -3
  49. data/spec/pupu/github_spec.rb +1 -4
  50. data/spec/pupu/helpers_spec.rb +2 -5
  51. data/spec/pupu/metadata_spec.rb +0 -3
  52. data/spec/pupu/parser_spec.rb +1 -4
  53. data/spec/pupu/pupu_spec.rb +0 -3
  54. data/stubs/pupu/content/config.rb.rbt +1 -3
  55. data/stubs/pupu/postprocess.rb +0 -8
  56. data/stubs/pupu/setup.rb +0 -4
  57. data/tasks/benchmark.rake +11 -0
  58. data/tasks/gem.rake +23 -0
  59. data/tasks/hooks.rake +12 -0
  60. data/tasks/release.rake +68 -0
  61. data/tasks/spec.rake +27 -0
  62. data/tasks/submodules.rake +33 -0
  63. data/tasks/yardoc.rake +9 -0
  64. metadata +199 -290
  65. data/.gitignore +0 -9
  66. data/Gemfile +0 -9
  67. data/examples/merb/.gitignore +0 -17
  68. data/examples/merb/Gemfile +0 -27
  69. data/examples/merb/public/pupu/autocompleter/.gitignore +0 -5
  70. data/examples/merb/public/pupu/blueprint/.gitignore +0 -5
  71. data/examples/merb/public/pupu/flash/.gitignore +0 -5
  72. data/examples/merb/public/pupu/lighter/.gitignore +0 -10
  73. data/examples/merb/public/pupu/mootools/.gitignore +0 -5
  74. data/examples/rails/.gitignore +0 -7
  75. data/examples/rails/Gemfile +0 -28
  76. data/examples/rails/README.textile +0 -5
  77. data/examples/rails/Rakefile +0 -10
  78. data/examples/rails/app/controllers/application_controller.rb +0 -10
  79. data/examples/rails/app/controllers/home_controller.rb +0 -8
  80. data/examples/rails/app/helpers/application_helper.rb +0 -3
  81. data/examples/rails/app/views/examples/dependencies.html.erb +0 -0
  82. data/examples/rails/app/views/examples/simple.html.erb +0 -4
  83. data/examples/rails/app/views/index.html.erb +0 -7
  84. data/examples/rails/app/views/layout.html.erb +0 -12
  85. data/examples/rails/config/boot.rb +0 -110
  86. data/examples/rails/config/environment.rb +0 -55
  87. data/examples/rails/config/environments/development.rb +0 -17
  88. data/examples/rails/config/environments/production.rb +0 -28
  89. data/examples/rails/config/environments/test.rb +0 -28
  90. data/examples/rails/config/initializers/backtrace_silencers.rb +0 -7
  91. data/examples/rails/config/initializers/inflections.rb +0 -10
  92. data/examples/rails/config/initializers/mime_types.rb +0 -5
  93. data/examples/rails/config/initializers/new_rails_defaults.rb +0 -21
  94. data/examples/rails/config/initializers/session_store.rb +0 -15
  95. data/examples/rails/config/routes.rb +0 -43
  96. data/examples/rails/db/seeds.rb +0 -7
  97. data/examples/rails/public/404.html +0 -30
  98. data/examples/rails/public/422.html +0 -30
  99. data/examples/rails/public/500.html +0 -30
  100. data/examples/rails/public/favicon.ico +0 -0
  101. data/examples/rails/public/robots.txt +0 -5
  102. data/examples/rails/script/about +0 -4
  103. data/examples/rails/script/console +0 -3
  104. data/examples/rails/script/dbconsole +0 -3
  105. data/examples/rails/script/destroy +0 -3
  106. data/examples/rails/script/generate +0 -3
  107. data/examples/rails/script/performance/benchmarker +0 -3
  108. data/examples/rails/script/performance/profiler +0 -3
  109. data/examples/rails/script/plugin +0 -3
  110. data/examples/rails/script/runner +0 -3
  111. data/examples/rails/script/server +0 -3
  112. data/examples/rails/spec/application_spec.rb +0 -37
  113. data/examples/rails/spec/spec_helper.rb +0 -0
  114. data/examples/rango/.gitignore +0 -4
  115. data/examples/rango/Gemfile +0 -56
  116. data/examples/rango/media/pupu/autocompleter/.gitignore +0 -5
  117. data/examples/rango/media/pupu/blueprint/.gitignore +0 -5
  118. data/examples/rango/media/pupu/flash/.gitignore +0 -5
  119. data/examples/rango/media/pupu/lighter/.gitignore +0 -10
  120. data/examples/rango/media/pupu/lighter/images/.gitignore +0 -0
  121. data/examples/rango/media/pupu/mootools/.gitignore +0 -5
  122. data/gems/cache/media-path-0.1.2.gem +0 -0
  123. data/gems/cache/nake-0.0.8.gem +0 -0
  124. data/gems/cache/rspec-1.3.0.gem +0 -0
  125. data/gems/cache/term-ansicolor-1.0.4.gem +0 -0
  126. data/lib/pupu/tasks/pupu.nake +0 -52
  127. data/spec/data/public/pupu/autocompleter/.gitignore +0 -5
  128. data/stubs/pupu/content/%name%.gemspec.rbt +0 -47
  129. data/stubs/pupu/content/%name%.pre.gemspec.rbt +0 -8
  130. data/stubs/pupu/content/.gitignore +0 -12
  131. data/stubs/pupu/content/deps.rip +0 -5
  132. data/stubs/pupu/content/images/.gitignore +0 -0
  133. data/stubs/pupu/content/init.rb.rbt +0 -17
  134. data/stubs/pupu/content/lib/%name%.rb.rbt +0 -4
  135. data/stubs/pupu/content/lib/%name%/adapters/rails.rb +0 -0
  136. data/stubs/pupu/content/lib/%name%/adapters/rango.rb +0 -0
  137. data/stubs/pupu/content/spec/%name%/.gitignore +0 -0
  138. data/stubs/pupu/content/spec/%name%_spec.rb.rbt +0 -10
  139. data/stubs/pupu/content/spec/spec.opts +0 -5
  140. data/stubs/pupu/content/spec/spec_helper.rb.rbt +0 -7
  141. data/tasks.rb +0 -37
data/.gitignore DELETED
@@ -1,9 +0,0 @@
1
- /*.gem
2
-
3
- .DS_Store
4
- .cache
5
- .yardoc
6
-
7
- script/*
8
- gems/*
9
- !gems/cache
data/Gemfile DELETED
@@ -1,9 +0,0 @@
1
- # configuration
2
- bundle_path "gems"
3
- bin_path "script"
4
- disable_rubygems
5
-
6
- # gems
7
- gem "nake"
8
- gem "media-path"
9
- gem "rspec", only: "test"
@@ -1,17 +0,0 @@
1
- # You usually don't want to ignore gems/cache, but examples are
2
- # part of the pupu gem and we want to keep it as small as possible
3
- gems/*
4
- bin/*
5
-
6
- log/*
7
- tmp/*
8
-
9
- schema/schema.rb
10
- schema/*_structure.sql
11
- schema/*.sqlite3
12
- schema/*.sqlite
13
- schema/*.db
14
-
15
- *.sqlite
16
- *.sqlite3
17
- *.db
@@ -1,27 +0,0 @@
1
- # encoding: utf-8
2
-
3
- # === Usage === #
4
- # Run gem bundle for installation. You have to have bundler gem installed.
5
-
6
- # http://github.com/wycats/bundler
7
- # http://litanyagainstfear.com/blog/2009/10/14/gem-bundler-is-the-future
8
- # http://yehudakatz.com/2009/11/03/using-the-new-gem-bundler-today
9
- # http://www.engineyard.com/blog/2009/using-the-rubygems-bundler-for-your-app
10
-
11
- gem "merb-core" # git: "git://github.com/merb/merb.git"
12
- gem "media-path" # git: "git://github.com/botanicus/media-path.git"
13
- gem "rspec", only: :test # git: "git://github.com/dchelimsky/rspec.git"
14
-
15
- # === Bundler Setup === #
16
- # Specify where the bundled gems should be stashed. This directory will
17
- # be a gem repository where all gems are downloaded to and installed to.
18
- #
19
- # This is an optional setting.
20
- # The default is: vendor/gems
21
- bundle_path "gems"
22
-
23
- # Specify where gem executables should be copied to.
24
- #
25
- # This is an optional setting.
26
- # The default is: bin
27
- bin_path "bin"
@@ -1,5 +0,0 @@
1
- .DS_Store
2
- *~
3
- .*.swp
4
- .#*
5
- .svn/*
@@ -1,5 +0,0 @@
1
- .DS_Store
2
- *~
3
- .*.swp
4
- .#*
5
- .svn/*
@@ -1,5 +0,0 @@
1
- .DS_Store
2
- *~
3
- .*.swp
4
- .#*
5
- .svn/*
@@ -1,10 +0,0 @@
1
- *~
2
- .*.swp
3
- .#*
4
- .svn/*
5
- .DS_Store
6
- .yardoc
7
- .cache
8
- pkg/
9
- nbproject/
10
- metadata.yml
@@ -1,5 +0,0 @@
1
- .DS_Store
2
- *~
3
- .*.swp
4
- .#*
5
- .svn/*
@@ -1,7 +0,0 @@
1
- # You usually don't want to ignore gems/cache, but examples are
2
- # part of the pupu gem and we want to keep it as small as possible
3
- gems/*
4
- bin/*
5
-
6
- tmp/*
7
- log/*
@@ -1,28 +0,0 @@
1
- # encoding: utf-8
2
-
3
- # === Usage === #
4
- # Run gem bundle for installation. You have to have bundler gem installed.
5
-
6
- # http://github.com/wycats/bundler
7
- # http://litanyagainstfear.com/blog/2009/10/14/gem-bundler-is-the-future
8
- # http://yehudakatz.com/2009/11/03/using-the-new-gem-bundler-today
9
- # http://www.engineyard.com/blog/2009/using-the-rubygems-bundler-for-your-app
10
-
11
- gem "rails" # git: "git://github.com/rails/rails.git"
12
- gem "media-path" # git: "git://github.com/botanicus/media-path.git"
13
- gem "rspec", only: :test # git: "git://github.com/dchelimsky/rspec.git"
14
- gem "rspec-rails", only: :test # git: "git://github.com/dchelimsky/rspec-rails.git"
15
-
16
- # === Bundler Setup === #
17
- # Specify where the bundled gems should be stashed. This directory will
18
- # be a gem repository where all gems are downloaded to and installed to.
19
- #
20
- # This is an optional setting.
21
- # The default is: vendor/gems
22
- bundle_path "gems"
23
-
24
- # Specify where gem executables should be copied to.
25
- #
26
- # This is an optional setting.
27
- # The default is: bin
28
- bin_path "bin"
@@ -1,5 +0,0 @@
1
- h1. Rails Example
2
-
3
- * @gem bundle@ (you have to have bundler 0.7.2 installed)
4
- * Run with @./script/server@ (will start at @http://localhost:3000@)
5
- * Specs: @./script/spec spec/application_spec.rb --colour@
@@ -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,10 +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
- protect_from_forgery # See ActionController::RequestForgeryProtection for details
7
-
8
- # Scrub sensitive parameters from your log
9
- # filter_parameter_logging :password
10
- end
@@ -1,8 +0,0 @@
1
- class HomeController < ApplicationController
2
- def index
3
- end
4
-
5
- def static
6
- render template: params[:template]
7
- end
8
- 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,4 +0,0 @@
1
- <% content_for :title, "Simple Example" %>
2
- <% content_for :head do %>
3
- <%= pupu :mootools %>
4
- <% end %>
@@ -1,7 +0,0 @@
1
- <% content_for :title, "Pupu Examples" %>
2
-
3
- <ul>
4
- <li><a href="/examples/simple">Simple Example</a></li>
5
- <li><a href="/examples/dependencies">Example With Dependencies</a></li>
6
- <li><a href="/examples/arguments">Example With Arguments</a></li>
7
- </ul>
@@ -1,12 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2
- <html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
3
- <head>
4
- <title><%= yield :title %></title>
5
- <%= yield :head %>
6
- </head>
7
- <body>
8
- <h1><%= yield :title %></h1>
9
- <%= yield :layout %>
10
- <pre><%= yield :head %></pre>
11
- </body>
12
- </html>
@@ -1,110 +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
- Rails::GemDependency.add_frozen_gem_path
48
- end
49
- end
50
-
51
- class GemBoot < Boot
52
- def load_initializer
53
- self.class.load_rubygems
54
- load_rails_gem
55
- require 'initializer'
56
- end
57
-
58
- def load_rails_gem
59
- if version = self.class.gem_version
60
- gem 'rails', version
61
- else
62
- gem 'rails'
63
- end
64
- rescue Gem::LoadError => load_error
65
- $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.)
66
- exit 1
67
- end
68
-
69
- class << self
70
- def rubygems_version
71
- Gem::RubyGemsVersion rescue nil
72
- end
73
-
74
- def gem_version
75
- if defined? RAILS_GEM_VERSION
76
- RAILS_GEM_VERSION
77
- elsif ENV.include?('RAILS_GEM_VERSION')
78
- ENV['RAILS_GEM_VERSION']
79
- else
80
- parse_gem_version(read_environment_rb)
81
- end
82
- end
83
-
84
- def load_rubygems
85
- min_version = '1.3.2'
86
- require 'rubygems'
87
- unless rubygems_version >= min_version
88
- $stderr.puts %Q(Rails requires RubyGems >= #{min_version} (you have #{rubygems_version}). Please `gem update --system` and try again.)
89
- exit 1
90
- end
91
-
92
- rescue LoadError
93
- $stderr.puts %Q(Rails requires RubyGems >= #{min_version}. Please install RubyGems and try again: http://rubygems.rubyforge.org)
94
- exit 1
95
- end
96
-
97
- def parse_gem_version(text)
98
- $1 if text =~ /^[^#]*RAILS_GEM_VERSION\s*=\s*["']([!~<>=]*\s*[\d.]+)["']/
99
- end
100
-
101
- private
102
- def read_environment_rb
103
- File.read("#{RAILS_ROOT}/config/environment.rb")
104
- end
105
- end
106
- end
107
- end
108
-
109
- # All that for this:
110
- Rails.boot!
@@ -1,55 +0,0 @@
1
- # Be sure to restart your server when you modify this file
2
-
3
- # bundler
4
- begin
5
- require_relative "../gems/environment.rb"
6
- rescue LoadError => exception
7
- abort "LoadError during loading gems/environment: #{exception.message}\nRun gem bundle to fix it."
8
- end
9
-
10
- # setup $:
11
- pupu_libdir = File.expand_path("../../lib")
12
- raise Errno::ENOENT, "#{pupu_libdir} doesn't exist" unless File.directory?(pupu_libdir)
13
- $:.unshift(pupu_libdir)
14
-
15
- # Specifies gem version of Rails to use when vendor/rails is not present
16
- RAILS_GEM_VERSION = '2.3.5' unless defined? RAILS_GEM_VERSION
17
-
18
- # Bootstrap the Rails environment, frameworks, and default configuration
19
- require File.join(File.dirname(__FILE__), 'boot')
20
-
21
- require "pupu/adapters/rails"
22
-
23
- Rails::Initializer.run do |config|
24
- # Settings in config/environments/* take precedence over those specified here.
25
- # Application configuration should go into files in config/initializers
26
- # -- all .rb files in that directory are automatically loaded.
27
-
28
- # Add additional load paths for your own custom dirs
29
- # config.load_paths += %W( #{RAILS_ROOT}/extras )
30
-
31
- # Specify gems that this application depends on and have them installed with rake gems:install
32
- # config.gem "bj"
33
- # config.gem "hpricot", :version => '0.6', :source => "http://code.whytheluckystiff.net"
34
- # config.gem "sqlite3-ruby", :lib => "sqlite3"
35
- # config.gem "aws-s3", :lib => "aws/s3"
36
-
37
- # Only load the plugins named here, in the order given (default is alphabetical).
38
- # :all can be used as a placeholder for all plugins not explicitly named
39
- # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
40
-
41
- # Skip frameworks you're not going to use. To use Rails without a database,
42
- # you must remove the Active Record framework.
43
- config.frameworks -= [:active_record, :active_resource, :action_mailer]
44
-
45
- # Activate observers that should always be running
46
- # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
47
-
48
- # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
49
- # Run "rake -D time" for a list of tasks for finding time zone names.
50
- config.time_zone = 'UTC'
51
-
52
- # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
53
- # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}')]
54
- # config.i18n.default_locale = :de
55
- end
@@ -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,28 +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
- # Full error reports are disabled and caching is turned on
8
- config.action_controller.consider_all_requests_local = false
9
- config.action_controller.perform_caching = true
10
- config.action_view.cache_template_loading = true
11
-
12
- # See everything in the log (default is :info)
13
- # config.log_level = :debug
14
-
15
- # Use a different logger for distributed setups
16
- # config.logger = SyslogLogger.new
17
-
18
- # Use a different cache store in production
19
- # config.cache_store = :mem_cache_store
20
-
21
- # Enable serving of images, stylesheets, and javascripts from an asset server
22
- # config.action_controller.asset_host = "http://assets.example.com"
23
-
24
- # Disable delivery errors, bad email addresses will be ignored
25
- # config.action_mailer.raise_delivery_errors = false
26
-
27
- # Enable threaded mode
28
- # config.threadsafe!
@@ -1,28 +0,0 @@
1
- # Settings specified here will take precedence over those in config/environment.rb
2
-
3
- # The test environment is used exclusively to run your application's
4
- # test suite. You never need to work with it otherwise. Remember that
5
- # your test database is "scratch space" for the test suite and is wiped
6
- # and recreated between test runs. Don't rely on the data there!
7
- config.cache_classes = true
8
-
9
- # Log error messages when you accidentally call methods on nil.
10
- config.whiny_nils = true
11
-
12
- # Show full error reports and disable caching
13
- config.action_controller.consider_all_requests_local = true
14
- config.action_controller.perform_caching = false
15
- config.action_view.cache_template_loading = true
16
-
17
- # Disable request forgery protection in test environment
18
- config.action_controller.allow_forgery_protection = false
19
-
20
- # Tell Action Mailer not to deliver emails to the real world.
21
- # The :test delivery method accumulates sent emails in the
22
- # ActionMailer::Base.deliveries array.
23
- config.action_mailer.delivery_method = :test
24
-
25
- # Use SQL instead of Active Record's schema dumper when creating the test database.
26
- # This is necessary if your schema can't be completely dumped by the schema dumper,
27
- # like if you have constraints or database-specific column types
28
- # config.active_record.schema_format = :sql