amazon-chime-sdk-rails 1.0.0 → 1.1.1
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 +4 -4
- data/.github/workflows/build.yml +57 -0
- data/.gitignore +7 -1
- data/CHANGELOG.md +31 -0
- data/Dockerfile +15 -0
- data/Gemfile +5 -3
- data/README.md +132 -1005
- data/config/spring.rb +2 -0
- data/docs/Develop_Rails_API_Application.md +569 -0
- data/docs/Develop_Rails_View_Application.md +441 -0
- data/gemfiles/Gemfile.rails-5.0 +1 -1
- data/gemfiles/Gemfile.rails-5.1 +0 -1
- data/gemfiles/Gemfile.rails-5.2 +0 -1
- data/gemfiles/Gemfile.rails-6.0 +0 -1
- data/gemfiles/Gemfile.rails-6.1 +24 -0
- data/gemfiles/Gemfile.rails-7.0 +25 -0
- data/lib/chime_sdk/controller/meetings.rb +3 -3
- data/lib/chime_sdk/version.rb +1 -1
- data/lib/generators/chime_sdk/js_generator.rb +72 -9
- data/lib/generators/templates/controllers/meetings_controller.rb +1 -1
- data/spec/generators/js_generator_spec.rb +66 -6
- data/spec/rails_app/app/assets/config/manifest.js +1 -0
- data/spec/rails_app/app/assets/javascripts/application.js +3 -0
- data/spec/rails_app/app/controllers/api/public/meeting_attendees_controller.rb +11 -0
- data/spec/rails_app/app/controllers/api/public/meetings_controller.rb +15 -0
- data/spec/rails_app/app/controllers/meetings_controller.rb +1 -1
- data/spec/rails_app/app/views/layouts/_header.html.erb +1 -5
- data/spec/rails_app/app/views/layouts/application.html.erb +1 -2
- data/spec/rails_app/app/views/meetings/show.html.erb +22 -2
- data/spec/rails_app/config/application.rb +11 -2
- data/spec/rails_app/config/initializers/devise_token_auth.rb +1 -1
- data/spec/rails_app/config/routes.rb +10 -3
- data/spec/rails_app/db/seeds.rb +1 -1
- data/spec/requests/meetings_spec.rb +1 -1
- data/templates/amazon-chime-sdk-policy.yml +49 -0
- metadata +20 -57
- data/.travis.yml +0 -47
- data/spec/rails_app/app/controllers/spa_controller.rb +0 -6
- data/spec/rails_app/app/javascript/App.vue +0 -50
- data/spec/rails_app/app/javascript/channels/consumer.js +0 -6
- data/spec/rails_app/app/javascript/channels/index.js +0 -5
- data/spec/rails_app/app/javascript/components/DeviseTokenAuth.vue +0 -84
- data/spec/rails_app/app/javascript/components/meetings/Index.vue +0 -100
- data/spec/rails_app/app/javascript/components/meetings/Meeting.vue +0 -178
- data/spec/rails_app/app/javascript/components/rooms/Index.vue +0 -53
- data/spec/rails_app/app/javascript/components/rooms/Show.vue +0 -91
- data/spec/rails_app/app/javascript/packs/application.js +0 -17
- data/spec/rails_app/app/javascript/packs/spa.js +0 -14
- data/spec/rails_app/app/javascript/router/index.js +0 -74
- data/spec/rails_app/app/javascript/store/index.js +0 -37
- data/spec/rails_app/app/views/spa/index.html.erb +0 -1
- data/spec/rails_app/babel.config.js +0 -72
- data/spec/rails_app/bin/webpack +0 -18
- data/spec/rails_app/bin/webpack-dev-server +0 -18
- data/spec/rails_app/config/webpack/development.js +0 -5
- data/spec/rails_app/config/webpack/environment.js +0 -7
- data/spec/rails_app/config/webpack/loaders/vue.js +0 -6
- data/spec/rails_app/config/webpack/production.js +0 -5
- data/spec/rails_app/config/webpack/test.js +0 -5
- data/spec/rails_app/config/webpacker.yml +0 -97
- data/spec/rails_app/package.json +0 -23
- data/spec/rails_app/postcss.config.js +0 -12
@@ -1,72 +0,0 @@
|
|
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
|
-
}
|
data/spec/rails_app/bin/webpack
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
ENV["RAILS_ENV"] ||= ENV["RACK_ENV"] || "development"
|
4
|
-
ENV["NODE_ENV"] ||= "development"
|
5
|
-
|
6
|
-
require "pathname"
|
7
|
-
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
8
|
-
Pathname.new(__FILE__).realpath)
|
9
|
-
|
10
|
-
require "bundler/setup"
|
11
|
-
|
12
|
-
require "webpacker"
|
13
|
-
require "webpacker/webpack_runner"
|
14
|
-
|
15
|
-
APP_ROOT = File.expand_path("..", __dir__)
|
16
|
-
Dir.chdir(APP_ROOT) do
|
17
|
-
Webpacker::WebpackRunner.run(ARGV)
|
18
|
-
end
|
@@ -1,18 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
ENV["RAILS_ENV"] ||= ENV["RACK_ENV"] || "development"
|
4
|
-
ENV["NODE_ENV"] ||= "development"
|
5
|
-
|
6
|
-
require "pathname"
|
7
|
-
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
8
|
-
Pathname.new(__FILE__).realpath)
|
9
|
-
|
10
|
-
require "bundler/setup"
|
11
|
-
|
12
|
-
require "webpacker"
|
13
|
-
require "webpacker/dev_server_runner"
|
14
|
-
|
15
|
-
APP_ROOT = File.expand_path("..", __dir__)
|
16
|
-
Dir.chdir(APP_ROOT) do
|
17
|
-
Webpacker::DevServerRunner.run(ARGV)
|
18
|
-
end
|
@@ -1,7 +0,0 @@
|
|
1
|
-
const { environment } = require('@rails/webpacker')
|
2
|
-
const { VueLoaderPlugin } = require('vue-loader')
|
3
|
-
const vue = require('./loaders/vue')
|
4
|
-
|
5
|
-
environment.plugins.prepend('VueLoaderPlugin', new VueLoaderPlugin())
|
6
|
-
environment.loaders.prepend('vue', vue)
|
7
|
-
module.exports = environment
|
@@ -1,97 +0,0 @@
|
|
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: true
|
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
|
-
- .vue
|
38
|
-
- .mjs
|
39
|
-
- .js
|
40
|
-
- .sass
|
41
|
-
- .scss
|
42
|
-
- .css
|
43
|
-
- .module.sass
|
44
|
-
- .module.scss
|
45
|
-
- .module.css
|
46
|
-
- .png
|
47
|
-
- .svg
|
48
|
-
- .gif
|
49
|
-
- .jpeg
|
50
|
-
- .jpg
|
51
|
-
|
52
|
-
development:
|
53
|
-
<<: *default
|
54
|
-
compile: true
|
55
|
-
|
56
|
-
# Verifies that correct packages and versions are installed by inspecting package.json, yarn.lock, and node_modules
|
57
|
-
check_yarn_integrity: true
|
58
|
-
|
59
|
-
# Reference: https://webpack.js.org/configuration/dev-server/
|
60
|
-
dev_server:
|
61
|
-
https: false
|
62
|
-
host: localhost
|
63
|
-
port: 3035
|
64
|
-
public: localhost:3035
|
65
|
-
hmr: false
|
66
|
-
# Inline should be set to true if using HMR
|
67
|
-
inline: true
|
68
|
-
overlay: true
|
69
|
-
compress: true
|
70
|
-
disable_host_check: true
|
71
|
-
use_local_ip: false
|
72
|
-
quiet: false
|
73
|
-
pretty: false
|
74
|
-
headers:
|
75
|
-
'Access-Control-Allow-Origin': '*'
|
76
|
-
watch_options:
|
77
|
-
ignored: '**/node_modules/**'
|
78
|
-
|
79
|
-
|
80
|
-
test:
|
81
|
-
<<: *default
|
82
|
-
compile: true
|
83
|
-
|
84
|
-
# Compile test packs to a separate directory
|
85
|
-
public_output_path: packs-test
|
86
|
-
|
87
|
-
production:
|
88
|
-
<<: *default
|
89
|
-
|
90
|
-
# Production depends on precompilation of packs prior to booting for performance.
|
91
|
-
compile: false
|
92
|
-
|
93
|
-
# Extract and emit a css file
|
94
|
-
extract_css: true
|
95
|
-
|
96
|
-
# Cache manifest.json for performance
|
97
|
-
cache_manifest: true
|
data/spec/rails_app/package.json
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"name": "rails_app",
|
3
|
-
"private": true,
|
4
|
-
"dependencies": {
|
5
|
-
"@rails/actioncable": "^6.0.0",
|
6
|
-
"@rails/activestorage": "^6.0.0",
|
7
|
-
"@rails/ujs": "^6.0.0",
|
8
|
-
"@rails/webpacker": "4.3.0",
|
9
|
-
"amazon-chime-sdk-js": "^1.17.2",
|
10
|
-
"axios": "^0.20.0",
|
11
|
-
"turbolinks": "^5.2.0",
|
12
|
-
"vue": "^2.6.12",
|
13
|
-
"vue-loader": "^15.9.3",
|
14
|
-
"vue-router": "^3.4.3",
|
15
|
-
"vue-template-compiler": "^2.6.12",
|
16
|
-
"vuex": "^3.5.1",
|
17
|
-
"vuex-persistedstate": "^3.1.0"
|
18
|
-
},
|
19
|
-
"version": "0.1.0",
|
20
|
-
"devDependencies": {
|
21
|
-
"webpack-dev-server": "^3.11.0"
|
22
|
-
}
|
23
|
-
}
|