exceptionally 1.0.1 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +10 -2
- data/lib/exceptionally/handler.rb +5 -3
- data/lib/exceptionally/version.rb +1 -1
- data/lib/exceptionally.rb +9 -0
- data/{test → spec}/dummy/app/assets/javascripts/application.js +1 -1
- data/{test → spec}/dummy/app/assets/stylesheets/application.css +5 -3
- data/{test → spec}/dummy/app/controllers/application_controller.rb +0 -0
- data/{test → spec}/dummy/app/helpers/application_helper.rb +0 -0
- data/spec/dummy/app/views/layouts/application.html.erb +13 -0
- data/{test → spec}/dummy/bin/bundle +0 -0
- data/{test → spec}/dummy/bin/rails +0 -0
- data/{test → spec}/dummy/bin/rake +0 -0
- data/spec/dummy/config/application.rb +12 -0
- data/{test → spec}/dummy/config/boot.rb +1 -1
- data/spec/dummy/config/database.yml +20 -0
- data/{test → spec}/dummy/config/environment.rb +1 -1
- data/{test → spec}/dummy/config/environments/development.rb +10 -5
- data/{test → spec}/dummy/config/environments/production.rb +8 -10
- data/{test → spec}/dummy/config/environments/test.rb +6 -8
- data/spec/dummy/config/initializers/assets.rb +8 -0
- data/{test → spec}/dummy/config/initializers/backtrace_silencers.rb +0 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/{test → spec}/dummy/config/initializers/filter_parameter_logging.rb +0 -0
- data/{test → spec}/dummy/config/initializers/inflections.rb +0 -0
- data/{test → spec}/dummy/config/initializers/mime_types.rb +0 -1
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/{test → spec}/dummy/config/initializers/wrap_parameters.rb +0 -0
- data/{test → spec}/dummy/config/locales/en.yml +0 -0
- data/spec/dummy/config/routes.rb +3 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/{test → spec}/dummy/config.ru +0 -0
- data/spec/dummy/log/test.log +13013 -0
- data/{test → spec}/dummy/public/404.html +20 -11
- data/{test → spec}/dummy/public/422.html +20 -11
- data/{test → spec}/dummy/public/500.html +19 -10
- data/{test → spec}/dummy/public/favicon.ico +0 -0
- data/spec/dummy/version.rb +3 -0
- data/spec/exceptionally/config_spec.rb +11 -0
- data/spec/exceptionally/controller_spec.rb +45 -0
- data/spec/exceptionally/handler_spec.rb +89 -0
- data/spec/spec_helper.rb +26 -0
- metadata +132 -70
- data/Rakefile +0 -32
- data/lib/tasks/exceptionally_tasks.rake +0 -4
- data/test/dummy/README.rdoc +0 -28
- data/test/dummy/Rakefile +0 -6
- data/test/dummy/app/views/layouts/application.html.erb +0 -14
- data/test/dummy/config/application.rb +0 -23
- data/test/dummy/config/database.yml +0 -25
- data/test/dummy/config/initializers/secret_token.rb +0 -12
- data/test/dummy/config/initializers/session_store.rb +0 -3
- data/test/dummy/config/routes.rb +0 -56
- data/test/exceptionally_test.rb +0 -7
- data/test/test_helper.rb +0 -15
data/Rakefile
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
begin
|
|
2
|
-
require 'bundler/setup'
|
|
3
|
-
rescue LoadError
|
|
4
|
-
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
|
5
|
-
end
|
|
6
|
-
|
|
7
|
-
require 'rdoc/task'
|
|
8
|
-
|
|
9
|
-
RDoc::Task.new(:rdoc) do |rdoc|
|
|
10
|
-
rdoc.rdoc_dir = 'rdoc'
|
|
11
|
-
rdoc.title = 'Exceptionally'
|
|
12
|
-
rdoc.options << '--line-numbers'
|
|
13
|
-
rdoc.rdoc_files.include('README.rdoc')
|
|
14
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
Bundler::GemHelper.install_tasks
|
|
21
|
-
|
|
22
|
-
require 'rake/testtask'
|
|
23
|
-
|
|
24
|
-
Rake::TestTask.new(:test) do |t|
|
|
25
|
-
t.libs << 'lib'
|
|
26
|
-
t.libs << 'test'
|
|
27
|
-
t.pattern = 'test/**/*_test.rb'
|
|
28
|
-
t.verbose = false
|
|
29
|
-
end
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
task default: :test
|
data/test/dummy/README.rdoc
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
== README
|
|
2
|
-
|
|
3
|
-
This README would normally document whatever steps are necessary to get the
|
|
4
|
-
application up and running.
|
|
5
|
-
|
|
6
|
-
Things you may want to cover:
|
|
7
|
-
|
|
8
|
-
* Ruby version
|
|
9
|
-
|
|
10
|
-
* System dependencies
|
|
11
|
-
|
|
12
|
-
* Configuration
|
|
13
|
-
|
|
14
|
-
* Database creation
|
|
15
|
-
|
|
16
|
-
* Database initialization
|
|
17
|
-
|
|
18
|
-
* How to run the test suite
|
|
19
|
-
|
|
20
|
-
* Services (job queues, cache servers, search engines, etc.)
|
|
21
|
-
|
|
22
|
-
* Deployment instructions
|
|
23
|
-
|
|
24
|
-
* ...
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
Please feel free to use a different markup language if you do not plan to run
|
|
28
|
-
<tt>rake doc:app</tt>.
|
data/test/dummy/Rakefile
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html>
|
|
3
|
-
<head>
|
|
4
|
-
<title>Dummy</title>
|
|
5
|
-
<%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %>
|
|
6
|
-
<%= javascript_include_tag "application", "data-turbolinks-track" => true %>
|
|
7
|
-
<%= csrf_meta_tags %>
|
|
8
|
-
</head>
|
|
9
|
-
<body>
|
|
10
|
-
|
|
11
|
-
<%= yield %>
|
|
12
|
-
|
|
13
|
-
</body>
|
|
14
|
-
</html>
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
require File.expand_path('../boot', __FILE__)
|
|
2
|
-
|
|
3
|
-
require 'rails/all'
|
|
4
|
-
|
|
5
|
-
Bundler.require(*Rails.groups)
|
|
6
|
-
require "exceptionally"
|
|
7
|
-
|
|
8
|
-
module Dummy
|
|
9
|
-
class Application < Rails::Application
|
|
10
|
-
# Settings in config/environments/* take precedence over those specified here.
|
|
11
|
-
# Application configuration should go into files in config/initializers
|
|
12
|
-
# -- all .rb files in that directory are automatically loaded.
|
|
13
|
-
|
|
14
|
-
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
|
15
|
-
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
|
16
|
-
# config.time_zone = 'Central Time (US & Canada)'
|
|
17
|
-
|
|
18
|
-
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
|
19
|
-
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
|
20
|
-
# config.i18n.default_locale = :de
|
|
21
|
-
end
|
|
22
|
-
end
|
|
23
|
-
|
|
@@ -1,25 +0,0 @@
|
|
|
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:
|
|
7
|
-
adapter: sqlite3
|
|
8
|
-
database: db/development.sqlite3
|
|
9
|
-
pool: 5
|
|
10
|
-
timeout: 5000
|
|
11
|
-
|
|
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:
|
|
16
|
-
adapter: sqlite3
|
|
17
|
-
database: db/test.sqlite3
|
|
18
|
-
pool: 5
|
|
19
|
-
timeout: 5000
|
|
20
|
-
|
|
21
|
-
production:
|
|
22
|
-
adapter: sqlite3
|
|
23
|
-
database: db/production.sqlite3
|
|
24
|
-
pool: 5
|
|
25
|
-
timeout: 5000
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
|
2
|
-
|
|
3
|
-
# Your secret key is used for verifying the integrity of signed cookies.
|
|
4
|
-
# If you change this key, all old signed cookies will become invalid!
|
|
5
|
-
|
|
6
|
-
# Make sure the secret is at least 30 characters and all random,
|
|
7
|
-
# no regular words or you'll be exposed to dictionary attacks.
|
|
8
|
-
# You can use `rake secret` to generate a secure secret key.
|
|
9
|
-
|
|
10
|
-
# Make sure your secret_key_base is kept private
|
|
11
|
-
# if you're sharing your code publicly.
|
|
12
|
-
Dummy::Application.config.secret_key_base = '3b42215b538d254c5c2604321dc460709431f1de40a3153c560de864648297c045df06f77e4f3b2253048779f23cd43e11839d40143cbd29e7714c97180bb7f7'
|
data/test/dummy/config/routes.rb
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
Dummy::Application.routes.draw do
|
|
2
|
-
# The priority is based upon order of creation: first created -> highest priority.
|
|
3
|
-
# See how all your routes lay out with "rake routes".
|
|
4
|
-
|
|
5
|
-
# You can have the root of your site routed with "root"
|
|
6
|
-
# root 'welcome#index'
|
|
7
|
-
|
|
8
|
-
# Example of regular route:
|
|
9
|
-
# get 'products/:id' => 'catalog#view'
|
|
10
|
-
|
|
11
|
-
# Example of named route that can be invoked with purchase_url(id: product.id)
|
|
12
|
-
# get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
|
|
13
|
-
|
|
14
|
-
# Example resource route (maps HTTP verbs to controller actions automatically):
|
|
15
|
-
# resources :products
|
|
16
|
-
|
|
17
|
-
# Example resource route with options:
|
|
18
|
-
# resources :products do
|
|
19
|
-
# member do
|
|
20
|
-
# get 'short'
|
|
21
|
-
# post 'toggle'
|
|
22
|
-
# end
|
|
23
|
-
#
|
|
24
|
-
# collection do
|
|
25
|
-
# get 'sold'
|
|
26
|
-
# end
|
|
27
|
-
# end
|
|
28
|
-
|
|
29
|
-
# Example resource route with sub-resources:
|
|
30
|
-
# resources :products do
|
|
31
|
-
# resources :comments, :sales
|
|
32
|
-
# resource :seller
|
|
33
|
-
# end
|
|
34
|
-
|
|
35
|
-
# Example resource route with more complex sub-resources:
|
|
36
|
-
# resources :products do
|
|
37
|
-
# resources :comments
|
|
38
|
-
# resources :sales do
|
|
39
|
-
# get 'recent', on: :collection
|
|
40
|
-
# end
|
|
41
|
-
# end
|
|
42
|
-
|
|
43
|
-
# Example resource route with concerns:
|
|
44
|
-
# concern :toggleable do
|
|
45
|
-
# post 'toggle'
|
|
46
|
-
# end
|
|
47
|
-
# resources :posts, concerns: :toggleable
|
|
48
|
-
# resources :photos, concerns: :toggleable
|
|
49
|
-
|
|
50
|
-
# Example resource route within a namespace:
|
|
51
|
-
# namespace :admin do
|
|
52
|
-
# # Directs /admin/products/* to Admin::ProductsController
|
|
53
|
-
# # (app/controllers/admin/products_controller.rb)
|
|
54
|
-
# resources :products
|
|
55
|
-
# end
|
|
56
|
-
end
|
data/test/exceptionally_test.rb
DELETED
data/test/test_helper.rb
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# Configure Rails Environment
|
|
2
|
-
ENV["RAILS_ENV"] = "test"
|
|
3
|
-
|
|
4
|
-
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
|
5
|
-
require "rails/test_help"
|
|
6
|
-
|
|
7
|
-
Rails.backtrace_cleaner.remove_silencers!
|
|
8
|
-
|
|
9
|
-
# Load support files
|
|
10
|
-
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
|
11
|
-
|
|
12
|
-
# Load fixtures from the engine
|
|
13
|
-
if ActiveSupport::TestCase.method_defined?(:fixture_path=)
|
|
14
|
-
ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
|
|
15
|
-
end
|