ama_layout 10.2.0 → 11.1.0

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.
Files changed (75) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +45 -0
  3. data/Dangerfile +19 -0
  4. data/ama_layout.gemspec +1 -1
  5. data/app/assets/javascripts/ama_layout/desktop/foundation-custom.js +1 -0
  6. data/app/helpers/ama_layout_breadcrumb_helper.rb +7 -1
  7. data/app/helpers/ama_layout_content_helper.rb +28 -17
  8. data/app/helpers/ama_layout_partial_helper.rb +11 -0
  9. data/app/views/ama_layout/{_alert.html.erb → v2/_alert.html.erb} +0 -0
  10. data/app/views/ama_layout/{_applogo.html.erb → v2/_applogo.html.erb} +0 -0
  11. data/app/views/ama_layout/{_breadcrumbs.html.erb → v2/_breadcrumbs.html.erb} +0 -0
  12. data/app/views/ama_layout/{_custom_nav_links.html.erb → v2/_custom_nav_links.html.erb} +0 -0
  13. data/app/views/ama_layout/{_custom_sidebar.html.erb → v2/_custom_sidebar.html.erb} +0 -0
  14. data/app/views/ama_layout/v2/_font.html.erb +1 -0
  15. data/app/views/ama_layout/{_footer.html.erb → v2/_footer.html.erb} +0 -0
  16. data/app/views/ama_layout/{_main_nav_item.html.erb → v2/_main_nav_item.html.erb} +0 -0
  17. data/app/views/ama_layout/{_main_top_nav_item.html.erb → v2/_main_top_nav_item.html.erb} +0 -0
  18. data/app/views/ama_layout/{_member_links.html.erb → v2/_member_links.html.erb} +0 -0
  19. data/app/views/ama_layout/{_mobile_links.html.erb → v2/_mobile_links.html.erb} +0 -0
  20. data/app/views/ama_layout/{_mobile_notification_icon.html.erb → v2/_mobile_notification_icon.html.erb} +0 -0
  21. data/app/views/ama_layout/{_notice.html.erb → v2/_notice.html.erb} +0 -0
  22. data/app/views/ama_layout/{_notices.html.erb → v2/_notices.html.erb} +0 -0
  23. data/app/views/ama_layout/{_notification.html.erb → v2/_notification.html.erb} +0 -0
  24. data/app/views/ama_layout/{_notification_icon.html.erb → v2/_notification_icon.html.erb} +0 -0
  25. data/app/views/ama_layout/{_notification_sidebar.html.erb → v2/_notification_sidebar.html.erb} +1 -1
  26. data/app/views/ama_layout/{_sidebar.html.erb → v2/_sidebar.html.erb} +0 -0
  27. data/app/views/ama_layout/{_sign_out_link.html.erb → v2/_sign_out_link.html.erb} +0 -0
  28. data/app/views/ama_layout/{_siteheader.html.erb → v2/_siteheader.html.erb} +0 -0
  29. data/app/views/ama_layout/{_sub_nav.html.erb → v2/_sub_nav.html.erb} +0 -0
  30. data/app/views/ama_layout/{_sub_nav_item.html.erb → v2/_sub_nav_item.html.erb} +0 -0
  31. data/app/views/ama_layout/{_success.html.erb → v2/_success.html.erb} +0 -0
  32. data/app/views/ama_layout/{_top_nav.html.erb → v2/_top_nav.html.erb} +0 -0
  33. data/app/views/ama_layout/{_top_sub_nav.html.erb → v2/_top_sub_nav.html.erb} +0 -0
  34. data/app/views/ama_layout/{_top_sub_nav_item.html.erb → v2/_top_sub_nav_item.html.erb} +0 -0
  35. data/app/views/ama_layout/v3/_alert.html.erb +5 -0
  36. data/app/views/ama_layout/v3/_applogo.html.erb +3 -0
  37. data/app/views/ama_layout/v3/_breadcrumbs.html.erb +3 -0
  38. data/app/views/ama_layout/v3/_custom_nav_links.html.erb +0 -0
  39. data/app/views/ama_layout/v3/_custom_sidebar.html.erb +1 -0
  40. data/app/views/ama_layout/v3/_font.html.erb +2 -0
  41. data/app/views/ama_layout/v3/_footer.html.erb +69 -0
  42. data/app/views/ama_layout/v3/_main_nav_item.html.erb +6 -0
  43. data/app/views/ama_layout/v3/_main_top_nav_item.html.erb +4 -0
  44. data/app/views/ama_layout/v3/_member_links.html.erb +6 -0
  45. data/app/views/ama_layout/v3/_mobile_links.html.erb +22 -0
  46. data/app/views/ama_layout/v3/_mobile_notification_icon.html.erb +4 -0
  47. data/app/views/ama_layout/v3/_notice.html.erb +5 -0
  48. data/app/views/ama_layout/v3/_notices.html.erb +3 -0
  49. data/app/views/ama_layout/v3/_notification.html.erb +10 -0
  50. data/app/views/ama_layout/v3/_notification_icon.html.erb +6 -0
  51. data/app/views/ama_layout/v3/_notification_sidebar.html.erb +22 -0
  52. data/app/views/ama_layout/v3/_sidebar.html.erb +8 -0
  53. data/app/views/ama_layout/v3/_sign_out_link.html.erb +3 -0
  54. data/app/views/ama_layout/v3/_siteheader.html.erb +37 -0
  55. data/app/views/ama_layout/v3/_sub_nav.html.erb +3 -0
  56. data/app/views/ama_layout/v3/_sub_nav_item.html.erb +3 -0
  57. data/app/views/ama_layout/v3/_success.html.erb +5 -0
  58. data/app/views/ama_layout/v3/_top_nav.html.erb +16 -0
  59. data/app/views/ama_layout/v3/_top_sub_nav.html.erb +3 -0
  60. data/app/views/ama_layout/v3/_top_sub_nav_item.html.erb +3 -0
  61. data/config.ru +1 -1
  62. data/lib/ama_layout/ama_layout_view.rb +6 -0
  63. data/lib/ama_layout/decorators/agent/navigation_decorator.rb +5 -3
  64. data/lib/ama_layout/decorators/navigation_decorator.rb +8 -8
  65. data/lib/ama_layout/draper_replacement.rb +6 -0
  66. data/lib/ama_layout/moneris.rb +10 -1
  67. data/lib/ama_layout/moneris/{textbox.txt → v2/textbox.txt} +0 -0
  68. data/lib/ama_layout/moneris/v3/textbox.txt +58 -0
  69. data/lib/ama_layout/version.rb +1 -1
  70. data/spec/ama_layout/decorators/moneris_decorator_spec.rb +4 -4
  71. data/spec/ama_layout/moneris_spec.rb +22 -3
  72. data/spec/helpers/ama_layout_content_helper_spec.rb +64 -62
  73. data/spec/spec_helper.rb +3 -1
  74. metadata +68 -37
  75. data/.travis.yml +0 -6
@@ -8,7 +8,9 @@ require 'timecop'
8
8
 
9
9
  ENV['RAILS_ENV'] = 'test'
10
10
 
11
- Combustion.initialize! :all
11
+ Combustion.initialize!(:all) do
12
+ config.stylesheet_resolver = OpenStruct.new(version: 'v3')
13
+ end
12
14
 
13
15
  Dir['./spec/support/**/*.rb'].sort.each { |file| require file }
14
16
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ama_layout
3
3
  version: !ruby/object:Gem::Version
4
- version: 10.2.0
4
+ version: 11.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Darko Dosenovic
@@ -10,10 +10,10 @@ authors:
10
10
  - Michael van den Beuken
11
11
  - Sinead Errity
12
12
  - Zoie Carnegie
13
- autorequire:
13
+ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2020-02-06 00:00:00.000000000 Z
16
+ date: 2020-07-28 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: breadcrumbs_on_rails
@@ -89,16 +89,16 @@ dependencies:
89
89
  name: bundler
90
90
  requirement: !ruby/object:Gem::Requirement
91
91
  requirements:
92
- - - "~>"
92
+ - - ">="
93
93
  - !ruby/object:Gem::Version
94
- version: 1.17.3
94
+ version: '0'
95
95
  type: :development
96
96
  prerelease: false
97
97
  version_requirements: !ruby/object:Gem::Requirement
98
98
  requirements:
99
- - - "~>"
99
+ - - ">="
100
100
  - !ruby/object:Gem::Version
101
- version: 1.17.3
101
+ version: '0'
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: combustion
104
104
  requirement: !ruby/object:Gem::Requirement
@@ -223,11 +223,12 @@ executables: []
223
223
  extensions: []
224
224
  extra_rdoc_files: []
225
225
  files:
226
+ - ".github/workflows/ci.yml"
226
227
  - ".gitignore"
227
228
  - ".rspec"
228
229
  - ".ruby-version"
229
230
  - ".simplecov"
230
- - ".travis.yml"
231
+ - Dangerfile
231
232
  - Gemfile
232
233
  - LICENSE.txt
233
234
  - PULL_REQUEST_TEMPLATE.md
@@ -256,35 +257,63 @@ files:
256
257
  - app/controllers/ama_layout/api/v1/notifications_controller.rb
257
258
  - app/helpers/ama_layout_breadcrumb_helper.rb
258
259
  - app/helpers/ama_layout_content_helper.rb
260
+ - app/helpers/ama_layout_partial_helper.rb
259
261
  - app/helpers/ama_layout_path_helper.rb
260
- - app/views/ama_layout/_alert.html.erb
261
- - app/views/ama_layout/_applogo.html.erb
262
- - app/views/ama_layout/_breadcrumbs.html.erb
263
- - app/views/ama_layout/_custom_nav_links.html.erb
264
- - app/views/ama_layout/_custom_sidebar.html.erb
265
- - app/views/ama_layout/_footer.html.erb
266
- - app/views/ama_layout/_main_nav_item.html.erb
267
- - app/views/ama_layout/_main_top_nav_item.html.erb
268
- - app/views/ama_layout/_member_links.html.erb
269
- - app/views/ama_layout/_mobile_links.html.erb
270
- - app/views/ama_layout/_mobile_notification_icon.html.erb
271
- - app/views/ama_layout/_notice.html.erb
272
- - app/views/ama_layout/_notices.html.erb
273
- - app/views/ama_layout/_notification.html.erb
274
- - app/views/ama_layout/_notification_icon.html.erb
275
- - app/views/ama_layout/_notification_sidebar.html.erb
276
- - app/views/ama_layout/_sidebar.html.erb
277
- - app/views/ama_layout/_sign_out_link.html.erb
278
- - app/views/ama_layout/_siteheader.html.erb
279
- - app/views/ama_layout/_sub_nav.html.erb
280
- - app/views/ama_layout/_sub_nav_item.html.erb
281
- - app/views/ama_layout/_success.html.erb
282
- - app/views/ama_layout/_top_nav.html.erb
283
- - app/views/ama_layout/_top_sub_nav.html.erb
284
- - app/views/ama_layout/_top_sub_nav_item.html.erb
285
262
  - app/views/ama_layout/agent/_sidebar.html.erb
286
263
  - app/views/ama_layout/agent/_siteheader.html.erb
287
264
  - app/views/ama_layout/agent/_top_nav.html.erb
265
+ - app/views/ama_layout/v2/_alert.html.erb
266
+ - app/views/ama_layout/v2/_applogo.html.erb
267
+ - app/views/ama_layout/v2/_breadcrumbs.html.erb
268
+ - app/views/ama_layout/v2/_custom_nav_links.html.erb
269
+ - app/views/ama_layout/v2/_custom_sidebar.html.erb
270
+ - app/views/ama_layout/v2/_font.html.erb
271
+ - app/views/ama_layout/v2/_footer.html.erb
272
+ - app/views/ama_layout/v2/_main_nav_item.html.erb
273
+ - app/views/ama_layout/v2/_main_top_nav_item.html.erb
274
+ - app/views/ama_layout/v2/_member_links.html.erb
275
+ - app/views/ama_layout/v2/_mobile_links.html.erb
276
+ - app/views/ama_layout/v2/_mobile_notification_icon.html.erb
277
+ - app/views/ama_layout/v2/_notice.html.erb
278
+ - app/views/ama_layout/v2/_notices.html.erb
279
+ - app/views/ama_layout/v2/_notification.html.erb
280
+ - app/views/ama_layout/v2/_notification_icon.html.erb
281
+ - app/views/ama_layout/v2/_notification_sidebar.html.erb
282
+ - app/views/ama_layout/v2/_sidebar.html.erb
283
+ - app/views/ama_layout/v2/_sign_out_link.html.erb
284
+ - app/views/ama_layout/v2/_siteheader.html.erb
285
+ - app/views/ama_layout/v2/_sub_nav.html.erb
286
+ - app/views/ama_layout/v2/_sub_nav_item.html.erb
287
+ - app/views/ama_layout/v2/_success.html.erb
288
+ - app/views/ama_layout/v2/_top_nav.html.erb
289
+ - app/views/ama_layout/v2/_top_sub_nav.html.erb
290
+ - app/views/ama_layout/v2/_top_sub_nav_item.html.erb
291
+ - app/views/ama_layout/v3/_alert.html.erb
292
+ - app/views/ama_layout/v3/_applogo.html.erb
293
+ - app/views/ama_layout/v3/_breadcrumbs.html.erb
294
+ - app/views/ama_layout/v3/_custom_nav_links.html.erb
295
+ - app/views/ama_layout/v3/_custom_sidebar.html.erb
296
+ - app/views/ama_layout/v3/_font.html.erb
297
+ - app/views/ama_layout/v3/_footer.html.erb
298
+ - app/views/ama_layout/v3/_main_nav_item.html.erb
299
+ - app/views/ama_layout/v3/_main_top_nav_item.html.erb
300
+ - app/views/ama_layout/v3/_member_links.html.erb
301
+ - app/views/ama_layout/v3/_mobile_links.html.erb
302
+ - app/views/ama_layout/v3/_mobile_notification_icon.html.erb
303
+ - app/views/ama_layout/v3/_notice.html.erb
304
+ - app/views/ama_layout/v3/_notices.html.erb
305
+ - app/views/ama_layout/v3/_notification.html.erb
306
+ - app/views/ama_layout/v3/_notification_icon.html.erb
307
+ - app/views/ama_layout/v3/_notification_sidebar.html.erb
308
+ - app/views/ama_layout/v3/_sidebar.html.erb
309
+ - app/views/ama_layout/v3/_sign_out_link.html.erb
310
+ - app/views/ama_layout/v3/_siteheader.html.erb
311
+ - app/views/ama_layout/v3/_sub_nav.html.erb
312
+ - app/views/ama_layout/v3/_sub_nav_item.html.erb
313
+ - app/views/ama_layout/v3/_success.html.erb
314
+ - app/views/ama_layout/v3/_top_nav.html.erb
315
+ - app/views/ama_layout/v3/_top_sub_nav.html.erb
316
+ - app/views/ama_layout/v3/_top_sub_nav_item.html.erb
288
317
  - app/views/application/_account_toggle.html.erb
289
318
  - config.ru
290
319
  - config/routes.rb
@@ -301,7 +330,8 @@ files:
301
330
  - lib/ama_layout/decorators/notification_decorator.rb
302
331
  - lib/ama_layout/draper_replacement.rb
303
332
  - lib/ama_layout/moneris.rb
304
- - lib/ama_layout/moneris/textbox.txt
333
+ - lib/ama_layout/moneris/v2/textbox.txt
334
+ - lib/ama_layout/moneris/v3/textbox.txt
305
335
  - lib/ama_layout/navigation.rb
306
336
  - lib/ama_layout/navigation.yml
307
337
  - lib/ama_layout/navigation_helper.rb
@@ -358,7 +388,7 @@ homepage: https://github.com/amaabca/ama_layout
358
388
  licenses:
359
389
  - MIT
360
390
  metadata: {}
361
- post_install_message:
391
+ post_install_message:
362
392
  rdoc_options: []
363
393
  require_paths:
364
394
  - lib
@@ -373,8 +403,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
373
403
  - !ruby/object:Gem::Version
374
404
  version: '0'
375
405
  requirements: []
376
- rubygems_version: 3.1.2
377
- signing_key:
406
+ rubyforge_project:
407
+ rubygems_version: 2.7.6.2
408
+ signing_key:
378
409
  specification_version: 4
379
410
  summary: ".ama.ab.ca site layouts"
380
411
  test_files:
@@ -1,6 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.5.5
4
- sudo: false
5
- services:
6
- - redis-server