amazon-chime-sdk-rails 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/build.yml +69 -0
- data/.gitignore +7 -1
- data/CHANGELOG.md +19 -0
- data/Dockerfile +15 -0
- data/Gemfile +5 -3
- data/README.md +132 -1005
- 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 +30 -0
- data/lib/chime_sdk/controller/meetings.rb +4 -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 +19 -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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 96a67da511158cceed2043c5c7c97c9cf9f947460552f338611bf19956a8fd7f
|
4
|
+
data.tar.gz: 906e6e8236517f3d37a005bf2bc58da87fdc83949f128082bab7d68ea2257ce6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52b9275de8fdb8505cc6ba49efa4e4ee2ff68d4d2747e0ac0c3cb4936fe63e9967edc9241d30654e22443ff586a6b87cd417e6b93976127bff93c55ee2253101
|
7
|
+
data.tar.gz: 37326f62812ba4ff684b13a2eb6ae9e997dfb6f0c438ac4a2e68d41d54cf8ac3f2173baa1a4cbaf8c49b17d3b448d6e80e86aa74431b45df7b045d40a2957ba5
|
@@ -0,0 +1,69 @@
|
|
1
|
+
name: build
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches:
|
6
|
+
- '**'
|
7
|
+
- '!images'
|
8
|
+
pull_request:
|
9
|
+
branches:
|
10
|
+
- '**'
|
11
|
+
- '!images'
|
12
|
+
|
13
|
+
env:
|
14
|
+
# https://nodejs.org/en/download/releases/
|
15
|
+
node-version: 16.14.0
|
16
|
+
|
17
|
+
jobs:
|
18
|
+
build:
|
19
|
+
runs-on: ubuntu-latest
|
20
|
+
strategy:
|
21
|
+
fail-fast: false
|
22
|
+
matrix:
|
23
|
+
gemfile:
|
24
|
+
- gemfiles/Gemfile.rails-5.0
|
25
|
+
- gemfiles/Gemfile.rails-5.1
|
26
|
+
- gemfiles/Gemfile.rails-5.2
|
27
|
+
- gemfiles/Gemfile.rails-6.0
|
28
|
+
- gemfiles/Gemfile.rails-6.1
|
29
|
+
- gemfiles/Gemfile.rails-7.0
|
30
|
+
include:
|
31
|
+
# https://www.ruby-lang.org/en/downloads
|
32
|
+
- gemfile: gemfiles/Gemfile.rails-5.0
|
33
|
+
ruby-version: 2.7.6
|
34
|
+
- gemfile: gemfiles/Gemfile.rails-5.1
|
35
|
+
ruby-version: 2.7.6
|
36
|
+
- gemfile: gemfiles/Gemfile.rails-5.2
|
37
|
+
ruby-version: 2.7.6
|
38
|
+
- gemfile: gemfiles/Gemfile.rails-6.0
|
39
|
+
ruby-version: 3.0.4
|
40
|
+
- gemfile: gemfiles/Gemfile.rails-6.1
|
41
|
+
ruby-version: 3.0.4
|
42
|
+
- gemfile: gemfiles/Gemfile.rails-7.0
|
43
|
+
ruby-version: 3.0.4
|
44
|
+
- gemfile: Gemfile
|
45
|
+
ruby-version: head
|
46
|
+
allow_failures: 'true'
|
47
|
+
|
48
|
+
env:
|
49
|
+
RAILS_ENV: test
|
50
|
+
BUNDLE_GEMFILE: ${{ github.workspace }}/${{ matrix.gemfile }}
|
51
|
+
|
52
|
+
steps:
|
53
|
+
- uses: actions/checkout@v2
|
54
|
+
- name: Set up Ruby
|
55
|
+
uses: ruby/setup-ruby@v1
|
56
|
+
with:
|
57
|
+
ruby-version: ${{ matrix.ruby-version }}
|
58
|
+
bundler-cache: true
|
59
|
+
- name: Set up Node.js
|
60
|
+
uses: actions/setup-node@v2
|
61
|
+
with:
|
62
|
+
node-version: ${{ env.node-version }}
|
63
|
+
- name: Prepare test application
|
64
|
+
working-directory: ./spec/rails_app
|
65
|
+
run: |
|
66
|
+
bundle exec rails g chime_sdk:js
|
67
|
+
- name: Run tests with RSpec
|
68
|
+
run: bundle exec rspec
|
69
|
+
continue-on-error: ${{ matrix.allow_failures == 'true' }}
|
data/.gitignore
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
*.gem
|
1
2
|
*.rbc
|
2
3
|
capybara-*.html
|
3
4
|
/spec/rails_app/db/*.sqlite3
|
@@ -12,6 +13,7 @@ rerun.txt
|
|
12
13
|
pickle-email-*.html
|
13
14
|
/Gemfile.lock
|
14
15
|
/gemfiles/Gemfile*.lock
|
16
|
+
.ruby-version
|
15
17
|
|
16
18
|
# Ignore all logfiles and tempfiles.
|
17
19
|
/spec/rails_app/log/*
|
@@ -67,7 +69,8 @@ bower.json
|
|
67
69
|
/spec/rails_app/yarn-error.log
|
68
70
|
yarn-debug.log*
|
69
71
|
.yarn-integrity
|
70
|
-
|
72
|
+
package-lock.json
|
73
|
+
/package.json
|
71
74
|
|
72
75
|
# Ignore uploaded files in development
|
73
76
|
/spec/rails_app/storage/*
|
@@ -85,3 +88,6 @@ yarn-debug.log*
|
|
85
88
|
# Compiled Amazon Chime SDK as single JavaScript file
|
86
89
|
/spec/rails_app/app/assets/javascripts/amazon-chime-sdk.min.js
|
87
90
|
/spec/rails_app/app/assets/javascripts/amazon-chime-sdk.min.js.map
|
91
|
+
|
92
|
+
# Generated files by AWS Copilot CLI
|
93
|
+
/copilot/
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,22 @@
|
|
1
|
+
## 1.1.0 / 2022-05-04
|
2
|
+
[Full Changelog](http://github.com/simukappu/amazon-chime-sdk-rails/compare/v1.0.0...v1.1.0)
|
3
|
+
|
4
|
+
Enhancements:
|
5
|
+
|
6
|
+
* Use [Amazon Chime SDK for JavaScript](https://github.com/aws/amazon-chime-sdk-js) v2 as default
|
7
|
+
* Test use with Rails 6.1 and 7.0
|
8
|
+
* Enable to specify [Amazon Chime SDK for JavaScript](https://github.com/aws/amazon-chime-sdk-js) version in *Single Javascript Generator*
|
9
|
+
* Enable negative request parameters for meetings controller against positive config parameters
|
10
|
+
|
11
|
+
Enhancements for exmaple applications:
|
12
|
+
* Integrate [customized React Meeting Demo](https://github.com/simukappu/amazon-chime-sdk/tree/main/apps/meeting#readme---react-meeting-demo) with example Rails application
|
13
|
+
* Add Dockerfile and AWS deployment for example Rails application
|
14
|
+
* Remove sample single page application using Vue.js
|
15
|
+
|
16
|
+
Bug Fixes:
|
17
|
+
|
18
|
+
* Fix *Single Javascript Generator* along with [Single JS](https://github.com/aws-samples/amazon-chime-sdk/tree/main/utils/singlejs) repository move
|
19
|
+
|
1
20
|
## 1.0.0 / 2020-10-17
|
2
21
|
|
3
22
|
* First release
|
data/Dockerfile
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
FROM ruby:3.0.4
|
2
|
+
RUN apt-get update -qq && apt-get install -y build-essential libpq-dev nodejs npm
|
3
|
+
ENV ROOT="/amazon-chime-sdk-rails"
|
4
|
+
WORKDIR ${ROOT}
|
5
|
+
COPY Gemfile ${ROOT}
|
6
|
+
COPY amazon-chime-sdk-rails.gemspec ${ROOT}
|
7
|
+
COPY lib/ ${ROOT}/lib/
|
8
|
+
RUN bundle install
|
9
|
+
COPY spec/rails_app/ ${ROOT}/spec/rails_app/
|
10
|
+
WORKDIR ${ROOT}/spec/rails_app
|
11
|
+
RUN bin/rake db:migrate
|
12
|
+
RUN bin/rake db:seed
|
13
|
+
RUN bin/rails g chime_sdk:js
|
14
|
+
EXPOSE 3000
|
15
|
+
CMD ["bin/rails", "server", "-b", "0.0.0.0"]
|
data/Gemfile
CHANGED
@@ -3,12 +3,11 @@ source 'https://rubygems.org'
|
|
3
3
|
gemspec
|
4
4
|
|
5
5
|
# Bundle Rails
|
6
|
-
gem 'rails', '~> 6.
|
6
|
+
gem 'rails', '~> 6.1.0'
|
7
7
|
|
8
8
|
gem 'sqlite3'
|
9
9
|
gem 'puma'
|
10
10
|
gem 'sass-rails'
|
11
|
-
gem 'webpacker'
|
12
11
|
gem 'turbolinks'
|
13
12
|
gem 'jbuilder'
|
14
13
|
|
@@ -22,4 +21,7 @@ end
|
|
22
21
|
group :test do
|
23
22
|
# gem 'coveralls', require: false
|
24
23
|
gem 'coveralls_reborn', require: false
|
25
|
-
end
|
24
|
+
end
|
25
|
+
|
26
|
+
gem 'rack-cors', groups: [:production, :development]
|
27
|
+
gem 'dotenv-rails', groups: [:production, :development]
|