ama_layout 10.0.1 → 10.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.
- checksums.yaml +4 -4
- data/app/views/ama_layout/{_manage_credit_card_link.html.erb → _member_links.html.erb} +3 -0
- data/app/views/ama_layout/_top_nav.html.erb +1 -4
- data/lib/ama_layout/decorators/navigation_decorator.rb +2 -2
- data/lib/ama_layout/version.rb +1 -1
- data/spec/ama_layout/decorators/navigation_decorator_spec.rb +8 -7
- metadata +4 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22af59017594b88eee0124646cada43dc31c8931d5de42fad543b982ab6c56a4
|
4
|
+
data.tar.gz: 4a691e59ee726f82d3d4d9fe70e1d6b5dbf6ca0802c92c41e2f82194648f26e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f09ac80433fcd4d24fc75a40cf734687024fbb4d718be57c879b3b6b70cc943b0bbdd9e482247f92d107bf6775fb2210381a8cba2e133fd0e6914eb68a56e2c
|
7
|
+
data.tar.gz: 2defd8ad8772e73d5e7f5702fde537b3471ff87e95d99c143ebf87971cf69b475a145c418879a6966b14a6e36966818025a165ae3987e65beb533cb6ed6ab368
|
@@ -10,10 +10,7 @@
|
|
10
10
|
<li class="small-text">
|
11
11
|
<%= link_to 'Email Subscriptions', "#{Rails.configuration.youraccount_site}/subscriptions" %>
|
12
12
|
</li>
|
13
|
-
|
14
|
-
<%= link_to 'Update Address', "#{Rails.configuration.youraccount_site}/membership_update/new" %>
|
15
|
-
</li>
|
16
|
-
<%= navigation.manage_credit_card_link %>
|
13
|
+
<%= navigation.member_links %>
|
17
14
|
<%= navigation.sign_out_link %>
|
18
15
|
</ul>
|
19
16
|
</li>
|
@@ -18,10 +18,10 @@ module AmaLayout
|
|
18
18
|
h.render partial: 'ama_layout/sign_out_link'
|
19
19
|
end
|
20
20
|
|
21
|
-
def
|
21
|
+
def member_links
|
22
22
|
return '' unless user && %w[member member_renewal member_outstanding_balance].include?(user.try(:menu_key))
|
23
23
|
|
24
|
-
h.render partial: 'ama_layout/
|
24
|
+
h.render partial: 'ama_layout/member_links'
|
25
25
|
end
|
26
26
|
|
27
27
|
def top_nav
|
data/lib/ama_layout/version.rb
CHANGED
@@ -136,14 +136,15 @@ describe AmaLayout::NavigationDecorator do
|
|
136
136
|
end
|
137
137
|
end
|
138
138
|
|
139
|
-
describe '#
|
139
|
+
describe '#member_links' do
|
140
140
|
let(:navigation) { FactoryBot.build(:navigation, user: user) }
|
141
|
+
let(:member_links) { navigation_presenter.member_links }
|
141
142
|
|
142
143
|
context 'nil user' do
|
143
144
|
let(:user) {}
|
144
145
|
|
145
146
|
it 'returns nothing' do
|
146
|
-
expect(
|
147
|
+
expect(member_links).to eq('')
|
147
148
|
end
|
148
149
|
end
|
149
150
|
|
@@ -151,7 +152,7 @@ describe AmaLayout::NavigationDecorator do
|
|
151
152
|
let(:user) { FactoryBot.build(:user, :non_member) }
|
152
153
|
|
153
154
|
it 'returns nothing' do
|
154
|
-
expect(
|
155
|
+
expect(member_links).to eq('')
|
155
156
|
end
|
156
157
|
end
|
157
158
|
|
@@ -159,7 +160,7 @@ describe AmaLayout::NavigationDecorator do
|
|
159
160
|
let(:user) { FactoryBot.build(:user, :in_renewal_late) }
|
160
161
|
|
161
162
|
it 'returns nothing' do
|
162
|
-
expect(
|
163
|
+
expect(member_links).to eq('')
|
163
164
|
end
|
164
165
|
end
|
165
166
|
|
@@ -167,7 +168,7 @@ describe AmaLayout::NavigationDecorator do
|
|
167
168
|
let(:user) { FactoryBot.build(:user, :outstanding_balance) }
|
168
169
|
|
169
170
|
it 'returns the manage credit cards link' do
|
170
|
-
expect(
|
171
|
+
expect(member_links).to include('Manage Credit Cards')
|
171
172
|
end
|
172
173
|
end
|
173
174
|
|
@@ -175,7 +176,7 @@ describe AmaLayout::NavigationDecorator do
|
|
175
176
|
let(:user) { FactoryBot.build(:user) }
|
176
177
|
|
177
178
|
it 'returns the manage credit cards link' do
|
178
|
-
expect(
|
179
|
+
expect(member_links).to include('Manage Credit Cards')
|
179
180
|
end
|
180
181
|
end
|
181
182
|
|
@@ -183,7 +184,7 @@ describe AmaLayout::NavigationDecorator do
|
|
183
184
|
let(:user) { FactoryBot.build(:user, :in_renewal) }
|
184
185
|
|
185
186
|
it 'returns the manage credit cards link' do
|
186
|
-
expect(
|
187
|
+
expect(member_links).to include('Manage Credit Cards')
|
187
188
|
end
|
188
189
|
end
|
189
190
|
end
|
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.0
|
4
|
+
version: 10.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Darko Dosenovic
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date: 2020-01-
|
16
|
+
date: 2020-01-24 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: breadcrumbs_on_rails
|
@@ -265,7 +265,7 @@ files:
|
|
265
265
|
- app/views/ama_layout/_footer.html.erb
|
266
266
|
- app/views/ama_layout/_main_nav_item.html.erb
|
267
267
|
- app/views/ama_layout/_main_top_nav_item.html.erb
|
268
|
-
- app/views/ama_layout/
|
268
|
+
- app/views/ama_layout/_member_links.html.erb
|
269
269
|
- app/views/ama_layout/_mobile_links.html.erb
|
270
270
|
- app/views/ama_layout/_mobile_notification_icon.html.erb
|
271
271
|
- app/views/ama_layout/_notice.html.erb
|
@@ -373,8 +373,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
373
373
|
- !ruby/object:Gem::Version
|
374
374
|
version: '0'
|
375
375
|
requirements: []
|
376
|
-
|
377
|
-
rubygems_version: 2.7.6.2
|
376
|
+
rubygems_version: 3.1.2
|
378
377
|
signing_key:
|
379
378
|
specification_version: 4
|
380
379
|
summary: ".ama.ab.ca site layouts"
|