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.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/build.yml +69 -0
  3. data/.gitignore +7 -1
  4. data/CHANGELOG.md +19 -0
  5. data/Dockerfile +15 -0
  6. data/Gemfile +5 -3
  7. data/README.md +132 -1005
  8. data/docs/Develop_Rails_API_Application.md +569 -0
  9. data/docs/Develop_Rails_View_Application.md +441 -0
  10. data/gemfiles/Gemfile.rails-5.0 +1 -1
  11. data/gemfiles/Gemfile.rails-5.1 +0 -1
  12. data/gemfiles/Gemfile.rails-5.2 +0 -1
  13. data/gemfiles/Gemfile.rails-6.0 +0 -1
  14. data/gemfiles/Gemfile.rails-6.1 +24 -0
  15. data/gemfiles/Gemfile.rails-7.0 +30 -0
  16. data/lib/chime_sdk/controller/meetings.rb +4 -3
  17. data/lib/chime_sdk/version.rb +1 -1
  18. data/lib/generators/chime_sdk/js_generator.rb +72 -9
  19. data/lib/generators/templates/controllers/meetings_controller.rb +1 -1
  20. data/spec/generators/js_generator_spec.rb +66 -6
  21. data/spec/rails_app/app/assets/config/manifest.js +1 -0
  22. data/spec/rails_app/app/assets/javascripts/application.js +3 -0
  23. data/spec/rails_app/app/controllers/api/public/meeting_attendees_controller.rb +11 -0
  24. data/spec/rails_app/app/controllers/api/public/meetings_controller.rb +15 -0
  25. data/spec/rails_app/app/controllers/meetings_controller.rb +1 -1
  26. data/spec/rails_app/app/views/layouts/_header.html.erb +1 -5
  27. data/spec/rails_app/app/views/layouts/application.html.erb +1 -2
  28. data/spec/rails_app/app/views/meetings/show.html.erb +22 -2
  29. data/spec/rails_app/config/application.rb +11 -2
  30. data/spec/rails_app/config/initializers/devise_token_auth.rb +1 -1
  31. data/spec/rails_app/config/routes.rb +10 -3
  32. data/spec/rails_app/db/seeds.rb +1 -1
  33. data/spec/requests/meetings_spec.rb +1 -1
  34. data/templates/amazon-chime-sdk-policy.yml +49 -0
  35. metadata +19 -57
  36. data/.travis.yml +0 -47
  37. data/spec/rails_app/app/controllers/spa_controller.rb +0 -6
  38. data/spec/rails_app/app/javascript/App.vue +0 -50
  39. data/spec/rails_app/app/javascript/channels/consumer.js +0 -6
  40. data/spec/rails_app/app/javascript/channels/index.js +0 -5
  41. data/spec/rails_app/app/javascript/components/DeviseTokenAuth.vue +0 -84
  42. data/spec/rails_app/app/javascript/components/meetings/Index.vue +0 -100
  43. data/spec/rails_app/app/javascript/components/meetings/Meeting.vue +0 -178
  44. data/spec/rails_app/app/javascript/components/rooms/Index.vue +0 -53
  45. data/spec/rails_app/app/javascript/components/rooms/Show.vue +0 -91
  46. data/spec/rails_app/app/javascript/packs/application.js +0 -17
  47. data/spec/rails_app/app/javascript/packs/spa.js +0 -14
  48. data/spec/rails_app/app/javascript/router/index.js +0 -74
  49. data/spec/rails_app/app/javascript/store/index.js +0 -37
  50. data/spec/rails_app/app/views/spa/index.html.erb +0 -1
  51. data/spec/rails_app/babel.config.js +0 -72
  52. data/spec/rails_app/bin/webpack +0 -18
  53. data/spec/rails_app/bin/webpack-dev-server +0 -18
  54. data/spec/rails_app/config/webpack/development.js +0 -5
  55. data/spec/rails_app/config/webpack/environment.js +0 -7
  56. data/spec/rails_app/config/webpack/loaders/vue.js +0 -6
  57. data/spec/rails_app/config/webpack/production.js +0 -5
  58. data/spec/rails_app/config/webpack/test.js +0 -5
  59. data/spec/rails_app/config/webpacker.yml +0 -97
  60. data/spec/rails_app/package.json +0 -23
  61. data/spec/rails_app/postcss.config.js +0 -12
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 58ba4a5120f7627c132916b953a9220df353788aef966f2a56f8915c3a0a9ef6
4
- data.tar.gz: 2b59830799578d63ad1d87ec4cf5754be896974a7726ced42be3139adcedfd50
3
+ metadata.gz: 96a67da511158cceed2043c5c7c97c9cf9f947460552f338611bf19956a8fd7f
4
+ data.tar.gz: 906e6e8236517f3d37a005bf2bc58da87fdc83949f128082bab7d68ea2257ce6
5
5
  SHA512:
6
- metadata.gz: b36d2ecafa05d835679ef5e7c8351a7c45f31b996010253b62fca9cc6b7cb0288fd3a0f4cbc5f985c654491afbd7d546acd98d409381d8805ab29e0199047271
7
- data.tar.gz: e233e6b6f840da4b8b3eb7186a2b279112c39bfc0352a1fb83075a46a90c74acea25abbab2d8d8e0b9ec7a677b4e5335f4326156d8196338806ca6668c2a93f8
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
- /package-lock.json
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.0.0'
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]