dread 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -1
- data/.travis.yml +9 -3
- data/Appraisals +11 -0
- data/Gemfile +1 -12
- data/dread.gemspec +1 -0
- data/gemfiles/rails_3.2.gemfile +7 -0
- data/gemfiles/rails_4.0.gemfile +7 -0
- data/gemfiles/rails_4.1.gemfile +7 -0
- data/lib/dread/graph.rb +11 -19
- data/lib/dread/version.rb +1 -1
- data/test/dread_test.rb +38 -0
- data/test/dummy/app/models/account.rb +3 -0
- data/test/dummy/app/models/employee.rb +7 -0
- data/test/dummy/app/models/supplier.rb +3 -0
- data/test/dummy/app/models/wtf.rb +5 -0
- data/test/dummy/app/models/wtf/ashtray.rb +3 -0
- data/test/dummy/app/models/wtf/cigarette.rb +3 -0
- data/test/dummy/config/environments/test.rb +1 -1
- data/test/dummy/db/migrate/20140918213749_create_employees.rb +10 -0
- data/test/dummy/db/migrate/20140918220905_create_suppliers.rb +9 -0
- data/test/dummy/db/migrate/20140918220929_create_accounts.rb +10 -0
- data/test/dummy/db/migrate/20140918223314_create_wtf_ashtrays.rb +9 -0
- data/test/dummy/db/migrate/20140918223342_create_wtf_cigarettes.rb +9 -0
- data/test/dummy/db/schema.rb +33 -1
- metadata +42 -16
- data/test/dummy/README.rdoc +0 -28
- data/test/dummy/lib/assets/.keep +0 -0
- data/test/dummy/log/.keep +0 -0
- data/test/dummy/public/404.html +0 -67
- data/test/dummy/public/422.html +0 -67
- data/test/dummy/public/500.html +0 -66
- data/test/dummy/public/favicon.ico +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 58f1d635f7dd155d80768ba4bc69cbf6a878b2c0
|
4
|
+
data.tar.gz: 431970c23d2bb44ac58ea49e5e71cad7405aa7b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6bfc68d886b19950e957aaa4f5e8a0fc745d1d71c00a580d78a55863240e7e7b2fed650de5a8578429f35d0a1602e0f1018b041b69de80b59a057cb2270b3d7d
|
7
|
+
data.tar.gz: d897893f97a001b18db6bbf198eed05e6366de58c9582893439d29a405afedc65d0d189ceeef8c2a6823c3d8babaad6d616f96e3bc02fb24c708f8cd0b81fe94
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
data/Appraisals
ADDED
data/Gemfile
CHANGED
@@ -1,14 +1,3 @@
|
|
1
1
|
source "https://rubygems.org"
|
2
2
|
|
3
|
-
|
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
|
-
# Declare any dependencies that are still in development here instead of in
|
9
|
-
# your gemspec. These might include edge Rails or gems from your path or
|
10
|
-
# Git. Remember to move these dependencies to your gemspec before releasing
|
11
|
-
# your gem to rubygems.org.
|
12
|
-
|
13
|
-
# To use debugger
|
14
|
-
# gem 'debugger'
|
3
|
+
gemspec
|
data/dread.gemspec
CHANGED
data/lib/dread/graph.rb
CHANGED
@@ -3,18 +3,21 @@ require 'dread/console_output'
|
|
3
3
|
module Dread
|
4
4
|
class Graph
|
5
5
|
|
6
|
-
attr_reader :clazz, :dependable_collection
|
6
|
+
attr_reader :clazz, :dependable_collection, :collected_clazzes
|
7
7
|
|
8
|
-
def initialize(clazz_data, pluralized=false)
|
8
|
+
def initialize(clazz_data, pluralized=false, collected_clazzes=[])
|
9
9
|
set_and_verify_clazz_and_relation(clazz_data)
|
10
10
|
@pluralized = pluralized
|
11
|
-
|
11
|
+
@collected_clazzes = collected_clazzes
|
12
12
|
end
|
13
13
|
|
14
14
|
# { user: { tweets: { comments: {} }, comments: {}, setting: {} } }
|
15
15
|
def dependable_collection
|
16
|
-
@dependable_collection ||=
|
16
|
+
@dependable_collection ||= if self.clazz.in? collected_clazzes
|
17
|
+
{ @relation.to_sym => { '...'.to_sym => {} } }
|
18
|
+
else
|
17
19
|
{ @relation.to_sym => collect_dependables }
|
20
|
+
end
|
18
21
|
end
|
19
22
|
|
20
23
|
def draw(output='console_output')
|
@@ -26,14 +29,6 @@ module Dread
|
|
26
29
|
|
27
30
|
private
|
28
31
|
|
29
|
-
def track!(reflection)
|
30
|
-
@@tracker << reflection
|
31
|
-
end
|
32
|
-
|
33
|
-
def tracked?(reflection)
|
34
|
-
@@tracker.include? reflection
|
35
|
-
end
|
36
|
-
|
37
32
|
def set_and_verify_clazz_and_relation(clazz_data)
|
38
33
|
begin
|
39
34
|
set_clazz_and_relation(clazz_data)
|
@@ -45,11 +40,11 @@ module Dread
|
|
45
40
|
def set_clazz_and_relation(clazz_data)
|
46
41
|
case clazz_data
|
47
42
|
when ActiveRecord::Reflection::AssociationReflection
|
48
|
-
@clazz = (clazz_data.
|
43
|
+
@clazz = (clazz_data.klass.to_s || clazz_data.table_name).constantize
|
49
44
|
@relation = clazz_data.name
|
50
45
|
when String
|
51
46
|
@clazz = (clazz_data.classify).constantize
|
52
|
-
@relation = clazz_data
|
47
|
+
@relation = clazz_data.underscore
|
53
48
|
when NilClass
|
54
49
|
raise Error.new('Please pass a env var called class to proceed. E.g: rake dread class=user')
|
55
50
|
else
|
@@ -64,11 +59,8 @@ module Dread
|
|
64
59
|
when :delete
|
65
60
|
relation_hash[assoc_name] = {}
|
66
61
|
when :destroy
|
67
|
-
|
68
|
-
|
69
|
-
relation_hash.merge!(
|
70
|
-
Graph.new(assoc_data, assoc_data.macro == :has_many).dependable_collection)
|
71
|
-
# end
|
62
|
+
relation_hash.merge!(
|
63
|
+
Graph.new(assoc_data, assoc_data.macro == :has_many, collected_clazzes + [self.clazz]).dependable_collection)
|
72
64
|
end
|
73
65
|
end
|
74
66
|
end
|
data/lib/dread/version.rb
CHANGED
data/test/dread_test.rb
CHANGED
@@ -36,4 +36,42 @@ class DreadTest < ActiveSupport::TestCase
|
|
36
36
|
dependable_collection[:user][:tweets].assert_valid_keys(:comments, :pictures)
|
37
37
|
end
|
38
38
|
|
39
|
+
test 'self-join' do
|
40
|
+
dread_graph = Dread::Graph.new('employee')
|
41
|
+
dependable_collection = dread_graph.dependable_collection
|
42
|
+
dependable_collection.assert_valid_keys(:employee)
|
43
|
+
dependable_collection[:employee].assert_valid_keys(:subordinates)
|
44
|
+
dependable_collection[:employee][:subordinates].assert_valid_keys('...'.to_sym)
|
45
|
+
assert_equal Hash.new, dependable_collection[:employee][:subordinates]['...'.to_sym]
|
46
|
+
end
|
47
|
+
|
48
|
+
test 'self-join drawing' do
|
49
|
+
dread_graph = Dread::Graph.new('employee')
|
50
|
+
dread_graph.draw
|
51
|
+
end
|
52
|
+
|
53
|
+
test 'circular dependent destroy has one' do
|
54
|
+
dread_graph = Dread::Graph.new('supplier')
|
55
|
+
dependable_collection = dread_graph.dependable_collection
|
56
|
+
dependable_collection.assert_valid_keys(:supplier)
|
57
|
+
dependable_collection[:supplier].assert_valid_keys(:account)
|
58
|
+
dependable_collection[:supplier][:account].assert_valid_keys(:supplier)
|
59
|
+
dependable_collection[:supplier][:account][:supplier].assert_valid_keys('...'.to_sym)
|
60
|
+
end
|
61
|
+
|
62
|
+
test 'circular dependent destroy belongs_to' do
|
63
|
+
dread_graph = Dread::Graph.new('account')
|
64
|
+
dependable_collection = dread_graph.dependable_collection
|
65
|
+
dependable_collection.assert_valid_keys(:account)
|
66
|
+
dependable_collection[:account].assert_valid_keys(:supplier)
|
67
|
+
dependable_collection[:account][:supplier].assert_valid_keys(:account)
|
68
|
+
dependable_collection[:account][:supplier][:account].assert_valid_keys('...'.to_sym)
|
69
|
+
end
|
70
|
+
|
71
|
+
test 'namespaced associations' do
|
72
|
+
dread_graph = Dread::Graph.new('Wtf::Ashtray')
|
73
|
+
dependable_collection = dread_graph.dependable_collection
|
74
|
+
dependable_collection.assert_valid_keys(:'wtf/ashtray')
|
75
|
+
dependable_collection[:'wtf/ashtray'].assert_valid_keys(:cigarettes)
|
76
|
+
end
|
39
77
|
end
|
data/test/dummy/db/schema.rb
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
#
|
12
12
|
# It's strongly recommended that you check this file into your version control system.
|
13
13
|
|
14
|
-
ActiveRecord::Schema.define(version:
|
14
|
+
ActiveRecord::Schema.define(version: 20140918223342) do
|
15
15
|
|
16
16
|
create_table "account_settings", force: true do |t|
|
17
17
|
t.string "time_zone"
|
@@ -20,6 +20,13 @@ ActiveRecord::Schema.define(version: 20140915161852) do
|
|
20
20
|
t.datetime "updated_at"
|
21
21
|
end
|
22
22
|
|
23
|
+
create_table "accounts", force: true do |t|
|
24
|
+
t.string "supplier_id"
|
25
|
+
t.string "account_number"
|
26
|
+
t.datetime "created_at"
|
27
|
+
t.datetime "updated_at"
|
28
|
+
end
|
29
|
+
|
23
30
|
create_table "comments", force: true do |t|
|
24
31
|
t.integer "tweet_id"
|
25
32
|
t.integer "user_id"
|
@@ -34,6 +41,13 @@ ActiveRecord::Schema.define(version: 20140915161852) do
|
|
34
41
|
t.datetime "updated_at"
|
35
42
|
end
|
36
43
|
|
44
|
+
create_table "employees", force: true do |t|
|
45
|
+
t.string "name"
|
46
|
+
t.integer "manager_id"
|
47
|
+
t.datetime "created_at"
|
48
|
+
t.datetime "updated_at"
|
49
|
+
end
|
50
|
+
|
37
51
|
create_table "pictures", force: true do |t|
|
38
52
|
t.string "url"
|
39
53
|
t.integer "imageable_id"
|
@@ -42,6 +56,12 @@ ActiveRecord::Schema.define(version: 20140915161852) do
|
|
42
56
|
t.datetime "updated_at"
|
43
57
|
end
|
44
58
|
|
59
|
+
create_table "suppliers", force: true do |t|
|
60
|
+
t.string "name"
|
61
|
+
t.datetime "created_at"
|
62
|
+
t.datetime "updated_at"
|
63
|
+
end
|
64
|
+
|
45
65
|
create_table "tweets", force: true do |t|
|
46
66
|
t.integer "user_id"
|
47
67
|
t.string "content"
|
@@ -56,4 +76,16 @@ ActiveRecord::Schema.define(version: 20140915161852) do
|
|
56
76
|
t.datetime "updated_at"
|
57
77
|
end
|
58
78
|
|
79
|
+
create_table "wtf_ashtrays", force: true do |t|
|
80
|
+
t.string "color"
|
81
|
+
t.datetime "created_at"
|
82
|
+
t.datetime "updated_at"
|
83
|
+
end
|
84
|
+
|
85
|
+
create_table "wtf_cigarettes", force: true do |t|
|
86
|
+
t.string "brand"
|
87
|
+
t.datetime "created_at"
|
88
|
+
t.datetime "updated_at"
|
89
|
+
end
|
90
|
+
|
59
91
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dread
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Damir Svrtan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-09-
|
11
|
+
date: 2014-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -66,6 +66,20 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: appraisal
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
69
83
|
description: Description of Dread.
|
70
84
|
email:
|
71
85
|
- damir.svrtan@gmail.com
|
@@ -75,11 +89,15 @@ extra_rdoc_files: []
|
|
75
89
|
files:
|
76
90
|
- ".gitignore"
|
77
91
|
- ".travis.yml"
|
92
|
+
- Appraisals
|
78
93
|
- Gemfile
|
79
94
|
- MIT-LICENSE
|
80
95
|
- README.md
|
81
96
|
- Rakefile
|
82
97
|
- dread.gemspec
|
98
|
+
- gemfiles/rails_3.2.gemfile
|
99
|
+
- gemfiles/rails_4.0.gemfile
|
100
|
+
- gemfiles/rails_4.1.gemfile
|
83
101
|
- lib/dread.rb
|
84
102
|
- lib/dread/console_output.rb
|
85
103
|
- lib/dread/error.rb
|
@@ -87,14 +105,19 @@ files:
|
|
87
105
|
- lib/dread/version.rb
|
88
106
|
- lib/tasks/dread.rake
|
89
107
|
- test/dread_test.rb
|
90
|
-
- test/dummy/README.rdoc
|
91
108
|
- test/dummy/Rakefile
|
109
|
+
- test/dummy/app/models/account.rb
|
92
110
|
- test/dummy/app/models/account_setting.rb
|
93
111
|
- test/dummy/app/models/comment.rb
|
94
112
|
- test/dummy/app/models/country.rb
|
113
|
+
- test/dummy/app/models/employee.rb
|
95
114
|
- test/dummy/app/models/picture.rb
|
115
|
+
- test/dummy/app/models/supplier.rb
|
96
116
|
- test/dummy/app/models/tweet.rb
|
97
117
|
- test/dummy/app/models/user.rb
|
118
|
+
- test/dummy/app/models/wtf.rb
|
119
|
+
- test/dummy/app/models/wtf/ashtray.rb
|
120
|
+
- test/dummy/app/models/wtf/cigarette.rb
|
98
121
|
- test/dummy/bin/bundle
|
99
122
|
- test/dummy/bin/rails
|
100
123
|
- test/dummy/bin/rake
|
@@ -123,13 +146,12 @@ files:
|
|
123
146
|
- test/dummy/db/migrate/20140914191313_create_countries.rb
|
124
147
|
- test/dummy/db/migrate/20140914191415_create_account_settings.rb
|
125
148
|
- test/dummy/db/migrate/20140915161852_create_pictures.rb
|
149
|
+
- test/dummy/db/migrate/20140918213749_create_employees.rb
|
150
|
+
- test/dummy/db/migrate/20140918220905_create_suppliers.rb
|
151
|
+
- test/dummy/db/migrate/20140918220929_create_accounts.rb
|
152
|
+
- test/dummy/db/migrate/20140918223314_create_wtf_ashtrays.rb
|
153
|
+
- test/dummy/db/migrate/20140918223342_create_wtf_cigarettes.rb
|
126
154
|
- test/dummy/db/schema.rb
|
127
|
-
- test/dummy/lib/assets/.keep
|
128
|
-
- test/dummy/log/.keep
|
129
|
-
- test/dummy/public/404.html
|
130
|
-
- test/dummy/public/422.html
|
131
|
-
- test/dummy/public/500.html
|
132
|
-
- test/dummy/public/favicon.ico
|
133
155
|
- test/test_helper.rb
|
134
156
|
homepage: https://github.com/DamirSvrtan/dread
|
135
157
|
licenses:
|
@@ -157,14 +179,19 @@ specification_version: 4
|
|
157
179
|
summary: Summary of Dread.
|
158
180
|
test_files:
|
159
181
|
- test/dread_test.rb
|
160
|
-
- test/dummy/README.rdoc
|
161
182
|
- test/dummy/Rakefile
|
183
|
+
- test/dummy/app/models/account.rb
|
162
184
|
- test/dummy/app/models/account_setting.rb
|
163
185
|
- test/dummy/app/models/comment.rb
|
164
186
|
- test/dummy/app/models/country.rb
|
187
|
+
- test/dummy/app/models/employee.rb
|
165
188
|
- test/dummy/app/models/picture.rb
|
189
|
+
- test/dummy/app/models/supplier.rb
|
166
190
|
- test/dummy/app/models/tweet.rb
|
167
191
|
- test/dummy/app/models/user.rb
|
192
|
+
- test/dummy/app/models/wtf.rb
|
193
|
+
- test/dummy/app/models/wtf/ashtray.rb
|
194
|
+
- test/dummy/app/models/wtf/cigarette.rb
|
168
195
|
- test/dummy/bin/bundle
|
169
196
|
- test/dummy/bin/rails
|
170
197
|
- test/dummy/bin/rake
|
@@ -193,11 +220,10 @@ test_files:
|
|
193
220
|
- test/dummy/db/migrate/20140914191313_create_countries.rb
|
194
221
|
- test/dummy/db/migrate/20140914191415_create_account_settings.rb
|
195
222
|
- test/dummy/db/migrate/20140915161852_create_pictures.rb
|
223
|
+
- test/dummy/db/migrate/20140918213749_create_employees.rb
|
224
|
+
- test/dummy/db/migrate/20140918220905_create_suppliers.rb
|
225
|
+
- test/dummy/db/migrate/20140918220929_create_accounts.rb
|
226
|
+
- test/dummy/db/migrate/20140918223314_create_wtf_ashtrays.rb
|
227
|
+
- test/dummy/db/migrate/20140918223342_create_wtf_cigarettes.rb
|
196
228
|
- test/dummy/db/schema.rb
|
197
|
-
- test/dummy/lib/assets/.keep
|
198
|
-
- test/dummy/log/.keep
|
199
|
-
- test/dummy/public/404.html
|
200
|
-
- test/dummy/public/422.html
|
201
|
-
- test/dummy/public/500.html
|
202
|
-
- test/dummy/public/favicon.ico
|
203
229
|
- test/test_helper.rb
|
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/lib/assets/.keep
DELETED
File without changes
|
data/test/dummy/log/.keep
DELETED
File without changes
|
data/test/dummy/public/404.html
DELETED
@@ -1,67 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
-
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
-
<style>
|
7
|
-
body {
|
8
|
-
background-color: #EFEFEF;
|
9
|
-
color: #2E2F30;
|
10
|
-
text-align: center;
|
11
|
-
font-family: arial, sans-serif;
|
12
|
-
margin: 0;
|
13
|
-
}
|
14
|
-
|
15
|
-
div.dialog {
|
16
|
-
width: 95%;
|
17
|
-
max-width: 33em;
|
18
|
-
margin: 4em auto 0;
|
19
|
-
}
|
20
|
-
|
21
|
-
div.dialog > div {
|
22
|
-
border: 1px solid #CCC;
|
23
|
-
border-right-color: #999;
|
24
|
-
border-left-color: #999;
|
25
|
-
border-bottom-color: #BBB;
|
26
|
-
border-top: #B00100 solid 4px;
|
27
|
-
border-top-left-radius: 9px;
|
28
|
-
border-top-right-radius: 9px;
|
29
|
-
background-color: white;
|
30
|
-
padding: 7px 12% 0;
|
31
|
-
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
-
}
|
33
|
-
|
34
|
-
h1 {
|
35
|
-
font-size: 100%;
|
36
|
-
color: #730E15;
|
37
|
-
line-height: 1.5em;
|
38
|
-
}
|
39
|
-
|
40
|
-
div.dialog > p {
|
41
|
-
margin: 0 0 1em;
|
42
|
-
padding: 1em;
|
43
|
-
background-color: #F7F7F7;
|
44
|
-
border: 1px solid #CCC;
|
45
|
-
border-right-color: #999;
|
46
|
-
border-left-color: #999;
|
47
|
-
border-bottom-color: #999;
|
48
|
-
border-bottom-left-radius: 4px;
|
49
|
-
border-bottom-right-radius: 4px;
|
50
|
-
border-top-color: #DADADA;
|
51
|
-
color: #666;
|
52
|
-
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
-
}
|
54
|
-
</style>
|
55
|
-
</head>
|
56
|
-
|
57
|
-
<body>
|
58
|
-
<!-- This file lives in public/404.html -->
|
59
|
-
<div class="dialog">
|
60
|
-
<div>
|
61
|
-
<h1>The page you were looking for doesn't exist.</h1>
|
62
|
-
<p>You may have mistyped the address or the page may have moved.</p>
|
63
|
-
</div>
|
64
|
-
<p>If you are the application owner check the logs for more information.</p>
|
65
|
-
</div>
|
66
|
-
</body>
|
67
|
-
</html>
|
data/test/dummy/public/422.html
DELETED
@@ -1,67 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>The change you wanted was rejected (422)</title>
|
5
|
-
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
-
<style>
|
7
|
-
body {
|
8
|
-
background-color: #EFEFEF;
|
9
|
-
color: #2E2F30;
|
10
|
-
text-align: center;
|
11
|
-
font-family: arial, sans-serif;
|
12
|
-
margin: 0;
|
13
|
-
}
|
14
|
-
|
15
|
-
div.dialog {
|
16
|
-
width: 95%;
|
17
|
-
max-width: 33em;
|
18
|
-
margin: 4em auto 0;
|
19
|
-
}
|
20
|
-
|
21
|
-
div.dialog > div {
|
22
|
-
border: 1px solid #CCC;
|
23
|
-
border-right-color: #999;
|
24
|
-
border-left-color: #999;
|
25
|
-
border-bottom-color: #BBB;
|
26
|
-
border-top: #B00100 solid 4px;
|
27
|
-
border-top-left-radius: 9px;
|
28
|
-
border-top-right-radius: 9px;
|
29
|
-
background-color: white;
|
30
|
-
padding: 7px 12% 0;
|
31
|
-
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
-
}
|
33
|
-
|
34
|
-
h1 {
|
35
|
-
font-size: 100%;
|
36
|
-
color: #730E15;
|
37
|
-
line-height: 1.5em;
|
38
|
-
}
|
39
|
-
|
40
|
-
div.dialog > p {
|
41
|
-
margin: 0 0 1em;
|
42
|
-
padding: 1em;
|
43
|
-
background-color: #F7F7F7;
|
44
|
-
border: 1px solid #CCC;
|
45
|
-
border-right-color: #999;
|
46
|
-
border-left-color: #999;
|
47
|
-
border-bottom-color: #999;
|
48
|
-
border-bottom-left-radius: 4px;
|
49
|
-
border-bottom-right-radius: 4px;
|
50
|
-
border-top-color: #DADADA;
|
51
|
-
color: #666;
|
52
|
-
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
-
}
|
54
|
-
</style>
|
55
|
-
</head>
|
56
|
-
|
57
|
-
<body>
|
58
|
-
<!-- This file lives in public/422.html -->
|
59
|
-
<div class="dialog">
|
60
|
-
<div>
|
61
|
-
<h1>The change you wanted was rejected.</h1>
|
62
|
-
<p>Maybe you tried to change something you didn't have access to.</p>
|
63
|
-
</div>
|
64
|
-
<p>If you are the application owner check the logs for more information.</p>
|
65
|
-
</div>
|
66
|
-
</body>
|
67
|
-
</html>
|
data/test/dummy/public/500.html
DELETED
@@ -1,66 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>We're sorry, but something went wrong (500)</title>
|
5
|
-
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
-
<style>
|
7
|
-
body {
|
8
|
-
background-color: #EFEFEF;
|
9
|
-
color: #2E2F30;
|
10
|
-
text-align: center;
|
11
|
-
font-family: arial, sans-serif;
|
12
|
-
margin: 0;
|
13
|
-
}
|
14
|
-
|
15
|
-
div.dialog {
|
16
|
-
width: 95%;
|
17
|
-
max-width: 33em;
|
18
|
-
margin: 4em auto 0;
|
19
|
-
}
|
20
|
-
|
21
|
-
div.dialog > div {
|
22
|
-
border: 1px solid #CCC;
|
23
|
-
border-right-color: #999;
|
24
|
-
border-left-color: #999;
|
25
|
-
border-bottom-color: #BBB;
|
26
|
-
border-top: #B00100 solid 4px;
|
27
|
-
border-top-left-radius: 9px;
|
28
|
-
border-top-right-radius: 9px;
|
29
|
-
background-color: white;
|
30
|
-
padding: 7px 12% 0;
|
31
|
-
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
-
}
|
33
|
-
|
34
|
-
h1 {
|
35
|
-
font-size: 100%;
|
36
|
-
color: #730E15;
|
37
|
-
line-height: 1.5em;
|
38
|
-
}
|
39
|
-
|
40
|
-
div.dialog > p {
|
41
|
-
margin: 0 0 1em;
|
42
|
-
padding: 1em;
|
43
|
-
background-color: #F7F7F7;
|
44
|
-
border: 1px solid #CCC;
|
45
|
-
border-right-color: #999;
|
46
|
-
border-left-color: #999;
|
47
|
-
border-bottom-color: #999;
|
48
|
-
border-bottom-left-radius: 4px;
|
49
|
-
border-bottom-right-radius: 4px;
|
50
|
-
border-top-color: #DADADA;
|
51
|
-
color: #666;
|
52
|
-
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
-
}
|
54
|
-
</style>
|
55
|
-
</head>
|
56
|
-
|
57
|
-
<body>
|
58
|
-
<!-- This file lives in public/500.html -->
|
59
|
-
<div class="dialog">
|
60
|
-
<div>
|
61
|
-
<h1>We're sorry, but something went wrong.</h1>
|
62
|
-
</div>
|
63
|
-
<p>If you are the application owner check the logs for more information.</p>
|
64
|
-
</div>
|
65
|
-
</body>
|
66
|
-
</html>
|
File without changes
|