simple-layout 0.1.2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. data/Gemfile +3 -0
  2. data/Gemfile.lock +75 -0
  3. data/Rakefile +14 -2
  4. data/VERSION +1 -1
  5. data/simple-layout.gemspec +9 -39
  6. data/test/{test_layout_generator.rb → layout_generator_test.rb} +3 -2
  7. data/test/rails_app/config/application.rb +12 -37
  8. data/test/rails_app/config/boot.rb +11 -4
  9. data/test/rails_app/config/database.yml +20 -21
  10. data/test/rails_app/config/environments/development.rb +3 -14
  11. data/test/rails_app/config/environments/production.rb +7 -34
  12. data/test/rails_app/config/environments/test.rb +4 -13
  13. data/test/rails_app/config/initializers/backtrace_silencers.rb +1 -1
  14. data/test/rails_app/config/initializers/inflections.rb +2 -10
  15. data/test/rails_app/config/initializers/secret_token.rb +2 -7
  16. data/test/rails_app/config/routes.rb +2 -54
  17. data/test/test_helper.rb +14 -0
  18. data/test/tmp/public/simple/index.html +1 -1
  19. metadata +34 -48
  20. data/test/rails_app/.gitignore +0 -5
  21. data/test/rails_app/Gemfile +0 -34
  22. data/test/rails_app/Gemfile.lock +0 -122
  23. data/test/rails_app/README +0 -261
  24. data/test/rails_app/Rakefile +0 -7
  25. data/test/rails_app/app/assets/images/rails.png +0 -0
  26. data/test/rails_app/app/assets/javascripts/application.js +0 -9
  27. data/test/rails_app/app/assets/stylesheets/application.css +0 -7
  28. data/test/rails_app/app/controllers/application_controller.rb +0 -3
  29. data/test/rails_app/app/helpers/application_helper.rb +0 -2
  30. data/test/rails_app/app/mailers/.gitkeep +0 -0
  31. data/test/rails_app/app/models/.gitkeep +0 -0
  32. data/test/rails_app/app/views/layouts/application.html.erb +0 -14
  33. data/test/rails_app/config/initializers/mime_types.rb +0 -5
  34. data/test/rails_app/config/initializers/session_store.rb +0 -8
  35. data/test/rails_app/config/initializers/wrap_parameters.rb +0 -14
  36. data/test/rails_app/config/locales/en.yml +0 -5
  37. data/test/rails_app/config.ru +0 -4
  38. data/test/rails_app/db/seeds.rb +0 -7
  39. data/test/rails_app/lib/assets/.gitkeep +0 -0
  40. data/test/rails_app/lib/tasks/.gitkeep +0 -0
  41. data/test/rails_app/log/.gitkeep +0 -0
  42. data/test/rails_app/public/404.html +0 -26
  43. data/test/rails_app/public/422.html +0 -26
  44. data/test/rails_app/public/500.html +0 -26
  45. data/test/rails_app/public/favicon.ico +0 -0
  46. data/test/rails_app/public/index.html +0 -241
  47. data/test/rails_app/public/robots.txt +0 -5
  48. data/test/rails_app/script/rails +0 -6
  49. data/test/rails_app/test/fixtures/.gitkeep +0 -0
  50. data/test/rails_app/test/functional/.gitkeep +0 -0
  51. data/test/rails_app/test/integration/.gitkeep +0 -0
  52. data/test/rails_app/test/performance/browsing_test.rb +0 -12
  53. data/test/rails_app/test/test_helper.rb +0 -13
  54. data/test/rails_app/test/unit/.gitkeep +0 -0
  55. data/test/rails_app/vendor/assets/stylesheets/.gitkeep +0 -0
  56. data/test/rails_app/vendor/plugins/.gitkeep +0 -0
data/Gemfile CHANGED
@@ -1,5 +1,8 @@
1
1
  source :rubygems
2
2
 
3
+ gem "rails", ">= 3.0.3"
4
+ gem "sqlite3"
5
+
3
6
  group :development do
4
7
  gem "shoulda", ">= 0"
5
8
  gem "rdoc", "~> 3.12"
data/Gemfile.lock CHANGED
@@ -1,13 +1,75 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
+ actionmailer (3.2.2)
5
+ actionpack (= 3.2.2)
6
+ mail (~> 2.4.0)
7
+ actionpack (3.2.2)
8
+ activemodel (= 3.2.2)
9
+ activesupport (= 3.2.2)
10
+ builder (~> 3.0.0)
11
+ erubis (~> 2.7.0)
12
+ journey (~> 1.0.1)
13
+ rack (~> 1.4.0)
14
+ rack-cache (~> 1.1)
15
+ rack-test (~> 0.6.1)
16
+ sprockets (~> 2.1.2)
17
+ activemodel (3.2.2)
18
+ activesupport (= 3.2.2)
19
+ builder (~> 3.0.0)
20
+ activerecord (3.2.2)
21
+ activemodel (= 3.2.2)
22
+ activesupport (= 3.2.2)
23
+ arel (~> 3.0.2)
24
+ tzinfo (~> 0.3.29)
25
+ activeresource (3.2.2)
26
+ activemodel (= 3.2.2)
27
+ activesupport (= 3.2.2)
28
+ activesupport (3.2.2)
29
+ i18n (~> 0.6)
30
+ multi_json (~> 1.0)
31
+ arel (3.0.2)
32
+ builder (3.0.0)
33
+ erubis (2.7.0)
4
34
  git (1.2.5)
35
+ hike (1.2.1)
36
+ i18n (0.6.0)
5
37
  jeweler (1.8.3)
6
38
  bundler (~> 1.0)
7
39
  git (>= 1.2.5)
8
40
  rake
9
41
  rdoc
42
+ journey (1.0.3)
10
43
  json (1.6.6)
44
+ mail (2.4.4)
45
+ i18n (>= 0.4.0)
46
+ mime-types (~> 1.16)
47
+ treetop (~> 1.4.8)
48
+ mime-types (1.18)
49
+ multi_json (1.2.0)
50
+ polyglot (0.3.3)
51
+ rack (1.4.1)
52
+ rack-cache (1.2)
53
+ rack (>= 0.4)
54
+ rack-ssl (1.3.2)
55
+ rack
56
+ rack-test (0.6.1)
57
+ rack (>= 1.0)
58
+ rails (3.2.2)
59
+ actionmailer (= 3.2.2)
60
+ actionpack (= 3.2.2)
61
+ activerecord (= 3.2.2)
62
+ activeresource (= 3.2.2)
63
+ activesupport (= 3.2.2)
64
+ bundler (~> 1.0)
65
+ railties (= 3.2.2)
66
+ railties (3.2.2)
67
+ actionpack (= 3.2.2)
68
+ activesupport (= 3.2.2)
69
+ rack-ssl (~> 1.3.2)
70
+ rake (>= 0.8.7)
71
+ rdoc (~> 3.4)
72
+ thor (~> 0.14.6)
11
73
  rake (0.9.2.2)
12
74
  rdoc (3.12)
13
75
  json (~> 1.4)
@@ -16,6 +78,17 @@ GEM
16
78
  shoulda-matchers (~> 1.0.0)
17
79
  shoulda-context (1.0.0)
18
80
  shoulda-matchers (1.0.0)
81
+ sprockets (2.1.2)
82
+ hike (~> 1.2)
83
+ rack (~> 1.0)
84
+ tilt (~> 1.1, != 1.3.0)
85
+ sqlite3 (1.3.5)
86
+ thor (0.14.6)
87
+ tilt (1.3.3)
88
+ treetop (1.4.10)
89
+ polyglot
90
+ polyglot (>= 0.3.1)
91
+ tzinfo (0.3.32)
19
92
 
20
93
  PLATFORMS
21
94
  ruby
@@ -23,5 +96,7 @@ PLATFORMS
23
96
  DEPENDENCIES
24
97
  bundler (~> 1.0.0)
25
98
  jeweler (~> 1.8.3)
99
+ rails (>= 3.0.3)
26
100
  rdoc (~> 3.12)
27
101
  shoulda
102
+ sqlite3
data/Rakefile CHANGED
@@ -1,7 +1,12 @@
1
1
  # encoding: utf-8
2
-
3
- require 'rubygems'
2
+ require 'rake'
3
+ require 'rspec/core/rake_task'
4
+ require 'rake/testtask'
4
5
  require 'bundler'
6
+ Bundler::GemHelper.install_tasks
7
+
8
+ $:.unshift File.expand_path('../lib', __FILE__)
9
+
5
10
  begin
6
11
  Bundler.setup(:default, :development)
7
12
  rescue Bundler::BundlerError => e
@@ -35,3 +40,10 @@ Rake::RDocTask.new do |rdoc|
35
40
  rdoc.rdoc_files.include('lib/**/*.rb')
36
41
  end
37
42
 
43
+ desc 'Test generators'
44
+ Rake::TestTask.new(:test) do |t|
45
+ t.libs << 'lib'
46
+ t.libs << 'test'
47
+ t.pattern = 'test/*_test.rb'
48
+ t.verbose = true
49
+ end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.2.0
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "simple-layout"
8
- s.version = "0.1.2"
8
+ s.version = "0.2.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Allen Kim"]
@@ -32,20 +32,7 @@ Gem::Specification.new do |s|
32
32
  "lib/generators/layout/layouts/simple/styles.css",
33
33
  "lib/simple-layout.rb",
34
34
  "simple-layout.gemspec",
35
- "test/rails_app/.gitignore",
36
- "test/rails_app/Gemfile",
37
- "test/rails_app/Gemfile.lock",
38
- "test/rails_app/README",
39
- "test/rails_app/Rakefile",
40
- "test/rails_app/app/assets/images/rails.png",
41
- "test/rails_app/app/assets/javascripts/application.js",
42
- "test/rails_app/app/assets/stylesheets/application.css",
43
- "test/rails_app/app/controllers/application_controller.rb",
44
- "test/rails_app/app/helpers/application_helper.rb",
45
- "test/rails_app/app/mailers/.gitkeep",
46
- "test/rails_app/app/models/.gitkeep",
47
- "test/rails_app/app/views/layouts/application.html.erb",
48
- "test/rails_app/config.ru",
35
+ "test/layout_generator_test.rb",
49
36
  "test/rails_app/config/application.rb",
50
37
  "test/rails_app/config/boot.rb",
51
38
  "test/rails_app/config/database.yml",
@@ -55,32 +42,9 @@ Gem::Specification.new do |s|
55
42
  "test/rails_app/config/environments/test.rb",
56
43
  "test/rails_app/config/initializers/backtrace_silencers.rb",
57
44
  "test/rails_app/config/initializers/inflections.rb",
58
- "test/rails_app/config/initializers/mime_types.rb",
59
45
  "test/rails_app/config/initializers/secret_token.rb",
60
- "test/rails_app/config/initializers/session_store.rb",
61
- "test/rails_app/config/initializers/wrap_parameters.rb",
62
- "test/rails_app/config/locales/en.yml",
63
46
  "test/rails_app/config/routes.rb",
64
- "test/rails_app/db/seeds.rb",
65
- "test/rails_app/lib/assets/.gitkeep",
66
- "test/rails_app/lib/tasks/.gitkeep",
67
- "test/rails_app/log/.gitkeep",
68
- "test/rails_app/public/404.html",
69
- "test/rails_app/public/422.html",
70
- "test/rails_app/public/500.html",
71
- "test/rails_app/public/favicon.ico",
72
- "test/rails_app/public/index.html",
73
- "test/rails_app/public/robots.txt",
74
- "test/rails_app/script/rails",
75
- "test/rails_app/test/fixtures/.gitkeep",
76
- "test/rails_app/test/functional/.gitkeep",
77
- "test/rails_app/test/integration/.gitkeep",
78
- "test/rails_app/test/performance/browsing_test.rb",
79
- "test/rails_app/test/test_helper.rb",
80
- "test/rails_app/test/unit/.gitkeep",
81
- "test/rails_app/vendor/assets/stylesheets/.gitkeep",
82
- "test/rails_app/vendor/plugins/.gitkeep",
83
- "test/test_layout_generator.rb",
47
+ "test/test_helper.rb",
84
48
  "test/tmp/app/views/layouts/simple.html.erb",
85
49
  "test/tmp/public/simple/images/menu_background.png",
86
50
  "test/tmp/public/simple/index.html",
@@ -96,17 +60,23 @@ Gem::Specification.new do |s|
96
60
  s.specification_version = 3
97
61
 
98
62
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
63
+ s.add_runtime_dependency(%q<rails>, [">= 3.0.3"])
64
+ s.add_runtime_dependency(%q<sqlite3>, [">= 0"])
99
65
  s.add_development_dependency(%q<shoulda>, [">= 0"])
100
66
  s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
101
67
  s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
102
68
  s.add_development_dependency(%q<jeweler>, ["~> 1.8.3"])
103
69
  else
70
+ s.add_dependency(%q<rails>, [">= 3.0.3"])
71
+ s.add_dependency(%q<sqlite3>, [">= 0"])
104
72
  s.add_dependency(%q<shoulda>, [">= 0"])
105
73
  s.add_dependency(%q<rdoc>, ["~> 3.12"])
106
74
  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
107
75
  s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
108
76
  end
109
77
  else
78
+ s.add_dependency(%q<rails>, [">= 3.0.3"])
79
+ s.add_dependency(%q<sqlite3>, [">= 0"])
110
80
  s.add_dependency(%q<shoulda>, [">= 0"])
111
81
  s.add_dependency(%q<rdoc>, ["~> 3.12"])
112
82
  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
@@ -1,5 +1,6 @@
1
- require File.expand_path('./rails_app/test/test_helper', File.dirname(__FILE__))
2
- require File.expand_path('../lib/generators/layout/layout_generator', File.dirname(__FILE__))
1
+ #require File.expand_path('../lib/generators/layout/layout_generator', File.dirname(__FILE__))
2
+ require 'test_helper'
3
+ require 'generators/layout/layout_generator'
3
4
 
4
5
  class LayoutGeneratorTest < Rails::Generators::TestCase
5
6
  tests LayoutGenerator
@@ -1,48 +1,23 @@
1
1
  require File.expand_path('../boot', __FILE__)
2
2
 
3
- require 'rails/all'
3
+ require "rails/all"
4
+
5
+ Bundler.require :default
4
6
 
5
- if defined?(Bundler)
6
- # If you precompile assets before deploying to production, use this line
7
- Bundler.require *Rails.groups(:assets => %w(development test))
8
- # If you want your assets lazily compiled in production, use this line
9
- # Bundler.require(:default, :assets, Rails.env)
10
- end
11
7
 
12
8
  module RailsApp
13
9
  class Application < Rails::Application
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
-
18
- # Custom directories with classes and modules you want to be autoloadable.
19
- # config.autoload_paths += %W(#{config.root}/extras)
20
-
21
- # Only load the plugins named here, in the order given (default is alphabetical).
22
- # :all can be used as a placeholder for all plugins not explicitly named.
23
- # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
24
-
25
- # Activate observers that should always be running.
26
- # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
10
+ # Ensure the root is correct
11
+ config.root = File.expand_path('../../', __FILE__)
27
12
 
28
- # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
29
- # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
30
- # config.time_zone = 'Central Time (US & Canada)'
31
-
32
- # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
33
- # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
34
- # config.i18n.default_locale = :de
35
-
36
- # Configure the default encoding used in templates for Ruby 1.9.
37
- config.encoding = "utf-8"
13
+ # Configure generators values. Many other options are available, be sure to check the documentation.
14
+ # config.generators do |g|
15
+ # g.orm :active_record
16
+ # g.template_engine :erb
17
+ # g.test_framework :test_unit, :fixture => true
18
+ # end
38
19
 
39
20
  # Configure sensitive parameters which will be filtered from the log file.
40
- config.filter_parameters += [:password]
41
-
42
- # Enable the asset pipeline
43
- config.assets.enabled = true
44
-
45
- # Version of your assets, change this if you want to expire all your assets
46
- config.assets.version = '1.0'
21
+ config.filter_parameters << :password
47
22
  end
48
23
  end
@@ -1,6 +1,13 @@
1
- require 'rubygems'
1
+ unless defined?(DEVISE_ORM)
2
+ DEVISE_ORM = (ENV["DEVISE_ORM"] || :active_record).to_sym
3
+ end
2
4
 
3
- # Set up gems listed in the Gemfile.
4
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
5
+ begin
6
+ require File.expand_path("../../../../.bundle/environment", __FILE__)
7
+ rescue LoadError
8
+ require 'rubygems'
9
+ require 'bundler'
10
+ Bundler.setup :default, DEVISE_ORM
11
+ end
5
12
 
6
- require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
13
+ $:.unshift File.expand_path('../../../../lib', __FILE__)
@@ -1,25 +1,24 @@
1
- # SQLite version 3.x
2
- # gem install sqlite3
3
- #
4
- # Ensure the SQLite 3 gem is defined in your Gemfile
5
- # gem 'sqlite3'
6
- development:
1
+ sqlite3mem: &SQLITE3MEM
7
2
  adapter: sqlite3
8
- database: db/development.sqlite3
9
- pool: 5
10
- timeout: 5000
3
+ database: ":memory:"
11
4
 
12
- # Warning: The database defined as "test" will be erased and
13
- # re-generated from your development database when you run "rake".
14
- # Do not set this db to the same as development or production.
15
- test:
5
+ sqlite3: &SQLITE
16
6
  adapter: sqlite3
17
- database: db/test.sqlite3
18
- pool: 5
19
- timeout: 5000
7
+ database: acts_as_audited_plugin.sqlite3.db
20
8
 
21
- production:
22
- adapter: sqlite3
23
- database: db/production.sqlite3
24
- pool: 5
25
- timeout: 5000
9
+ postgresql: &POSTGRES
10
+ adapter: postgresql
11
+ username: postgres
12
+ password: postgres
13
+ database: acts_as_audited_plugin_test
14
+ min_messages: ERROR
15
+
16
+ mysql: &MYSQL
17
+ adapter: mysql
18
+ host: localhost
19
+ username: root
20
+ password:
21
+ database: acts_as_audited_plugin_test
22
+
23
+ test:
24
+ <<: *<%= ENV['DB'] || 'SQLITE3MEM' %>
@@ -1,9 +1,9 @@
1
1
  RailsApp::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb
2
+ # Settings specified here will take precedence over those in config/environment.rb
3
3
 
4
4
  # In the development environment your application's code is reloaded on
5
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.
6
+ # since you don't have to restart the webserver when you make code changes.
7
7
  config.cache_classes = false
8
8
 
9
9
  # Log error messages when you accidentally call methods on nil.
@@ -11,20 +11,9 @@ RailsApp::Application.configure do
11
11
 
12
12
  # Show full error reports and disable caching
13
13
  config.consider_all_requests_local = true
14
+ config.action_view.debug_rjs = true
14
15
  config.action_controller.perform_caching = false
15
16
 
16
17
  # Don't care if the mailer can't send
17
18
  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
- # Do not compress assets
26
- config.assets.compress = false
27
-
28
- # Expands the lines which load the assets
29
- config.assets.debug = true
30
19
  end
@@ -1,6 +1,7 @@
1
1
  RailsApp::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb
2
+ # Settings specified here will take precedence over those in config/environment.rb
3
3
 
4
+ # The production environment is meant for finished, "live" apps.
4
5
  # Code is not reloaded between requests
5
6
  config.cache_classes = true
6
7
 
@@ -8,28 +9,6 @@ RailsApp::Application.configure do
8
9
  config.consider_all_requests_local = false
9
10
  config.action_controller.perform_caching = true
10
11
 
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 Rails.root.join("public/assets")
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
12
  # See everything in the log (default is :info)
34
13
  # config.log_level = :debug
35
14
 
@@ -39,22 +18,16 @@ RailsApp::Application.configure do
39
18
  # Use a different cache store in production
40
19
  # config.cache_store = :mem_cache_store
41
20
 
42
- # Enable serving of images, stylesheets, and JavaScripts from an asset server
43
- # config.action_controller.asset_host = "http://assets.example.com"
21
+ # Disable Rails's static asset server
22
+ # In production, Apache or nginx will already do this
23
+ config.serve_static_assets = false
44
24
 
45
- # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
46
- # config.assets.precompile += %w( search.js )
25
+ # Enable serving of images, stylesheets, and javascripts from an asset server
26
+ # config.action_controller.asset_host = "http://assets.example.com"
47
27
 
48
28
  # Disable delivery errors, bad email addresses will be ignored
49
29
  # config.action_mailer.raise_delivery_errors = false
50
30
 
51
31
  # Enable threaded mode
52
32
  # config.threadsafe!
53
-
54
- # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
55
- # the I18n.default_locale when a translation can not be found)
56
- config.i18n.fallbacks = true
57
-
58
- # Send deprecation notices to registered listeners
59
- config.active_support.deprecation = :notify
60
33
  end
@@ -1,5 +1,5 @@
1
1
  RailsApp::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb
2
+ # Settings specified here will take precedence over those in config/environment.rb
3
3
 
4
4
  # The test environment is used exclusively to run your application's
5
5
  # test suite. You never need to work with it otherwise. Remember that
@@ -7,20 +7,13 @@ RailsApp::Application.configure do
7
7
  # and recreated between test runs. Don't rely on the data there!
8
8
  config.cache_classes = true
9
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
10
+ # Log error messages when you accidentally call methods on nil.
15
11
  config.whiny_nils = true
16
12
 
17
13
  # Show full error reports and disable caching
18
14
  config.consider_all_requests_local = true
19
15
  config.action_controller.perform_caching = false
20
16
 
21
- # Raise exceptions instead of rendering exception templates
22
- config.action_dispatch.show_exceptions = false
23
-
24
17
  # Disable request forgery protection in test environment
25
18
  config.action_controller.allow_forgery_protection = false
26
19
 
@@ -34,9 +27,7 @@ RailsApp::Application.configure do
34
27
  # like if you have constraints or database-specific column types
35
28
  # config.active_record.schema_format = :sql
36
29
 
37
- # Print deprecation notices to the stderr
38
- config.active_support.deprecation = :stderr
30
+ config.action_dispatch.show_exceptions = false
39
31
 
40
- # Allow pass debug_assets=true as a query parameter to load pages with unpackaged assets
41
- config.assets.allow_debugging = true
32
+ config.active_support.deprecation = :stderr
42
33
  end
@@ -4,4 +4,4 @@
4
4
  # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
5
 
6
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!
7
+ Rails.backtrace_cleaner.remove_silencers!
@@ -1,10 +1,2 @@
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
1
+ ActiveSupport::Inflector.inflections do |inflect|
2
+ end
@@ -1,7 +1,2 @@
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
- RailsApp::Application.config.secret_token = '984edc9e3bcc7a5b255d1b07ca597f3607fd11dd53258d8516fc2f8b797576b076544051903cdeadca374b0b57a4a6c8a027cf49b525eac9971af4816e2bd633'
1
+ Rails.application.config.secret_token = 'ea942c41850d502f2c8283e26bdc57829f471bb18224ddff0a192c4f32cdf6cb5aa0d82b3a7a7adbeb640c4b06f3aa1cd5f098162d8240f669b39d6b49680571'
2
+ Rails.application.config.session_store :cookie_store, :key => "_my_app"
@@ -1,58 +1,6 @@
1
- RailsApp::Application.routes.draw do
2
- # The priority is based upon order of creation:
3
- # first created -> highest priority.
4
-
5
- # Sample of regular route:
6
- # match 'products/:id' => 'catalog#view'
7
- # Keep in mind you can assign values other than :controller and :action
8
-
9
- # Sample of named route:
10
- # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
11
- # This route can be invoked with purchase_url(:id => product.id)
12
-
13
- # Sample resource route (maps HTTP verbs to controller actions automatically):
14
- # resources :products
15
-
16
- # Sample resource route with options:
17
- # resources :products do
18
- # member do
19
- # get 'short'
20
- # post 'toggle'
21
- # end
22
- #
23
- # collection do
24
- # get 'sold'
25
- # end
26
- # end
27
-
28
- # Sample resource route with sub-resources:
29
- # resources :products do
30
- # resources :comments, :sales
31
- # resource :seller
32
- # end
33
-
34
- # Sample resource route with more complex sub-resources
35
- # resources :products do
36
- # resources :comments
37
- # resources :sales do
38
- # get 'recent', :on => :collection
39
- # end
40
- # end
41
-
42
- # Sample resource route within a namespace:
43
- # namespace :admin do
44
- # # Directs /admin/products/* to Admin::ProductsController
45
- # # (app/controllers/admin/products_controller.rb)
46
- # resources :products
47
- # end
48
-
49
- # You can have the root of your site routed with "root"
50
- # just remember to delete public/index.html.
51
- # root :to => 'welcome#index'
52
-
53
- # See how all your routes lay out with "rake routes"
1
+ Rails.application.routes.draw do
54
2
 
55
3
  # This is a legacy wild controller route that's not recommended for RESTful applications.
56
4
  # Note: This route will make all actions in every controller accessible via GET requests.
57
- # match ':controller(/:action(/:id(.:format)))'
5
+ match ':controller(/:action(/:id(.:format)))'
58
6
  end
@@ -0,0 +1,14 @@
1
+ ENV['RAILS_ENV'] = 'test'
2
+
3
+ $:.unshift File.dirname(__FILE__)
4
+
5
+ require File.expand_path('../rails_app/config/environment', __FILE__)
6
+ require 'rails/test_help'
7
+
8
+ class ActiveSupport::TestCase
9
+ setup do
10
+ end
11
+
12
+ def load_schema( version )
13
+ end
14
+ end
@@ -2,7 +2,7 @@
2
2
  <html>
3
3
  <head>
4
4
  <title>Myapp</title>
5
- <link type="text/css" rel="stylesheet" href="styles.css" media="all">
5
+ <link type="text/css" rel="stylesheet" href="/simple/styles.css" media="all">
6
6
  </head>
7
7
  <body>
8
8
  <div id="header">