railsdock 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +4 -0
  3. data/Gemfile.lock +1 -1
  4. data/example-app/.browserslistrc +1 -0
  5. data/example-app/.gitignore +31 -0
  6. data/example-app/.ruby-version +1 -0
  7. data/example-app/Gemfile +46 -0
  8. data/example-app/Gemfile.lock +201 -0
  9. data/example-app/README.md +24 -0
  10. data/example-app/Rakefile +6 -0
  11. data/example-app/app/assets/config/manifest.js +2 -0
  12. data/example-app/app/assets/images/.keep +0 -0
  13. data/example-app/app/assets/stylesheets/application.css +15 -0
  14. data/example-app/app/channels/application_cable/channel.rb +4 -0
  15. data/example-app/app/channels/application_cable/connection.rb +4 -0
  16. data/example-app/app/controllers/application_controller.rb +2 -0
  17. data/example-app/app/controllers/concerns/.keep +0 -0
  18. data/example-app/app/helpers/application_helper.rb +2 -0
  19. data/example-app/app/javascript/channels/consumer.js +6 -0
  20. data/example-app/app/javascript/channels/index.js +5 -0
  21. data/example-app/app/javascript/packs/application.js +17 -0
  22. data/example-app/app/jobs/application_job.rb +7 -0
  23. data/example-app/app/mailers/application_mailer.rb +4 -0
  24. data/example-app/app/models/application_record.rb +3 -0
  25. data/example-app/app/models/concerns/.keep +0 -0
  26. data/example-app/app/views/layouts/application.html.erb +15 -0
  27. data/example-app/app/views/layouts/mailer.html.erb +13 -0
  28. data/example-app/app/views/layouts/mailer.text.erb +1 -0
  29. data/example-app/babel.config.js +72 -0
  30. data/example-app/bin/bundle +105 -0
  31. data/example-app/bin/rails +9 -0
  32. data/example-app/bin/rake +9 -0
  33. data/example-app/bin/setup +36 -0
  34. data/example-app/bin/spring +17 -0
  35. data/example-app/bin/webpack +18 -0
  36. data/example-app/bin/webpack-dev-server +18 -0
  37. data/example-app/bin/yarn +11 -0
  38. data/example-app/config/application.rb +35 -0
  39. data/example-app/config/boot.rb +4 -0
  40. data/example-app/config/cable.yml +10 -0
  41. data/example-app/config/credentials.yml.enc +1 -0
  42. data/example-app/config/database.yml +18 -0
  43. data/example-app/config/environment.rb +5 -0
  44. data/example-app/config/environments/development.rb +62 -0
  45. data/example-app/config/environments/production.rb +112 -0
  46. data/example-app/config/environments/test.rb +48 -0
  47. data/example-app/config/initializers/application_controller_renderer.rb +8 -0
  48. data/example-app/config/initializers/assets.rb +14 -0
  49. data/example-app/config/initializers/backtrace_silencers.rb +7 -0
  50. data/example-app/config/initializers/content_security_policy.rb +30 -0
  51. data/example-app/config/initializers/cookies_serializer.rb +5 -0
  52. data/example-app/config/initializers/filter_parameter_logging.rb +4 -0
  53. data/example-app/config/initializers/inflections.rb +16 -0
  54. data/example-app/config/initializers/mime_types.rb +4 -0
  55. data/example-app/config/initializers/wrap_parameters.rb +14 -0
  56. data/example-app/config/locales/en.yml +33 -0
  57. data/example-app/config/puma.rb +38 -0
  58. data/example-app/config/routes.rb +3 -0
  59. data/example-app/config/spring.rb +6 -0
  60. data/example-app/config/storage.yml +34 -0
  61. data/example-app/config/webpack/development.js +5 -0
  62. data/example-app/config/webpack/environment.js +3 -0
  63. data/example-app/config/webpack/production.js +5 -0
  64. data/example-app/config/webpack/test.js +5 -0
  65. data/example-app/config/webpacker.yml +96 -0
  66. data/example-app/config.ru +5 -0
  67. data/example-app/db/schema.rb +18 -0
  68. data/example-app/db/seeds.rb +7 -0
  69. data/example-app/lib/assets/.keep +0 -0
  70. data/example-app/lib/tasks/.keep +0 -0
  71. data/example-app/log/.keep +0 -0
  72. data/example-app/package.json +15 -0
  73. data/example-app/postcss.config.js +12 -0
  74. data/example-app/public/404.html +67 -0
  75. data/example-app/public/422.html +67 -0
  76. data/example-app/public/500.html +66 -0
  77. data/example-app/public/apple-touch-icon-precomposed.png +0 -0
  78. data/example-app/public/apple-touch-icon.png +0 -0
  79. data/example-app/public/favicon.ico +0 -0
  80. data/example-app/public/robots.txt +1 -0
  81. data/example-app/storage/.keep +0 -0
  82. data/example-app/tmp/.keep +0 -0
  83. data/example-app/vendor/.keep +0 -0
  84. data/example-app/yarn.lock +7721 -0
  85. data/lib/railsdock/commands/install.rb +11 -3
  86. data/lib/railsdock/templates/install/default/Dockerfile +10 -4
  87. data/lib/railsdock/templates/install/default/default.env.erb +5 -18
  88. data/lib/railsdock/templates/install/default/docker-compose.yml.erb +8 -18
  89. data/lib/railsdock/templates/install/default/{dev-entrypoint → entrypoint.sh} +4 -4
  90. data/lib/railsdock/templates/install/postgres/docker-compose.yml.erb +2 -0
  91. data/lib/railsdock/templates/install/postgres/postgres.env +0 -3
  92. data/lib/railsdock/version.rb +1 -1
  93. metadata +85 -5
  94. data/lib/railsdock/templates/install/default/docker-compose.mac.yml +0 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3ac3ef020ce7cc26d49e7d1c4cd58eea48fbf1945a0b46385fc3a41420193b95
4
- data.tar.gz: 215023945f8753a38ba9e43a773d00d4c32d0b1b9e441cc376edbe2731052c65
3
+ metadata.gz: 15ec876832fbd53f56808e56185cd7e807f3d70f692231ef1d73d1b90b23a8b0
4
+ data.tar.gz: 7aa1228dddc0a479fb5b031bc48f70d5f92e0ba577ac07be042a93785151773f
5
5
  SHA512:
6
- metadata.gz: d57af15e5997c5ca9be5570fac18fd8ff6df3eadc9583f63f8b727db55384b037b73cf3bf72c99850754e706ef17051e8e62bb26418388d5628380984e1bab82
7
- data.tar.gz: 40dd84f7ad072c2ac92f66bde0e23e70e4bd34fe1546ba0b1422e28c3caf7e3aa578ff32761462866d64bd7336a2c092ddfde2af0953ee06873a3df82dc7cbfb
6
+ metadata.gz: bcf70c98121cb0799729086ee5bd6d32698ecffbf6d899ed56198d7c679d3ce210404b45407654c1dc0c17b24baafb6b785b4d32742b1bc7e2a82220bbbea004
7
+ data.tar.gz: 3b90841d44e85fddc66cf2c36e6401c1993347e23ff79ee8a478524e9156f155e5dd87ca2efe00997494b7f1fd67fdcc353303685d68c26ceb56d7da91fe1ec5
data/.gitignore CHANGED
@@ -18,4 +18,8 @@ mkmf.log
18
18
  *.env
19
19
  dev-entrypoint
20
20
  /docker-compose.*
21
+ example-app/docker/*
22
+ example-app/*.env
23
+ example-app/dev-entrypoint
24
+ example-app/docker-compose.*
21
25
  /*.gem
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- railsdock (0.2.0)
4
+ railsdock (0.3.0)
5
5
  bundler (~> 2.0)
6
6
  pastel (~> 0.7.2)
7
7
  railties (>= 4.2, < 6.1)
@@ -0,0 +1 @@
1
+ defaults
@@ -0,0 +1,31 @@
1
+ # See https://help.github.com/articles/ignoring-files for more about ignoring files.
2
+ #
3
+ # If you find yourself ignoring temporary files generated by your text editor
4
+ # or operating system, you probably want to add a global ignore instead:
5
+ # git config --global core.excludesfile '~/.gitignore_global'
6
+
7
+ # Ignore bundler config.
8
+ /.bundle
9
+
10
+ # Ignore all logfiles and tempfiles.
11
+ /log/*
12
+ /tmp/*
13
+ !/log/.keep
14
+ !/tmp/.keep
15
+
16
+ # Ignore uploaded files in development.
17
+ /storage/*
18
+ !/storage/.keep
19
+
20
+ /public/assets
21
+ .byebug_history
22
+
23
+ # Ignore master key for decrypting credentials and more.
24
+ /config/master.key
25
+
26
+ /public/packs
27
+ /public/packs-test
28
+ /node_modules
29
+ /yarn-error.log
30
+ yarn-debug.log*
31
+ .yarn-integrity
@@ -0,0 +1 @@
1
+ ruby-2.6.6
@@ -0,0 +1,46 @@
1
+ source 'https://rubygems.org'
2
+ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
3
+
4
+ ruby '2.6.6'
5
+
6
+ # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
7
+ gem 'rails', '~> 6.0.1'
8
+ # Use postgresql as the database for Active Record
9
+ gem 'pg', '>= 0.18', '< 2.0'
10
+ # Use Puma as the app server
11
+ gem 'puma', '~> 4.3'
12
+ # Use SCSS for stylesheets
13
+ gem 'sass-rails', '>= 6'
14
+ # Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker
15
+ gem 'webpacker'
16
+ # Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
17
+ gem 'turbolinks', '~> 5'
18
+ # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
19
+ gem 'jbuilder', '~> 2.7'
20
+ # Use Redis adapter to run Action Cable in production
21
+ # gem 'redis', '~> 4.0'
22
+ # Use Active Model has_secure_password
23
+ # gem 'bcrypt', '~> 3.1.7'
24
+
25
+ # Use Active Storage variant
26
+ # gem 'image_processing', '~> 1.2'
27
+
28
+ # Reduces boot times through caching; required in config/boot.rb
29
+ gem 'bootsnap', '>= 1.4.2', require: false
30
+
31
+ group :development, :test do
32
+ # Call 'byebug' anywhere in the code to stop execution and get a debugger console
33
+ gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
34
+ end
35
+
36
+ group :development do
37
+ # Access an interactive console on exception pages or by calling 'console' anywhere in the code.
38
+ gem 'web-console', '>= 3.3.0'
39
+ gem 'listen', '>= 3.0.5', '< 3.2'
40
+ # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
41
+ gem 'spring'
42
+ gem 'spring-watcher-listen', '~> 2.0.0'
43
+ end
44
+
45
+ # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
46
+ gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
@@ -0,0 +1,201 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ actioncable (6.0.3)
5
+ actionpack (= 6.0.3)
6
+ nio4r (~> 2.0)
7
+ websocket-driver (>= 0.6.1)
8
+ actionmailbox (6.0.3)
9
+ actionpack (= 6.0.3)
10
+ activejob (= 6.0.3)
11
+ activerecord (= 6.0.3)
12
+ activestorage (= 6.0.3)
13
+ activesupport (= 6.0.3)
14
+ mail (>= 2.7.1)
15
+ actionmailer (6.0.3)
16
+ actionpack (= 6.0.3)
17
+ actionview (= 6.0.3)
18
+ activejob (= 6.0.3)
19
+ mail (~> 2.5, >= 2.5.4)
20
+ rails-dom-testing (~> 2.0)
21
+ actionpack (6.0.3)
22
+ actionview (= 6.0.3)
23
+ activesupport (= 6.0.3)
24
+ rack (~> 2.0, >= 2.0.8)
25
+ rack-test (>= 0.6.3)
26
+ rails-dom-testing (~> 2.0)
27
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
28
+ actiontext (6.0.3)
29
+ actionpack (= 6.0.3)
30
+ activerecord (= 6.0.3)
31
+ activestorage (= 6.0.3)
32
+ activesupport (= 6.0.3)
33
+ nokogiri (>= 1.8.5)
34
+ actionview (6.0.3)
35
+ activesupport (= 6.0.3)
36
+ builder (~> 3.1)
37
+ erubi (~> 1.4)
38
+ rails-dom-testing (~> 2.0)
39
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
40
+ activejob (6.0.3)
41
+ activesupport (= 6.0.3)
42
+ globalid (>= 0.3.6)
43
+ activemodel (6.0.3)
44
+ activesupport (= 6.0.3)
45
+ activerecord (6.0.3)
46
+ activemodel (= 6.0.3)
47
+ activesupport (= 6.0.3)
48
+ activestorage (6.0.3)
49
+ actionpack (= 6.0.3)
50
+ activejob (= 6.0.3)
51
+ activerecord (= 6.0.3)
52
+ marcel (~> 0.3.1)
53
+ activesupport (6.0.3)
54
+ concurrent-ruby (~> 1.0, >= 1.0.2)
55
+ i18n (>= 0.7, < 2)
56
+ minitest (~> 5.1)
57
+ tzinfo (~> 1.1)
58
+ zeitwerk (~> 2.2, >= 2.2.2)
59
+ bindex (0.8.1)
60
+ bootsnap (1.4.6)
61
+ msgpack (~> 1.0)
62
+ builder (3.2.4)
63
+ byebug (11.1.3)
64
+ concurrent-ruby (1.1.6)
65
+ crass (1.0.6)
66
+ erubi (1.9.0)
67
+ ffi (1.12.2)
68
+ globalid (0.4.2)
69
+ activesupport (>= 4.2.0)
70
+ i18n (1.8.2)
71
+ concurrent-ruby (~> 1.0)
72
+ jbuilder (2.10.0)
73
+ activesupport (>= 5.0.0)
74
+ listen (3.1.5)
75
+ rb-fsevent (~> 0.9, >= 0.9.4)
76
+ rb-inotify (~> 0.9, >= 0.9.7)
77
+ ruby_dep (~> 1.2)
78
+ loofah (2.5.0)
79
+ crass (~> 1.0.2)
80
+ nokogiri (>= 1.5.9)
81
+ mail (2.7.1)
82
+ mini_mime (>= 0.1.1)
83
+ marcel (0.3.3)
84
+ mimemagic (~> 0.3.2)
85
+ method_source (1.0.0)
86
+ mimemagic (0.3.5)
87
+ mini_mime (1.0.2)
88
+ mini_portile2 (2.4.0)
89
+ minitest (5.14.0)
90
+ msgpack (1.3.3)
91
+ nio4r (2.5.2)
92
+ nokogiri (1.10.9)
93
+ mini_portile2 (~> 2.4.0)
94
+ pg (1.2.3)
95
+ puma (4.3.5)
96
+ nio4r (~> 2.0)
97
+ rack (2.2.2)
98
+ rack-proxy (0.6.5)
99
+ rack
100
+ rack-test (1.1.0)
101
+ rack (>= 1.0, < 3)
102
+ rails (6.0.3)
103
+ actioncable (= 6.0.3)
104
+ actionmailbox (= 6.0.3)
105
+ actionmailer (= 6.0.3)
106
+ actionpack (= 6.0.3)
107
+ actiontext (= 6.0.3)
108
+ actionview (= 6.0.3)
109
+ activejob (= 6.0.3)
110
+ activemodel (= 6.0.3)
111
+ activerecord (= 6.0.3)
112
+ activestorage (= 6.0.3)
113
+ activesupport (= 6.0.3)
114
+ bundler (>= 1.3.0)
115
+ railties (= 6.0.3)
116
+ sprockets-rails (>= 2.0.0)
117
+ rails-dom-testing (2.0.3)
118
+ activesupport (>= 4.2.0)
119
+ nokogiri (>= 1.6)
120
+ rails-html-sanitizer (1.3.0)
121
+ loofah (~> 2.3)
122
+ railties (6.0.3)
123
+ actionpack (= 6.0.3)
124
+ activesupport (= 6.0.3)
125
+ method_source
126
+ rake (>= 0.8.7)
127
+ thor (>= 0.20.3, < 2.0)
128
+ rake (13.0.1)
129
+ rb-fsevent (0.10.4)
130
+ rb-inotify (0.10.1)
131
+ ffi (~> 1.0)
132
+ ruby_dep (1.5.0)
133
+ sass-rails (6.0.0)
134
+ sassc-rails (~> 2.1, >= 2.1.1)
135
+ sassc (2.3.0)
136
+ ffi (~> 1.9)
137
+ sassc-rails (2.1.2)
138
+ railties (>= 4.0.0)
139
+ sassc (>= 2.0)
140
+ sprockets (> 3.0)
141
+ sprockets-rails
142
+ tilt
143
+ semantic_range (2.3.0)
144
+ spring (2.1.0)
145
+ spring-watcher-listen (2.0.1)
146
+ listen (>= 2.7, < 4.0)
147
+ spring (>= 1.2, < 3.0)
148
+ sprockets (4.0.0)
149
+ concurrent-ruby (~> 1.0)
150
+ rack (> 1, < 3)
151
+ sprockets-rails (3.2.1)
152
+ actionpack (>= 4.0)
153
+ activesupport (>= 4.0)
154
+ sprockets (>= 3.0.0)
155
+ thor (1.0.1)
156
+ thread_safe (0.3.6)
157
+ tilt (2.0.10)
158
+ turbolinks (5.2.1)
159
+ turbolinks-source (~> 5.2)
160
+ turbolinks-source (5.2.0)
161
+ tzinfo (1.2.7)
162
+ thread_safe (~> 0.1)
163
+ web-console (4.0.2)
164
+ actionview (>= 6.0.0)
165
+ activemodel (>= 6.0.0)
166
+ bindex (>= 0.4.0)
167
+ railties (>= 6.0.0)
168
+ webpacker (5.1.1)
169
+ activesupport (>= 5.2)
170
+ rack-proxy (>= 0.6.1)
171
+ railties (>= 5.2)
172
+ semantic_range (>= 2.3.0)
173
+ websocket-driver (0.7.1)
174
+ websocket-extensions (>= 0.1.0)
175
+ websocket-extensions (0.1.4)
176
+ zeitwerk (2.3.0)
177
+
178
+ PLATFORMS
179
+ ruby
180
+
181
+ DEPENDENCIES
182
+ bootsnap (>= 1.4.2)
183
+ byebug
184
+ jbuilder (~> 2.7)
185
+ listen (>= 3.0.5, < 3.2)
186
+ pg (>= 0.18, < 2.0)
187
+ puma (~> 4.3)
188
+ rails (~> 6.0.1)
189
+ sass-rails (>= 6)
190
+ spring
191
+ spring-watcher-listen (~> 2.0.0)
192
+ turbolinks (~> 5)
193
+ tzinfo-data
194
+ web-console (>= 3.3.0)
195
+ webpacker
196
+
197
+ RUBY VERSION
198
+ ruby 2.6.6p146
199
+
200
+ BUNDLED WITH
201
+ 2.1.4
@@ -0,0 +1,24 @@
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
+ * ...
@@ -0,0 +1,6 @@
1
+ # Add your own tasks in files placed in lib/tasks ending in .rake,
2
+ # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
+
4
+ require_relative 'config/application'
5
+
6
+ Rails.application.load_tasks
@@ -0,0 +1,2 @@
1
+ //= link_tree ../images
2
+ //= link_directory ../stylesheets .css
File without changes
@@ -0,0 +1,15 @@
1
+ /*
2
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
3
+ * listed below.
4
+ *
5
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's
6
+ * vendor/assets/stylesheets directory can be referenced here using a relative path.
7
+ *
8
+ * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
+ * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
10
+ * files in this directory. Styles in this file should be added after the last require_* statement.
11
+ * It is generally better to create a new file per style scope.
12
+ *
13
+ *= require_tree .
14
+ *= require_self
15
+ */
@@ -0,0 +1,4 @@
1
+ module ApplicationCable
2
+ class Channel < ActionCable::Channel::Base
3
+ end
4
+ end
@@ -0,0 +1,4 @@
1
+ module ApplicationCable
2
+ class Connection < ActionCable::Connection::Base
3
+ end
4
+ end
@@ -0,0 +1,2 @@
1
+ class ApplicationController < ActionController::Base
2
+ end
File without changes
@@ -0,0 +1,2 @@
1
+ module ApplicationHelper
2
+ end
@@ -0,0 +1,6 @@
1
+ // Action Cable provides the framework to deal with WebSockets in Rails.
2
+ // You can generate new channels where WebSocket features live using the `rails generate channel` command.
3
+
4
+ import { createConsumer } from "@rails/actioncable"
5
+
6
+ export default createConsumer()
@@ -0,0 +1,5 @@
1
+ // Load all the channels within this directory and all subdirectories.
2
+ // Channel files must be named *_channel.js.
3
+
4
+ const channels = require.context('.', true, /_channel\.js$/)
5
+ channels.keys().forEach(channels)
@@ -0,0 +1,17 @@
1
+ // This file is automatically compiled by Webpack, along with any other files
2
+ // present in this directory. You're encouraged to place your actual application logic in
3
+ // a relevant structure within app/javascript and only use these pack files to reference
4
+ // that code so it'll be compiled.
5
+
6
+ require("@rails/ujs").start()
7
+ require("turbolinks").start()
8
+ require("@rails/activestorage").start()
9
+ require("channels")
10
+
11
+
12
+ // Uncomment to copy all static images under ../images to the output folder and reference
13
+ // them with the image_pack_tag helper in views (e.g <%= image_pack_tag 'rails.png' %>)
14
+ // or the `imagePath` JavaScript helper below.
15
+ //
16
+ // const images = require.context('../images', true)
17
+ // const imagePath = (name) => images(name, true)
@@ -0,0 +1,7 @@
1
+ class ApplicationJob < ActiveJob::Base
2
+ # Automatically retry jobs that encountered a deadlock
3
+ # retry_on ActiveRecord::Deadlocked
4
+
5
+ # Most jobs are safe to ignore if the underlying records are no longer available
6
+ # discard_on ActiveJob::DeserializationError
7
+ end
@@ -0,0 +1,4 @@
1
+ class ApplicationMailer < ActionMailer::Base
2
+ default from: 'from@example.com'
3
+ layout 'mailer'
4
+ end
@@ -0,0 +1,3 @@
1
+ class ApplicationRecord < ActiveRecord::Base
2
+ self.abstract_class = true
3
+ end
File without changes
@@ -0,0 +1,15 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Docker</title>
5
+ <%= csrf_meta_tags %>
6
+ <%= csp_meta_tag %>
7
+
8
+ <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
9
+ <%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %>
10
+ </head>
11
+
12
+ <body>
13
+ <%= yield %>
14
+ </body>
15
+ </html>
@@ -0,0 +1,13 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5
+ <style>
6
+ /* Email styles need to be inline */
7
+ </style>
8
+ </head>
9
+
10
+ <body>
11
+ <%= yield %>
12
+ </body>
13
+ </html>
@@ -0,0 +1 @@
1
+ <%= yield %>
@@ -0,0 +1,72 @@
1
+ module.exports = function(api) {
2
+ var validEnv = ['development', 'test', 'production']
3
+ var currentEnv = api.env()
4
+ var isDevelopmentEnv = api.env('development')
5
+ var isProductionEnv = api.env('production')
6
+ var isTestEnv = api.env('test')
7
+
8
+ if (!validEnv.includes(currentEnv)) {
9
+ throw new Error(
10
+ 'Please specify a valid `NODE_ENV` or ' +
11
+ '`BABEL_ENV` environment variables. Valid values are "development", ' +
12
+ '"test", and "production". Instead, received: ' +
13
+ JSON.stringify(currentEnv) +
14
+ '.'
15
+ )
16
+ }
17
+
18
+ return {
19
+ presets: [
20
+ isTestEnv && [
21
+ '@babel/preset-env',
22
+ {
23
+ targets: {
24
+ node: 'current'
25
+ }
26
+ }
27
+ ],
28
+ (isProductionEnv || isDevelopmentEnv) && [
29
+ '@babel/preset-env',
30
+ {
31
+ forceAllTransforms: true,
32
+ useBuiltIns: 'entry',
33
+ corejs: 3,
34
+ modules: false,
35
+ exclude: ['transform-typeof-symbol']
36
+ }
37
+ ]
38
+ ].filter(Boolean),
39
+ plugins: [
40
+ 'babel-plugin-macros',
41
+ '@babel/plugin-syntax-dynamic-import',
42
+ isTestEnv && 'babel-plugin-dynamic-import-node',
43
+ '@babel/plugin-transform-destructuring',
44
+ [
45
+ '@babel/plugin-proposal-class-properties',
46
+ {
47
+ loose: true
48
+ }
49
+ ],
50
+ [
51
+ '@babel/plugin-proposal-object-rest-spread',
52
+ {
53
+ useBuiltIns: true
54
+ }
55
+ ],
56
+ [
57
+ '@babel/plugin-transform-runtime',
58
+ {
59
+ helpers: false,
60
+ regenerator: true,
61
+ corejs: false
62
+ }
63
+ ],
64
+ [
65
+ '@babel/plugin-transform-regenerator',
66
+ {
67
+ async: false
68
+ }
69
+ ]
70
+ ].filter(Boolean)
71
+ }
72
+ }
@@ -0,0 +1,105 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'bundle' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ require "rubygems"
12
+
13
+ m = Module.new do
14
+ module_function
15
+
16
+ def invoked_as_script?
17
+ File.expand_path($0) == File.expand_path(__FILE__)
18
+ end
19
+
20
+ def env_var_version
21
+ ENV["BUNDLER_VERSION"]
22
+ end
23
+
24
+ def cli_arg_version
25
+ return unless invoked_as_script? # don't want to hijack other binstubs
26
+ return unless "update".start_with?(ARGV.first || " ") # must be running `bundle update`
27
+ bundler_version = nil
28
+ update_index = nil
29
+ ARGV.each_with_index do |a, i|
30
+ if update_index && update_index.succ == i && a =~ Gem::Version::ANCHORED_VERSION_PATTERN
31
+ bundler_version = a
32
+ end
33
+ next unless a =~ /\A--bundler(?:[= ](#{Gem::Version::VERSION_PATTERN}))?\z/
34
+ bundler_version = $1 || ">= 0.a"
35
+ update_index = i
36
+ end
37
+ bundler_version
38
+ end
39
+
40
+ def gemfile
41
+ gemfile = ENV["BUNDLE_GEMFILE"]
42
+ return gemfile if gemfile && !gemfile.empty?
43
+
44
+ File.expand_path("../../Gemfile", __FILE__)
45
+ end
46
+
47
+ def lockfile
48
+ lockfile =
49
+ case File.basename(gemfile)
50
+ when "gems.rb" then gemfile.sub(/\.rb$/, gemfile)
51
+ else "#{gemfile}.lock"
52
+ end
53
+ File.expand_path(lockfile)
54
+ end
55
+
56
+ def lockfile_version
57
+ return unless File.file?(lockfile)
58
+ lockfile_contents = File.read(lockfile)
59
+ return unless lockfile_contents =~ /\n\nBUNDLED WITH\n\s{2,}(#{Gem::Version::VERSION_PATTERN})\n/
60
+ Regexp.last_match(1)
61
+ end
62
+
63
+ def bundler_version
64
+ @bundler_version ||= begin
65
+ env_var_version || cli_arg_version ||
66
+ lockfile_version || "#{Gem::Requirement.default}.a"
67
+ end
68
+ end
69
+
70
+ def load_bundler!
71
+ ENV["BUNDLE_GEMFILE"] ||= gemfile
72
+
73
+ # must dup string for RG < 1.8 compatibility
74
+ activate_bundler(bundler_version.dup)
75
+ end
76
+
77
+ def activate_bundler(bundler_version)
78
+ if Gem::Version.correct?(bundler_version) && Gem::Version.new(bundler_version).release < Gem::Version.new("2.0")
79
+ bundler_version = "< 2"
80
+ end
81
+ gem_error = activation_error_handling do
82
+ gem "bundler", bundler_version
83
+ end
84
+ return if gem_error.nil?
85
+ require_error = activation_error_handling do
86
+ require "bundler/version"
87
+ end
88
+ return if require_error.nil? && Gem::Requirement.new(bundler_version).satisfied_by?(Gem::Version.new(Bundler::VERSION))
89
+ warn "Activating bundler (#{bundler_version}) failed:\n#{gem_error.message}\n\nTo install the version of bundler this project requires, run `gem install bundler -v '#{bundler_version}'`"
90
+ exit 42
91
+ end
92
+
93
+ def activation_error_handling
94
+ yield
95
+ nil
96
+ rescue StandardError, LoadError => e
97
+ e
98
+ end
99
+ end
100
+
101
+ m.load_bundler!
102
+
103
+ if m.invoked_as_script?
104
+ load Gem.bin_path("bundler", "bundle")
105
+ end
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env ruby
2
+ begin
3
+ load File.expand_path('../spring', __FILE__)
4
+ rescue LoadError => e
5
+ raise unless e.message.include?('spring')
6
+ end
7
+ APP_PATH = File.expand_path('../config/application', __dir__)
8
+ require_relative '../config/boot'
9
+ require 'rails/commands'