interactive_record 0.0.1alpha

Sign up to get free protection for your applications and to get access to all the features.
Files changed (103) hide show
  1. checksums.yaml +7 -0
  2. data/.browserslistrc +1 -0
  3. data/.gitattributes +10 -0
  4. data/.gitignore +31 -0
  5. data/.orchestration.yml +4 -0
  6. data/.rspec +3 -0
  7. data/.rubocop.yml +6 -0
  8. data/.ruby-version +1 -0
  9. data/Gemfile +40 -0
  10. data/Gemfile.lock +287 -0
  11. data/LICENSE.txt +21 -0
  12. data/Makefile +27 -0
  13. data/README.md +39 -0
  14. data/Rakefile +8 -0
  15. data/app/assets/config/manifest.js +2 -0
  16. data/app/assets/images/.keep +0 -0
  17. data/app/assets/stylesheets/application.css +15 -0
  18. data/app/channels/application_cable/channel.rb +6 -0
  19. data/app/channels/application_cable/connection.rb +6 -0
  20. data/app/controllers/application_controller.rb +4 -0
  21. data/app/controllers/concerns/.keep +0 -0
  22. data/app/helpers/application_helper.rb +5 -0
  23. data/app/javascript/channels/consumer.js +6 -0
  24. data/app/javascript/channels/index.js +5 -0
  25. data/app/javascript/packs/application.js +13 -0
  26. data/app/javascript/packs/hello_react.jsx +26 -0
  27. data/app/jobs/application_job.rb +9 -0
  28. data/app/mailers/application_mailer.rb +6 -0
  29. data/app/models/application_record.rb +6 -0
  30. data/app/models/concerns/.keep +0 -0
  31. data/app/views/layouts/application.html.erb +16 -0
  32. data/app/views/layouts/mailer.html.erb +13 -0
  33. data/app/views/layouts/mailer.text.erb +1 -0
  34. data/babel.config.js +87 -0
  35. data/bin/bundle +118 -0
  36. data/bin/console +15 -0
  37. data/bin/rails +7 -0
  38. data/bin/rake +7 -0
  39. data/bin/setup +38 -0
  40. data/bin/spring +16 -0
  41. data/bin/webpack +19 -0
  42. data/bin/webpack-dev-server +19 -0
  43. data/bin/yarn +19 -0
  44. data/config.ru +8 -0
  45. data/config/application.rb +24 -0
  46. data/config/boot.rb +6 -0
  47. data/config/cable.yml +10 -0
  48. data/config/credentials.yml.enc +1 -0
  49. data/config/database.yml +25 -0
  50. data/config/environment.rb +7 -0
  51. data/config/environments/development.rb +70 -0
  52. data/config/environments/production.rb +116 -0
  53. data/config/environments/test.rb +62 -0
  54. data/config/initializers/application_controller_renderer.rb +9 -0
  55. data/config/initializers/backtrace_silencers.rb +10 -0
  56. data/config/initializers/content_security_policy.rb +31 -0
  57. data/config/initializers/cookies_serializer.rb +7 -0
  58. data/config/initializers/filter_parameter_logging.rb +8 -0
  59. data/config/initializers/inflections.rb +17 -0
  60. data/config/initializers/mime_types.rb +5 -0
  61. data/config/initializers/permissions_policy.rb +12 -0
  62. data/config/initializers/wrap_parameters.rb +16 -0
  63. data/config/locales/en.yml +33 -0
  64. data/config/puma.rb +45 -0
  65. data/config/routes.rb +5 -0
  66. data/config/spring.rb +8 -0
  67. data/config/storage.yml +34 -0
  68. data/config/unicorn.rb +19 -0
  69. data/config/webpack/development.js +5 -0
  70. data/config/webpack/environment.js +3 -0
  71. data/config/webpack/production.js +5 -0
  72. data/config/webpack/test.js +5 -0
  73. data/config/webpacker.yml +93 -0
  74. data/db/schema.rb +15 -0
  75. data/db/seeds.rb +8 -0
  76. data/interactive_record.gemspec +31 -0
  77. data/lib/assets/.keep +0 -0
  78. data/lib/interactive_record.rb +8 -0
  79. data/lib/interactive_record/version.rb +5 -0
  80. data/lib/tasks/.keep +0 -0
  81. data/log/.keep +0 -0
  82. data/orchestration/Dockerfile +32 -0
  83. data/orchestration/Makefile +508 -0
  84. data/orchestration/deploy.mk +69 -0
  85. data/orchestration/docker-compose.development.yml +4 -0
  86. data/orchestration/docker-compose.production.yml +28 -0
  87. data/orchestration/docker-compose.test.yml +4 -0
  88. data/orchestration/entrypoint.sh +17 -0
  89. data/package.json +20 -0
  90. data/postcss.config.js +12 -0
  91. data/public/404.html +67 -0
  92. data/public/422.html +67 -0
  93. data/public/500.html +66 -0
  94. data/public/apple-touch-icon-precomposed.png +0 -0
  95. data/public/apple-touch-icon.png +0 -0
  96. data/public/favicon.ico +0 -0
  97. data/public/robots.txt +1 -0
  98. data/storage/.keep +0 -0
  99. data/tmp/.keep +0 -0
  100. data/tmp/pids/.keep +0 -0
  101. data/vendor/.keep +0 -0
  102. data/yarn.lock +7785 -0
  103. metadata +147 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: bc7b9e97d51be79afff23f5812eb0650b9739b4f8c9e632d1abab50d55e336e2
4
+ data.tar.gz: 5ec3f57c9c81837a2284c4ad72fcf69b7cc21463312b18690cb18b839d87ab60
5
+ SHA512:
6
+ metadata.gz: 9371caa0e1ca726608185f242948236cefb8b11b858dbfff315e9d93a0b008b5ec41fe1740b0b336dfad51cd1c3bfcfefaa232a17a6814da68414af22db48b3a
7
+ data.tar.gz: fa695f31cab882d8aa65839d71fa6178fd9ff227dc54944d88c323657431e7c8ee44d8d0ab3c0ae0bc2587bf64584b54014a31f7ea9bd52e5da135ee5486f30b
data/.browserslistrc ADDED
@@ -0,0 +1 @@
1
+ defaults
data/.gitattributes ADDED
@@ -0,0 +1,10 @@
1
+ # See https://git-scm.com/docs/gitattributes for more about git attribute files.
2
+
3
+ # Mark the database schema as having been generated.
4
+ db/schema.rb linguist-generated
5
+
6
+ # Mark the yarn lockfile as having been generated.
7
+ yarn.lock linguist-generated
8
+
9
+ # Mark any vendored files as having been vendored.
10
+ vendor/* linguist-vendored
data/.gitignore ADDED
@@ -0,0 +1,31 @@
1
+ /.bundle
2
+ /db/*.sqlite3
3
+ /db/*.sqlite3-*
4
+ /log/*
5
+ /tmp/*
6
+ !/log/.keep
7
+ !/tmp/.keep
8
+ /tmp/pids/*
9
+ !/tmp/pids/
10
+ !/tmp/pids/.keep
11
+ /storage/*
12
+ !/storage/.keep
13
+ .rspec_status
14
+ /public/assets
15
+ .byebug_history
16
+ /config/master.key
17
+ /public/packs
18
+ /public/packs-test
19
+ /node_modules
20
+ /yarn-error.log
21
+ yarn-debug.log*
22
+ .yarn-integrity
23
+ orchestration/.sidecar
24
+ .env
25
+ deploy.tar
26
+ orchestration/.build/
27
+ orchestration/.deploy/
28
+ orchestration/Gemfile
29
+ orchestration/Gemfile.lock
30
+ orchestration/docker-compose.local.yml
31
+ *.gem
@@ -0,0 +1,4 @@
1
+ ---
2
+ docker:
3
+ organization: bobfarrell
4
+ repository: reactiverecord
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,6 @@
1
+ AllCops:
2
+ NewCops: enable
3
+ Exclude:
4
+ - 'bin/**/*'
5
+ - 'node_modules/**/*'
6
+ - 'db/schema.rb'
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 3.0.0
data/Gemfile ADDED
@@ -0,0 +1,40 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
6
+
7
+ gemspec
8
+
9
+ gem 'bootsnap', '~> 1.7'
10
+ gem 'jbuilder', '~> 2.7'
11
+ gem 'orchestration', '~> 0.5.6'
12
+ gem 'puma', '~> 5.0'
13
+ gem 'rails', '~> 6.1'
14
+ gem 'sqlite3', '~> 1.4'
15
+ gem 'turbolinks', '~> 5.2'
16
+ gem 'unicorn', '~> 5.8'
17
+ gem 'webpacker', '~> 5.0'
18
+
19
+ group :development, :test do
20
+ gem 'devpack', '~> 0.3.2'
21
+ end
22
+
23
+ group :development do
24
+ gem 'listen', '~> 3.3'
25
+ gem 'rack-mini-profiler', '~> 2.0'
26
+ gem 'spring', '~> 2.1'
27
+ gem 'web-console', '~> 4.1'
28
+ end
29
+
30
+ group :test do
31
+ gem 'brakeman', '~> 5.0'
32
+ gem 'capybara', '~> 3.35'
33
+ gem 'rspec-rails', '~> 4.0'
34
+ gem 'rubocop', '~> 1.11'
35
+ gem 'rubocop-rails', '~> 2.9'
36
+ gem 'rubocop-rspec', '~> 2.2'
37
+ gem 'selenium-webdriver', '~> 3.142'
38
+ gem 'strong_versions', '~> 0.4.5'
39
+ gem 'webdrivers', '~> 4.6'
40
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,287 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ interactive_record (0.0.1alpha)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ actioncable (6.1.3)
10
+ actionpack (= 6.1.3)
11
+ activesupport (= 6.1.3)
12
+ nio4r (~> 2.0)
13
+ websocket-driver (>= 0.6.1)
14
+ actionmailbox (6.1.3)
15
+ actionpack (= 6.1.3)
16
+ activejob (= 6.1.3)
17
+ activerecord (= 6.1.3)
18
+ activestorage (= 6.1.3)
19
+ activesupport (= 6.1.3)
20
+ mail (>= 2.7.1)
21
+ actionmailer (6.1.3)
22
+ actionpack (= 6.1.3)
23
+ actionview (= 6.1.3)
24
+ activejob (= 6.1.3)
25
+ activesupport (= 6.1.3)
26
+ mail (~> 2.5, >= 2.5.4)
27
+ rails-dom-testing (~> 2.0)
28
+ actionpack (6.1.3)
29
+ actionview (= 6.1.3)
30
+ activesupport (= 6.1.3)
31
+ rack (~> 2.0, >= 2.0.9)
32
+ rack-test (>= 0.6.3)
33
+ rails-dom-testing (~> 2.0)
34
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
35
+ actiontext (6.1.3)
36
+ actionpack (= 6.1.3)
37
+ activerecord (= 6.1.3)
38
+ activestorage (= 6.1.3)
39
+ activesupport (= 6.1.3)
40
+ nokogiri (>= 1.8.5)
41
+ actionview (6.1.3)
42
+ activesupport (= 6.1.3)
43
+ builder (~> 3.1)
44
+ erubi (~> 1.4)
45
+ rails-dom-testing (~> 2.0)
46
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
47
+ activejob (6.1.3)
48
+ activesupport (= 6.1.3)
49
+ globalid (>= 0.3.6)
50
+ activemodel (6.1.3)
51
+ activesupport (= 6.1.3)
52
+ activerecord (6.1.3)
53
+ activemodel (= 6.1.3)
54
+ activesupport (= 6.1.3)
55
+ activestorage (6.1.3)
56
+ actionpack (= 6.1.3)
57
+ activejob (= 6.1.3)
58
+ activerecord (= 6.1.3)
59
+ activesupport (= 6.1.3)
60
+ marcel (~> 0.3.1)
61
+ mimemagic (~> 0.3.2)
62
+ activesupport (6.1.3)
63
+ concurrent-ruby (~> 1.0, >= 1.0.2)
64
+ i18n (>= 1.6, < 2)
65
+ minitest (>= 5.1)
66
+ tzinfo (~> 2.0)
67
+ zeitwerk (~> 2.3)
68
+ addressable (2.7.0)
69
+ public_suffix (>= 2.0.2, < 5.0)
70
+ ast (2.4.2)
71
+ bindex (0.8.1)
72
+ bootsnap (1.7.2)
73
+ msgpack (~> 1.0)
74
+ brakeman (5.0.0)
75
+ builder (3.2.4)
76
+ capybara (3.35.3)
77
+ addressable
78
+ mini_mime (>= 0.1.3)
79
+ nokogiri (~> 1.8)
80
+ rack (>= 1.6.0)
81
+ rack-test (>= 0.6.3)
82
+ regexp_parser (>= 1.5, < 3.0)
83
+ xpath (~> 3.2)
84
+ childprocess (3.0.0)
85
+ concurrent-ruby (1.1.8)
86
+ crass (1.0.6)
87
+ database_url (0.1.2)
88
+ devpack (0.3.2)
89
+ diff-lcs (1.4.4)
90
+ erubi (1.10.0)
91
+ erubis (2.7.0)
92
+ ffi (1.14.2)
93
+ globalid (0.4.2)
94
+ activesupport (>= 4.2.0)
95
+ i18n (1.8.9)
96
+ concurrent-ruby (~> 1.0)
97
+ jbuilder (2.11.2)
98
+ activesupport (>= 5.0.0)
99
+ kgio (2.11.3)
100
+ listen (3.4.1)
101
+ rb-fsevent (~> 0.10, >= 0.10.3)
102
+ rb-inotify (~> 0.9, >= 0.9.10)
103
+ loofah (2.9.0)
104
+ crass (~> 1.0.2)
105
+ nokogiri (>= 1.5.9)
106
+ mail (2.7.1)
107
+ mini_mime (>= 0.1.1)
108
+ marcel (0.3.3)
109
+ mimemagic (~> 0.3.2)
110
+ method_source (1.0.0)
111
+ mimemagic (0.3.5)
112
+ mini_mime (1.0.2)
113
+ minitest (5.14.4)
114
+ msgpack (1.4.2)
115
+ nio4r (2.5.7)
116
+ nokogiri (1.11.1-x86_64-darwin)
117
+ racc (~> 1.4)
118
+ orchestration (0.5.6)
119
+ database_url (~> 0.1.2)
120
+ erubis (~> 2.7)
121
+ i18n (>= 0.5)
122
+ paint (~> 2.0)
123
+ thor (~> 1.0)
124
+ paint (2.2.1)
125
+ parallel (1.20.1)
126
+ parser (3.0.0.0)
127
+ ast (~> 2.4.1)
128
+ public_suffix (4.0.6)
129
+ puma (5.2.2)
130
+ nio4r (~> 2.0)
131
+ racc (1.5.2)
132
+ rack (2.2.3)
133
+ rack-mini-profiler (2.3.1)
134
+ rack (>= 1.2.0)
135
+ rack-proxy (0.6.5)
136
+ rack
137
+ rack-test (1.1.0)
138
+ rack (>= 1.0, < 3)
139
+ rails (6.1.3)
140
+ actioncable (= 6.1.3)
141
+ actionmailbox (= 6.1.3)
142
+ actionmailer (= 6.1.3)
143
+ actionpack (= 6.1.3)
144
+ actiontext (= 6.1.3)
145
+ actionview (= 6.1.3)
146
+ activejob (= 6.1.3)
147
+ activemodel (= 6.1.3)
148
+ activerecord (= 6.1.3)
149
+ activestorage (= 6.1.3)
150
+ activesupport (= 6.1.3)
151
+ bundler (>= 1.15.0)
152
+ railties (= 6.1.3)
153
+ sprockets-rails (>= 2.0.0)
154
+ rails-dom-testing (2.0.3)
155
+ activesupport (>= 4.2.0)
156
+ nokogiri (>= 1.6)
157
+ rails-html-sanitizer (1.3.0)
158
+ loofah (~> 2.3)
159
+ railties (6.1.3)
160
+ actionpack (= 6.1.3)
161
+ activesupport (= 6.1.3)
162
+ method_source
163
+ rake (>= 0.8.7)
164
+ thor (~> 1.0)
165
+ rainbow (3.0.0)
166
+ raindrops (0.19.1)
167
+ rake (13.0.3)
168
+ rb-fsevent (0.10.4)
169
+ rb-inotify (0.10.1)
170
+ ffi (~> 1.0)
171
+ regexp_parser (2.1.1)
172
+ rexml (3.2.4)
173
+ rspec-core (3.10.1)
174
+ rspec-support (~> 3.10.0)
175
+ rspec-expectations (3.10.1)
176
+ diff-lcs (>= 1.2.0, < 2.0)
177
+ rspec-support (~> 3.10.0)
178
+ rspec-mocks (3.10.2)
179
+ diff-lcs (>= 1.2.0, < 2.0)
180
+ rspec-support (~> 3.10.0)
181
+ rspec-rails (4.0.2)
182
+ actionpack (>= 4.2)
183
+ activesupport (>= 4.2)
184
+ railties (>= 4.2)
185
+ rspec-core (~> 3.10)
186
+ rspec-expectations (~> 3.10)
187
+ rspec-mocks (~> 3.10)
188
+ rspec-support (~> 3.10)
189
+ rspec-support (3.10.2)
190
+ rubocop (1.11.0)
191
+ parallel (~> 1.10)
192
+ parser (>= 3.0.0.0)
193
+ rainbow (>= 2.2.2, < 4.0)
194
+ regexp_parser (>= 1.8, < 3.0)
195
+ rexml
196
+ rubocop-ast (>= 1.2.0, < 2.0)
197
+ ruby-progressbar (~> 1.7)
198
+ unicode-display_width (>= 1.4.0, < 3.0)
199
+ rubocop-ast (1.4.1)
200
+ parser (>= 2.7.1.5)
201
+ rubocop-rails (2.9.1)
202
+ activesupport (>= 4.2.0)
203
+ rack (>= 1.1)
204
+ rubocop (>= 0.90.0, < 2.0)
205
+ rubocop-rspec (2.2.0)
206
+ rubocop (~> 1.0)
207
+ rubocop-ast (>= 1.1.0)
208
+ ruby-progressbar (1.11.0)
209
+ rubyzip (2.3.0)
210
+ selenium-webdriver (3.142.7)
211
+ childprocess (>= 0.5, < 4.0)
212
+ rubyzip (>= 1.2.2)
213
+ semantic_range (3.0.0)
214
+ spring (2.1.1)
215
+ sprockets (4.0.2)
216
+ concurrent-ruby (~> 1.0)
217
+ rack (> 1, < 3)
218
+ sprockets-rails (3.2.2)
219
+ actionpack (>= 4.0)
220
+ activesupport (>= 4.0)
221
+ sprockets (>= 3.0.0)
222
+ sqlite3 (1.4.2)
223
+ strong_versions (0.4.5)
224
+ i18n (>= 0.5)
225
+ paint (~> 2.0)
226
+ thor (1.1.0)
227
+ turbolinks (5.2.1)
228
+ turbolinks-source (~> 5.2)
229
+ turbolinks-source (5.2.0)
230
+ tzinfo (2.0.4)
231
+ concurrent-ruby (~> 1.0)
232
+ unicode-display_width (2.0.0)
233
+ unicorn (5.8.0)
234
+ kgio (~> 2.6)
235
+ raindrops (~> 0.7)
236
+ web-console (4.1.0)
237
+ actionview (>= 6.0.0)
238
+ activemodel (>= 6.0.0)
239
+ bindex (>= 0.4.0)
240
+ railties (>= 6.0.0)
241
+ webdrivers (4.6.0)
242
+ nokogiri (~> 1.6)
243
+ rubyzip (>= 1.3.0)
244
+ selenium-webdriver (>= 3.0, < 4.0)
245
+ webpacker (5.2.1)
246
+ activesupport (>= 5.2)
247
+ rack-proxy (>= 0.6.1)
248
+ railties (>= 5.2)
249
+ semantic_range (>= 2.3.0)
250
+ websocket-driver (0.7.3)
251
+ websocket-extensions (>= 0.1.0)
252
+ websocket-extensions (0.1.5)
253
+ xpath (3.2.0)
254
+ nokogiri (~> 1.8)
255
+ zeitwerk (2.4.2)
256
+
257
+ PLATFORMS
258
+ x86_64-darwin-19
259
+
260
+ DEPENDENCIES
261
+ bootsnap (~> 1.7)
262
+ brakeman (~> 5.0)
263
+ capybara (~> 3.35)
264
+ devpack (~> 0.3.2)
265
+ interactive_record!
266
+ jbuilder (~> 2.7)
267
+ listen (~> 3.3)
268
+ orchestration (~> 0.5.6)
269
+ puma (~> 5.0)
270
+ rack-mini-profiler (~> 2.0)
271
+ rails (~> 6.1)
272
+ rspec-rails (~> 4.0)
273
+ rubocop (~> 1.11)
274
+ rubocop-rails (~> 2.9)
275
+ rubocop-rspec (~> 2.2)
276
+ selenium-webdriver (~> 3.142)
277
+ spring (~> 2.1)
278
+ sqlite3 (~> 1.4)
279
+ strong_versions (~> 0.4.5)
280
+ turbolinks (~> 5.2)
281
+ unicorn (~> 5.8)
282
+ web-console (~> 4.1)
283
+ webdrivers (~> 4.6)
284
+ webpacker (~> 5.0)
285
+
286
+ BUNDLED WITH
287
+ 2.2.3
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2021 Bob Farrell
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/Makefile ADDED
@@ -0,0 +1,27 @@
1
+ include orchestration/Makefile
2
+ #
3
+ # Example test command
4
+ #
5
+ # This command will call `test-setup` before running your usual test pipeline.
6
+ #
7
+ # `test-setup` starts all containers specified in `docker-compose.test.yml`,
8
+ # waits for them to be ready, and runs DB migrations.
9
+ #
10
+ # In your CI environment, simply run `make test`.
11
+ #
12
+ .PHONY: test
13
+ test: test-setup
14
+ bundle exec rspec
15
+ bundle exec rubocop
16
+ bundle exec strong_versions
17
+ bundle exec brakeman
18
+
19
+ # Start development containers and create/migrate/seed database
20
+ .PHONY: develop
21
+ develop:
22
+ bundle install
23
+ @$(MAKE) start env=test
24
+ @$(MAKE) start env=development
25
+ bundle exec rake db:create
26
+ bundle exec rake db:migrate
27
+ bundle exec rake db:seed