tests_doc 0.0.4 → 0.0.5

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.
Files changed (155) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +13 -0
  3. data/lib/tests_doc/version.rb +1 -1
  4. data/tests_doc.gemspec +2 -2
  5. metadata +9 -152
  6. data/examples/rails-4.2.5/.gitignore +0 -21
  7. data/examples/rails-4.2.5/.rspec +0 -3
  8. data/examples/rails-4.2.5/Gemfile +0 -34
  9. data/examples/rails-4.2.5/Gemfile.lock +0 -143
  10. data/examples/rails-4.2.5/README.md +0 -3
  11. data/examples/rails-4.2.5/Rakefile +0 -6
  12. data/examples/rails-4.2.5/app/assets/images/.keep +0 -0
  13. data/examples/rails-4.2.5/app/controllers/application_controller.rb +0 -2
  14. data/examples/rails-4.2.5/app/controllers/concerns/.keep +0 -0
  15. data/examples/rails-4.2.5/app/controllers/posts_controller.rb +0 -61
  16. data/examples/rails-4.2.5/app/controllers/users_controller.rb +0 -59
  17. data/examples/rails-4.2.5/app/mailers/.keep +0 -0
  18. data/examples/rails-4.2.5/app/models/.keep +0 -0
  19. data/examples/rails-4.2.5/app/models/concerns/.keep +0 -0
  20. data/examples/rails-4.2.5/app/models/post.rb +0 -3
  21. data/examples/rails-4.2.5/app/models/user.rb +0 -2
  22. data/examples/rails-4.2.5/bin/bundle +0 -3
  23. data/examples/rails-4.2.5/bin/rails +0 -9
  24. data/examples/rails-4.2.5/bin/rake +0 -9
  25. data/examples/rails-4.2.5/bin/setup +0 -29
  26. data/examples/rails-4.2.5/bin/spring +0 -15
  27. data/examples/rails-4.2.5/config.ru +0 -4
  28. data/examples/rails-4.2.5/config/application.rb +0 -26
  29. data/examples/rails-4.2.5/config/boot.rb +0 -3
  30. data/examples/rails-4.2.5/config/database.yml +0 -25
  31. data/examples/rails-4.2.5/config/environment.rb +0 -5
  32. data/examples/rails-4.2.5/config/environments/development.rb +0 -41
  33. data/examples/rails-4.2.5/config/environments/production.rb +0 -79
  34. data/examples/rails-4.2.5/config/environments/test.rb +0 -42
  35. data/examples/rails-4.2.5/config/initializers/filter_parameter_logging.rb +0 -4
  36. data/examples/rails-4.2.5/config/initializers/secret_token.rb +0 -19
  37. data/examples/rails-4.2.5/config/initializers/wrap_parameters.rb +0 -13
  38. data/examples/rails-4.2.5/config/locales/en.yml +0 -23
  39. data/examples/rails-4.2.5/config/routes.rb +0 -60
  40. data/examples/rails-4.2.5/config/secrets.yml +0 -22
  41. data/examples/rails-4.2.5/db/migrate/20151119010359_create_users.rb +0 -11
  42. data/examples/rails-4.2.5/db/migrate/20151119010415_create_posts.rb +0 -11
  43. data/examples/rails-4.2.5/db/schema.rb +0 -34
  44. data/examples/rails-4.2.5/db/seeds.rb +0 -7
  45. data/examples/rails-4.2.5/lib/assets/.keep +0 -0
  46. data/examples/rails-4.2.5/lib/tasks/.keep +0 -0
  47. data/examples/rails-4.2.5/log/.keep +0 -0
  48. data/examples/rails-4.2.5/public/404.html +0 -67
  49. data/examples/rails-4.2.5/public/422.html +0 -67
  50. data/examples/rails-4.2.5/public/500.html +0 -66
  51. data/examples/rails-4.2.5/public/favicon.ico +0 -0
  52. data/examples/rails-4.2.5/public/robots.txt +0 -5
  53. data/examples/rails-4.2.5/spec/rails_helper.rb +0 -62
  54. data/examples/rails-4.2.5/spec/requests/posts_spec.rb +0 -33
  55. data/examples/rails-4.2.5/spec/requests/users_spec.rb +0 -24
  56. data/examples/rails-4.2.5/spec/spec_helper.rb +0 -89
  57. data/examples/rails-4.2.5/tests-doc/README.md +0 -32
  58. data/examples/rails-4.2.5/tests-doc/api/posts.md +0 -24
  59. data/examples/rails-4.2.5/tests-doc/api/posts/@id.md +0 -29
  60. data/examples/rails-4.2.5/tests-doc/api/posts@with-filter.md +0 -25
  61. data/examples/rails-4.2.5/tests-doc/api/users.md +0 -24
  62. data/examples/rails-4.2.5/tests-doc/api/users/@id/posts.md +0 -24
  63. data/examples/rails-5.2.3/.gitignore +0 -31
  64. data/examples/rails-5.2.3/.ruby-version +0 -1
  65. data/examples/rails-5.2.3/Gemfile +0 -49
  66. data/examples/rails-5.2.3/Gemfile.lock +0 -235
  67. data/examples/rails-5.2.3/README.md +0 -24
  68. data/examples/rails-5.2.3/Rakefile +0 -6
  69. data/examples/rails-5.2.3/app/assets/config/manifest.js +0 -3
  70. data/examples/rails-5.2.3/app/assets/images/.keep +0 -0
  71. data/examples/rails-5.2.3/app/assets/javascripts/application.js +0 -16
  72. data/examples/rails-5.2.3/app/assets/javascripts/cable.js +0 -13
  73. data/examples/rails-5.2.3/app/assets/javascripts/channels/.keep +0 -0
  74. data/examples/rails-5.2.3/app/assets/javascripts/posts.js +0 -2
  75. data/examples/rails-5.2.3/app/assets/javascripts/users.js +0 -2
  76. data/examples/rails-5.2.3/app/assets/stylesheets/application.css +0 -15
  77. data/examples/rails-5.2.3/app/assets/stylesheets/posts.scss +0 -3
  78. data/examples/rails-5.2.3/app/assets/stylesheets/users.scss +0 -3
  79. data/examples/rails-5.2.3/app/channels/application_cable/channel.rb +0 -4
  80. data/examples/rails-5.2.3/app/channels/application_cable/connection.rb +0 -4
  81. data/examples/rails-5.2.3/app/controllers/application_controller.rb +0 -2
  82. data/examples/rails-5.2.3/app/controllers/concerns/.keep +0 -0
  83. data/examples/rails-5.2.3/app/controllers/posts_controller.rb +0 -61
  84. data/examples/rails-5.2.3/app/controllers/users_controller.rb +0 -59
  85. data/examples/rails-5.2.3/app/helpers/application_helper.rb +0 -2
  86. data/examples/rails-5.2.3/app/helpers/posts_helper.rb +0 -2
  87. data/examples/rails-5.2.3/app/helpers/users_helper.rb +0 -2
  88. data/examples/rails-5.2.3/app/jobs/application_job.rb +0 -2
  89. data/examples/rails-5.2.3/app/mailers/application_mailer.rb +0 -4
  90. data/examples/rails-5.2.3/app/models/application_record.rb +0 -3
  91. data/examples/rails-5.2.3/app/models/concerns/.keep +0 -0
  92. data/examples/rails-5.2.3/app/models/post.rb +0 -3
  93. data/examples/rails-5.2.3/app/models/user.rb +0 -2
  94. data/examples/rails-5.2.3/app/views/layouts/application.html.erb +0 -15
  95. data/examples/rails-5.2.3/app/views/layouts/mailer.html.erb +0 -13
  96. data/examples/rails-5.2.3/app/views/layouts/mailer.text.erb +0 -1
  97. data/examples/rails-5.2.3/bin/bundle +0 -3
  98. data/examples/rails-5.2.3/bin/rails +0 -9
  99. data/examples/rails-5.2.3/bin/rake +0 -9
  100. data/examples/rails-5.2.3/bin/setup +0 -36
  101. data/examples/rails-5.2.3/bin/spring +0 -17
  102. data/examples/rails-5.2.3/bin/update +0 -31
  103. data/examples/rails-5.2.3/bin/yarn +0 -11
  104. data/examples/rails-5.2.3/config.ru +0 -5
  105. data/examples/rails-5.2.3/config/application.rb +0 -19
  106. data/examples/rails-5.2.3/config/boot.rb +0 -4
  107. data/examples/rails-5.2.3/config/cable.yml +0 -10
  108. data/examples/rails-5.2.3/config/credentials.yml.enc +0 -1
  109. data/examples/rails-5.2.3/config/database.yml +0 -25
  110. data/examples/rails-5.2.3/config/environment.rb +0 -5
  111. data/examples/rails-5.2.3/config/environments/development.rb +0 -61
  112. data/examples/rails-5.2.3/config/environments/production.rb +0 -94
  113. data/examples/rails-5.2.3/config/environments/test.rb +0 -46
  114. data/examples/rails-5.2.3/config/initializers/application_controller_renderer.rb +0 -8
  115. data/examples/rails-5.2.3/config/initializers/assets.rb +0 -14
  116. data/examples/rails-5.2.3/config/initializers/backtrace_silencers.rb +0 -7
  117. data/examples/rails-5.2.3/config/initializers/content_security_policy.rb +0 -25
  118. data/examples/rails-5.2.3/config/initializers/cookies_serializer.rb +0 -5
  119. data/examples/rails-5.2.3/config/initializers/filter_parameter_logging.rb +0 -4
  120. data/examples/rails-5.2.3/config/initializers/inflections.rb +0 -16
  121. data/examples/rails-5.2.3/config/initializers/mime_types.rb +0 -4
  122. data/examples/rails-5.2.3/config/initializers/wrap_parameters.rb +0 -14
  123. data/examples/rails-5.2.3/config/locales/en.yml +0 -33
  124. data/examples/rails-5.2.3/config/puma.rb +0 -34
  125. data/examples/rails-5.2.3/config/routes.rb +0 -6
  126. data/examples/rails-5.2.3/config/spring.rb +0 -6
  127. data/examples/rails-5.2.3/config/storage.yml +0 -34
  128. data/examples/rails-5.2.3/db/migrate/20190618211257_create_users.rb +0 -11
  129. data/examples/rails-5.2.3/db/migrate/20190618211325_create_posts.rb +0 -11
  130. data/examples/rails-5.2.3/db/schema.rb +0 -32
  131. data/examples/rails-5.2.3/db/seeds.rb +0 -7
  132. data/examples/rails-5.2.3/lib/assets/.keep +0 -0
  133. data/examples/rails-5.2.3/lib/tasks/.keep +0 -0
  134. data/examples/rails-5.2.3/log/.keep +0 -0
  135. data/examples/rails-5.2.3/package.json +0 -5
  136. data/examples/rails-5.2.3/public/404.html +0 -67
  137. data/examples/rails-5.2.3/public/422.html +0 -67
  138. data/examples/rails-5.2.3/public/500.html +0 -66
  139. data/examples/rails-5.2.3/public/apple-touch-icon-precomposed.png +0 -0
  140. data/examples/rails-5.2.3/public/apple-touch-icon.png +0 -0
  141. data/examples/rails-5.2.3/public/favicon.ico +0 -0
  142. data/examples/rails-5.2.3/public/robots.txt +0 -1
  143. data/examples/rails-5.2.3/spec/rails_helper.rb +0 -62
  144. data/examples/rails-5.2.3/spec/requests/posts_spec.rb +0 -33
  145. data/examples/rails-5.2.3/spec/requests/users_spec.rb +0 -24
  146. data/examples/rails-5.2.3/spec/spec_helper.rb +0 -89
  147. data/examples/rails-5.2.3/storage/.keep +0 -0
  148. data/examples/rails-5.2.3/tests-doc/README.md +0 -32
  149. data/examples/rails-5.2.3/tests-doc/api/posts.md +0 -24
  150. data/examples/rails-5.2.3/tests-doc/api/posts/@id.md +0 -29
  151. data/examples/rails-5.2.3/tests-doc/api/posts@with-filter.md +0 -25
  152. data/examples/rails-5.2.3/tests-doc/api/users.md +0 -24
  153. data/examples/rails-5.2.3/tests-doc/api/users/@id/posts.md +0 -24
  154. data/examples/rails-5.2.3/tmp/.keep +0 -0
  155. data/examples/rails-5.2.3/vendor/.keep +0 -0
@@ -1,4 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Configure sensitive parameters which will be filtered from the log file.
4
- Rails.application.config.filter_parameters += [:password]
@@ -1,19 +0,0 @@
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
-
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
-
13
- # Although this is not needed for an api-only application, rails4
14
- # requires secret_key_base or secret_token to be defined, otherwise an
15
- # error is raised.
16
- # Using secret_token for rails3 compatibility. Change to secret_key_base
17
- # to avoid deprecation warning.
18
- # Can be safely removed in a rails3 api-only application.
19
- Rails425::Application.config.secret_token = 'd8c40ed8806d4d295b6f44282b02f37e79a9314f0015873363e0ce19c4f568dfb95d71f48d0c7ffd582e07ca953bc6fab0af47e120449835b44946ff4c18d272'
@@ -1,13 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
- #
3
- # This file contains settings for ActionController::ParamsWrapper
4
-
5
- # Enable parameter wrapping for JSON.
6
- # ActiveSupport.on_load(:action_controller) do
7
- # wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
8
- # end
9
-
10
- # To enable root element in JSON for ActiveRecord objects.
11
- # ActiveSupport.on_load(:active_record) do
12
- # self.include_root_in_json = true
13
- # end
@@ -1,23 +0,0 @@
1
- # Files in the config/locales directory are used for internationalization
2
- # and are automatically loaded by Rails. If you want to use locales other
3
- # than English, add the necessary files in this directory.
4
- #
5
- # To use the locales, use `I18n.t`:
6
- #
7
- # I18n.t 'hello'
8
- #
9
- # In views, this is aliased to just `t`:
10
- #
11
- # <%= t('hello') %>
12
- #
13
- # To use a different locale, set it with `I18n.locale`:
14
- #
15
- # I18n.locale = :es
16
- #
17
- # This would use the information in config/locales/es.yml.
18
- #
19
- # To learn more, please read the Rails Internationalization guide
20
- # available at http://guides.rubyonrails.org/i18n.html.
21
-
22
- en:
23
- hello: "Hello world"
@@ -1,60 +0,0 @@
1
- Rails.application.routes.draw do
2
- resources :posts, except: [:new, :edit]
3
- resources :users, except: [:new, :edit] do
4
- resources :posts
5
- end
6
- # The priority is based upon order of creation: first created -> highest priority.
7
- # See how all your routes lay out with "rake routes".
8
-
9
- # You can have the root of your site routed with "root"
10
- # root 'welcome#index'
11
-
12
- # Example of regular route:
13
- # get 'products/:id' => 'catalog#view'
14
-
15
- # Example of named route that can be invoked with purchase_url(id: product.id)
16
- # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
17
-
18
- # Example resource route (maps HTTP verbs to controller actions automatically):
19
- # resources :products
20
-
21
- # Example resource route with options:
22
- # resources :products do
23
- # member do
24
- # get 'short'
25
- # post 'toggle'
26
- # end
27
- #
28
- # collection do
29
- # get 'sold'
30
- # end
31
- # end
32
-
33
- # Example resource route with sub-resources:
34
- # resources :products do
35
- # resources :comments, :sales
36
- # resource :seller
37
- # end
38
-
39
- # Example resource route with more complex sub-resources:
40
- # resources :products do
41
- # resources :comments
42
- # resources :sales do
43
- # get 'recent', on: :collection
44
- # end
45
- # end
46
-
47
- # Example resource route with concerns:
48
- # concern :toggleable do
49
- # post 'toggle'
50
- # end
51
- # resources :posts, concerns: :toggleable
52
- # resources :photos, concerns: :toggleable
53
-
54
- # Example resource route within a namespace:
55
- # namespace :admin do
56
- # # Directs /admin/products/* to Admin::ProductsController
57
- # # (app/controllers/admin/products_controller.rb)
58
- # resources :products
59
- # end
60
- end
@@ -1,22 +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 the secrets in this file are kept private
11
- # if you're sharing your code publicly.
12
-
13
- development:
14
- secret_key_base: 2ccc0b32414931ec25adeb5d83a643e0c67cfcb8204451e8113bbf55fa0bccfa70dfde6692a9020a023cc85dc1188e01bec181dd327ce80cf5be5c40bd55df00
15
-
16
- test:
17
- secret_key_base: 4913735fbced60e8f43a7297f5a480fa29e03491dfe0ba85b1b7213996ee4f71b85ff08986a8661616930780f82c0ef57a3151e4f6fc385ae28439a39d024210
18
-
19
- # Do not keep production secrets in the repository,
20
- # instead read values from the environment.
21
- production:
22
- secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
@@ -1,11 +0,0 @@
1
- class CreateUsers < ActiveRecord::Migration
2
- def change
3
- create_table :users do |t|
4
- t.string :email
5
- t.string :first_name
6
- t.string :last_name
7
-
8
- t.timestamps null: false
9
- end
10
- end
11
- end
@@ -1,11 +0,0 @@
1
- class CreatePosts < ActiveRecord::Migration
2
- def change
3
- create_table :posts do |t|
4
- t.string :title
5
- t.text :body
6
- t.references :user, index: true, foreign_key: true
7
-
8
- t.timestamps null: false
9
- end
10
- end
11
- end
@@ -1,34 +0,0 @@
1
- # encoding: UTF-8
2
- # This file is auto-generated from the current state of the database. Instead
3
- # of editing this file, please use the migrations feature of Active Record to
4
- # incrementally modify your database, and then regenerate this schema definition.
5
- #
6
- # Note that this schema.rb definition is the authoritative source for your
7
- # database schema. If you need to create the application database on another
8
- # system, you should be using db:schema:load, not running all the migrations
9
- # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
- # you'll amass, the slower it'll run and the greater likelihood for issues).
11
- #
12
- # It's strongly recommended that you check this file into your version control system.
13
-
14
- ActiveRecord::Schema.define(version: 20151119010415) do
15
-
16
- create_table "posts", force: :cascade do |t|
17
- t.string "title"
18
- t.text "body"
19
- t.integer "user_id"
20
- t.datetime "created_at", null: false
21
- t.datetime "updated_at", null: false
22
- end
23
-
24
- add_index "posts", ["user_id"], name: "index_posts_on_user_id"
25
-
26
- create_table "users", force: :cascade do |t|
27
- t.string "email"
28
- t.string "first_name"
29
- t.string "last_name"
30
- t.datetime "created_at", null: false
31
- t.datetime "updated_at", null: false
32
- end
33
-
34
- end
@@ -1,7 +0,0 @@
1
- # This file should contain all the record creation needed to seed the database with its default values.
2
- # The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
3
- #
4
- # Examples:
5
- #
6
- # cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
7
- # Mayor.create(name: 'Emanuel', city: cities.first)
File without changes
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
@@ -1,5 +0,0 @@
1
- # See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file
2
- #
3
- # To ban all spiders from the entire site uncomment the next two lines:
4
- # User-agent: *
5
- # Disallow: /
@@ -1,62 +0,0 @@
1
- # This file is copied to spec/ when you run 'rails generate rspec:install'
2
- ENV["RAILS_ENV"] ||= 'test'
3
- require 'spec_helper'
4
-
5
- require File.expand_path("../../config/environment", __FILE__)
6
- require 'rspec/rails'
7
-
8
- require 'tests_doc'
9
-
10
- # Requires supporting ruby files with custom matchers and macros, etc, in
11
- # spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are
12
- # run as spec files by default. This means that files in spec/support that end
13
- # in _spec.rb will both be required and run as specs, causing the specs to be
14
- # run twice. It is recommended that you do not name files matching this glob to
15
- # end with _spec.rb. You can configure this pattern with the --pattern
16
- # option on the command line or in ~/.rspec, .rspec or `.rspec-local`.
17
- Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }
18
-
19
- # Checks for pending migrations before tests are run.
20
- # If you are not using ActiveRecord, you can remove this line.
21
- ActiveRecord::Migration.maintain_test_schema!
22
-
23
- RSpec.configure do |config|
24
- # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
25
- config.fixture_path = "#{::Rails.root}/spec/fixtures"
26
-
27
- # If you're not using ActiveRecord, or you'd prefer not to run each of your
28
- # examples within a transaction, remove the following line or assign false
29
- # instead of true.
30
- config.use_transactional_fixtures = true
31
-
32
- # RSpec Rails can automatically mix in different behaviours to your tests
33
- # based on their file location, for example enabling you to call `get` and
34
- # `post` in specs under `spec/controllers`.
35
- #
36
- # You can disable this behaviour by removing the line below, and instead
37
- # explicitly tag your specs with their type, e.g.:
38
- #
39
- # RSpec.describe UsersController, :type => :controller do
40
- # # ...
41
- # end
42
- #
43
- # The different available types are documented in the features, such as in
44
- # https://relishapp.com/rspec/rspec-rails/docs
45
- config.infer_spec_type_from_file_location!
46
-
47
- config.include ::TestsDoc::RecordSpecHelper, type: :request
48
-
49
- end
50
-
51
- TestsDoc.configure do |config|
52
- config.changes_whitelist_regexes = [
53
- /\"id\":.*\n/,
54
- /_id\":.*\n/,
55
- /_at\":.*\n/,
56
- /.*_ids":\s\[\s*\w+\s*\]/
57
- ]
58
-
59
- config.add_spec_file_number = true # default: true
60
- config.add_index_timestamps = true # default: true
61
- config.debug = true # default: false
62
- end