ama_layout 9.5.3 → 11.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/workflows/ci.yml +45 -0
- data/.ruby-version +1 -0
- data/Dangerfile +19 -0
- data/ama_layout.gemspec +33 -18
- data/app/assets/javascripts/ama_layout/desktop/foundation-custom.js +1 -0
- data/app/helpers/ama_layout_breadcrumb_helper.rb +7 -1
- data/app/helpers/ama_layout_content_helper.rb +28 -17
- data/app/helpers/ama_layout_partial_helper.rb +11 -0
- data/app/views/ama_layout/{_alert.html.erb → v2/_alert.html.erb} +0 -0
- data/app/views/ama_layout/{_applogo.html.erb → v2/_applogo.html.erb} +0 -0
- data/app/views/ama_layout/{_breadcrumbs.html.erb → v2/_breadcrumbs.html.erb} +0 -0
- data/app/views/ama_layout/{_custom_nav_links.html.erb → v2/_custom_nav_links.html.erb} +0 -0
- data/app/views/ama_layout/{_custom_sidebar.html.erb → v2/_custom_sidebar.html.erb} +0 -0
- data/app/views/ama_layout/v2/_font.html.erb +1 -0
- data/app/views/ama_layout/{_footer.html.erb → v2/_footer.html.erb} +0 -0
- data/app/views/ama_layout/{_main_nav_item.html.erb → v2/_main_nav_item.html.erb} +0 -0
- data/app/views/ama_layout/{_main_top_nav_item.html.erb → v2/_main_top_nav_item.html.erb} +0 -0
- data/app/views/ama_layout/v2/_member_links.html.erb +6 -0
- data/app/views/ama_layout/{_mobile_links.html.erb → v2/_mobile_links.html.erb} +0 -0
- data/app/views/ama_layout/{_mobile_notification_icon.html.erb → v2/_mobile_notification_icon.html.erb} +0 -0
- data/app/views/ama_layout/{_notice.html.erb → v2/_notice.html.erb} +0 -0
- data/app/views/ama_layout/{_notices.html.erb → v2/_notices.html.erb} +0 -0
- data/app/views/ama_layout/{_notification.html.erb → v2/_notification.html.erb} +0 -0
- data/app/views/ama_layout/{_notification_icon.html.erb → v2/_notification_icon.html.erb} +0 -0
- data/app/views/ama_layout/{_notification_sidebar.html.erb → v2/_notification_sidebar.html.erb} +1 -1
- data/app/views/ama_layout/{_sidebar.html.erb → v2/_sidebar.html.erb} +0 -0
- data/app/views/ama_layout/{_sign_out_link.html.erb → v2/_sign_out_link.html.erb} +0 -0
- data/app/views/ama_layout/{_siteheader.html.erb → v2/_siteheader.html.erb} +0 -0
- data/app/views/ama_layout/{_sub_nav.html.erb → v2/_sub_nav.html.erb} +0 -0
- data/app/views/ama_layout/{_sub_nav_item.html.erb → v2/_sub_nav_item.html.erb} +0 -0
- data/app/views/ama_layout/{_success.html.erb → v2/_success.html.erb} +0 -0
- data/app/views/ama_layout/v2/_top_nav.html.erb +16 -0
- data/app/views/ama_layout/{_top_sub_nav.html.erb → v2/_top_sub_nav.html.erb} +0 -0
- data/app/views/ama_layout/{_top_sub_nav_item.html.erb → v2/_top_sub_nav_item.html.erb} +0 -0
- data/app/views/ama_layout/v3/_alert.html.erb +5 -0
- data/app/views/ama_layout/v3/_applogo.html.erb +3 -0
- data/app/views/ama_layout/v3/_breadcrumbs.html.erb +3 -0
- data/app/views/ama_layout/v3/_custom_nav_links.html.erb +0 -0
- data/app/views/ama_layout/v3/_custom_sidebar.html.erb +1 -0
- data/app/views/ama_layout/v3/_font.html.erb +2 -0
- data/app/views/ama_layout/v3/_footer.html.erb +69 -0
- data/app/views/ama_layout/v3/_main_nav_item.html.erb +6 -0
- data/app/views/ama_layout/v3/_main_top_nav_item.html.erb +4 -0
- data/app/views/ama_layout/v3/_member_links.html.erb +6 -0
- data/app/views/ama_layout/v3/_mobile_links.html.erb +19 -0
- data/app/views/ama_layout/v3/_mobile_notification_icon.html.erb +4 -0
- data/app/views/ama_layout/v3/_notice.html.erb +5 -0
- data/app/views/ama_layout/v3/_notices.html.erb +3 -0
- data/app/views/ama_layout/v3/_notification.html.erb +10 -0
- data/app/views/ama_layout/v3/_notification_icon.html.erb +6 -0
- data/app/views/ama_layout/v3/_notification_sidebar.html.erb +22 -0
- data/app/views/ama_layout/v3/_sidebar.html.erb +8 -0
- data/app/views/ama_layout/v3/_sign_out_link.html.erb +3 -0
- data/app/views/ama_layout/v3/_siteheader.html.erb +37 -0
- data/app/views/ama_layout/v3/_sub_nav.html.erb +3 -0
- data/app/views/ama_layout/v3/_sub_nav_item.html.erb +3 -0
- data/app/views/ama_layout/v3/_success.html.erb +5 -0
- data/app/views/ama_layout/v3/_top_nav.html.erb +16 -0
- data/app/views/ama_layout/v3/_top_sub_nav.html.erb +3 -0
- data/app/views/ama_layout/v3/_top_sub_nav_item.html.erb +3 -0
- data/config.ru +9 -0
- data/lib/ama_layout/ama_layout_view.rb +6 -0
- data/lib/ama_layout/decorators/agent/navigation_decorator.rb +11 -6
- data/lib/ama_layout/decorators/navigation_decorator.rb +41 -26
- data/lib/ama_layout/draper_replacement.rb +6 -0
- data/lib/ama_layout/moneris.rb +10 -1
- data/lib/ama_layout/moneris/{textbox.txt → v2/textbox.txt} +0 -0
- data/lib/ama_layout/moneris/v3/textbox.txt +62 -0
- data/lib/ama_layout/navigation.rb +16 -9
- data/lib/ama_layout/navigation.yml +2 -2
- data/lib/ama_layout/version.rb +3 -1
- data/spec/ama_layout/decorators/moneris_decorator_spec.rb +10 -7
- data/spec/ama_layout/decorators/navigation_decorator_spec.rb +115 -60
- data/spec/ama_layout/moneris_spec.rb +22 -3
- data/spec/factories/agent_navigation.rb +3 -1
- data/spec/factories/navigation.rb +3 -1
- data/spec/factories/navigation_item.rb +6 -4
- data/spec/factories/users.rb +20 -13
- data/spec/helpers/ama_layout_content_helper_spec.rb +64 -62
- data/spec/internal/app/assets/config/manifest.js +0 -0
- data/spec/internal/db/schema.rb +4 -1
- data/spec/spec_helper.rb +3 -1
- metadata +104 -80
- data/.travis.yml +0 -6
- data/app/views/ama_layout/_top_nav.html.erb +0 -11
data/spec/factories/users.rb
CHANGED
@@ -1,35 +1,42 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
FactoryBot.define do
|
2
4
|
factory :user, class: Class.new(OpenStruct) do
|
3
|
-
in_renewal false
|
4
|
-
member_type 'P'
|
5
|
-
renew_type 'R'
|
6
|
-
status 'A'
|
7
|
-
has_outstanding_balance false
|
8
|
-
member? true
|
5
|
+
in_renewal { false }
|
6
|
+
member_type { 'P' }
|
7
|
+
renew_type { 'R' }
|
8
|
+
status { 'A' }
|
9
|
+
has_outstanding_balance { false }
|
10
|
+
member? { true }
|
11
|
+
menu_key { 'member' }
|
9
12
|
|
10
13
|
trait :non_member do
|
11
|
-
member? false
|
14
|
+
member? { false }
|
15
|
+
menu_key { 'non_member' }
|
12
16
|
end
|
13
17
|
|
14
18
|
trait :with_accr do
|
15
|
-
renew_type 'A'
|
19
|
+
renew_type { 'A' }
|
16
20
|
end
|
17
21
|
|
18
22
|
trait :with_mpp do
|
19
|
-
renew_type 'M'
|
23
|
+
renew_type { 'M' }
|
20
24
|
end
|
21
25
|
|
22
26
|
trait :in_renewal do
|
23
|
-
in_renewal true
|
27
|
+
in_renewal { true }
|
28
|
+
menu_key { 'member_renewal' }
|
24
29
|
end
|
25
30
|
|
26
31
|
trait :in_renewal_late do
|
27
|
-
in_renewal true
|
28
|
-
status 'AL'
|
32
|
+
in_renewal { true }
|
33
|
+
status { 'AL' }
|
34
|
+
menu_key { 'member_renewal_late' }
|
29
35
|
end
|
30
36
|
|
31
37
|
trait :outstanding_balance do
|
32
|
-
has_outstanding_balance true
|
38
|
+
has_outstanding_balance { true }
|
39
|
+
menu_key { 'member_outstanding_balance' }
|
33
40
|
end
|
34
41
|
end
|
35
42
|
end
|
@@ -1,159 +1,161 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
describe AmaLayoutContentHelper do
|
2
|
-
let(:greeting) {
|
3
|
-
let(:site_name) {
|
4
|
-
let(:site_domain) {
|
4
|
+
let(:greeting) { 'DJ Funky Fresh' }
|
5
|
+
let(:site_name) { 'Waffle Emporium' }
|
6
|
+
let(:site_domain) { 'http://waffleemporium.ca' }
|
5
7
|
let(:site_url) { "#{site_domain}/wafflesauce" }
|
6
8
|
let(:nav_item) { FactoryBot.build(:navigation_item) }
|
7
9
|
|
8
|
-
describe
|
9
|
-
it
|
10
|
+
describe '#greeting' do
|
11
|
+
it 'returns the greeting set in the domain cookie' do
|
10
12
|
helper.request.cookies[:logged_in_meta] = greeting
|
11
13
|
expect(helper.greeting).to eq greeting
|
12
14
|
end
|
13
15
|
end
|
14
16
|
|
15
|
-
describe
|
16
|
-
it
|
17
|
+
describe '#utm_source' do
|
18
|
+
it 'returns the downcased character-only representation of the site name' do
|
17
19
|
allow(Rails.configuration).to receive(:site_name).and_return(site_name)
|
18
|
-
expect(helper.utm_source).to eq site_name.downcase.gsub(/\W/,
|
20
|
+
expect(helper.utm_source).to eq site_name.downcase.gsub(/\W/, '')
|
19
21
|
end
|
20
22
|
end
|
21
23
|
|
22
|
-
describe
|
23
|
-
it
|
24
|
+
describe '#active_section' do
|
25
|
+
it 'returns active if request include the path' do
|
24
26
|
allow_any_instance_of(ActionController::TestRequest).to receive(:fullpath).and_return("#{site_domain}/gotica")
|
25
|
-
expect(helper.active_section(nav_item)).to eq
|
27
|
+
expect(helper.active_section(nav_item)).to eq 'activepage'
|
26
28
|
end
|
27
29
|
|
28
|
-
it
|
30
|
+
it 'returns nil if request does not include the path' do
|
29
31
|
expect(helper.active_section(nav_item)).to eq nil
|
30
32
|
end
|
31
33
|
end
|
32
34
|
|
33
|
-
describe
|
35
|
+
describe '#active_page' do
|
34
36
|
before(:each) do
|
35
37
|
allow(helper.request).to receive(:fullpath).and_return(site_url)
|
36
38
|
end
|
37
39
|
|
38
|
-
it
|
39
|
-
expect(helper.active_page(site_url)).to eq
|
40
|
+
it 'returns active if the given path matches the request path' do
|
41
|
+
expect(helper.active_page(site_url)).to eq 'activepage'
|
40
42
|
end
|
41
43
|
|
42
|
-
it
|
43
|
-
expect(helper.active_page(
|
44
|
+
it 'returns nothing if the given patch does not match the request path' do
|
45
|
+
expect(helper.active_page('http://waffleemporium.ca/ecuaselffaw')).to be_nil
|
44
46
|
end
|
45
47
|
end
|
46
48
|
|
47
|
-
describe
|
49
|
+
describe '#active_domain' do
|
48
50
|
before(:each) do
|
49
51
|
allow(helper.request).to receive(:url).and_return(site_url)
|
50
52
|
end
|
51
53
|
|
52
|
-
it
|
53
|
-
expect(helper.active_domain(site_domain)).to eq
|
54
|
+
it 'returns active if the request domain matches the given domain' do
|
55
|
+
expect(helper.active_domain(site_domain)).to eq 'active'
|
54
56
|
end
|
55
57
|
|
56
|
-
it
|
57
|
-
expect(helper.active_domain(
|
58
|
+
it 'returns nothing if the request domain does not match the given domain' do
|
59
|
+
expect(helper.active_domain('http://pancakeemporium.ca')).to be_nil
|
58
60
|
end
|
59
61
|
end
|
60
62
|
|
61
|
-
describe
|
62
|
-
it
|
63
|
-
expect(helper.renew_or_join_path(true)).to eq
|
63
|
+
describe '#renew_or_join_path' do
|
64
|
+
it 'returns nothing if the visitor is logged in' do
|
65
|
+
expect(helper.renew_or_join_path(true)).to eq ''
|
64
66
|
end
|
65
67
|
|
66
|
-
it
|
67
|
-
expect(helper.renew_or_join_path(false)).to include
|
68
|
+
it 'returns the join link if the visitor is not logged in' do
|
69
|
+
expect(helper.renew_or_join_path(false)).to include 'Become a Member'
|
68
70
|
end
|
69
71
|
end
|
70
72
|
|
71
|
-
describe
|
72
|
-
it
|
73
|
-
expect(helper.gift_or_pricing_path(true)).to eq
|
73
|
+
describe '#gift_or_pricing_path' do
|
74
|
+
it 'returns nothing if the visitor is logged in' do
|
75
|
+
expect(helper.gift_or_pricing_path(true)).to eq ''
|
74
76
|
end
|
75
77
|
|
76
|
-
it
|
77
|
-
expect(helper.gift_or_pricing_path(false)).to include
|
78
|
+
it 'returns the gift link if the visitor is not logged in' do
|
79
|
+
expect(helper.gift_or_pricing_path(false)).to include 'Gift Membership'
|
78
80
|
end
|
79
81
|
end
|
80
82
|
|
81
|
-
describe
|
83
|
+
describe '#dropdown_menu' do
|
82
84
|
let(:render_args) do
|
83
|
-
{ partial:
|
85
|
+
{ partial: 'ama_layout/v3/dropdown_menu', locals: { logged_in: true, greeting: greeting } }
|
84
86
|
end
|
85
87
|
|
86
|
-
it
|
88
|
+
it 'renders the dropdown menu if the visitor is logged in' do
|
87
89
|
expect(helper).to receive(:render).with(render_args)
|
88
90
|
helper.dropdown_menu(true, greeting)
|
89
91
|
end
|
90
92
|
|
91
|
-
it
|
92
|
-
expect(helper.dropdown_menu(false, greeting)).to eq
|
93
|
+
it 'does not render the dropdown menu if the visitor is not logged in' do
|
94
|
+
expect(helper.dropdown_menu(false, greeting)).to eq ''
|
93
95
|
end
|
94
96
|
end
|
95
97
|
|
96
|
-
describe
|
98
|
+
describe '#tablet_menu' do
|
97
99
|
let(:render_args) do
|
98
|
-
{ partial:
|
100
|
+
{ partial: 'ama_layout/v3/tablet_menu', locals: { logged_in: true, greeting: greeting } }
|
99
101
|
end
|
100
102
|
|
101
|
-
it
|
103
|
+
it 'renders the tablet menu if the visitor is logged in' do
|
102
104
|
expect(helper).to receive(:render).with(render_args)
|
103
105
|
helper.tablet_menu(true, greeting)
|
104
106
|
end
|
105
107
|
|
106
|
-
it
|
107
|
-
expect(helper.tablet_menu(false, greeting)).to eq
|
108
|
+
it 'does not render the tablet menu if the visitor is not logged in' do
|
109
|
+
expect(helper.tablet_menu(false, greeting)).to eq ''
|
108
110
|
end
|
109
111
|
end
|
110
112
|
|
111
|
-
describe
|
112
|
-
it
|
113
|
-
expect(helper).to receive(:render).with(
|
113
|
+
describe '#tablet_signout' do
|
114
|
+
it 'renders a signout link if the visitor is logged in' do
|
115
|
+
expect(helper).to receive(:render).with('ama_layout/v3/tablet_signout')
|
114
116
|
helper.tablet_signout(true)
|
115
117
|
end
|
116
118
|
|
117
|
-
it
|
118
|
-
expect(helper.tablet_signout(false)).to eq
|
119
|
+
it 'does not render the tablet menu if the visitor is not logged in' do
|
120
|
+
expect(helper.tablet_signout(false)).to eq ''
|
119
121
|
end
|
120
122
|
end
|
121
123
|
|
122
|
-
describe
|
123
|
-
let(:message) {
|
124
|
+
describe '#notice' do
|
125
|
+
let(:message) { 'This is a notice.' }
|
124
126
|
|
125
|
-
it
|
126
|
-
expect(helper).to receive(:render).with partial:
|
127
|
+
it 'renders the notice partial if a notice is present' do
|
128
|
+
expect(helper).to receive(:render).with partial: 'ama_layout/v3/notice', locals: { message: message }
|
127
129
|
helper.notice(message)
|
128
130
|
end
|
129
131
|
|
130
|
-
it
|
132
|
+
it 'does not render the notice partial if a notice is not present' do
|
131
133
|
expect(helper.notice(nil)).to be_nil
|
132
134
|
end
|
133
135
|
end
|
134
136
|
|
135
|
-
describe
|
136
|
-
let(:message) {
|
137
|
+
describe '#alert' do
|
138
|
+
let(:message) { 'This is an alert.' }
|
137
139
|
|
138
|
-
it
|
139
|
-
expect(helper).to receive(:render).with partial:
|
140
|
+
it 'renders the alert partial if a alert is present' do
|
141
|
+
expect(helper).to receive(:render).with partial: 'ama_layout/v3/alert', locals: { message: message }
|
140
142
|
helper.alert(message)
|
141
143
|
end
|
142
144
|
|
143
|
-
it
|
145
|
+
it 'does not render the alert partial if a alert is not present' do
|
144
146
|
expect(helper.notice(nil)).to be_nil
|
145
147
|
end
|
146
148
|
end
|
147
149
|
|
148
|
-
describe
|
149
|
-
let(:message) {
|
150
|
+
describe '#success_message' do
|
151
|
+
let(:message) { 'This is a success message' }
|
150
152
|
|
151
|
-
it
|
152
|
-
expect(helper).to receive(:render).with partial:
|
153
|
+
it 'renders the success partial if a success message is present' do
|
154
|
+
expect(helper).to receive(:render).with partial: 'ama_layout/v3/success', locals: { message: message }
|
153
155
|
helper.success_message(message)
|
154
156
|
end
|
155
157
|
|
156
|
-
it
|
158
|
+
it 'does not render the success partial if the success message is not present' do
|
157
159
|
expect(helper.success_message(nil)).to be_nil
|
158
160
|
end
|
159
161
|
end
|
File without changes
|
data/spec/internal/db/schema.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,81 +1,76 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ama_layout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 11.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Michael van den Beuken
|
8
|
-
- Ruben Estevez
|
9
|
-
- Jordan Babe
|
10
|
-
- Mathieu Gilbert
|
11
|
-
- Ryan Jones
|
12
7
|
- Darko Dosenovic
|
13
|
-
- Jonathan Weyermann
|
14
|
-
- Adam Melnyk
|
15
|
-
- Kayt Campbell
|
16
|
-
- Kathleen Robertson
|
17
8
|
- Jesse Doyle
|
9
|
+
- Kayt Wilson
|
10
|
+
- Michael van den Beuken
|
11
|
+
- Sinead Errity
|
12
|
+
- Zoie Carnegie
|
18
13
|
autorequire:
|
19
14
|
bindir: bin
|
20
15
|
cert_chain: []
|
21
|
-
date:
|
16
|
+
date: 2020-08-17 00:00:00.000000000 Z
|
22
17
|
dependencies:
|
23
18
|
- !ruby/object:Gem::Dependency
|
24
|
-
name:
|
19
|
+
name: breadcrumbs_on_rails
|
25
20
|
requirement: !ruby/object:Gem::Requirement
|
26
21
|
requirements:
|
27
|
-
- - "
|
22
|
+
- - ">="
|
28
23
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
24
|
+
version: '3'
|
30
25
|
type: :runtime
|
31
26
|
prerelease: false
|
32
27
|
version_requirements: !ruby/object:Gem::Requirement
|
33
28
|
requirements:
|
34
|
-
- - "
|
29
|
+
- - ">="
|
35
30
|
- !ruby/object:Gem::Version
|
36
|
-
version:
|
31
|
+
version: '3'
|
37
32
|
- !ruby/object:Gem::Dependency
|
38
|
-
name:
|
33
|
+
name: browser
|
39
34
|
requirement: !ruby/object:Gem::Requirement
|
40
35
|
requirements:
|
41
|
-
- - "
|
36
|
+
- - "~>"
|
42
37
|
- !ruby/object:Gem::Version
|
43
|
-
version: '
|
38
|
+
version: '2.0'
|
44
39
|
type: :runtime
|
45
40
|
prerelease: false
|
46
41
|
version_requirements: !ruby/object:Gem::Requirement
|
47
42
|
requirements:
|
48
|
-
- - "
|
43
|
+
- - "~>"
|
49
44
|
- !ruby/object:Gem::Version
|
50
|
-
version: '
|
45
|
+
version: '2.0'
|
51
46
|
- !ruby/object:Gem::Dependency
|
52
|
-
name:
|
47
|
+
name: foundation-rails
|
53
48
|
requirement: !ruby/object:Gem::Requirement
|
54
49
|
requirements:
|
55
|
-
- - "
|
50
|
+
- - "<="
|
56
51
|
- !ruby/object:Gem::Version
|
57
|
-
version:
|
52
|
+
version: 6.4.3.0
|
58
53
|
type: :runtime
|
59
54
|
prerelease: false
|
60
55
|
version_requirements: !ruby/object:Gem::Requirement
|
61
56
|
requirements:
|
62
|
-
- - "
|
57
|
+
- - "<="
|
63
58
|
- !ruby/object:Gem::Version
|
64
|
-
version:
|
59
|
+
version: 6.4.3.0
|
65
60
|
- !ruby/object:Gem::Dependency
|
66
|
-
name:
|
61
|
+
name: rails
|
67
62
|
requirement: !ruby/object:Gem::Requirement
|
68
63
|
requirements:
|
69
64
|
- - ">="
|
70
65
|
- !ruby/object:Gem::Version
|
71
|
-
version: '
|
66
|
+
version: '4.2'
|
72
67
|
type: :runtime
|
73
68
|
prerelease: false
|
74
69
|
version_requirements: !ruby/object:Gem::Requirement
|
75
70
|
requirements:
|
76
71
|
- - ">="
|
77
72
|
- !ruby/object:Gem::Version
|
78
|
-
version: '
|
73
|
+
version: '4.2'
|
79
74
|
- !ruby/object:Gem::Dependency
|
80
75
|
name: redis-rails
|
81
76
|
requirement: !ruby/object:Gem::Requirement
|
@@ -94,32 +89,32 @@ dependencies:
|
|
94
89
|
name: bundler
|
95
90
|
requirement: !ruby/object:Gem::Requirement
|
96
91
|
requirements:
|
97
|
-
- - "
|
92
|
+
- - ">="
|
98
93
|
- !ruby/object:Gem::Version
|
99
|
-
version: '
|
94
|
+
version: '0'
|
100
95
|
type: :development
|
101
96
|
prerelease: false
|
102
97
|
version_requirements: !ruby/object:Gem::Requirement
|
103
98
|
requirements:
|
104
|
-
- - "
|
99
|
+
- - ">="
|
105
100
|
- !ruby/object:Gem::Version
|
106
|
-
version: '
|
101
|
+
version: '0'
|
107
102
|
- !ruby/object:Gem::Dependency
|
108
|
-
name:
|
103
|
+
name: combustion
|
109
104
|
requirement: !ruby/object:Gem::Requirement
|
110
105
|
requirements:
|
111
106
|
- - ">="
|
112
107
|
- !ruby/object:Gem::Version
|
113
|
-
version: '
|
108
|
+
version: '0'
|
114
109
|
type: :development
|
115
110
|
prerelease: false
|
116
111
|
version_requirements: !ruby/object:Gem::Requirement
|
117
112
|
requirements:
|
118
113
|
- - ">="
|
119
114
|
- !ruby/object:Gem::Version
|
120
|
-
version: '
|
115
|
+
version: '0'
|
121
116
|
- !ruby/object:Gem::Dependency
|
122
|
-
name:
|
117
|
+
name: factory_bot
|
123
118
|
requirement: !ruby/object:Gem::Requirement
|
124
119
|
requirements:
|
125
120
|
- - ">="
|
@@ -133,7 +128,7 @@ dependencies:
|
|
133
128
|
- !ruby/object:Gem::Version
|
134
129
|
version: '0'
|
135
130
|
- !ruby/object:Gem::Dependency
|
136
|
-
name:
|
131
|
+
name: pry
|
137
132
|
requirement: !ruby/object:Gem::Requirement
|
138
133
|
requirements:
|
139
134
|
- - ">="
|
@@ -147,21 +142,21 @@ dependencies:
|
|
147
142
|
- !ruby/object:Gem::Version
|
148
143
|
version: '0'
|
149
144
|
- !ruby/object:Gem::Dependency
|
150
|
-
name:
|
145
|
+
name: rake
|
151
146
|
requirement: !ruby/object:Gem::Requirement
|
152
147
|
requirements:
|
153
148
|
- - ">="
|
154
149
|
- !ruby/object:Gem::Version
|
155
|
-
version: '0'
|
150
|
+
version: '11.0'
|
156
151
|
type: :development
|
157
152
|
prerelease: false
|
158
153
|
version_requirements: !ruby/object:Gem::Requirement
|
159
154
|
requirements:
|
160
155
|
- - ">="
|
161
156
|
- !ruby/object:Gem::Version
|
162
|
-
version: '0'
|
157
|
+
version: '11.0'
|
163
158
|
- !ruby/object:Gem::Dependency
|
164
|
-
name:
|
159
|
+
name: rspec-rails
|
165
160
|
requirement: !ruby/object:Gem::Requirement
|
166
161
|
requirements:
|
167
162
|
- - ">="
|
@@ -175,7 +170,7 @@ dependencies:
|
|
175
170
|
- !ruby/object:Gem::Version
|
176
171
|
version: '0'
|
177
172
|
- !ruby/object:Gem::Dependency
|
178
|
-
name:
|
173
|
+
name: simplecov
|
179
174
|
requirement: !ruby/object:Gem::Requirement
|
180
175
|
requirements:
|
181
176
|
- - ">="
|
@@ -218,25 +213,22 @@ dependencies:
|
|
218
213
|
version: '0'
|
219
214
|
description: ".ama.ab.ca site layouts"
|
220
215
|
email:
|
221
|
-
- michael.beuken@gmail.com
|
222
|
-
- ruben.a.estevez@gmail.com
|
223
|
-
- jorbabe@gmail.com
|
224
|
-
- mathieu.gilbert@ama.ab.ca
|
225
|
-
- ryan.michael.jones@gmail.com
|
226
216
|
- darko.dosenovic@ama.ab.ca
|
227
|
-
- jonathan.weyermann@ama.ab.ca
|
228
|
-
- adam.melnyk@ama.ab.ca
|
229
|
-
- kayt.campbell@ama.ab.ca
|
230
|
-
- kathleen.robertson@ama.ab.ca
|
231
217
|
- jesse.doyle@ama.ab.ca
|
218
|
+
- kayt.wilson@ama.ab.ca
|
219
|
+
- michael.beuken@gmail.com
|
220
|
+
- sinead.errity@ama.ab.ca
|
221
|
+
- zoie.carnegie@ama.ab.ca
|
232
222
|
executables: []
|
233
223
|
extensions: []
|
234
224
|
extra_rdoc_files: []
|
235
225
|
files:
|
226
|
+
- ".github/workflows/ci.yml"
|
236
227
|
- ".gitignore"
|
237
228
|
- ".rspec"
|
229
|
+
- ".ruby-version"
|
238
230
|
- ".simplecov"
|
239
|
-
-
|
231
|
+
- Dangerfile
|
240
232
|
- Gemfile
|
241
233
|
- LICENSE.txt
|
242
234
|
- PULL_REQUEST_TEMPLATE.md
|
@@ -265,35 +257,65 @@ files:
|
|
265
257
|
- app/controllers/ama_layout/api/v1/notifications_controller.rb
|
266
258
|
- app/helpers/ama_layout_breadcrumb_helper.rb
|
267
259
|
- app/helpers/ama_layout_content_helper.rb
|
260
|
+
- app/helpers/ama_layout_partial_helper.rb
|
268
261
|
- app/helpers/ama_layout_path_helper.rb
|
269
|
-
- app/views/ama_layout/_alert.html.erb
|
270
|
-
- app/views/ama_layout/_applogo.html.erb
|
271
|
-
- app/views/ama_layout/_breadcrumbs.html.erb
|
272
|
-
- app/views/ama_layout/_custom_nav_links.html.erb
|
273
|
-
- app/views/ama_layout/_custom_sidebar.html.erb
|
274
|
-
- app/views/ama_layout/_footer.html.erb
|
275
|
-
- app/views/ama_layout/_main_nav_item.html.erb
|
276
|
-
- app/views/ama_layout/_main_top_nav_item.html.erb
|
277
|
-
- app/views/ama_layout/_mobile_links.html.erb
|
278
|
-
- app/views/ama_layout/_mobile_notification_icon.html.erb
|
279
|
-
- app/views/ama_layout/_notice.html.erb
|
280
|
-
- app/views/ama_layout/_notices.html.erb
|
281
|
-
- app/views/ama_layout/_notification.html.erb
|
282
|
-
- app/views/ama_layout/_notification_icon.html.erb
|
283
|
-
- app/views/ama_layout/_notification_sidebar.html.erb
|
284
|
-
- app/views/ama_layout/_sidebar.html.erb
|
285
|
-
- app/views/ama_layout/_sign_out_link.html.erb
|
286
|
-
- app/views/ama_layout/_siteheader.html.erb
|
287
|
-
- app/views/ama_layout/_sub_nav.html.erb
|
288
|
-
- app/views/ama_layout/_sub_nav_item.html.erb
|
289
|
-
- app/views/ama_layout/_success.html.erb
|
290
|
-
- app/views/ama_layout/_top_nav.html.erb
|
291
|
-
- app/views/ama_layout/_top_sub_nav.html.erb
|
292
|
-
- app/views/ama_layout/_top_sub_nav_item.html.erb
|
293
262
|
- app/views/ama_layout/agent/_sidebar.html.erb
|
294
263
|
- app/views/ama_layout/agent/_siteheader.html.erb
|
295
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
|
296
317
|
- app/views/application/_account_toggle.html.erb
|
318
|
+
- config.ru
|
297
319
|
- config/routes.rb
|
298
320
|
- lib/ama_layout.rb
|
299
321
|
- lib/ama_layout/agent/navigation.rb
|
@@ -308,7 +330,8 @@ files:
|
|
308
330
|
- lib/ama_layout/decorators/notification_decorator.rb
|
309
331
|
- lib/ama_layout/draper_replacement.rb
|
310
332
|
- lib/ama_layout/moneris.rb
|
311
|
-
- lib/ama_layout/moneris/textbox.txt
|
333
|
+
- lib/ama_layout/moneris/v2/textbox.txt
|
334
|
+
- lib/ama_layout/moneris/v3/textbox.txt
|
312
335
|
- lib/ama_layout/navigation.rb
|
313
336
|
- lib/ama_layout/navigation.yml
|
314
337
|
- lib/ama_layout/navigation_helper.rb
|
@@ -350,6 +373,7 @@ files:
|
|
350
373
|
- spec/helpers/ama_layout_breadcrumb_helper_spec.rb
|
351
374
|
- spec/helpers/ama_layout_content_helper_spec.rb
|
352
375
|
- spec/helpers/ama_layout_path_helper_spec.rb
|
376
|
+
- spec/internal/app/assets/config/manifest.js
|
353
377
|
- spec/internal/app/controllers/application_controller.rb
|
354
378
|
- spec/internal/app/controllers/pages_controller.rb
|
355
379
|
- spec/internal/config/database.yml
|
@@ -379,8 +403,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
379
403
|
- !ruby/object:Gem::Version
|
380
404
|
version: '0'
|
381
405
|
requirements: []
|
382
|
-
|
383
|
-
rubygems_version: 2.5.2.3
|
406
|
+
rubygems_version: 3.1.4
|
384
407
|
signing_key:
|
385
408
|
specification_version: 4
|
386
409
|
summary: ".ama.ab.ca site layouts"
|
@@ -415,6 +438,7 @@ test_files:
|
|
415
438
|
- spec/helpers/ama_layout_breadcrumb_helper_spec.rb
|
416
439
|
- spec/helpers/ama_layout_content_helper_spec.rb
|
417
440
|
- spec/helpers/ama_layout_path_helper_spec.rb
|
441
|
+
- spec/internal/app/assets/config/manifest.js
|
418
442
|
- spec/internal/app/controllers/application_controller.rb
|
419
443
|
- spec/internal/app/controllers/pages_controller.rb
|
420
444
|
- spec/internal/config/database.yml
|