rabl 0.14.1 → 0.14.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (168) hide show
  1. checksums.yaml +5 -5
  2. data/.travis.yml +2 -1
  3. data/CHANGELOG.md +5 -0
  4. data/README.md +0 -1
  5. data/fixtures/ashared/NOTES +10 -0
  6. data/fixtures/ashared/views_rails_6/layouts/application.html.erb +13 -0
  7. data/fixtures/ashared/views_rails_6/posts/_show_footer_script.js.erb +1 -0
  8. data/fixtures/ashared/views_rails_6/posts/date.rabl +3 -0
  9. data/fixtures/ashared/views_rails_6/posts/index.html.erb +3 -0
  10. data/fixtures/ashared/views_rails_6/posts/index.rabl +12 -0
  11. data/fixtures/ashared/views_rails_6/posts/renderer.rabl +8 -0
  12. data/fixtures/ashared/views_rails_6/posts/renderer_partial.rabl +4 -0
  13. data/fixtures/ashared/views_rails_6/posts/show.html.erb +3 -0
  14. data/fixtures/ashared/views_rails_6/posts/show.rabl +25 -0
  15. data/fixtures/ashared/views_rails_6/posts/show.rabl_test_v1.rabl +7 -0
  16. data/fixtures/ashared/views_rails_6/users/index.json.rabl +3 -0
  17. data/fixtures/ashared/views_rails_6/users/phone_number.json.rabl +8 -0
  18. data/fixtures/ashared/views_rails_6/users/phone_number.xml.rabl +1 -0
  19. data/fixtures/ashared/views_rails_6/users/show.json.rabl +16 -0
  20. data/fixtures/ashared/views_rails_6/users/show.rabl_test_v1.rabl +3 -0
  21. data/fixtures/padrino_test/app/views +1 -1
  22. data/fixtures/padrino_test/db/migrate +1 -1
  23. data/fixtures/padrino_test/models +1 -1
  24. data/fixtures/padrino_test/test/app/controllers/posts_controller_test.rb +1 -1
  25. data/fixtures/padrino_test/test/app/controllers/users_controller_test.rb +1 -1
  26. data/fixtures/rails2/app/models +1 -1
  27. data/fixtures/rails2/app/views +1 -1
  28. data/fixtures/rails2/db/migrate +1 -1
  29. data/fixtures/rails2/test/functionals/posts_controller_test.rb +1 -1
  30. data/fixtures/rails2/test/functionals/users_controller_test.rb +1 -1
  31. data/fixtures/rails3/app/models +1 -1
  32. data/fixtures/rails3/app/views +1 -1
  33. data/fixtures/rails3/db/migrate +1 -1
  34. data/fixtures/rails3/test/functional/posts_controller_test.rb +1 -1
  35. data/fixtures/rails3/test/functional/users_controller_test.rb +1 -1
  36. data/fixtures/rails3_2/app/models +1 -1
  37. data/fixtures/rails3_2/app/views +1 -1
  38. data/fixtures/rails3_2/db/migrate +1 -1
  39. data/fixtures/rails3_2/test/functional/posts_controller_test.rb +1 -1
  40. data/fixtures/rails3_2/test/functional/users_controller_test.rb +1 -1
  41. data/fixtures/rails4/app/models +1 -1
  42. data/fixtures/rails4/app/views +1 -1
  43. data/fixtures/rails4/db/migrate +1 -1
  44. data/fixtures/rails4/test/functional/posts_controller_test.rb +1 -1
  45. data/fixtures/rails4/test/functional/users_controller_test.rb +1 -1
  46. data/fixtures/rails5/app/controllers/posts_controller.rb +1 -1
  47. data/fixtures/rails5/app/controllers/users_controller.rb +1 -1
  48. data/fixtures/rails5/app/helpers +1 -1
  49. data/fixtures/rails5/app/models +1 -1
  50. data/fixtures/rails5/app/views +1 -1
  51. data/fixtures/rails5/db/migrate +1 -1
  52. data/fixtures/rails5/test/functional/posts_controller_test.rb +1 -1
  53. data/fixtures/rails5/test/functional/users_controller_test.rb +1 -1
  54. data/fixtures/rails5_api/app/controllers/posts_controller.rb +1 -1
  55. data/fixtures/rails5_api/app/controllers/users_controller.rb +1 -1
  56. data/fixtures/rails5_api/app/helpers +1 -1
  57. data/fixtures/rails5_api/app/models +1 -1
  58. data/fixtures/rails5_api/app/views +1 -1
  59. data/fixtures/rails5_api/db/migrate +1 -1
  60. data/fixtures/rails5_api/test/functional/posts_controller_test.rb +1 -1
  61. data/fixtures/rails5_api/test/functional/users_controller_test.rb +1 -1
  62. data/fixtures/rails6/.gitignore +35 -0
  63. data/fixtures/rails6/Gemfile +58 -0
  64. data/fixtures/rails6/README.md +24 -0
  65. data/fixtures/rails6/Rakefile +14 -0
  66. data/fixtures/rails6/app/assets/config/manifest.js +2 -0
  67. data/fixtures/rails6/app/assets/images/.keep +0 -0
  68. data/fixtures/rails6/app/assets/stylesheets/application.css +15 -0
  69. data/fixtures/rails6/app/channels/application_cable/channel.rb +4 -0
  70. data/fixtures/rails6/app/channels/application_cable/connection.rb +4 -0
  71. data/fixtures/rails6/app/controllers/application_controller.rb +2 -0
  72. data/fixtures/rails6/app/controllers/concerns/.keep +0 -0
  73. data/fixtures/rails6/app/controllers/posts_controller.rb +17 -0
  74. data/fixtures/rails6/app/controllers/users_controller.rb +11 -0
  75. data/fixtures/rails6/app/helpers +1 -0
  76. data/fixtures/rails6/app/javascript/channels/consumer.js +6 -0
  77. data/fixtures/rails6/app/javascript/channels/index.js +5 -0
  78. data/fixtures/rails6/app/javascript/packs/application.js +17 -0
  79. data/fixtures/rails6/app/jobs/application_job.rb +7 -0
  80. data/fixtures/rails6/app/mailers/application_mailer.rb +4 -0
  81. data/fixtures/rails6/app/models +1 -0
  82. data/fixtures/rails6/app/views +1 -0
  83. data/fixtures/rails6/babel.config.js +72 -0
  84. data/fixtures/rails6/bin/bundle +105 -0
  85. data/fixtures/rails6/bin/rails +9 -0
  86. data/fixtures/rails6/bin/rake +9 -0
  87. data/fixtures/rails6/bin/setup +36 -0
  88. data/fixtures/rails6/bin/spring +17 -0
  89. data/fixtures/rails6/bin/webpack +19 -0
  90. data/fixtures/rails6/bin/webpack-dev-server +19 -0
  91. data/fixtures/rails6/bin/yarn +11 -0
  92. data/fixtures/rails6/config.ru +5 -0
  93. data/fixtures/rails6/config/application.rb +19 -0
  94. data/fixtures/rails6/config/boot.rb +4 -0
  95. data/fixtures/rails6/config/cable.yml +10 -0
  96. data/fixtures/rails6/config/credentials.yml.enc +1 -0
  97. data/fixtures/rails6/config/database.yml +25 -0
  98. data/fixtures/rails6/config/environment.rb +5 -0
  99. data/fixtures/rails6/config/environments/development.rb +62 -0
  100. data/fixtures/rails6/config/environments/production.rb +112 -0
  101. data/fixtures/rails6/config/environments/test.rb +48 -0
  102. data/fixtures/rails6/config/initializers/application_controller_renderer.rb +8 -0
  103. data/fixtures/rails6/config/initializers/assets.rb +14 -0
  104. data/fixtures/rails6/config/initializers/backtrace_silencers.rb +7 -0
  105. data/fixtures/rails6/config/initializers/content_security_policy.rb +27 -0
  106. data/fixtures/rails6/config/initializers/cookies_serializer.rb +5 -0
  107. data/fixtures/rails6/config/initializers/filter_parameter_logging.rb +4 -0
  108. data/fixtures/rails6/config/initializers/inflections.rb +16 -0
  109. data/fixtures/rails6/config/initializers/mime_types.rb +6 -0
  110. data/fixtures/rails6/config/initializers/wrap_parameters.rb +14 -0
  111. data/fixtures/rails6/config/locales/en.yml +33 -0
  112. data/fixtures/rails6/config/puma.rb +35 -0
  113. data/fixtures/rails6/config/routes.rb +8 -0
  114. data/fixtures/rails6/config/spring.rb +6 -0
  115. data/fixtures/rails6/config/storage.yml +34 -0
  116. data/fixtures/rails6/config/webpack/development.js +5 -0
  117. data/fixtures/rails6/config/webpack/environment.js +3 -0
  118. data/fixtures/rails6/config/webpack/production.js +5 -0
  119. data/fixtures/rails6/config/webpack/test.js +5 -0
  120. data/fixtures/rails6/config/webpacker.yml +95 -0
  121. data/fixtures/rails6/db/migrate/20111002092016_create_users.rb +11 -0
  122. data/fixtures/rails6/db/migrate/20111002092019_create_posts.rb +10 -0
  123. data/fixtures/rails6/db/migrate/20111002092024_create_phone_numbers.rb +12 -0
  124. data/fixtures/rails6/db/schema.rb +41 -0
  125. data/fixtures/rails6/db/seeds.rb +7 -0
  126. data/fixtures/rails6/lib/assets/.keep +0 -0
  127. data/fixtures/rails6/lib/tasks/.keep +0 -0
  128. data/fixtures/rails6/log/.keep +0 -0
  129. data/fixtures/rails6/package.json +15 -0
  130. data/fixtures/rails6/postcss.config.js +12 -0
  131. data/fixtures/rails6/public/404.html +67 -0
  132. data/fixtures/rails6/public/422.html +67 -0
  133. data/fixtures/rails6/public/500.html +66 -0
  134. data/fixtures/rails6/public/apple-touch-icon-precomposed.png +0 -0
  135. data/fixtures/rails6/public/apple-touch-icon.png +0 -0
  136. data/fixtures/rails6/public/favicon.ico +0 -0
  137. data/fixtures/rails6/public/robots.txt +1 -0
  138. data/fixtures/rails6/storage/.keep +0 -0
  139. data/fixtures/rails6/test/application_system_test_case.rb +5 -0
  140. data/fixtures/rails6/test/channels/application_cable/connection_test.rb +11 -0
  141. data/fixtures/rails6/test/controllers/.keep +0 -0
  142. data/fixtures/rails6/test/fixtures/.keep +0 -0
  143. data/fixtures/rails6/test/fixtures/files/.keep +0 -0
  144. data/fixtures/rails6/test/functional/posts_controller_test.rb +1 -0
  145. data/fixtures/rails6/test/functional/users_controller_test.rb +1 -0
  146. data/fixtures/rails6/test/helpers/.keep +0 -0
  147. data/fixtures/rails6/test/integration/.keep +0 -0
  148. data/fixtures/rails6/test/mailers/.keep +0 -0
  149. data/fixtures/rails6/test/models/.keep +0 -0
  150. data/fixtures/rails6/test/system/.keep +0 -0
  151. data/fixtures/rails6/test/test_helper.rb +27 -0
  152. data/fixtures/rails6/tmp/.keep +0 -0
  153. data/fixtures/rails6/vendor/.keep +0 -0
  154. data/fixtures/rails6/yarn.lock +7201 -0
  155. data/fixtures/sinatra_test/db/migrate +1 -1
  156. data/fixtures/sinatra_test/models +1 -1
  157. data/fixtures/sinatra_test/test/functional/posts_controller_test.rb +1 -1
  158. data/fixtures/sinatra_test/test/functional/users_controller_test.rb +1 -1
  159. data/fixtures/sinatra_test/views +1 -1
  160. data/lib/rabl.rb +3 -3
  161. data/lib/rabl/engine.rb +4 -2
  162. data/lib/rabl/railtie.rb +1 -1
  163. data/lib/rabl/template.rb +21 -1
  164. data/lib/rabl/version.rb +1 -1
  165. data/rabl.gemspec +0 -2
  166. data/test/integration/rails6/posts_controller_test.rb +185 -0
  167. data/test/integration/rails6/users_controller_test.rb +87 -0
  168. metadata +113 -4
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActiveSupport.on_load(:action_controller) do
8
+ wrap_parameters format: [:json]
9
+ end
10
+
11
+ # To enable root element in JSON for ActiveRecord objects.
12
+ # ActiveSupport.on_load(:active_record) do
13
+ # self.include_root_in_json = true
14
+ # end
@@ -0,0 +1,33 @@
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
+ # The following keys must be escaped otherwise they will not be retrieved by
20
+ # the default I18n backend:
21
+ #
22
+ # true, false, on, off, yes, no
23
+ #
24
+ # Instead, surround them with single quotes.
25
+ #
26
+ # en:
27
+ # 'true': 'foo'
28
+ #
29
+ # To learn more, please read the Rails Internationalization guide
30
+ # available at https://guides.rubyonrails.org/i18n.html.
31
+
32
+ en:
33
+ hello: "Hello world"
@@ -0,0 +1,35 @@
1
+ # Puma can serve each request in a thread from an internal thread pool.
2
+ # The `threads` method setting takes two numbers: a minimum and maximum.
3
+ # Any libraries that use thread pools should be configured to match
4
+ # the maximum value specified for Puma. Default is set to 5 threads for minimum
5
+ # and maximum; this matches the default thread size of Active Record.
6
+ #
7
+ max_threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }
8
+ min_threads_count = ENV.fetch("RAILS_MIN_THREADS") { max_threads_count }
9
+ threads min_threads_count, max_threads_count
10
+
11
+ # Specifies the `port` that Puma will listen on to receive requests; default is 3000.
12
+ #
13
+ port ENV.fetch("PORT") { 3000 }
14
+
15
+ # Specifies the `environment` that Puma will run in.
16
+ #
17
+ environment ENV.fetch("RAILS_ENV") { "development" }
18
+
19
+ # Specifies the number of `workers` to boot in clustered mode.
20
+ # Workers are forked web server processes. If using threads and workers together
21
+ # the concurrency of the application would be max `threads` * `workers`.
22
+ # Workers do not work on JRuby or Windows (both of which do not support
23
+ # processes).
24
+ #
25
+ # workers ENV.fetch("WEB_CONCURRENCY") { 2 }
26
+
27
+ # Use the `preload_app!` method when specifying a `workers` number.
28
+ # This directive tells Puma to first boot the application and load code
29
+ # before forking the application. This takes advantage of Copy On Write
30
+ # process behavior so workers use less memory.
31
+ #
32
+ # preload_app!
33
+
34
+ # Allow puma to be restarted by `rails restart` command.
35
+ plugin :tmp_restart
@@ -0,0 +1,8 @@
1
+ Rails.application.routes.draw do
2
+ resources :users
3
+ resources :posts do
4
+ member do
5
+ get 'renderer'
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,6 @@
1
+ Spring.watch(
2
+ ".ruby-version",
3
+ ".rbenv-vars",
4
+ "tmp/restart.txt",
5
+ "tmp/caching-dev.txt"
6
+ )
@@ -0,0 +1,34 @@
1
+ test:
2
+ service: Disk
3
+ root: <%= Rails.root.join("tmp/storage") %>
4
+
5
+ local:
6
+ service: Disk
7
+ root: <%= Rails.root.join("storage") %>
8
+
9
+ # Use rails credentials:edit to set the AWS secrets (as aws:access_key_id|secret_access_key)
10
+ # amazon:
11
+ # service: S3
12
+ # access_key_id: <%= Rails.application.credentials.dig(:aws, :access_key_id) %>
13
+ # secret_access_key: <%= Rails.application.credentials.dig(:aws, :secret_access_key) %>
14
+ # region: us-east-1
15
+ # bucket: your_own_bucket
16
+
17
+ # Remember not to checkin your GCS keyfile to a repository
18
+ # google:
19
+ # service: GCS
20
+ # project: your_project
21
+ # credentials: <%= Rails.root.join("path/to/gcs.keyfile") %>
22
+ # bucket: your_own_bucket
23
+
24
+ # Use rails credentials:edit to set the Azure Storage secret (as azure_storage:storage_access_key)
25
+ # microsoft:
26
+ # service: AzureStorage
27
+ # storage_account_name: your_account_name
28
+ # storage_access_key: <%= Rails.application.credentials.dig(:azure_storage, :storage_access_key) %>
29
+ # container: your_container_name
30
+
31
+ # mirror:
32
+ # service: Mirror
33
+ # primary: local
34
+ # mirrors: [ amazon, google, microsoft ]
@@ -0,0 +1,5 @@
1
+ process.env.NODE_ENV = process.env.NODE_ENV || 'development'
2
+
3
+ const environment = require('./environment')
4
+
5
+ module.exports = environment.toWebpackConfig()
@@ -0,0 +1,3 @@
1
+ const { environment } = require('@rails/webpacker')
2
+
3
+ module.exports = environment
@@ -0,0 +1,5 @@
1
+ process.env.NODE_ENV = process.env.NODE_ENV || 'production'
2
+
3
+ const environment = require('./environment')
4
+
5
+ module.exports = environment.toWebpackConfig()
@@ -0,0 +1,5 @@
1
+ process.env.NODE_ENV = process.env.NODE_ENV || 'development'
2
+
3
+ const environment = require('./environment')
4
+
5
+ module.exports = environment.toWebpackConfig()
@@ -0,0 +1,95 @@
1
+ # Note: You must restart bin/webpack-dev-server for changes to take effect
2
+
3
+ default: &default
4
+ source_path: app/javascript
5
+ source_entry_path: packs
6
+ public_root_path: public
7
+ public_output_path: packs
8
+ cache_path: tmp/cache/webpacker
9
+ check_yarn_integrity: false
10
+ webpack_compile_output: false
11
+
12
+ # Additional paths webpack should lookup modules
13
+ # ['app/assets', 'engine/foo/app/assets']
14
+ resolved_paths: []
15
+
16
+ # Reload manifest.json on all requests so we reload latest compiled packs
17
+ cache_manifest: false
18
+
19
+ # Extract and emit a css file
20
+ extract_css: false
21
+
22
+ static_assets_extensions:
23
+ - .jpg
24
+ - .jpeg
25
+ - .png
26
+ - .gif
27
+ - .tiff
28
+ - .ico
29
+ - .svg
30
+ - .eot
31
+ - .otf
32
+ - .ttf
33
+ - .woff
34
+ - .woff2
35
+
36
+ extensions:
37
+ - .mjs
38
+ - .js
39
+ - .sass
40
+ - .scss
41
+ - .css
42
+ - .module.sass
43
+ - .module.scss
44
+ - .module.css
45
+ - .png
46
+ - .svg
47
+ - .gif
48
+ - .jpeg
49
+ - .jpg
50
+
51
+ development:
52
+ <<: *default
53
+ compile: true
54
+
55
+ # Verifies that correct packages and versions are installed by inspecting package.json, yarn.lock, and node_modules
56
+ check_yarn_integrity: true
57
+
58
+ # Reference: https://webpack.js.org/configuration/dev-server/
59
+ dev_server:
60
+ https: false
61
+ host: localhost
62
+ port: 3035
63
+ public: localhost:3035
64
+ hmr: false
65
+ # Inline should be set to true if using HMR
66
+ inline: true
67
+ overlay: true
68
+ compress: true
69
+ disable_host_check: true
70
+ use_local_ip: false
71
+ quiet: false
72
+ headers:
73
+ 'Access-Control-Allow-Origin': '*'
74
+ watch_options:
75
+ ignored: '**/node_modules/**'
76
+
77
+
78
+ test:
79
+ <<: *default
80
+ compile: true
81
+
82
+ # Compile test packs to a separate directory
83
+ public_output_path: packs-test
84
+
85
+ production:
86
+ <<: *default
87
+
88
+ # Production depends on precompilation of packs prior to booting for performance.
89
+ compile: false
90
+
91
+ # Extract and emit a css file
92
+ extract_css: true
93
+
94
+ # Cache manifest.json for performance
95
+ cache_manifest: true
@@ -0,0 +1,11 @@
1
+ class CreateUsers < ActiveRecord::Migration[6.0]
2
+ def change
3
+ create_table :users do |t|
4
+ t.string :username
5
+ t.string :email
6
+ t.string :location
7
+ t.boolean :is_admin
8
+ t.timestamps
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,10 @@
1
+ class CreatePosts < ActiveRecord::Migration[6.0]
2
+ def change
3
+ create_table :posts do |t|
4
+ t.integer :user_id
5
+ t.string :title
6
+ t.text :body
7
+ t.timestamps
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,12 @@
1
+ class CreatePhoneNumbers < ActiveRecord::Migration[6.0]
2
+ def change
3
+ create_table :phone_numbers do |t|
4
+ t.integer :user_id
5
+ t.boolean :is_primary
6
+ t.string :area_code
7
+ t.string :prefix
8
+ t.string :suffix
9
+ t.string :name
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,41 @@
1
+ # This file is auto-generated from the current state of the database. Instead
2
+ # of editing this file, please use the migrations feature of Active Record to
3
+ # incrementally modify your database, and then regenerate this schema definition.
4
+ #
5
+ # This file is the source Rails uses to define your schema when running `rails
6
+ # db:schema:load`. When creating a new database, `rails db:schema:load` tends to
7
+ # be faster and is potentially less error prone than running all of your
8
+ # migrations from scratch. Old migrations may fail to apply correctly if those
9
+ # migrations use external dependencies or application code.
10
+ #
11
+ # It's strongly recommended that you check this file into your version control system.
12
+
13
+ ActiveRecord::Schema.define(version: 2011_10_02_092024) do
14
+
15
+ create_table "phone_numbers", force: :cascade do |t|
16
+ t.integer "user_id"
17
+ t.boolean "is_primary"
18
+ t.string "area_code"
19
+ t.string "prefix"
20
+ t.string "suffix"
21
+ t.string "name"
22
+ end
23
+
24
+ create_table "posts", force: :cascade do |t|
25
+ t.integer "user_id"
26
+ t.string "title"
27
+ t.text "body"
28
+ t.datetime "created_at", precision: 6, null: false
29
+ t.datetime "updated_at", precision: 6, null: false
30
+ end
31
+
32
+ create_table "users", force: :cascade do |t|
33
+ t.string "username"
34
+ t.string "email"
35
+ t.string "location"
36
+ t.boolean "is_admin"
37
+ t.datetime "created_at", precision: 6, null: false
38
+ t.datetime "updated_at", precision: 6, null: false
39
+ end
40
+
41
+ end
@@ -0,0 +1,7 @@
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 rails db:seed command (or created alongside the database with db:setup).
3
+ #
4
+ # Examples:
5
+ #
6
+ # movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }])
7
+ # Character.create(name: 'Luke', movie: movies.first)
File without changes
File without changes
File without changes
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "rails6",
3
+ "private": true,
4
+ "dependencies": {
5
+ "@rails/actioncable": "^6.0.0-alpha",
6
+ "@rails/activestorage": "^6.0.0-alpha",
7
+ "@rails/ujs": "^6.0.0-alpha",
8
+ "@rails/webpacker": "^4.0.7",
9
+ "turbolinks": "^5.2.0"
10
+ },
11
+ "version": "0.1.0",
12
+ "devDependencies": {
13
+ "webpack-dev-server": "^3.7.2"
14
+ }
15
+ }
@@ -0,0 +1,12 @@
1
+ module.exports = {
2
+ plugins: [
3
+ require('postcss-import'),
4
+ require('postcss-flexbugs-fixes'),
5
+ require('postcss-preset-env')({
6
+ autoprefixer: {
7
+ flexbox: 'no-2009'
8
+ },
9
+ stage: 3
10
+ })
11
+ ]
12
+ }
@@ -0,0 +1,67 @@
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
+ .rails-default-error-page {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ .rails-default-error-page div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ .rails-default-error-page 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
+ .rails-default-error-page h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ .rails-default-error-page 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 class="rails-default-error-page">
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>