dread 0.0.6 → 0.0.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 34cd6aee3f85a657ebabe35bc350cbf3ccc2f95d
4
- data.tar.gz: e72c6897aeec2fb15e4209c322ab0778151a9778
3
+ metadata.gz: 58f1d635f7dd155d80768ba4bc69cbf6a878b2c0
4
+ data.tar.gz: 431970c23d2bb44ac58ea49e5e71cad7405aa7b1
5
5
  SHA512:
6
- metadata.gz: d2f0d84dfc7d199d42cadc2e1f028f8c3afacc6d4ae5c1d7b0fc0ee3c3ca04af8a444cc4ec5263b9b5c442b1cbe5e75b0c5cbe947523ef8e84dc1ceb943b51a6
7
- data.tar.gz: c498def53e5c72d80f86873b3dde2b033d4c00c08771bf8e8a4dc35123a496bfe917c997217ca35b6e102f55439e744cf8607e8ca7e8ae5f10bc098241c2bd7a
6
+ metadata.gz: 6bfc68d886b19950e957aaa4f5e8a0fc745d1d71c00a580d78a55863240e7e7b2fed650de5a8578429f35d0a1602e0f1018b041b69de80b59a057cb2270b3d7d
7
+ data.tar.gz: d897893f97a001b18db6bbf198eed05e6366de58c9582893439d29a405afedc65d0d189ceeef8c2a6823c3d8babaad6d616f96e3bc02fb24c708f8cd0b81fe94
data/.gitignore CHANGED
@@ -6,4 +6,5 @@ test/dummy/db/*.sqlite3-journal
6
6
  test/dummy/log/*.log
7
7
  test/dummy/tmp/
8
8
  test/dummy/.sass-cache
9
- Gemfile.lock
9
+ Gemfile.lock
10
+ gemfiles/*.gemfile.lock
@@ -1,5 +1,11 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 1.9.3
4
- - 2.0.0
5
- - 2.1.2
3
+ - 1.9.3
4
+ - 2.0.0
5
+ - 2.1.2
6
+ gemfile:
7
+ - gemfiles/3.2.gemfile
8
+ - gemfiles/4.0.gemfile
9
+ - gemfiles/4.1.gemfile
10
+ install:
11
+ - "travis_retry bundle install"
@@ -0,0 +1,11 @@
1
+ appraise "rails-3.2" do
2
+ gem "rails", "3.2.14"
3
+ end
4
+
5
+ appraise "rails-4.0" do
6
+ gem "rails", "4.0.0"
7
+ end
8
+
9
+ appraise "rails-4.1" do
10
+ gem "rails", "4.1.4"
11
+ end
data/Gemfile CHANGED
@@ -1,14 +1,3 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- # Declare your gem's dependencies in dread.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
- # 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
@@ -23,4 +23,5 @@ Gem::Specification.new do |s|
23
23
 
24
24
  s.add_development_dependency "sqlite3"
25
25
  s.add_development_dependency "pry-rails"
26
+ s.add_development_dependency "appraisal"
26
27
  end
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "3.2.14"
6
+
7
+ gemspec :path => "../"
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "4.0.0"
6
+
7
+ gemspec :path => "../"
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "4.1.4"
6
+
7
+ gemspec :path => "../"
@@ -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
- @@tracker ||= []
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.class_name || clazz_data.table_name).constantize
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
- # unless tracked?(assoc_data)
68
- # track!(assoc_data)
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
@@ -1,3 +1,3 @@
1
1
  module Dread
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -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
@@ -0,0 +1,3 @@
1
+ class Account < ActiveRecord::Base
2
+ belongs_to :supplier, dependent: :destroy
3
+ end
@@ -0,0 +1,7 @@
1
+ class Employee < ActiveRecord::Base
2
+ has_many :subordinates, class_name: Employee,
3
+ foreign_key: "manager_id",
4
+ dependent: :destroy
5
+
6
+ belongs_to :manager, class_name: Employee
7
+ end
@@ -0,0 +1,3 @@
1
+ class Supplier < ActiveRecord::Base
2
+ has_one :account, dependent: :destroy
3
+ end
@@ -0,0 +1,5 @@
1
+ module Wtf
2
+ def self.table_name_prefix
3
+ 'wtf_'
4
+ end
5
+ end
@@ -0,0 +1,3 @@
1
+ class Wtf::Ashtray < ActiveRecord::Base
2
+ has_many :cigarettes, dependent: :destroy
3
+ end
@@ -0,0 +1,3 @@
1
+ class Wtf::Cigarette < ActiveRecord::Base
2
+ belongs_to :ashtray
3
+ end
@@ -1,4 +1,4 @@
1
- Rails.application.configure do
1
+ Dummy::Application.configure do
2
2
  # Settings specified here will take precedence over those in config/application.rb.
3
3
 
4
4
  # The test environment is used exclusively to run your application's
@@ -0,0 +1,10 @@
1
+ class CreateEmployees < ActiveRecord::Migration
2
+ def change
3
+ create_table :employees do |t|
4
+ t.string :name
5
+ t.integer :manager_id
6
+
7
+ t.timestamps
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,9 @@
1
+ class CreateSuppliers < ActiveRecord::Migration
2
+ def change
3
+ create_table :suppliers do |t|
4
+ t.string :name
5
+
6
+ t.timestamps
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,10 @@
1
+ class CreateAccounts < ActiveRecord::Migration
2
+ def change
3
+ create_table :accounts do |t|
4
+ t.string :supplier_id
5
+ t.string :account_number
6
+
7
+ t.timestamps
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,9 @@
1
+ class CreateWtfAshtrays < ActiveRecord::Migration
2
+ def change
3
+ create_table :wtf_ashtrays do |t|
4
+ t.string :color
5
+
6
+ t.timestamps
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ class CreateWtfCigarettes < ActiveRecord::Migration
2
+ def change
3
+ create_table :wtf_cigarettes do |t|
4
+ t.string :brand
5
+
6
+ t.timestamps
7
+ end
8
+ end
9
+ end
@@ -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: 20140915161852) do
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.6
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-15 00:00:00.000000000 Z
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
@@ -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>.
File without changes
File without changes
@@ -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>
@@ -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>
@@ -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