lcms-engine 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (114) hide show
  1. checksums.yaml +4 -4
  2. data/.codeclimate.yml +1 -1
  3. data/.env.docker +1 -1
  4. data/.rubocop.yml +8 -7
  5. data/.ruby-version +1 -1
  6. data/CHANGELOG.md +16 -1
  7. data/Dockerfile +1 -1
  8. data/Gemfile.lock +223 -184
  9. data/README.md +3 -2
  10. data/app/controllers/concerns/lcms/engine/reimportable.rb +11 -1
  11. data/app/controllers/lcms/engine/admin/admin_controller.rb +1 -1
  12. data/app/controllers/lcms/engine/admin/documents_controller.rb +19 -4
  13. data/app/controllers/lcms/engine/admin/materials_controller.rb +12 -3
  14. data/app/controllers/lcms/engine/admin/standards_controller.rb +6 -1
  15. data/app/controllers/lcms/engine/admin/users_controller.rb +6 -1
  16. data/app/entities/lcms/engine/grades.rb +17 -6
  17. data/app/entities/lcms/engine/media_embed.rb +1 -1
  18. data/app/entities/lcms/engine/roman_numerals.rb +1 -1
  19. data/app/forms/lcms/engine/document_form.rb +19 -14
  20. data/app/forms/lcms/engine/material_form.rb +3 -2
  21. data/app/helpers/admin/components_helper.rb +2 -2
  22. data/app/helpers/lcms/engine/view_helper.rb +1 -1
  23. data/app/interactors/lcms/engine/explore_curriculum_interactor.rb +1 -1
  24. data/app/javascript/components/admin/ImportStatus.jsx +7 -3
  25. data/app/javascript/components/admin/MultiSelectedOperation.jsx +1 -0
  26. data/app/javascript/components/admin/association-picker/AssociationPicker.jsx +1 -0
  27. data/app/javascript/components/admin/association-picker/AssociationPickerResults.jsx +1 -0
  28. data/app/javascript/components/admin/association-picker/AssociationPickerWindow.jsx +1 -0
  29. data/app/javascript/components/admin/curriculum/CurriculumEditor.jsx +1 -0
  30. data/app/javascript/components/admin/resource-picker/ResourcePicker.jsx +1 -0
  31. data/app/jobs/concerns/lcms/engine/nested_resque_job.rb +1 -4
  32. data/app/jobs/lcms/engine/document_generate_gdoc_job.rb +2 -2
  33. data/app/jobs/lcms/engine/document_generate_job.rb +1 -1
  34. data/app/jobs/lcms/engine/document_parse_job.rb +1 -1
  35. data/app/models/lcms/engine/component.rb +3 -3
  36. data/app/models/lcms/engine/download.rb +1 -1
  37. data/app/models/lcms/engine/search/document.rb +4 -3
  38. data/app/presenters/lcms/engine/document_presenter.rb +2 -2
  39. data/app/queries/lcms/engine/admin_documents_query.rb +1 -1
  40. data/app/serializers/lcms/engine/previews_material_serializer.rb +1 -0
  41. data/app/services/lcms/engine/document_build_service.rb +4 -0
  42. data/app/services/lcms/engine/html_sanitizer.rb +5 -5
  43. data/app/services/lcms/engine/lessons_gdoc_bundler.rb +1 -1
  44. data/app/services/lcms/engine/material_build_service.rb +6 -2
  45. data/app/services/lcms/engine/material_preview_generator.rb +2 -2
  46. data/app/services/lcms/engine/react_materials_resolver.rb +3 -2
  47. data/app/views/lcms/engine/admin/batch_reimports/_search_form.html.erb +1 -1
  48. data/app/views/lcms/engine/admin/curriculums/edit.html.erb +1 -3
  49. data/app/views/lcms/engine/admin/documents/_materials_links.html.erb +2 -2
  50. data/app/views/lcms/engine/admin/documents/_search_form.html.erb +1 -1
  51. data/app/views/lcms/engine/admin/documents/index.html.erb +2 -2
  52. data/app/views/lcms/engine/admin/documents/new.html.erb +1 -1
  53. data/app/views/lcms/engine/admin/materials/_search_form.html.erb +1 -1
  54. data/app/views/lcms/engine/admin/materials/index.html.erb +4 -4
  55. data/app/views/lcms/engine/admin/resource_bulk_edits/new.html.erb +1 -1
  56. data/app/views/lcms/engine/admin/resources/_fields.html.erb +3 -0
  57. data/app/views/lcms/engine/admin/resources/_search_form.html.erb +1 -1
  58. data/app/views/lcms/engine/documents/gdoc/_agenda.html.erb +1 -1
  59. data/app/views/lcms/engine/documents/show.html.erb +1 -1
  60. data/app/views/lcms/engine/materials/show.html.erb +1 -1
  61. data/app/views/lcms/engine/resources/_download.html.erb +2 -2
  62. data/app/views/lcms/engine/resources/_unit_bundles.html.erb +2 -2
  63. data/config/locales/admin/en.yml +1 -1
  64. data/db/schema.rb +1 -1
  65. data/lcms-engine.gemspec +12 -10
  66. data/lib/doc_template.rb +1 -1
  67. data/lib/doc_template/objects/agenda_metadata.rb +1 -1
  68. data/lib/doc_template/objects/metadata_helpers.rb +1 -1
  69. data/lib/doc_template/objects/toc_metadata.rb +2 -2
  70. data/lib/doc_template/tables/base.rb +3 -2
  71. data/lib/doc_template/tags/activity_metadata_type_tag.rb +1 -1
  72. data/lib/doc_template/tags/answer_space_tag.rb +1 -1
  73. data/lib/doc_template/tags/base_tag.rb +3 -3
  74. data/lib/doc_template/tags/columns_tag.rb +1 -1
  75. data/lib/doc_template/tags/def_tag.rb +1 -1
  76. data/lib/doc_template/tags/expand_tag.rb +1 -0
  77. data/lib/doc_template/tags/heading_tag.rb +1 -1
  78. data/lib/doc_template/tags/inset_tag.rb +2 -2
  79. data/lib/doc_template/tags/latex_tag.rb +1 -1
  80. data/lib/doc_template/tags/page_break_tag.rb +1 -1
  81. data/lib/doc_template/tags/pd_tag.rb +4 -4
  82. data/lib/doc_template/tags/section_tag.rb +2 -2
  83. data/lib/doc_template/tags/standard_tag.rb +3 -3
  84. data/lib/doc_template/tags/table_preserve_alignment_tag.rb +1 -1
  85. data/lib/document_exporter/gdoc/base.rb +1 -1
  86. data/lib/document_renderer/part.rb +3 -3
  87. data/lib/elasticsearch/persistence/repository/response/results.rb +1 -1
  88. data/lib/lcms/engine/engine.rb +1 -1
  89. data/lib/lcms/engine/version.rb +1 -1
  90. data/lib/lt/lcms/metadata/base_service.rb +2 -1
  91. data/lib/lt/lcms/metadata/context.rb +2 -2
  92. data/lib/lt/lcms/metadata/service.rb +3 -1
  93. data/lib/resque_job.rb +3 -6
  94. data/lib/standard_importer.rb +4 -4
  95. data/lib/tasks/cloud66.rake +6 -4
  96. data/lib/tasks/document.rake +3 -3
  97. data/lib/tasks/google.rake +1 -1
  98. data/package.json +1 -0
  99. data/spec/controllers/admin/association_picker_controller_spec.rb +6 -8
  100. data/spec/controllers/admin/documents_controller_spec.rb +3 -1
  101. data/spec/controllers/admin/materials_controller_spec.rb +1 -1
  102. data/spec/controllers/admin/resources_controller_spec.rb +2 -2
  103. data/spec/dummy/.env.docker +5 -0
  104. data/spec/dummy/config/environments/production.rb +1 -1
  105. data/spec/dummy/config/puma.rb +3 -3
  106. data/spec/entities/grades_spec.rb +12 -0
  107. data/spec/features/admin/lessons/add_lesson_spec.rb +3 -3
  108. data/spec/features/admin/materials/add_material_spec.rb +3 -3
  109. data/spec/forms/document_form_spec.rb +11 -1
  110. data/spec/lib/doc_template/tables/shared_examples/remove_table.rb +1 -1
  111. data/spec/rails_helper.rb +19 -2
  112. data/spec/services/document_build_service_spec.rb +1 -1
  113. data/yarn.lock +145 -170
  114. metadata +81 -34
metadata CHANGED
@@ -1,73 +1,73 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lcms-engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Kuznetsov
8
8
  - Abraham Sánchez
9
9
  - Rômulo Saksida
10
- autorequire:
10
+ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2020-08-19 00:00:00.000000000 Z
13
+ date: 2021-02-12 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
- name: active_model_serializers
16
+ name: activejob-retry
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
19
  - - "~>"
20
20
  - !ruby/object:Gem::Version
21
- version: 0.10.10
21
+ version: 0.6.3
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - "~>"
27
27
  - !ruby/object:Gem::Version
28
- version: 0.10.10
28
+ version: 0.6.3
29
29
  - !ruby/object:Gem::Dependency
30
- name: activejob-retry
30
+ name: active_model_serializers
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
33
  - - "~>"
34
34
  - !ruby/object:Gem::Version
35
- version: 0.6.3
35
+ version: 0.10.10
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - "~>"
41
41
  - !ruby/object:Gem::Version
42
- version: 0.6.3
42
+ version: 0.10.10
43
43
  - !ruby/object:Gem::Dependency
44
- name: acts-as-taggable-on
44
+ name: acts_as_list
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - "~>"
48
48
  - !ruby/object:Gem::Version
49
- version: '6.5'
49
+ version: '1.0'
50
50
  type: :runtime
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
54
  - - "~>"
55
55
  - !ruby/object:Gem::Version
56
- version: '6.5'
56
+ version: '1.0'
57
57
  - !ruby/object:Gem::Dependency
58
- name: acts_as_list
58
+ name: acts-as-taggable-on
59
59
  requirement: !ruby/object:Gem::Requirement
60
60
  requirements:
61
61
  - - "~>"
62
62
  - !ruby/object:Gem::Version
63
- version: '1.0'
63
+ version: '6.5'
64
64
  type: :runtime
65
65
  prerelease: false
66
66
  version_requirements: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - "~>"
69
69
  - !ruby/object:Gem::Version
70
- version: '1.0'
70
+ version: '6.5'
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: addressable
73
73
  requirement: !ruby/object:Gem::Requirement
@@ -402,16 +402,16 @@ dependencies:
402
402
  name: google-api-client
403
403
  requirement: !ruby/object:Gem::Requirement
404
404
  requirements:
405
- - - "~>"
405
+ - - "<"
406
406
  - !ruby/object:Gem::Version
407
- version: 0.37.1
407
+ version: '1'
408
408
  type: :runtime
409
409
  prerelease: false
410
410
  version_requirements: !ruby/object:Gem::Requirement
411
411
  requirements:
412
- - - "~>"
412
+ - - "<"
413
413
  - !ruby/object:Gem::Version
414
- version: 0.37.1
414
+ version: '1'
415
415
  - !ruby/object:Gem::Dependency
416
416
  name: hiredis
417
417
  requirement: !ruby/object:Gem::Requirement
@@ -500,28 +500,40 @@ dependencies:
500
500
  requirements:
501
501
  - - "~>"
502
502
  - !ruby/object:Gem::Version
503
- version: 0.1.1
503
+ version: '0.2'
504
+ - - ">="
505
+ - !ruby/object:Gem::Version
506
+ version: 0.2.2
504
507
  type: :runtime
505
508
  prerelease: false
506
509
  version_requirements: !ruby/object:Gem::Requirement
507
510
  requirements:
508
511
  - - "~>"
509
512
  - !ruby/object:Gem::Version
510
- version: 0.1.1
513
+ version: '0.2'
514
+ - - ">="
515
+ - !ruby/object:Gem::Version
516
+ version: 0.2.2
511
517
  - !ruby/object:Gem::Dependency
512
518
  name: lt-lcms
513
519
  requirement: !ruby/object:Gem::Requirement
514
520
  requirements:
515
521
  - - "~>"
516
522
  - !ruby/object:Gem::Version
517
- version: '0.3'
523
+ version: '0.4'
524
+ - - ">="
525
+ - !ruby/object:Gem::Version
526
+ version: 0.4.1
518
527
  type: :runtime
519
528
  prerelease: false
520
529
  version_requirements: !ruby/object:Gem::Requirement
521
530
  requirements:
522
531
  - - "~>"
523
532
  - !ruby/object:Gem::Version
524
- version: '0.3'
533
+ version: '0.4'
534
+ - - ">="
535
+ - !ruby/object:Gem::Version
536
+ version: 0.4.1
525
537
  - !ruby/object:Gem::Dependency
526
538
  name: migration_data
527
539
  requirement: !ruby/object:Gem::Requirement
@@ -1190,14 +1202,14 @@ dependencies:
1190
1202
  requirements:
1191
1203
  - - "~>"
1192
1204
  - !ruby/object:Gem::Version
1193
- version: 0.49.1
1205
+ version: '0.57'
1194
1206
  type: :development
1195
1207
  prerelease: false
1196
1208
  version_requirements: !ruby/object:Gem::Requirement
1197
1209
  requirements:
1198
1210
  - - "~>"
1199
1211
  - !ruby/object:Gem::Version
1200
- version: 0.49.1
1212
+ version: '0.57'
1201
1213
  - !ruby/object:Gem::Dependency
1202
1214
  name: pry-byebug
1203
1215
  requirement: !ruby/object:Gem::Requirement
@@ -1246,28 +1258,56 @@ dependencies:
1246
1258
  requirements:
1247
1259
  - - "~>"
1248
1260
  - !ruby/object:Gem::Version
1249
- version: 0.59.2
1261
+ version: 0.93.1
1262
+ type: :development
1263
+ prerelease: false
1264
+ version_requirements: !ruby/object:Gem::Requirement
1265
+ requirements:
1266
+ - - "~>"
1267
+ - !ruby/object:Gem::Version
1268
+ version: 0.93.1
1269
+ - !ruby/object:Gem::Dependency
1270
+ name: safe_attributes
1271
+ requirement: !ruby/object:Gem::Requirement
1272
+ requirements:
1273
+ - - "~>"
1274
+ - !ruby/object:Gem::Version
1275
+ version: 1.0.10
1250
1276
  type: :development
1251
1277
  prerelease: false
1252
1278
  version_requirements: !ruby/object:Gem::Requirement
1253
1279
  requirements:
1254
1280
  - - "~>"
1255
1281
  - !ruby/object:Gem::Version
1256
- version: 0.59.2
1282
+ version: 1.0.10
1257
1283
  - !ruby/object:Gem::Dependency
1258
1284
  name: sdoc
1259
1285
  requirement: !ruby/object:Gem::Requirement
1260
1286
  requirements:
1261
1287
  - - "~>"
1262
1288
  - !ruby/object:Gem::Version
1263
- version: '1.1'
1289
+ version: '2'
1264
1290
  type: :development
1265
1291
  prerelease: false
1266
1292
  version_requirements: !ruby/object:Gem::Requirement
1267
1293
  requirements:
1268
1294
  - - "~>"
1269
1295
  - !ruby/object:Gem::Version
1270
- version: '1.1'
1296
+ version: '2'
1297
+ - !ruby/object:Gem::Dependency
1298
+ name: seedbank
1299
+ requirement: !ruby/object:Gem::Requirement
1300
+ requirements:
1301
+ - - "~>"
1302
+ - !ruby/object:Gem::Version
1303
+ version: '0.3'
1304
+ type: :development
1305
+ prerelease: false
1306
+ version_requirements: !ruby/object:Gem::Requirement
1307
+ requirements:
1308
+ - - "~>"
1309
+ - !ruby/object:Gem::Version
1310
+ version: '0.3'
1271
1311
  - !ruby/object:Gem::Dependency
1272
1312
  name: selenium-webdriver
1273
1313
  requirement: !ruby/object:Gem::Requirement
@@ -1275,6 +1315,9 @@ dependencies:
1275
1315
  - - "~>"
1276
1316
  - !ruby/object:Gem::Version
1277
1317
  version: '3.142'
1318
+ - - ">="
1319
+ - !ruby/object:Gem::Version
1320
+ version: 3.142.7
1278
1321
  type: :development
1279
1322
  prerelease: false
1280
1323
  version_requirements: !ruby/object:Gem::Requirement
@@ -1282,6 +1325,9 @@ dependencies:
1282
1325
  - - "~>"
1283
1326
  - !ruby/object:Gem::Version
1284
1327
  version: '3.142'
1328
+ - - ">="
1329
+ - !ruby/object:Gem::Version
1330
+ version: 3.142.7
1285
1331
  - !ruby/object:Gem::Dependency
1286
1332
  name: shoulda-matchers
1287
1333
  requirement: !ruby/object:Gem::Requirement
@@ -2107,6 +2153,7 @@ files:
2107
2153
  - spec/controllers/documents_controller_spec.rb
2108
2154
  - spec/controllers/resources_controller_spec.rb
2109
2155
  - spec/dummy/.env
2156
+ - spec/dummy/.env.docker
2110
2157
  - spec/dummy/.ruby-gemset
2111
2158
  - spec/dummy/.ruby-version
2112
2159
  - spec/dummy/.traceroute.yaml
@@ -2294,7 +2341,7 @@ homepage: https://github.com/learningtapestry/lcms-engine
2294
2341
  licenses:
2295
2342
  - Apache-2.0
2296
2343
  metadata: {}
2297
- post_install_message:
2344
+ post_install_message:
2298
2345
  rdoc_options: []
2299
2346
  require_paths:
2300
2347
  - lib
@@ -2302,16 +2349,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
2302
2349
  requirements:
2303
2350
  - - ">="
2304
2351
  - !ruby/object:Gem::Version
2305
- version: '2.5'
2352
+ version: '2.6'
2306
2353
  required_rubygems_version: !ruby/object:Gem::Requirement
2307
2354
  requirements:
2308
2355
  - - ">="
2309
2356
  - !ruby/object:Gem::Version
2310
2357
  version: '0'
2311
2358
  requirements: []
2312
- rubyforge_project:
2313
- rubygems_version: 2.7.8
2314
- signing_key:
2359
+ rubygems_version: 3.0.6
2360
+ signing_key:
2315
2361
  specification_version: 4
2316
2362
  summary: Rails engine for LCMS applications
2317
2363
  test_files:
@@ -2330,6 +2376,7 @@ test_files:
2330
2376
  - spec/controllers/documents_controller_spec.rb
2331
2377
  - spec/controllers/resources_controller_spec.rb
2332
2378
  - spec/dummy/.env
2379
+ - spec/dummy/.env.docker
2333
2380
  - spec/dummy/.ruby-gemset
2334
2381
  - spec/dummy/.ruby-version
2335
2382
  - spec/dummy/.traceroute.yaml