dynamic_error_pages 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (107) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +30 -0
  3. data/.rspec +2 -0
  4. data/.ruby-gemset +1 -0
  5. data/.ruby-version +1 -0
  6. data/.travis.yml +31 -0
  7. data/Appraisals +7 -0
  8. data/Gemfile +17 -0
  9. data/LICENSE +20 -0
  10. data/README.md +48 -0
  11. data/Rakefile +27 -0
  12. data/app/assets/stylesheets/dynamic_error_pages/.gitkeep +0 -0
  13. data/app/controllers/.gitkeep +0 -0
  14. data/app/controllers/dynamic_error_pages/errors_controller.rb +26 -0
  15. data/app/views/.gitkeep +0 -0
  16. data/app/views/dynamic_error_pages/errors/404.html.erb +1 -0
  17. data/config/initializers/dynamic_error_pages.rb +1 -0
  18. data/config/routes.rb +7 -0
  19. data/dynamic_error_pages.gemspec +31 -0
  20. data/gemfiles/3.2.gemfile +8 -0
  21. data/gemfiles/3.2.gemfile.lock +140 -0
  22. data/gemfiles/4.0.gemfile +8 -0
  23. data/gemfiles/4.0.gemfile.lock +135 -0
  24. data/lib/dynamic_error_pages/engine.rb +4 -0
  25. data/lib/dynamic_error_pages/version.rb +3 -0
  26. data/lib/dynamic_error_pages.rb +2 -0
  27. data/lib/tasks/dynamic_error_pages_tasks.rake +4 -0
  28. data/script/rails +8 -0
  29. data/spec/dummy3.2/README.rdoc +261 -0
  30. data/spec/dummy3.2/Rakefile +7 -0
  31. data/spec/dummy3.2/app/assets/javascripts/application.js +15 -0
  32. data/spec/dummy3.2/app/assets/stylesheets/application.css +13 -0
  33. data/spec/dummy3.2/app/controllers/application_controller.rb +3 -0
  34. data/spec/dummy3.2/app/controllers/tests_controller.rb +9 -0
  35. data/spec/dummy3.2/app/helpers/application_helper.rb +2 -0
  36. data/spec/dummy3.2/app/mailers/.gitkeep +0 -0
  37. data/spec/dummy3.2/app/models/.gitkeep +0 -0
  38. data/spec/dummy3.2/app/views/dynamic_error_pages/errors/404.html.erb +1 -0
  39. data/spec/dummy3.2/app/views/dynamic_error_pages/errors/500.html.erb +1 -0
  40. data/spec/dummy3.2/app/views/layouts/application.html.erb +14 -0
  41. data/spec/dummy3.2/config/application.rb +65 -0
  42. data/spec/dummy3.2/config/boot.rb +10 -0
  43. data/spec/dummy3.2/config/database.yml +25 -0
  44. data/spec/dummy3.2/config/environment.rb +5 -0
  45. data/spec/dummy3.2/config/environments/development.rb +37 -0
  46. data/spec/dummy3.2/config/environments/production.rb +67 -0
  47. data/spec/dummy3.2/config/environments/test.rb +37 -0
  48. data/spec/dummy3.2/config/initializers/backtrace_silencers.rb +7 -0
  49. data/spec/dummy3.2/config/initializers/inflections.rb +15 -0
  50. data/spec/dummy3.2/config/initializers/mime_types.rb +5 -0
  51. data/spec/dummy3.2/config/initializers/secret_token.rb +7 -0
  52. data/spec/dummy3.2/config/initializers/session_store.rb +8 -0
  53. data/spec/dummy3.2/config/initializers/wrap_parameters.rb +14 -0
  54. data/spec/dummy3.2/config/locales/en.yml +5 -0
  55. data/spec/dummy3.2/config/routes.rb +3 -0
  56. data/spec/dummy3.2/config.ru +4 -0
  57. data/spec/dummy3.2/lib/assets/.gitkeep +0 -0
  58. data/spec/dummy3.2/log/.gitkeep +0 -0
  59. data/spec/dummy3.2/public/404.html +26 -0
  60. data/spec/dummy3.2/public/422.html +26 -0
  61. data/spec/dummy3.2/public/500.html +25 -0
  62. data/spec/dummy3.2/public/favicon.ico +0 -0
  63. data/spec/dummy3.2/script/rails +6 -0
  64. data/spec/dummy4.0/README.rdoc +28 -0
  65. data/spec/dummy4.0/Rakefile +6 -0
  66. data/spec/dummy4.0/app/assets/images/.keep +0 -0
  67. data/spec/dummy4.0/app/assets/javascripts/application.js +13 -0
  68. data/spec/dummy4.0/app/assets/stylesheets/application.css +13 -0
  69. data/spec/dummy4.0/app/controllers/application_controller.rb +5 -0
  70. data/spec/dummy4.0/app/controllers/concerns/.keep +0 -0
  71. data/spec/dummy4.0/app/controllers/tests_controller.rb +9 -0
  72. data/spec/dummy4.0/app/helpers/application_helper.rb +2 -0
  73. data/spec/dummy4.0/app/mailers/.keep +0 -0
  74. data/spec/dummy4.0/app/models/.keep +0 -0
  75. data/spec/dummy4.0/app/models/concerns/.keep +0 -0
  76. data/spec/dummy4.0/app/views/dynamic_error_pages/errors/404.html.erb +1 -0
  77. data/spec/dummy4.0/app/views/dynamic_error_pages/errors/500.html.erb +1 -0
  78. data/spec/dummy4.0/app/views/layouts/application.html.erb +14 -0
  79. data/spec/dummy4.0/bin/bundle +3 -0
  80. data/spec/dummy4.0/bin/rails +4 -0
  81. data/spec/dummy4.0/bin/rake +4 -0
  82. data/spec/dummy4.0/config/application.rb +28 -0
  83. data/spec/dummy4.0/config/boot.rb +5 -0
  84. data/spec/dummy4.0/config/database.yml +25 -0
  85. data/spec/dummy4.0/config/environment.rb +5 -0
  86. data/spec/dummy4.0/config/environments/development.rb +29 -0
  87. data/spec/dummy4.0/config/environments/production.rb +80 -0
  88. data/spec/dummy4.0/config/environments/test.rb +36 -0
  89. data/spec/dummy4.0/config/initializers/backtrace_silencers.rb +7 -0
  90. data/spec/dummy4.0/config/initializers/filter_parameter_logging.rb +4 -0
  91. data/spec/dummy4.0/config/initializers/inflections.rb +16 -0
  92. data/spec/dummy4.0/config/initializers/mime_types.rb +5 -0
  93. data/spec/dummy4.0/config/initializers/secret_token.rb +12 -0
  94. data/spec/dummy4.0/config/initializers/session_store.rb +3 -0
  95. data/spec/dummy4.0/config/initializers/wrap_parameters.rb +14 -0
  96. data/spec/dummy4.0/config/locales/en.yml +23 -0
  97. data/spec/dummy4.0/config/routes.rb +3 -0
  98. data/spec/dummy4.0/config.ru +4 -0
  99. data/spec/dummy4.0/lib/assets/.keep +0 -0
  100. data/spec/dummy4.0/log/.keep +0 -0
  101. data/spec/dummy4.0/public/404.html +58 -0
  102. data/spec/dummy4.0/public/422.html +58 -0
  103. data/spec/dummy4.0/public/500.html +57 -0
  104. data/spec/dummy4.0/public/favicon.ico +0 -0
  105. data/spec/features/exception_spec.rb +20 -0
  106. data/spec/spec_helper.rb +20 -0
  107. metadata +359 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 5d562689b4de0e5e02914427a5a6fda95f51ac38
4
+ data.tar.gz: b7b81c4967d145c77e77d38c87bd0edb37107613
5
+ SHA512:
6
+ metadata.gz: b022e97c09da59aca4f2eee81861831d8b958748817ef06e295ce0398b20c404cde7081909649a7a1ef35c1f49c1ea41865a7ce0edcb7fa109bc7b9cf9d42a60
7
+ data.tar.gz: 99ebcd05538f76f4ceb4448ad75783ee014b888d7e95427f3d143e6ad2429483686d030d65602726605822fd4a0ff45d9f22a562f1fc7fd20d42d1428f57e60e
data/.gitignore ADDED
@@ -0,0 +1,30 @@
1
+ *.rbc
2
+ *.sassc
3
+ .sass-cache
4
+ capybara-*.html
5
+ *.gem
6
+ .bundle
7
+ .config
8
+ .yardoc
9
+ Gemfile.lock
10
+ InstalledFiles
11
+ _yardoc
12
+ coverage
13
+ doc/
14
+ lib/bundler/man
15
+ pkg
16
+ rdoc
17
+ spec/reports
18
+ test/tmp
19
+ test/version_tmp
20
+ tmp/spec/dummy/db/test.sqlite3
21
+ /spec/dummy/log/test.log
22
+ /spec/dummy/db/test.sqlite3
23
+ /spec/dummy3.2/log/test.log
24
+ /spec/dummy4.0/log/test.log
25
+ /spec/dummy3.2/db/production.sqlite3
26
+ /spec/dummy3.2/db/test.sqlite3
27
+ /spec/dummy3.2/log/production.log
28
+ /spec/dummy4.0/db/production.sqlite3
29
+ /spec/dummy4.0/db/test.sqlite3
30
+ /spec/dummy4.0/log/production.log
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ --format progress
data/.ruby-gemset ADDED
@@ -0,0 +1 @@
1
+ dynamic-error-pages
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ ruby-2.0.0-p247
data/.travis.yml ADDED
@@ -0,0 +1,31 @@
1
+ language: ruby
2
+
3
+ script: "bundle exec rake spec"
4
+ bundler_args: ''
5
+
6
+ rvm:
7
+ - 1.9.3
8
+ - 2.0.0
9
+
10
+ env:
11
+ - RAILS_VERSION=3.2
12
+ - RAILS_VERSION=4.0
13
+
14
+ gemfile:
15
+ - gemfiles/3.2.gemfile
16
+ - gemfiles/4.0.gemfile
17
+
18
+ matrix:
19
+ exclude:
20
+ - rvm: 2.0.0
21
+ gemfile: gemfiles/4.0.gemfile
22
+ env: RAILS_VERSION=3.2
23
+ - rvm: 1.9.3
24
+ gemfile: gemfiles/4.0.gemfile
25
+ env: RAILS_VERSION=3.2
26
+ - rvm: 2.0.0
27
+ gemfile: gemfiles/3.2.gemfile
28
+ env: RAILS_VERSION=4.0
29
+ - rvm: 1.9.3
30
+ gemfile: gemfiles/3.2.gemfile
31
+ env: RAILS_VERSION=4.0
data/Appraisals ADDED
@@ -0,0 +1,7 @@
1
+ appraise "3.2" do
2
+ gem "rails", "~> 3.2.14"
3
+ end
4
+
5
+ appraise "4.0" do
6
+ gem "rails", "~> 4.0.0"
7
+ end
data/Gemfile ADDED
@@ -0,0 +1,17 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Declare your gem's dependencies in dynamic_error_pages.gemspec.
4
+ # Bundler will treat runtime dependencies like base dependencies, and
5
+ # development dependencies will be added by default to the :development group.
6
+ gemspec
7
+
8
+ # jquery-rails is used by the dummy application
9
+ gem "jquery-rails"
10
+
11
+ # Declare any dependencies that are still in development here instead of in
12
+ # your gemspec. These might include edge Rails or gems from your path or
13
+ # Git. Remember to move these dependencies to your gemspec before releasing
14
+ # your gem to rubygems.org.
15
+
16
+ # To use debugger
17
+ # gem 'debugger'
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2013 Marcus Geißler
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the "Software"), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
+ the Software, and to permit persons to whom the Software is furnished to do so,
10
+ subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,48 @@
1
+ # dynamic_error_pages
2
+
3
+ [![Gem Version](https://badge.fury.io/rb/dynamic_error_pages.png)](http://badge.fury.io/rb/dynamic_error_pages)
4
+ [![Build Status](https://travis-ci.org/marcusg/dynamic_error_pages.png?branch=master)](https://travis-ci.org/marcusg/dynamic_error_pages)
5
+ [![Code Climate](https://codeclimate.com/github/marcusg/dynamic_error_pages.png)](https://codeclimate.com/github/marcusg/dynamic_error_pages)
6
+ [![Dependency Status](https://gemnasium.com/marcusg/dynamic_error_pages.png)](https://gemnasium.com/marcusg/dynamic_error_pages)
7
+
8
+ Engine that helps you to generate dynamic error pages with Rails
9
+
10
+ ## Requirements
11
+
12
+ ```rails >= 3.2```
13
+
14
+ ## Installation
15
+
16
+ Add this line to your application's Gemfile:
17
+
18
+ gem 'dynamic_error_pages'
19
+
20
+ And then execute:
21
+
22
+ $ bundle
23
+
24
+ Or install it yourself as:
25
+
26
+ $ gem install dynamic_error_pages
27
+
28
+ ## Usage
29
+
30
+ Just place your custom error templates inside the ``` app/views/dynamic_error_pages/errors ``` folder. The files need to
31
+ be named like the returned status code. The ``` 404.html.erb ``` would be used for status code 404 like ```ActiveRecord::RecordNotFound``` would raise for example.
32
+
33
+ If an error is raised and no template for the status code can be found, the engine will fallback to the ```404```-template.
34
+
35
+ That's all!
36
+
37
+ ## TODO
38
+
39
+ 1. Support more formats
40
+ 2. Write more tests
41
+
42
+ ## Contributing
43
+
44
+ 1. Fork it
45
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
46
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
47
+ 4. Push to the branch (`git push origin my-new-feature`)
48
+ 5. Create new Pull Request
data/Rakefile ADDED
@@ -0,0 +1,27 @@
1
+ #!/usr/bin/env rake
2
+ begin
3
+ require 'bundler/setup'
4
+ require 'appraisal'
5
+ require 'rspec/core/rake_task'
6
+ rescue LoadError
7
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
8
+ end
9
+ begin
10
+ require 'rdoc/task'
11
+ rescue LoadError
12
+ require 'rdoc/rdoc'
13
+ require 'rake/rdoctask'
14
+ RDoc::Task = Rake::RDocTask
15
+ end
16
+
17
+ RDoc::Task.new(:rdoc) do |rdoc|
18
+ rdoc.rdoc_dir = 'rdoc'
19
+ rdoc.title = 'DynamicErrorPages'
20
+ rdoc.options << '--line-numbers'
21
+ rdoc.rdoc_files.include('README.rdoc')
22
+ rdoc.rdoc_files.include('lib/**/*.rb')
23
+ end
24
+
25
+ Bundler::GemHelper.install_tasks
26
+ task :default => :spec
27
+ RSpec::Core::RakeTask.new(:spec)
File without changes
@@ -0,0 +1,26 @@
1
+ class DynamicErrorPages::ErrorsController < ApplicationController
2
+
3
+ def show
4
+ begin
5
+ render "#{status_code}", :status => status_code, :formats => [:html]
6
+ rescue ActionView::MissingTemplate => e
7
+ render "404", :status => 404, :formats => [:html]
8
+ end
9
+
10
+ end
11
+
12
+ protected
13
+
14
+ def path
15
+ env["REQUEST_PATH"] || env["ORIGINAL_FULLPATH"]
16
+ end
17
+
18
+ def status_code
19
+ request.path[1..-1]
20
+ end
21
+
22
+ def exception
23
+ env['action_dispatch.exception']
24
+ end
25
+
26
+ end
File without changes
@@ -0,0 +1 @@
1
+ default 404
@@ -0,0 +1 @@
1
+ Rails.application.config.exceptions_app = Rails.application.routes
data/config/routes.rb ADDED
@@ -0,0 +1,7 @@
1
+ Rails.application.routes.draw do
2
+
3
+ # rails 4 need the :via option
4
+ via = Rails::VERSION::MAJOR > 3 ? {:via => :all} : {}
5
+
6
+ match '/:status', {:to => "dynamic_error_pages/errors#show", :constraints => { :status => /\d{3}/ }}.merge(via)
7
+ end
@@ -0,0 +1,31 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'dynamic_error_pages/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "dynamic_error_pages"
8
+ spec.version = DynamicErrorPages::VERSION
9
+ spec.author = "Marcus Geißler"
10
+ spec.email = ["marcus3006@gmail.com"]
11
+ spec.description = %q{Engine that helps you to generate dynamic error pages with Rails}
12
+ spec.summary = %q{Engine that helps you to generate dynamic error pages with Rails}
13
+ spec.homepage = "https://github.com/marcusg/dynamic_error_pages"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files`.split($/)
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_development_dependency "bundler", "~> 1.3"
22
+ spec.add_development_dependency "rake", '~> 10.1'
23
+ spec.add_development_dependency 'rspec-rails', '~> 2.0'
24
+ spec.add_development_dependency 'shoulda-matchers', '~> 2.4'
25
+ spec.add_development_dependency "sqlite3"
26
+ spec.add_development_dependency "pry"
27
+ spec.add_development_dependency "appraisal", "~> 0.5.2"
28
+ spec.add_development_dependency "capybara"
29
+
30
+ spec.add_dependency "rails", ">= 3.2.0", "<= 4.1"
31
+ end
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "jquery-rails"
6
+ gem "rails", "~> 3.2.14"
7
+
8
+ gemspec :path=>"../"
@@ -0,0 +1,140 @@
1
+ PATH
2
+ remote: /home/marcus/Work/repos/github/dynamic_error_pages
3
+ specs:
4
+ dynamic_error_pages (0.0.1)
5
+ rails (>= 3.2.0, <= 4.1)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ actionmailer (3.2.14)
11
+ actionpack (= 3.2.14)
12
+ mail (~> 2.5.4)
13
+ actionpack (3.2.14)
14
+ activemodel (= 3.2.14)
15
+ activesupport (= 3.2.14)
16
+ builder (~> 3.0.0)
17
+ erubis (~> 2.7.0)
18
+ journey (~> 1.0.4)
19
+ rack (~> 1.4.5)
20
+ rack-cache (~> 1.2)
21
+ rack-test (~> 0.6.1)
22
+ sprockets (~> 2.2.1)
23
+ activemodel (3.2.14)
24
+ activesupport (= 3.2.14)
25
+ builder (~> 3.0.0)
26
+ activerecord (3.2.14)
27
+ activemodel (= 3.2.14)
28
+ activesupport (= 3.2.14)
29
+ arel (~> 3.0.2)
30
+ tzinfo (~> 0.3.29)
31
+ activeresource (3.2.14)
32
+ activemodel (= 3.2.14)
33
+ activesupport (= 3.2.14)
34
+ activesupport (3.2.14)
35
+ i18n (~> 0.6, >= 0.6.4)
36
+ multi_json (~> 1.0)
37
+ appraisal (0.5.2)
38
+ bundler
39
+ rake
40
+ arel (3.0.2)
41
+ builder (3.0.4)
42
+ capybara (2.1.0)
43
+ mime-types (>= 1.16)
44
+ nokogiri (>= 1.3.3)
45
+ rack (>= 1.0.0)
46
+ rack-test (>= 0.5.4)
47
+ xpath (~> 2.0)
48
+ coderay (1.0.9)
49
+ diff-lcs (1.2.4)
50
+ erubis (2.7.0)
51
+ hike (1.2.3)
52
+ i18n (0.6.5)
53
+ journey (1.0.4)
54
+ jquery-rails (3.0.4)
55
+ railties (>= 3.0, < 5.0)
56
+ thor (>= 0.14, < 2.0)
57
+ json (1.8.0)
58
+ mail (2.5.4)
59
+ mime-types (~> 1.16)
60
+ treetop (~> 1.4.8)
61
+ method_source (0.8.2)
62
+ mime-types (1.25)
63
+ mini_portile (0.5.1)
64
+ multi_json (1.8.0)
65
+ nokogiri (1.6.0)
66
+ mini_portile (~> 0.5.0)
67
+ polyglot (0.3.3)
68
+ pry (0.9.12.2)
69
+ coderay (~> 1.0.5)
70
+ method_source (~> 0.8)
71
+ slop (~> 3.4)
72
+ rack (1.4.5)
73
+ rack-cache (1.2)
74
+ rack (>= 0.4)
75
+ rack-ssl (1.3.3)
76
+ rack
77
+ rack-test (0.6.2)
78
+ rack (>= 1.0)
79
+ rails (3.2.14)
80
+ actionmailer (= 3.2.14)
81
+ actionpack (= 3.2.14)
82
+ activerecord (= 3.2.14)
83
+ activeresource (= 3.2.14)
84
+ activesupport (= 3.2.14)
85
+ bundler (~> 1.0)
86
+ railties (= 3.2.14)
87
+ railties (3.2.14)
88
+ actionpack (= 3.2.14)
89
+ activesupport (= 3.2.14)
90
+ rack-ssl (~> 1.3.2)
91
+ rake (>= 0.8.7)
92
+ rdoc (~> 3.4)
93
+ thor (>= 0.14.6, < 2.0)
94
+ rake (10.1.0)
95
+ rdoc (3.12.2)
96
+ json (~> 1.4)
97
+ rspec-core (2.14.5)
98
+ rspec-expectations (2.14.3)
99
+ diff-lcs (>= 1.1.3, < 2.0)
100
+ rspec-mocks (2.14.3)
101
+ rspec-rails (2.14.0)
102
+ actionpack (>= 3.0)
103
+ activesupport (>= 3.0)
104
+ railties (>= 3.0)
105
+ rspec-core (~> 2.14.0)
106
+ rspec-expectations (~> 2.14.0)
107
+ rspec-mocks (~> 2.14.0)
108
+ shoulda-matchers (2.4.0)
109
+ activesupport (>= 3.0.0)
110
+ slop (3.4.6)
111
+ sprockets (2.2.2)
112
+ hike (~> 1.2)
113
+ multi_json (~> 1.0)
114
+ rack (~> 1.0)
115
+ tilt (~> 1.1, != 1.3.0)
116
+ sqlite3 (1.3.8)
117
+ thor (0.18.1)
118
+ tilt (1.4.1)
119
+ treetop (1.4.15)
120
+ polyglot
121
+ polyglot (>= 0.3.1)
122
+ tzinfo (0.3.37)
123
+ xpath (2.0.0)
124
+ nokogiri (~> 1.3)
125
+
126
+ PLATFORMS
127
+ ruby
128
+
129
+ DEPENDENCIES
130
+ appraisal (~> 0.5.2)
131
+ bundler (~> 1.3)
132
+ capybara
133
+ dynamic_error_pages!
134
+ jquery-rails
135
+ pry
136
+ rails (~> 3.2.14)
137
+ rake (~> 10.1)
138
+ rspec-rails (~> 2.0)
139
+ shoulda-matchers (~> 2.4)
140
+ sqlite3
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "jquery-rails"
6
+ gem "rails", "~> 4.0.0"
7
+
8
+ gemspec :path=>"../"
@@ -0,0 +1,135 @@
1
+ PATH
2
+ remote: /home/marcus/Work/repos/github/dynamic_error_pages
3
+ specs:
4
+ dynamic_error_pages (0.0.1)
5
+ rails (>= 3.2.0, <= 4.1)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ actionmailer (4.0.0)
11
+ actionpack (= 4.0.0)
12
+ mail (~> 2.5.3)
13
+ actionpack (4.0.0)
14
+ activesupport (= 4.0.0)
15
+ builder (~> 3.1.0)
16
+ erubis (~> 2.7.0)
17
+ rack (~> 1.5.2)
18
+ rack-test (~> 0.6.2)
19
+ activemodel (4.0.0)
20
+ activesupport (= 4.0.0)
21
+ builder (~> 3.1.0)
22
+ activerecord (4.0.0)
23
+ activemodel (= 4.0.0)
24
+ activerecord-deprecated_finders (~> 1.0.2)
25
+ activesupport (= 4.0.0)
26
+ arel (~> 4.0.0)
27
+ activerecord-deprecated_finders (1.0.3)
28
+ activesupport (4.0.0)
29
+ i18n (~> 0.6, >= 0.6.4)
30
+ minitest (~> 4.2)
31
+ multi_json (~> 1.3)
32
+ thread_safe (~> 0.1)
33
+ tzinfo (~> 0.3.37)
34
+ appraisal (0.5.2)
35
+ bundler
36
+ rake
37
+ arel (4.0.0)
38
+ atomic (1.1.14)
39
+ builder (3.1.4)
40
+ capybara (2.1.0)
41
+ mime-types (>= 1.16)
42
+ nokogiri (>= 1.3.3)
43
+ rack (>= 1.0.0)
44
+ rack-test (>= 0.5.4)
45
+ xpath (~> 2.0)
46
+ coderay (1.0.9)
47
+ diff-lcs (1.2.4)
48
+ erubis (2.7.0)
49
+ hike (1.2.3)
50
+ i18n (0.6.5)
51
+ jquery-rails (3.0.4)
52
+ railties (>= 3.0, < 5.0)
53
+ thor (>= 0.14, < 2.0)
54
+ mail (2.5.4)
55
+ mime-types (~> 1.16)
56
+ treetop (~> 1.4.8)
57
+ method_source (0.8.2)
58
+ mime-types (1.25)
59
+ mini_portile (0.5.1)
60
+ minitest (4.7.5)
61
+ multi_json (1.8.0)
62
+ nokogiri (1.6.0)
63
+ mini_portile (~> 0.5.0)
64
+ polyglot (0.3.3)
65
+ pry (0.9.12.2)
66
+ coderay (~> 1.0.5)
67
+ method_source (~> 0.8)
68
+ slop (~> 3.4)
69
+ rack (1.5.2)
70
+ rack-test (0.6.2)
71
+ rack (>= 1.0)
72
+ rails (4.0.0)
73
+ actionmailer (= 4.0.0)
74
+ actionpack (= 4.0.0)
75
+ activerecord (= 4.0.0)
76
+ activesupport (= 4.0.0)
77
+ bundler (>= 1.3.0, < 2.0)
78
+ railties (= 4.0.0)
79
+ sprockets-rails (~> 2.0.0)
80
+ railties (4.0.0)
81
+ actionpack (= 4.0.0)
82
+ activesupport (= 4.0.0)
83
+ rake (>= 0.8.7)
84
+ thor (>= 0.18.1, < 2.0)
85
+ rake (10.1.0)
86
+ rspec-core (2.14.5)
87
+ rspec-expectations (2.14.3)
88
+ diff-lcs (>= 1.1.3, < 2.0)
89
+ rspec-mocks (2.14.3)
90
+ rspec-rails (2.14.0)
91
+ actionpack (>= 3.0)
92
+ activesupport (>= 3.0)
93
+ railties (>= 3.0)
94
+ rspec-core (~> 2.14.0)
95
+ rspec-expectations (~> 2.14.0)
96
+ rspec-mocks (~> 2.14.0)
97
+ shoulda-matchers (2.4.0)
98
+ activesupport (>= 3.0.0)
99
+ slop (3.4.6)
100
+ sprockets (2.10.0)
101
+ hike (~> 1.2)
102
+ multi_json (~> 1.0)
103
+ rack (~> 1.0)
104
+ tilt (~> 1.1, != 1.3.0)
105
+ sprockets-rails (2.0.0)
106
+ actionpack (>= 3.0)
107
+ activesupport (>= 3.0)
108
+ sprockets (~> 2.8)
109
+ sqlite3 (1.3.8)
110
+ thor (0.18.1)
111
+ thread_safe (0.1.3)
112
+ atomic
113
+ tilt (1.4.1)
114
+ treetop (1.4.15)
115
+ polyglot
116
+ polyglot (>= 0.3.1)
117
+ tzinfo (0.3.37)
118
+ xpath (2.0.0)
119
+ nokogiri (~> 1.3)
120
+
121
+ PLATFORMS
122
+ ruby
123
+
124
+ DEPENDENCIES
125
+ appraisal (~> 0.5.2)
126
+ bundler (~> 1.3)
127
+ capybara
128
+ dynamic_error_pages!
129
+ jquery-rails
130
+ pry
131
+ rails (~> 4.0.0)
132
+ rake (~> 10.1)
133
+ rspec-rails (~> 2.0)
134
+ shoulda-matchers (~> 2.4)
135
+ sqlite3
@@ -0,0 +1,4 @@
1
+ module DynamicErrorPages
2
+ class Engine < ::Rails::Engine
3
+ end
4
+ end
@@ -0,0 +1,3 @@
1
+ module DynamicErrorPages
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,2 @@
1
+ require "dynamic_error_pages/version"
2
+ require "dynamic_error_pages/engine"
@@ -0,0 +1,4 @@
1
+ # desc "Explaining what the task does"
2
+ # task :dynamic_error_pages do
3
+ # # Task goes here
4
+ # end
data/script/rails ADDED
@@ -0,0 +1,8 @@
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
+ ENGINE_ROOT = File.expand_path('../..', __FILE__)
5
+ ENGINE_PATH = File.expand_path('../../lib/dynamic_error_pages/engine', __FILE__)
6
+
7
+ require 'rails/all'
8
+ require 'rails/engine/commands'