cypress-on-rails 0.2.2 → 1.0.0.beta2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (167) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +6 -1
  3. data/.rspec +1 -0
  4. data/.travis.yml +29 -0
  5. data/CHANGELOG.md +6 -0
  6. data/README.md +155 -54
  7. data/Rakefile +8 -0
  8. data/cypress-on-rails.gemspec +10 -9
  9. data/lib/cypress-on-rails.rb +3 -1
  10. data/lib/cypress/smart_factory_wrapper.rb +3 -0
  11. data/lib/cypress_dev.rb +4 -0
  12. data/lib/cypress_dev/command_executor.rb +33 -0
  13. data/lib/cypress_dev/configuration.rb +37 -0
  14. data/lib/cypress_dev/middleware.rb +65 -0
  15. data/lib/{cypress → cypress_dev}/railtie.rb +5 -7
  16. data/lib/cypress_dev/simple_rails_factory.rb +17 -0
  17. data/lib/cypress_dev/smart_factory_wrapper.rb +79 -0
  18. data/lib/cypress_dev/version.rb +3 -0
  19. data/lib/generators/cypress_dev/install_generator.rb +59 -0
  20. data/lib/generators/cypress_dev/templates/config/initializers/cypress_dev.rb.erb +9 -0
  21. data/lib/generators/cypress_dev/templates/spec/cypress.json +4 -0
  22. data/lib/generators/cypress_dev/templates/spec/cypress/app_commands/clean.rb +7 -0
  23. data/lib/generators/cypress_dev/templates/spec/cypress/app_commands/eval.rb +1 -0
  24. data/lib/generators/cypress_dev/templates/spec/cypress/app_commands/factory_bot.rb +12 -0
  25. data/lib/generators/cypress_dev/templates/spec/cypress/app_commands/scenarios/basic.rb +2 -0
  26. data/lib/generators/cypress_dev/templates/spec/cypress/cypress_helper.rb +30 -0
  27. data/lib/generators/cypress_dev/templates/spec/cypress/integration/on_rails_spec.js +33 -0
  28. data/lib/generators/cypress_dev/templates/spec/cypress/support/commands.js +25 -0
  29. data/lib/generators/cypress_dev/templates/spec/cypress/support/index.js +21 -0
  30. data/lib/generators/cypress_dev/templates/spec/cypress/support/on-rails.js +33 -0
  31. data/spec/cypress_dev/command_executor/cypress_helper.rb +6 -0
  32. data/spec/cypress_dev/command_executor/test_command.rb +1 -0
  33. data/spec/cypress_dev/command_executor/test_command_with_options.rb +1 -0
  34. data/spec/cypress_dev/command_executor_spec.rb +33 -0
  35. data/spec/cypress_dev/configuration_spec.rb +23 -0
  36. data/spec/cypress_dev/middleware_spec.rb +104 -0
  37. data/spec/cypress_dev/railtie_spec.rb +22 -0
  38. data/spec/cypress_dev/smart_factory_wrapper_spec.rb +83 -0
  39. data/spec/integrations/rails_3_2/.gitignore +9 -0
  40. data/spec/integrations/rails_3_2/Gemfile +7 -0
  41. data/spec/integrations/rails_3_2/README.rdoc +261 -0
  42. data/spec/integrations/rails_3_2/Rakefile +7 -0
  43. data/spec/integrations/rails_3_2/app/assets/stylesheets/application.css +13 -0
  44. data/spec/integrations/rails_3_2/app/controllers/application_controller.rb +3 -0
  45. data/spec/integrations/rails_3_2/app/controllers/welcome_controller.rb +4 -0
  46. data/spec/integrations/rails_3_2/app/helpers/application_helper.rb +2 -0
  47. data/spec/integrations/rails_3_2/app/models/post.rb +13 -0
  48. data/spec/integrations/rails_3_2/app/views/layouts/application.html.erb +13 -0
  49. data/spec/integrations/rails_3_2/app/views/welcome/index.html.erb +5 -0
  50. data/spec/integrations/rails_3_2/bin/rails +6 -0
  51. data/spec/integrations/rails_3_2/config.ru +4 -0
  52. data/spec/integrations/rails_3_2/config/application.rb +69 -0
  53. data/spec/integrations/rails_3_2/config/boot.rb +6 -0
  54. data/spec/integrations/rails_3_2/config/environment.rb +5 -0
  55. data/spec/integrations/rails_3_2/config/environments/development.rb +31 -0
  56. data/spec/integrations/rails_3_2/config/environments/production.rb +64 -0
  57. data/spec/integrations/rails_3_2/config/environments/test.rb +35 -0
  58. data/spec/integrations/rails_3_2/config/initializers/backtrace_silencers.rb +7 -0
  59. data/spec/integrations/rails_3_2/config/initializers/inflections.rb +15 -0
  60. data/spec/integrations/rails_3_2/config/initializers/mime_types.rb +5 -0
  61. data/spec/integrations/rails_3_2/config/initializers/secret_token.rb +7 -0
  62. data/spec/integrations/rails_3_2/config/initializers/session_store.rb +8 -0
  63. data/spec/integrations/rails_3_2/config/initializers/wrap_parameters.rb +10 -0
  64. data/spec/integrations/rails_3_2/config/locales/en.yml +5 -0
  65. data/spec/integrations/rails_3_2/config/routes.rb +60 -0
  66. data/spec/integrations/rails_3_2/public/404.html +26 -0
  67. data/spec/integrations/rails_3_2/public/422.html +26 -0
  68. data/spec/integrations/rails_3_2/public/500.html +25 -0
  69. data/spec/integrations/rails_3_2/public/favicon.ico +0 -0
  70. data/spec/integrations/rails_3_2/public/robots.txt +5 -0
  71. data/spec/integrations/rails_3_2/test.sh +30 -0
  72. data/spec/integrations/rails_3_2/tmp/.keep +0 -0
  73. data/spec/integrations/rails_3_2/vendor/.gitkeep +0 -0
  74. data/spec/integrations/rails_4_2/.gitignore +10 -0
  75. data/spec/integrations/rails_4_2/Gemfile +8 -0
  76. data/spec/integrations/rails_4_2/README.rdoc +28 -0
  77. data/spec/integrations/rails_4_2/Rakefile +6 -0
  78. data/spec/integrations/rails_4_2/app/controllers/application_controller.rb +5 -0
  79. data/spec/integrations/rails_4_2/app/controllers/welcome_controller.rb +4 -0
  80. data/spec/integrations/rails_4_2/app/models/post.rb +13 -0
  81. data/spec/integrations/rails_4_2/app/views/layouts/application.html.erb +12 -0
  82. data/spec/integrations/rails_4_2/app/views/welcome/index.html.erb +5 -0
  83. data/spec/integrations/rails_4_2/bin/bundle +3 -0
  84. data/spec/integrations/rails_4_2/bin/rails +4 -0
  85. data/spec/integrations/rails_4_2/bin/rake +4 -0
  86. data/spec/integrations/rails_4_2/bin/setup +29 -0
  87. data/spec/integrations/rails_4_2/config.ru +4 -0
  88. data/spec/integrations/rails_4_2/config/application.rb +33 -0
  89. data/spec/integrations/rails_4_2/config/boot.rb +3 -0
  90. data/spec/integrations/rails_4_2/config/environment.rb +5 -0
  91. data/spec/integrations/rails_4_2/config/environments/development.rb +25 -0
  92. data/spec/integrations/rails_4_2/config/environments/production.rb +64 -0
  93. data/spec/integrations/rails_4_2/config/environments/test.rb +42 -0
  94. data/spec/integrations/rails_4_2/config/initializers/backtrace_silencers.rb +7 -0
  95. data/spec/integrations/rails_4_2/config/initializers/cookies_serializer.rb +3 -0
  96. data/spec/integrations/rails_4_2/config/initializers/filter_parameter_logging.rb +4 -0
  97. data/spec/integrations/rails_4_2/config/initializers/inflections.rb +16 -0
  98. data/spec/integrations/rails_4_2/config/initializers/mime_types.rb +4 -0
  99. data/spec/integrations/rails_4_2/config/initializers/session_store.rb +3 -0
  100. data/spec/integrations/rails_4_2/config/initializers/to_time_preserves_timezone.rb +10 -0
  101. data/spec/integrations/rails_4_2/config/initializers/wrap_parameters.rb +9 -0
  102. data/spec/integrations/rails_4_2/config/locales/en.yml +23 -0
  103. data/spec/integrations/rails_4_2/config/routes.rb +56 -0
  104. data/spec/integrations/rails_4_2/config/secrets.yml +22 -0
  105. data/spec/integrations/rails_4_2/public/404.html +67 -0
  106. data/spec/integrations/rails_4_2/public/422.html +67 -0
  107. data/spec/integrations/rails_4_2/public/500.html +66 -0
  108. data/spec/integrations/rails_4_2/public/favicon.ico +0 -0
  109. data/spec/integrations/rails_4_2/public/robots.txt +5 -0
  110. data/spec/integrations/rails_4_2/test.sh +31 -0
  111. data/spec/integrations/rails_4_2/vendor/.keep +0 -0
  112. data/spec/integrations/rails_5_2/.gitignore +10 -0
  113. data/spec/integrations/rails_5_2/Gemfile +12 -0
  114. data/spec/integrations/rails_5_2/README.md +24 -0
  115. data/spec/integrations/rails_5_2/Rakefile +6 -0
  116. data/spec/integrations/rails_5_2/app/controllers/application_controller.rb +2 -0
  117. data/spec/integrations/rails_5_2/app/controllers/welcome_controller.rb +4 -0
  118. data/spec/integrations/rails_5_2/app/jobs/application_job.rb +2 -0
  119. data/spec/integrations/rails_5_2/app/models/post.rb +13 -0
  120. data/spec/integrations/rails_5_2/app/views/layouts/application.html.erb +12 -0
  121. data/spec/integrations/rails_5_2/app/views/welcome/index.html.erb +5 -0
  122. data/spec/integrations/rails_5_2/bin/bundle +3 -0
  123. data/spec/integrations/rails_5_2/bin/rails +4 -0
  124. data/spec/integrations/rails_5_2/bin/rake +4 -0
  125. data/spec/integrations/rails_5_2/bin/setup +25 -0
  126. data/spec/integrations/rails_5_2/bin/update +25 -0
  127. data/spec/integrations/rails_5_2/config.ru +5 -0
  128. data/spec/integrations/rails_5_2/config/application.rb +37 -0
  129. data/spec/integrations/rails_5_2/config/boot.rb +4 -0
  130. data/spec/integrations/rails_5_2/config/credentials.yml.enc +1 -0
  131. data/spec/integrations/rails_5_2/config/environment.rb +5 -0
  132. data/spec/integrations/rails_5_2/config/environments/development.rb +40 -0
  133. data/spec/integrations/rails_5_2/config/environments/production.rb +68 -0
  134. data/spec/integrations/rails_5_2/config/environments/test.rb +36 -0
  135. data/spec/integrations/rails_5_2/config/initializers/application_controller_renderer.rb +8 -0
  136. data/spec/integrations/rails_5_2/config/initializers/backtrace_silencers.rb +7 -0
  137. data/spec/integrations/rails_5_2/config/initializers/content_security_policy.rb +25 -0
  138. data/spec/integrations/rails_5_2/config/initializers/cookies_serializer.rb +5 -0
  139. data/spec/integrations/rails_5_2/config/initializers/filter_parameter_logging.rb +4 -0
  140. data/spec/integrations/rails_5_2/config/initializers/inflections.rb +16 -0
  141. data/spec/integrations/rails_5_2/config/initializers/mime_types.rb +4 -0
  142. data/spec/integrations/rails_5_2/config/initializers/wrap_parameters.rb +9 -0
  143. data/spec/integrations/rails_5_2/config/locales/en.yml +33 -0
  144. data/spec/integrations/rails_5_2/config/master.key +1 -0
  145. data/spec/integrations/rails_5_2/config/routes.rb +4 -0
  146. data/spec/integrations/rails_5_2/public/404.html +67 -0
  147. data/spec/integrations/rails_5_2/public/422.html +67 -0
  148. data/spec/integrations/rails_5_2/public/500.html +66 -0
  149. data/spec/integrations/rails_5_2/public/apple-touch-icon-precomposed.png +0 -0
  150. data/spec/integrations/rails_5_2/public/apple-touch-icon.png +0 -0
  151. data/spec/integrations/rails_5_2/public/favicon.ico +0 -0
  152. data/spec/integrations/rails_5_2/public/robots.txt +1 -0
  153. data/spec/integrations/rails_5_2/test.sh +31 -0
  154. data/spec/integrations/rails_5_2/tmp/.keep +0 -0
  155. data/spec/integrations/rails_5_2/vendor/.keep +0 -0
  156. data/spec/spec_helper.rb +104 -0
  157. metadata +177 -25
  158. data/Gemfile.lock +0 -32
  159. data/bin/cypress +0 -3
  160. data/lib/cypress.rb +0 -27
  161. data/lib/cypress/configuration.rb +0 -41
  162. data/lib/cypress/middleware.rb +0 -69
  163. data/lib/cypress/runner.rb +0 -42
  164. data/lib/cypress/scenario_bank.rb +0 -21
  165. data/lib/cypress/scenario_context.rb +0 -23
  166. data/lib/cypress/version.rb +0 -3
  167. data/lib/generators/install_generator.rb +0 -77
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env rake
2
+ # Add your own tasks in files placed in lib/tasks ending in .rake,
3
+ # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
4
+
5
+ require File.expand_path('../config/application', __FILE__)
6
+
7
+ Rails32::Application.load_tasks
@@ -0,0 +1,13 @@
1
+ /*
2
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
3
+ * listed below.
4
+ *
5
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
+ * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7
+ *
8
+ * You're free to add application-wide styles to this file and they'll appear at the top of the
9
+ * compiled file, but it's generally better to create a new file per style scope.
10
+ *
11
+ *= require_self
12
+ *= require_tree .
13
+ */
@@ -0,0 +1,3 @@
1
+ class ApplicationController < ActionController::Base
2
+ protect_from_forgery
3
+ end
@@ -0,0 +1,4 @@
1
+ class WelcomeController < ApplicationController
2
+ def index
3
+ end
4
+ end
@@ -0,0 +1,2 @@
1
+ module ApplicationHelper
2
+ end
@@ -0,0 +1,13 @@
1
+ class Post < OpenStruct
2
+ def self.create(attributes)
3
+ @all ||= []
4
+ post = new(attributes)
5
+ @all << post
6
+ attributes['all'] = @all.index(post)
7
+ end
8
+
9
+ def self.all
10
+ @all ||= []
11
+ @all
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Rails32</title>
5
+ <%= stylesheet_link_tag "application", :media => "all" %>
6
+ <%= csrf_meta_tags %>
7
+ </head>
8
+ <body>
9
+
10
+ <%= yield %>
11
+
12
+ </body>
13
+ </html>
@@ -0,0 +1,5 @@
1
+ <h1>Welcome</h1>
2
+ <p>Posts:</p>
3
+ <% Post.all.each do |post| %>
4
+ <p><%= post.inspect %></p>
5
+ <% end %>
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
+
4
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
5
+ require File.expand_path('../../config/boot', __FILE__)
6
+ require 'rails/commands'
@@ -0,0 +1,4 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+ run Rails32::Application
@@ -0,0 +1,69 @@
1
+ require File.expand_path('../boot', __FILE__)
2
+
3
+ # Pick the frameworks you want:
4
+ # require "active_record/railtie"
5
+ require "action_controller/railtie"
6
+ require "action_mailer/railtie"
7
+ require "active_resource/railtie"
8
+ require "sprockets/railtie"
9
+ # require "rails/test_unit/railtie"
10
+
11
+ if defined?(Bundler)
12
+ # If you precompile assets before deploying to production, use this line
13
+ Bundler.require(*Rails.groups(:assets => %w(development test)))
14
+ # If you want your assets lazily compiled in production, use this line
15
+ # Bundler.require(:default, :assets, Rails.env)
16
+ end
17
+
18
+ module Rails32
19
+ class Application < Rails::Application
20
+ # Settings in config/environments/* take precedence over those specified here.
21
+ # Application configuration should go into files in config/initializers
22
+ # -- all .rb files in that directory are automatically loaded.
23
+
24
+ # Custom directories with classes and modules you want to be autoloadable.
25
+ # config.autoload_paths += %W(#{config.root}/extras)
26
+
27
+ # Only load the plugins named here, in the order given (default is alphabetical).
28
+ # :all can be used as a placeholder for all plugins not explicitly named.
29
+ # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
30
+
31
+ # Activate observers that should always be running.
32
+ # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
33
+
34
+ # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
35
+ # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
36
+ # config.time_zone = 'Central Time (US & Canada)'
37
+
38
+ # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
39
+ # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
40
+ # config.i18n.default_locale = :de
41
+
42
+ # Configure the default encoding used in templates for Ruby 1.9.
43
+ config.encoding = "utf-8"
44
+
45
+ # Configure sensitive parameters which will be filtered from the log file.
46
+ config.filter_parameters += [:password]
47
+
48
+ # Enable escaping HTML in JSON.
49
+ config.active_support.escape_html_entities_in_json = true
50
+
51
+ # Use SQL instead of Active Record's schema dumper when creating the database.
52
+ # This is necessary if your schema can't be completely dumped by the schema dumper,
53
+ # like if you have constraints or database-specific column types
54
+ # config.active_record.schema_format = :sql
55
+
56
+ # Enforce whitelist mode for mass assignment.
57
+ # This will create an empty whitelist of attributes available for mass-assignment for all models
58
+ # in your app. As such, your models will need to explicitly whitelist or blacklist accessible
59
+ # parameters by using an attr_accessible or attr_protected declaration.
60
+ # config.active_record.whitelist_attributes = true
61
+
62
+ # Enable the asset pipeline
63
+ config.assets.enabled = true
64
+
65
+ # Version of your assets, change this if you want to expire all your assets
66
+ config.assets.version = '1.0'
67
+ config.logger = Logger.new(STDOUT)
68
+ end
69
+ end
@@ -0,0 +1,6 @@
1
+ require 'rubygems'
2
+
3
+ # Set up gems listed in the Gemfile.
4
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
5
+
6
+ require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
@@ -0,0 +1,5 @@
1
+ # Load the rails application
2
+ require File.expand_path('../application', __FILE__)
3
+
4
+ # Initialize the rails application
5
+ Rails32::Application.initialize!
@@ -0,0 +1,31 @@
1
+ Rails32::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb
3
+
4
+ # In the development environment your application's code is reloaded on
5
+ # every request. This slows down response time but is perfect for development
6
+ # since you don't have to restart the web server when you make code changes.
7
+ config.cache_classes = false
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.consider_all_requests_local = 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
18
+
19
+ # Print deprecation notices to the Rails logger
20
+ config.active_support.deprecation = :log
21
+
22
+ # Only use best-standards-support built into browsers
23
+ config.action_dispatch.best_standards_support = :builtin
24
+
25
+
26
+ # Do not compress assets
27
+ config.assets.compress = false
28
+
29
+ # Expands the lines which load the assets
30
+ config.assets.debug = true
31
+ end
@@ -0,0 +1,64 @@
1
+ Rails32::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb
3
+
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.consider_all_requests_local = false
9
+ config.action_controller.perform_caching = true
10
+
11
+ # Disable Rails's static asset server (Apache or nginx will already do this)
12
+ config.serve_static_assets = false
13
+
14
+ # Compress JavaScripts and CSS
15
+ config.assets.compress = true
16
+
17
+ # Don't fallback to assets pipeline if a precompiled asset is missed
18
+ config.assets.compile = false
19
+
20
+ # Generate digests for assets URLs
21
+ config.assets.digest = true
22
+
23
+ # Defaults to nil and saved in location specified by config.assets.prefix
24
+ # config.assets.manifest = YOUR_PATH
25
+
26
+ # Specifies the header that your server uses for sending files
27
+ # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
28
+ # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
29
+
30
+ # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
31
+ # config.force_ssl = true
32
+
33
+ # See everything in the log (default is :info)
34
+ # config.log_level = :debug
35
+
36
+ # Prepend all log lines with the following tags
37
+ # config.log_tags = [ :subdomain, :uuid ]
38
+
39
+ # Use a different logger for distributed setups
40
+ # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
41
+
42
+ # Use a different cache store in production
43
+ # config.cache_store = :mem_cache_store
44
+
45
+ # Enable serving of images, stylesheets, and JavaScripts from an asset server
46
+ # config.action_controller.asset_host = "http://assets.example.com"
47
+
48
+ # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
49
+ # config.assets.precompile += %w( search.js )
50
+
51
+ # Disable delivery errors, bad email addresses will be ignored
52
+ # config.action_mailer.raise_delivery_errors = false
53
+
54
+ # Enable threaded mode
55
+ # config.threadsafe!
56
+
57
+ # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
58
+ # the I18n.default_locale when a translation can not be found)
59
+ config.i18n.fallbacks = true
60
+
61
+ # Send deprecation notices to registered listeners
62
+ config.active_support.deprecation = :notify
63
+
64
+ end
@@ -0,0 +1,35 @@
1
+ Rails32::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb
3
+
4
+ # The test environment is used exclusively to run your application's
5
+ # test suite. You never need to work with it otherwise. Remember that
6
+ # your test database is "scratch space" for the test suite and is wiped
7
+ # and recreated between test runs. Don't rely on the data there!
8
+ config.cache_classes = ENV['CI'].present?
9
+
10
+ # Configure static asset server for tests with Cache-Control for performance
11
+ config.serve_static_assets = true
12
+ config.static_cache_control = "public, max-age=3600"
13
+
14
+ # Log error messages when you accidentally call methods on nil
15
+ config.whiny_nils = true
16
+
17
+ # Show full error reports and disable caching
18
+ config.consider_all_requests_local = true
19
+ config.action_controller.perform_caching = false
20
+
21
+ # Raise exceptions instead of rendering exception templates
22
+ config.action_dispatch.show_exceptions = false
23
+
24
+ # Disable request forgery protection in test environment
25
+ config.action_controller.allow_forgery_protection = false
26
+
27
+ # Tell Action Mailer not to deliver emails to the real world.
28
+ # The :test delivery method accumulates sent emails in the
29
+ # ActionMailer::Base.deliveries array.
30
+ config.action_mailer.delivery_method = :test
31
+
32
+
33
+ # Print deprecation notices to the stderr
34
+ config.active_support.deprecation = :stderr
35
+ end
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
+ # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
+
6
+ # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
+ # Rails.backtrace_cleaner.remove_silencers!
@@ -0,0 +1,15 @@
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
+ # ActiveSupport::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
11
+ #
12
+ # These inflection rules are supported but not enabled by default:
13
+ # ActiveSupport::Inflector.inflections do |inflect|
14
+ # inflect.acronym 'RESTful'
15
+ # end
@@ -0,0 +1,5 @@
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
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+ # Make sure the secret is at least 30 characters and all random,
6
+ # no regular words or you'll be exposed to dictionary attacks.
7
+ Rails32::Application.config.secret_token = '61e5f7b99b121d3cc9287bf1843d176ba0f1212f9f4788e3939fd1c82316c7e05eb2c0aca9e9e2375d459b2b56aa890c76e81619ad6c8b84d552cd812454cab6'
@@ -0,0 +1,8 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Rails32::Application.config.session_store :cookie_store, key: '_rails_3_2_session'
4
+
5
+ # Use the database for sessions instead of the cookie-based default,
6
+ # which shouldn't be used to store highly confidential information
7
+ # (create the session table with "rails generate session_migration")
8
+ # Rails32::Application.config.session_store :active_record_store
@@ -0,0 +1,10 @@
1
+ # Be sure to restart your server when you modify this file.
2
+ #
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActiveSupport.on_load(:action_controller) do
8
+ wrap_parameters format: [:json]
9
+ end
10
+
@@ -0,0 +1,5 @@
1
+ # Sample localization file for English. Add more files in this directory for other locales.
2
+ # See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3
+
4
+ en:
5
+ hello: "Hello world"
@@ -0,0 +1,60 @@
1
+ Rails32::Application.routes.draw do
2
+ root :to => 'welcome#index'
3
+
4
+ # The priority is based upon order of creation:
5
+ # first created -> highest priority.
6
+
7
+ # Sample of regular route:
8
+ # match 'products/:id' => 'catalog#view'
9
+ # Keep in mind you can assign values other than :controller and :action
10
+
11
+ # Sample of named route:
12
+ # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
13
+ # This route can be invoked with purchase_url(:id => product.id)
14
+
15
+ # Sample resource route (maps HTTP verbs to controller actions automatically):
16
+ # resources :products
17
+
18
+ # Sample resource route with options:
19
+ # resources :products do
20
+ # member do
21
+ # get 'short'
22
+ # post 'toggle'
23
+ # end
24
+ #
25
+ # collection do
26
+ # get 'sold'
27
+ # end
28
+ # end
29
+
30
+ # Sample resource route with sub-resources:
31
+ # resources :products do
32
+ # resources :comments, :sales
33
+ # resource :seller
34
+ # end
35
+
36
+ # Sample resource route with more complex sub-resources
37
+ # resources :products do
38
+ # resources :comments
39
+ # resources :sales do
40
+ # get 'recent', :on => :collection
41
+ # end
42
+ # end
43
+
44
+ # Sample resource route within a namespace:
45
+ # namespace :admin do
46
+ # # Directs /admin/products/* to Admin::ProductsController
47
+ # # (app/controllers/admin/products_controller.rb)
48
+ # resources :products
49
+ # end
50
+
51
+ # You can have the root of your site routed with "root"
52
+ # just remember to delete public/index.html.
53
+ # root :to => 'welcome#index'
54
+
55
+ # See how all your routes lay out with "rake routes"
56
+
57
+ # This is a legacy wild controller route that's not recommended for RESTful applications.
58
+ # Note: This route will make all actions in every controller accessible via GET requests.
59
+ # match ':controller(/:action(/:id))(.:format)'
60
+ end