ama_layout 11.1.0 → 11.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2380a06aed2f7aa03a93d129962439dcb40e36dbd29870b356b4308b8ef8d1df
4
- data.tar.gz: 181133840c55714b18ed396c428e88b093cb297b394513e66023a8aab0e5553b
3
+ metadata.gz: ce403ae88f2c85275f43e1bd3bb07f7c936573928deb76e34114c4c6a14adaa7
4
+ data.tar.gz: 289905a9d60f38e96d21c4b93486f6b1ce7decef3d1b441ace5244b07c652a45
5
5
  SHA512:
6
- metadata.gz: 98282959ce339f20eacebc6a175b811ffa992e08f5ebdcd64dbd680c9abc43a11f006b56eda955fcc93aa0ebedcc253f9132fe0f39c3f4869b21713d4031b93a
7
- data.tar.gz: c29d771ba792377d347f70b2aad220be5860f0ab7c6d278698e1fb4142137e2f2786c777bdeb2c7b5ae51d8d3278916de04acb76cdf2f0b1ce0b069347533859
6
+ metadata.gz: d1f3309b20ed355bc384787f6ec68840433eb362e26d9a00f9e3c88a289363fdddfc6e46eed2513264dcd91dcc8d7e57c7eae9f4161db8bf02a5343ae8054303
7
+ data.tar.gz: 252aa2096926f2617d9790595475874f02de2fa2a9e6b1da0823160a5ae43e65bb76ce9523083e1a20e43424ef0dc41fb76c94a097af353803cd0c33c47df722
@@ -21,13 +21,12 @@ jobs:
21
21
  uses: actions/setup-node@v1
22
22
  with:
23
23
  node-version: '10.13.0'
24
- - name: Set up Ruby 2.5
24
+ - name: Set up Ruby
25
25
  uses: ruby/setup-ruby@v1
26
26
  with:
27
- ruby-version: '2.5.1'
28
- bundler: '1.17.3'
27
+ ruby-version: 2.7
29
28
  - name: Install Bundler
30
- run: gem install bundler -v '~> 1.17.3'
29
+ run: gem install bundler
31
30
  - name: Install Danger
32
31
  run: gem install danger -v 7.0.1
33
32
  - name: Execute Danger
@@ -38,8 +37,8 @@ jobs:
38
37
  run: sudo apt-get install libsqlite3-dev
39
38
  - name: Install Ruby Dependencies
40
39
  run: |
41
- bundle _1.17.3_ --version
42
- bundle _1.17.3_ config set path 'vendor/bundle'
43
- bundle _1.17.3_ install --jobs 4 --retry 3
40
+ bundle --version
41
+ bundle config set path 'vendor/bundle'
42
+ bundle install --jobs 4 --retry 3
44
43
  - name: Run Tests
45
- run: bundle _1.17.3_ exec rake
44
+ run: bundle exec rake
data/README.md CHANGED
@@ -98,9 +98,9 @@ Custom Navigation yaml file used to set all navigation:
98
98
  "Renew":
99
99
  link: "<%= Rails.configuration.youraccount_site %>/renew"
100
100
  "Help":
101
- link: "<%= Rails.configuration.youraccount_site %>/help"
101
+ link: "<%= Rails.configuration.amaabca_site %>/help"
102
102
  "Contact Us":
103
- link: "<%= Rails.configuration.amaabca_site %>/membership/contact-us--centre-locations-hours-and-contact-information"
103
+ link: "<%= Rails.configuration.amaabca_site %>/contact"
104
104
  target: "_blank"
105
105
 
106
106
 
data/ama_layout.gemspec CHANGED
@@ -36,7 +36,7 @@ Gem::Specification.new do |spec|
36
36
  spec.add_dependency 'breadcrumbs_on_rails', '>= 3'
37
37
  spec.add_dependency 'browser', '~> 2.0'
38
38
  spec.add_dependency 'foundation-rails', '<= 6.4.3.0'
39
- spec.add_dependency 'rails', '>= 4.2'
39
+ spec.add_dependency 'rails', '>= 4.2', '< 6.1'
40
40
  spec.add_dependency 'redis-rails'
41
41
  spec.add_development_dependency 'bundler'
42
42
  spec.add_development_dependency 'combustion'
@@ -49,24 +49,37 @@ class AMALayout.EmailSuggestion
49
49
 
50
50
  setupEvents: ->
51
51
  $('[type="email"]').on 'blur', (e) =>
52
+ return if $(e.originalEvent.target).data('skip-email-suggestion')
52
53
  $(e.originalEvent.target).mailcheck
53
54
  domains: @domains
54
55
  secondLevelDomains: @secondLevelDomains
55
56
  suggested: (element, suggestion) =>
57
+ event = @buildEvent()
56
58
  text = @suggestionMarkup suggestion.address, suggestion.domain
57
59
  if !$('.email_hint').length
58
- $("<div class='email_hint'>#{text}</div>").insertAfter(element).fadeIn 150
60
+ $("<div class='email_hint'>#{text}</div>").insertAfter(element).show()
59
61
  else
60
62
  $('.email_hint').html text
63
+ window.dispatchEvent(event)
61
64
  empty: (element) ->
65
+ event = @buildEvent()
62
66
  $('.email_hint').html ''
67
+ window.dispatchEvent(event)
63
68
 
64
69
  $(document).on 'click', '.email_hint .suggestion a.email_domain', (e) =>
65
70
  @trackUsage()
71
+ event = @buildEvent()
66
72
  email_hint = $(e.originalEvent.target).parents('.email_hint')
67
73
  email = $(email_hint).prevAll('input[type=email]:last')
68
74
  $(email).val $('.suggestion').first().text()
69
75
  $('.email_hint').remove()
76
+ window.dispatchEvent(event)
77
+
78
+ buildEvent: () ->
79
+ if typeof(Event) is 'function'
80
+ new Event('mailcheck')
81
+ else
82
+ document.createEvent('Event').initEvent('mailcheck', true, true)
70
83
 
71
84
  suggestionMarkup: (address, domain) ->
72
85
  "Did you mean " +
@@ -10,7 +10,7 @@
10
10
  <div class="top-bar-right">
11
11
  <ul class="menu" data-responsive-menu="drilldown medium-dropdown">
12
12
  <li>
13
- <a href="<%= Rails.configuration.amaabca_site %>/knowledge-base/articles" target="_blank">Help</a>
13
+ <a href="<%= Rails.configuration.amaabca_site %>/help" target="_blank">Help</a>
14
14
  </li>
15
15
  <%= navigation.top_nav %>
16
16
  </ul>
@@ -0,0 +1,3 @@
1
+ <!-- Font Awesome Pro Kit -->
2
+ <script src="https://kit.fontawesome.com/9e8388a4d5.js" crossorigin="anonymous"></script>
3
+ <!-- End Font Awesome Pro Kit -->
@@ -6,7 +6,7 @@
6
6
  </div>
7
7
  <ul class="link-list">
8
8
  <li class="link-list__item">
9
- <%= link_to "About AMA", "https://ama.ab.ca/about-ama/", class: "link-list__link--white" %>
9
+ <%= link_to "About AMA", "#{Rails.configuration.amaabca_site}/about", class: "link-list__link--white" %>
10
10
  </li>
11
11
  <li class="link-list__item">
12
12
  <%= link_to "Careers", "http://careers.ama.ab.ca/", class: "link-list__link--white" %>
@@ -22,13 +22,13 @@
22
22
  </div>
23
23
  <ul class="link-list">
24
24
  <li class="link-list__item">
25
- <%= link_to "Contact Us", "https://ama.ab.ca/about-ama/contact-us/", class: "link-list__link--white" %>
25
+ <%= link_to "Contact Us", "#{Rails.configuration.amaabca_site}/contact", class: "link-list__link--white" %>
26
26
  </li>
27
27
  <li class="link-list__item">
28
- <%= link_to "Locations", "https://ama.ab.ca/centre-locations-hours/", class: "link-list__link--white" %>
28
+ <%= link_to "Locations", "#{Rails.configuration.amaabca_site}/centres", class: "link-list__link--white" %>
29
29
  </li>
30
30
  <li class="link-list__item">
31
- <%= link_to "Social Media", "https://ama.ab.ca/about-ama/social-media/", class: "link-list__link--white" %>
31
+ <%= link_to "Social Media", "#{Rails.configuration.amaabca_site}/contact", class: "link-list__link--white" %>
32
32
  </li>
33
33
  </ul>
34
34
  </div>
@@ -38,16 +38,16 @@
38
38
  </div>
39
39
  <ul class="link-list">
40
40
  <li class="link-list__item">
41
- <%= link_to "Blog", "https://ama.ab.ca/blog/", class: "link-list__link--white" %>
41
+ <%= link_to "Blog", "#{Rails.configuration.amaabca_site}/help", class: "link-list__link--white" %>
42
42
  </li>
43
43
  <li class="link-list__item">
44
- <%= link_to "Knowledge Base", "https://ama.ab.ca/knowledge-base/", class: "link-list__link--white" %>
44
+ <%= link_to "Knowledge Base", "#{Rails.configuration.amaabca_site}/help", class: "link-list__link--white" %>
45
45
  </li>
46
46
  <li class="link-list__item">
47
47
  <%= link_to "Email Newsletters", "https://youraccount.ama.ab.ca/subscriptions", class: "link-list__link--white" %>
48
48
  </li>
49
49
  <li class="link-list__item">
50
- <%= link_to "Site Map", "https://ama.ab.ca/about-ama/site-map/", class: "link-list__link--white" %>
50
+ <%= link_to "Site Map", "#{Rails.configuration.amaabca_site}/sitemap", class: "link-list__link--white" %>
51
51
  </li>
52
52
  </ul>
53
53
  </div>
@@ -57,10 +57,10 @@
57
57
  </div>
58
58
  <ul class="link-list">
59
59
  <li class="link-list__item">
60
- <%= link_to "Privacy Policy", "https://ama.ab.ca/about-ama/privacy-policy/", class: "link-list__link--white" %>
60
+ <%= link_to "Privacy Policy", "#{Rails.configuration.amaabca_site}/privacy-policy", class: "link-list__link--white" %>
61
61
  </li>
62
62
  <li class="link-list__item">
63
- <%= link_to "Terms & Conditions", "https://ama.ab.ca/about-ama/terms-conditions/", class: "link-list__link--white" %>
63
+ <%= link_to "Terms & Conditions", "#{Rails.configuration.amaabca_site}/terms-conditions", class: "link-list__link--white" %>
64
64
  </li>
65
65
  </ul>
66
66
  </div>
@@ -12,10 +12,10 @@
12
12
  <a class="side-nav__link" href="http://amaroadreports.ca/">AMA Road Reports</a>
13
13
  </li>
14
14
  <li class="side-nav__item">
15
- <a class="side-nav__link" href="<%= Rails.configuration.amaabca_site %>/knowledge-base/articles" target="_blank">Help</a>
15
+ <a class="side-nav__link" href="<%= Rails.configuration.amaabca_site %>/help" target="_blank">Help</a>
16
16
  </li>
17
17
  <li class="side-nav__item">
18
- <a class="side-nav__link" href="<%= Rails.configuration.amaabca_site %>/membership/contact-us--centre-locations-hours-and-contact-information">Contact Us</a>
18
+ <a class="side-nav__link" href="<%= Rails.configuration.amaabca_site %>/contact">Contact Us</a>
19
19
  </li>
20
20
  </ul>
21
21
  </div>
@@ -12,10 +12,10 @@
12
12
  <ul class="menu" data-responsive-menu="drilldown medium-dropdown">
13
13
  <%= navigation.notification_icon %>
14
14
  <li>
15
- <a href="<%= Rails.configuration.amaabca_site %>/knowledge-base/articles" target="_blank">Help</a>
15
+ <a href="<%= Rails.configuration.amaabca_site %>/help" target="_blank">Help</a>
16
16
  </li>
17
17
  <li>
18
- <a href="<%= Rails.configuration.amaabca_site %>/membership/contact-us--centre-locations-hours-and-contact-information">Contact Us</a>
18
+ <a href="<%= Rails.configuration.amaabca_site %>/contact">Contact Us</a>
19
19
  </li>
20
20
  <%= navigation.account_toggle(self) %>
21
21
  <%= navigation.top_nav %>
@@ -0,0 +1,3 @@
1
+ <!-- Font Awesome Pro Kit -->
2
+ <script src="https://kit.fontawesome.com/9e8388a4d5.js" crossorigin="anonymous"></script>
3
+ <!-- End Font Awesome Pro Kit -->
@@ -6,7 +6,7 @@
6
6
  </div>
7
7
  <ul class="link-list">
8
8
  <li class="link-list__item">
9
- <%= link_to "About AMA", "https://ama.ab.ca/about-ama/", class: "link-list__link--white" %>
9
+ <%= link_to "About AMA", "#{Rails.configuration.amaabca_site}/about", class: "link-list__link--white" %>
10
10
  </li>
11
11
  <li class="link-list__item">
12
12
  <%= link_to "Careers", "http://careers.ama.ab.ca/", class: "link-list__link--white" %>
@@ -22,13 +22,13 @@
22
22
  </div>
23
23
  <ul class="link-list">
24
24
  <li class="link-list__item">
25
- <%= link_to "Contact Us", "https://ama.ab.ca/about-ama/contact-us/", class: "link-list__link--white" %>
25
+ <%= link_to "Contact Us", "#{Rails.configuration.amaabca_site}/contact", class: "link-list__link--white" %>
26
26
  </li>
27
27
  <li class="link-list__item">
28
- <%= link_to "Locations", "https://ama.ab.ca/centre-locations-hours/", class: "link-list__link--white" %>
28
+ <%= link_to "Locations", "#{Rails.configuration.amaabca_site}/centres", class: "link-list__link--white" %>
29
29
  </li>
30
30
  <li class="link-list__item">
31
- <%= link_to "Social Media", "https://ama.ab.ca/about-ama/social-media/", class: "link-list__link--white" %>
31
+ <%= link_to "Social Media", "#{Rails.configuration.amaabca_site}/contact", class: "link-list__link--white" %>
32
32
  </li>
33
33
  </ul>
34
34
  </div>
@@ -38,16 +38,16 @@
38
38
  </div>
39
39
  <ul class="link-list">
40
40
  <li class="link-list__item">
41
- <%= link_to "Blog", "https://ama.ab.ca/blog/", class: "link-list__link--white" %>
41
+ <%= link_to "Blog", "#{Rails.configuration.amaabca_site}/help", class: "link-list__link--white" %>
42
42
  </li>
43
43
  <li class="link-list__item">
44
- <%= link_to "Knowledge Base", "https://ama.ab.ca/knowledge-base/", class: "link-list__link--white" %>
44
+ <%= link_to "Knowledge Base", "#{Rails.configuration.amaabca_site}/help", class: "link-list__link--white" %>
45
45
  </li>
46
46
  <li class="link-list__item">
47
47
  <%= link_to "Email Newsletters", "https://youraccount.ama.ab.ca/subscriptions", class: "link-list__link--white" %>
48
48
  </li>
49
49
  <li class="link-list__item">
50
- <%= link_to "Site Map", "https://ama.ab.ca/about-ama/site-map/", class: "link-list__link--white" %>
50
+ <%= link_to "Site Map", "#{Rails.configuration.amaabca_site}/sitemap/", class: "link-list__link--white" %>
51
51
  </li>
52
52
  </ul>
53
53
  </div>
@@ -57,10 +57,10 @@
57
57
  </div>
58
58
  <ul class="link-list">
59
59
  <li class="link-list__item">
60
- <%= link_to "Privacy Policy", "https://ama.ab.ca/about-ama/privacy-policy/", class: "link-list__link--white" %>
60
+ <%= link_to "Privacy Policy", "#{Rails.configuration.amaabca_site}/privacy-policy", class: "link-list__link--white" %>
61
61
  </li>
62
62
  <li class="link-list__item">
63
- <%= link_to "Terms & Conditions", "https://ama.ab.ca/about-ama/terms-conditions/", class: "link-list__link--white" %>
63
+ <%= link_to "Terms & Conditions", "#{Rails.configuration.amaabca_site}/terms-conditions", class: "link-list__link--white" %>
64
64
  </li>
65
65
  </ul>
66
66
  </div>
@@ -1,22 +1,19 @@
1
- <div class="off-canvas position-left" id="offCanvasLeft" data-off-canvas>
2
- <h2 class="side-nav__header">Online Account</h2>
3
- <div class="side-nav__content">
4
- <ul class="side-nav__list">
5
- <li class="side-nav__item">
6
- <%= link_to 'Sign In', "#{Rails.configuration.gatekeeper_site}/login", class: 'side-nav__link' %>
7
- </li>
8
- <li class="side-nav__item">
9
- <a class="side-nav__link" href="<%= Rails.configuration.amaabca_site %>">AMA Website</a>
10
- </li>
11
- <li class="side-nav__item">
12
- <a class="side-nav__link" href="http://amaroadreports.ca/">AMA Road Reports</a>
13
- </li>
14
- <li class="side-nav__item">
15
- <a class="side-nav__link" href="<%= Rails.configuration.amaabca_site %>/knowledge-base/articles" target="_blank">Help</a>
16
- </li>
17
- <li class="side-nav__item">
18
- <a class="side-nav__link" href="<%= Rails.configuration.amaabca_site %>/membership/contact-us--centre-locations-hours-and-contact-information">Contact Us</a>
19
- </li>
20
- </ul>
21
- </div>
1
+ <div class="m-side-nav__content off-canvas position-left" id="offCanvasLeft" data-off-canvas>
2
+ <ul class="m-side-nav__list vertical menu drilldown" data-drilldown>
3
+ <li class="side-nav__item">
4
+ <%= link_to 'Sign In', "#{Rails.configuration.gatekeeper_site}/login", class: 'side-nav__link' %>
5
+ </li>
6
+ <li class="m-side-nav__item">
7
+ <%= link_to 'AMA Website', Rails.configuration.amaabca_site, class: 'm-side-nav__link' %>
8
+ </li>
9
+ <li class="m-side-nav__item">
10
+ <%= link_to 'AMA Road Reports', 'https://roadreports.ama.ab.ca', class: 'm-side-nav__link' %>
11
+ </li>
12
+ <li class="m-side-nav__item">
13
+ <%= link_to 'Help', "#{Rails.configuration.amaabca_site}/help", class: 'm-side-nav__link' %>
14
+ </li>
15
+ <li class="m-side-nav__item">
16
+ <%= link_to 'Contact Us', "#{Rails.configuration.amaabca_site}/contact", class: 'm-side-nav__link' %>
17
+ </li>
18
+ </ul>
22
19
  </div>
@@ -6,16 +6,16 @@
6
6
  </div>
7
7
  <div class="top-bar" id="main-menu">
8
8
  <div class="top-bar-left">
9
- <%= link_to(image_tag("ama-logo.png", class: "top-bar__logo"), Rails.configuration.amaabca_site) %>
9
+ <a href="<%= Rails.configuration.amaabca_site %>" class="ml1 pl1"><i class="fas fa-chevron-left pr1"></i> Back to Other AMA Services</a>
10
10
  </div>
11
11
  <div class="top-bar-right">
12
12
  <ul class="menu" data-responsive-menu="drilldown medium-dropdown">
13
13
  <%= navigation.notification_icon %>
14
14
  <li>
15
- <a href="<%= Rails.configuration.amaabca_site %>/knowledge-base/articles" target="_blank">Help</a>
15
+ <a href="<%= Rails.configuration.amaabca_site %>/help" target="_blank">Help</a>
16
16
  </li>
17
17
  <li>
18
- <a href="<%= Rails.configuration.amaabca_site %>/membership/contact-us--centre-locations-hours-and-contact-information">Contact Us</a>
18
+ <a href="<%= Rails.configuration.amaabca_site %>/contact">Contact Us</a>
19
19
  </li>
20
20
  <%= navigation.account_toggle(self) %>
21
21
  <%= navigation.top_nav %>
@@ -31,16 +31,20 @@ box-sizing: border-box;
31
31
  color: rgba(0, 0, 0, 0.74902);
32
32
  cursor: auto;
33
33
  display: block;
34
- font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;font-size: 14px;
35
- font-style: normal;font-variant: normal;
34
+ font-family: 'Open Sans', Helvetica, Roboto, Arial, sans-serif;
35
+ font-size: 18px;
36
+ font-style: normal;
37
+ font-variant: normal;
36
38
  font-weight: normal;
37
- height: 44px;
39
+ height: 63px !important;
40
+ overflow: hidden;
38
41
  letter-spacing: normal;
39
42
  line-height: normal;
40
43
  margin-bottom: 0px;
41
44
  margin-left: 0px;
42
45
  margin-right: 0px;
43
46
  margin-top: 0px;
47
+ outline-color: rgb(36, 108, 169);
44
48
  padding-bottom: 8px;
45
49
  padding-left: 8px;
46
50
  padding-right: 8px;
@@ -48,7 +48,8 @@ module AmaLayout
48
48
  end
49
49
 
50
50
  def destroy!
51
- data_store.delete(key) && reload!
51
+ data_store.delete(key)
52
+ reload!
52
53
  end
53
54
 
54
55
  def delete(*digests)
@@ -21,11 +21,11 @@ module AmaLayout
21
21
  end
22
22
 
23
23
  def set(key, value, opts = {})
24
- base.write(key, value, opts) == 'OK'
24
+ base.write(key, value, opts)
25
25
  end
26
26
 
27
27
  def delete(key, opts = {})
28
- base.delete(key, opts) == 1
28
+ base.delete(key, opts)
29
29
  end
30
30
 
31
31
  def transaction
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AmaLayout
4
- VERSION = '11.1.0'
4
+ VERSION = '11.5.0'
5
5
  end
@@ -36,16 +36,19 @@ describe AmaLayout::MonerisDecorator, type: :decorator do
36
36
  expect(moneris_presenter.textbox).to include "color: rgba(0, 0, 0, 0.74902);"
37
37
  expect(moneris_presenter.textbox).to include "cursor: auto;"
38
38
  expect(moneris_presenter.textbox).to include "display: block;"
39
- expect(moneris_presenter.textbox).to include "font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;font-size: 14px;"
40
- expect(moneris_presenter.textbox).to include "font-style: normal;font-variant: normal;"
39
+ expect(moneris_presenter.textbox).to include "font-family: 'Open Sans', Helvetica, Roboto, Arial, sans-serif;"
40
+ expect(moneris_presenter.textbox).to include "font-size: 18px;"
41
+ expect(moneris_presenter.textbox).to include "font-style: normal;"
42
+ expect(moneris_presenter.textbox).to include "font-variant: normal;"
41
43
  expect(moneris_presenter.textbox).to include "font-weight: normal;"
42
- expect(moneris_presenter.textbox).to include "height: 44px;"
44
+ expect(moneris_presenter.textbox).to include "height: 63px !important;"
43
45
  expect(moneris_presenter.textbox).to include "letter-spacing: normal;"
44
46
  expect(moneris_presenter.textbox).to include "line-height: normal;"
45
47
  expect(moneris_presenter.textbox).to include "margin-bottom: 0px;"
46
48
  expect(moneris_presenter.textbox).to include "margin-left: 0px;"
47
49
  expect(moneris_presenter.textbox).to include "margin-right: 0px;"
48
50
  expect(moneris_presenter.textbox).to include "margin-top: 0px;"
51
+ expect(moneris_presenter.textbox).to include "outline-color: rgb(36, 108, 169);"
49
52
  expect(moneris_presenter.textbox).to include "padding-bottom: 8px;"
50
53
  expect(moneris_presenter.textbox).to include "padding-left: 8px;"
51
54
  expect(moneris_presenter.textbox).to include "padding-right: 8px;"
@@ -207,12 +207,6 @@ describe AmaLayout::NotificationSet do
207
207
  expect(subject.destroy!).to be_empty
208
208
  end
209
209
  end
210
-
211
- context 'when data is not removed' do
212
- it 'returns false' do
213
- expect(subject.destroy!).to be false
214
- end
215
- end
216
210
  end
217
211
 
218
212
  describe '#find' do
@@ -43,10 +43,6 @@ describe AmaLayout::Notifications::RedisStore do
43
43
  subject.set('test', 'value')
44
44
  expect(subject.get('test')).to eq('value')
45
45
  end
46
-
47
- it 'returns true' do
48
- expect(subject.set('test', 'value')).to be true
49
- end
50
46
  end
51
47
 
52
48
  describe '#delete' do
@@ -55,21 +51,11 @@ describe AmaLayout::Notifications::RedisStore do
55
51
  subject.set('key', 'value')
56
52
  end
57
53
 
58
- it 'returns true' do
59
- expect(subject.delete('key')).to be true
60
- end
61
-
62
54
  it 'deletes the key' do
63
55
  subject.delete('key')
64
56
  expect(subject.get('key')).to be nil
65
57
  end
66
58
  end
67
-
68
- context 'when a value is not deleted' do
69
- it 'returns false' do
70
- expect(subject.delete('key')).to be false
71
- end
72
- end
73
59
  end
74
60
 
75
61
  describe '#transaction' do
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: 11.1.0
4
+ version: 11.5.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-07-28 00:00:00.000000000 Z
16
+ date: 2021-04-16 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: breadcrumbs_on_rails
@@ -64,6 +64,9 @@ dependencies:
64
64
  - - ">="
65
65
  - !ruby/object:Gem::Version
66
66
  version: '4.2'
67
+ - - "<"
68
+ - !ruby/object:Gem::Version
69
+ version: '6.1'
67
70
  type: :runtime
68
71
  prerelease: false
69
72
  version_requirements: !ruby/object:Gem::Requirement
@@ -71,6 +74,9 @@ dependencies:
71
74
  - - ">="
72
75
  - !ruby/object:Gem::Version
73
76
  version: '4.2'
77
+ - - "<"
78
+ - !ruby/object:Gem::Version
79
+ version: '6.1'
74
80
  - !ruby/object:Gem::Dependency
75
81
  name: redis-rails
76
82
  requirement: !ruby/object:Gem::Requirement
@@ -268,6 +274,7 @@ files:
268
274
  - app/views/ama_layout/v2/_custom_nav_links.html.erb
269
275
  - app/views/ama_layout/v2/_custom_sidebar.html.erb
270
276
  - app/views/ama_layout/v2/_font.html.erb
277
+ - app/views/ama_layout/v2/_font_awesome_pro_kit.html.erb
271
278
  - app/views/ama_layout/v2/_footer.html.erb
272
279
  - app/views/ama_layout/v2/_main_nav_item.html.erb
273
280
  - app/views/ama_layout/v2/_main_top_nav_item.html.erb
@@ -294,6 +301,7 @@ files:
294
301
  - app/views/ama_layout/v3/_custom_nav_links.html.erb
295
302
  - app/views/ama_layout/v3/_custom_sidebar.html.erb
296
303
  - app/views/ama_layout/v3/_font.html.erb
304
+ - app/views/ama_layout/v3/_font_awesome_pro_kit.html.erb
297
305
  - app/views/ama_layout/v3/_footer.html.erb
298
306
  - app/views/ama_layout/v3/_main_nav_item.html.erb
299
307
  - app/views/ama_layout/v3/_main_top_nav_item.html.erb
@@ -403,8 +411,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
403
411
  - !ruby/object:Gem::Version
404
412
  version: '0'
405
413
  requirements: []
406
- rubyforge_project:
407
- rubygems_version: 2.7.6.2
414
+ rubygems_version: 3.1.2
408
415
  signing_key:
409
416
  specification_version: 4
410
417
  summary: ".ama.ab.ca site layouts"