ama_layout 2.2.13 → 2.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 8a6e10b99fe36d98e5f2c92e15de6fef11fc3a45
4
+ data.tar.gz: 57807ff5acde94910a24f511bd0c692da4b0e744
5
+ SHA512:
6
+ metadata.gz: ce9e3ae350ddcd7ce712181d5b8adb78d8e7cfa234cd112cea668a1a3149b37d1c4ed4101be6ba9145f2750c6d49be1fc4b575824a56921051ecd9d5a4328ce6
7
+ data.tar.gz: 5394d89cc0502bcd772f8e4c93f24c2429038b9818b267b98cd0d9635c4a3e253617228162e7ad73285457ba544f202f8313caa35a8fd32ace0bc28fe8fa619f
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
+ .DS_Store
1
2
  .idea
2
3
  /.bundle/
3
4
  /.yardoc
@@ -6,8 +6,8 @@ require 'ama_layout/version'
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "ama_layout"
8
8
  spec.version = AmaLayout::VERSION
9
- spec.authors = ["Michael van den Beuken", "Ruben Estevez", "Jordan Babe", "Mathieu Gilbert", "Ryan Jones", "Darko Dosenovic", "Jonathan Weyermann", "Adam Melnyk", "Kayt Campbell", "Kathleen Robertson"]
10
- spec.email = ["michael.beuken@gmail.com", "ruben.a.estevez@gmail.com", "jorbabe@gmail.com", "mathieu.gilbert@ama.ab.ca", "ryan.michael.jones@gmail.com", "darko.dosenovic@ama.ab.ca", "jonathan.weyermann@ama.ab.ca", "adam.melnyk@ama.ab.ca", "kayt.campbell@ama.ab.ca", "kathleen.robertson@ama.ab.ca"]
9
+ spec.authors = ["Michael van den Beuken", "Ruben Estevez", "Jordan Babe", "Mathieu Gilbert", "Ryan Jones", "Darko Dosenovic", "Jonathan Weyermann", "Adam Melnyk", "Kayt Campbell", "Kathleen Robertson", "Jesse Doyle"]
10
+ spec.email = ["michael.beuken@gmail.com", "ruben.a.estevez@gmail.com", "jorbabe@gmail.com", "mathieu.gilbert@ama.ab.ca", "ryan.michael.jones@gmail.com", "darko.dosenovic@ama.ab.ca", "jonathan.weyermann@ama.ab.ca", "adam.melnyk@ama.ab.ca", "kayt.campbell@ama.ab.ca", "kathleen.robertson@ama.ab.ca", "jesse.doyle@ama.ab.ca"]
11
11
  spec.summary = %q{.ama.ab.ca site layouts}
12
12
  spec.description = %q{.ama.ab.ca site layouts}
13
13
  spec.homepage = ""
@@ -23,6 +23,7 @@ Gem::Specification.new do |spec|
23
23
  spec.add_dependency "sass-rails", "~> 5.0"
24
24
  spec.add_dependency "font-awesome-sass", "4.5.0"
25
25
  spec.add_dependency "draper", "~> 2.1"
26
+ spec.add_dependency "browser", "~> 1.1"
26
27
  spec.add_development_dependency "bundler", "~> 1.7"
27
28
  spec.add_development_dependency "rake", "~> 10.0"
28
29
  spec.add_development_dependency "rspec-rails"
@@ -3,6 +3,7 @@ window.onload = ->
3
3
  'msn.com'
4
4
  'bellsouth.net'
5
5
  'telus.net'
6
+ 'telusplanet.net'
6
7
  'comcast.net'
7
8
  'optusnet.com.au'
8
9
  'earthlink.net'
@@ -1,6 +1 @@
1
- /*1.1.0*/var Mailcheck={domainThreshold:4,topLevelThreshold:3,defaultDomains:"yahoo.com google.com hotmail.com gmail.com me.com aol.com mac.com live.com comcast.net googlemail.com msn.com hotmail.co.uk yahoo.co.uk facebook.com verizon.net sbcglobal.net att.net gmx.com mail.com outlook.com icloud.com".split(" "),defaultTopLevelDomains:"co.jp co.uk com net org info edu gov mil ca".split(" "),run:function(a){a.domains=a.domains||Mailcheck.defaultDomains;a.topLevelDomains=a.topLevelDomains||Mailcheck.defaultTopLevelDomains;
2
- a.distanceFunction=a.distanceFunction||Mailcheck.sift3Distance;var b=function(a){return a},c=a.suggested||b,b=a.empty||b;return(a=Mailcheck.suggest(Mailcheck.encodeEmail(a.email),a.domains,a.topLevelDomains,a.distanceFunction))?c(a):b()},suggest:function(a,b,c,d){a=a.toLowerCase();a=this.splitEmail(a);if(b=this.findClosestDomain(a.domain,b,d,this.domainThreshold)){if(b!=a.domain)return{address:a.address,domain:b,full:a.address+"@"+b}}else if(c=this.findClosestDomain(a.topLevelDomain,c,d,this.topLevelThreshold),
3
- a.domain&&c&&c!=a.topLevelDomain)return d=a.domain,b=d.substring(0,d.lastIndexOf(a.topLevelDomain))+c,{address:a.address,domain:b,full:a.address+"@"+b};return!1},findClosestDomain:function(a,b,c,d){d=d||this.topLevelThreshold;var e,g=99,f=null;if(!a||!b)return!1;c||(c=this.sift3Distance);for(var h=0;h<b.length;h++){if(a===b[h])return a;e=c(a,b[h]);e<g&&(g=e,f=b[h])}return g<=d&&null!==f?f:!1},sift3Distance:function(a,b){if(null==a||0===a.length)return null==b||0===b.length?0:b.length;if(null==b||
4
- 0===b.length)return a.length;for(var c=0,d=0,e=0,g=0;c+d<a.length&&c+e<b.length;){if(a.charAt(c+d)==b.charAt(c+e))g++;else for(var f=e=d=0;5>f;f++){if(c+f<a.length&&a.charAt(c+f)==b.charAt(c)){d=f;break}if(c+f<b.length&&a.charAt(c)==b.charAt(c+f)){e=f;break}}c++}return(a.length+b.length)/2-g},splitEmail:function(a){a=a.trim().split("@");if(2>a.length)return!1;for(var b=0;b<a.length;b++)if(""===a[b])return!1;var c=a.pop(),d=c.split("."),e="";if(0==d.length)return!1;if(1==d.length)e=d[0];else{for(b=
5
- 1;b<d.length;b++)e+=d[b]+".";2<=d.length&&(e=e.substring(0,e.length-1))}return{topLevelDomain:e,domain:c,address:a.join("@")}},encodeEmail:function(a){a=encodeURI(a);return a=a.replace("%20"," ").replace("%25","%").replace("%5E","^").replace("%60","`").replace("%7B","{").replace("%7C","|").replace("%7D","}")}};"undefined"!==typeof module&&module.exports&&(module.exports=Mailcheck);
6
- "undefined"!==typeof window&&window.jQuery&&function(a){a.fn.mailcheck=function(a){var c=this;if(a.suggested){var d=a.suggested;a.suggested=function(a){d(c,a)}}if(a.empty){var e=a.empty;a.empty=function(){e.call(null,c)}}a.email=this.val();Mailcheck.run(a)}}(jQuery);
1
+ /*! mailcheck v1.1.1 @licence MIT */var Mailcheck={domainThreshold:2,secondLevelThreshold:2,topLevelThreshold:2,defaultDomains:["msn.com","bellsouth.net","telus.net","comcast.net","optusnet.com.au","earthlink.net","qq.com","sky.com","icloud.com","mac.com","sympatico.ca","googlemail.com","att.net","xtra.co.nz","web.de","cox.net","gmail.com","ymail.com","aim.com","rogers.com","verizon.net","rocketmail.com","google.com","optonline.net","sbcglobal.net","aol.com","me.com","btinternet.com","charter.net","shaw.ca"],defaultSecondLevelDomains:["yahoo","hotmail","mail","live","outlook","gmx"],defaultTopLevelDomains:["com","com.au","com.tw","ca","co.nz","co.uk","de","fr","it","ru","net","org","edu","gov","jp","nl","kr","se","eu","ie","co.il","us","at","be","dk","hk","es","gr","ch","no","cz","in","net","net.au","info","biz","mil","co.jp","sg","hu"],run:function(a){a.domains=a.domains||Mailcheck.defaultDomains,a.secondLevelDomains=a.secondLevelDomains||Mailcheck.defaultSecondLevelDomains,a.topLevelDomains=a.topLevelDomains||Mailcheck.defaultTopLevelDomains,a.distanceFunction=a.distanceFunction||Mailcheck.sift3Distance;var b=function(a){return a},c=a.suggested||b,d=a.empty||b,e=Mailcheck.suggest(Mailcheck.encodeEmail(a.email),a.domains,a.secondLevelDomains,a.topLevelDomains,a.distanceFunction);return e?c(e):d()},suggest:function(a,b,c,d,e){a=a.toLowerCase();var f=this.splitEmail(a);if(c&&d&&-1!==c.indexOf(f.secondLevelDomain)&&-1!==d.indexOf(f.topLevelDomain))return!1;var g=this.findClosestDomain(f.domain,b,e,this.domainThreshold);if(g)return g==f.domain?!1:{address:f.address,domain:g,full:f.address+"@"+g};var h=this.findClosestDomain(f.secondLevelDomain,c,e,this.secondLevelThreshold),i=this.findClosestDomain(f.topLevelDomain,d,e,this.topLevelThreshold);if(f.domain){var g=f.domain,j=!1;if(h&&h!=f.secondLevelDomain&&(g=g.replace(f.secondLevelDomain,h),j=!0),i&&i!=f.topLevelDomain&&(g=g.replace(f.topLevelDomain,i),j=!0),1==j)return{address:f.address,domain:g,full:f.address+"@"+g}}return!1},findClosestDomain:function(a,b,c,d){d=d||this.topLevelThreshold;var e,f=99,g=null;if(!a||!b)return!1;c||(c=this.sift3Distance);for(var h=0;h<b.length;h++){if(a===b[h])return a;e=c(a,b[h]),f>e&&(f=e,g=b[h])}return d>=f&&null!==g?g:!1},sift3Distance:function(a,b){if(null==a||0===a.length)return null==b||0===b.length?0:b.length;if(null==b||0===b.length)return a.length;for(var c=0,d=0,e=0,f=0,g=5;c+d<a.length&&c+e<b.length;){if(a.charAt(c+d)==b.charAt(c+e))f++;else{d=0,e=0;for(var h=0;g>h;h++){if(c+h<a.length&&a.charAt(c+h)==b.charAt(c)){d=h;break}if(c+h<b.length&&a.charAt(c)==b.charAt(c+h)){e=h;break}}}c++}return(a.length+b.length)/2-f},splitEmail:function(a){var b=a.trim().split("@");if(b.length<2)return!1;for(var c=0;c<b.length;c++)if(""===b[c])return!1;var d=b.pop(),e=d.split("."),f="",g="";if(0==e.length)return!1;if(1==e.length)g=e[0];else{f=e[0];for(var c=1;c<e.length;c++)g+=e[c]+".";g=g.substring(0,g.length-1)}return{topLevelDomain:g,secondLevelDomain:f,domain:d,address:b.join("@")}},encodeEmail:function(a){var b=encodeURI(a);return b=b.replace("%20"," ").replace("%25","%").replace("%5E","^").replace("%60","`").replace("%7B","{").replace("%7C","|").replace("%7D","}")}};"undefined"!=typeof module&&module.exports&&(module.exports=Mailcheck),"function"==typeof define&&define.amd&&define("mailcheck",[],function(){return Mailcheck}),"undefined"!=typeof window&&window.jQuery&&!function(a){a.fn.mailcheck=function(a){var b=this;if(a.suggested){var c=a.suggested;a.suggested=function(a){c(b,a)}}if(a.empty){var d=a.empty;a.empty=function(){d.call(null,b)}}a.email=this.val(),Mailcheck.run(a)}}(jQuery);
@@ -0,0 +1,3 @@
1
+ en:
2
+ errors:
3
+ unsupported_ie: "AMA websites don't support Internet Explorer 8 or lower. <a href='%{ie_path}'>Update your Internet Explorer version</a> or use a different web browser."
@@ -4,16 +4,22 @@ require "foundation-rails"
4
4
  require "sass-rails"
5
5
  require "font-awesome-sass"
6
6
  require "draper"
7
+ require "browser"
7
8
  require "ama_layout/moneris"
8
9
  require "ama_layout/navigation"
9
10
  require "ama_layout/navigation_item"
10
11
  require "ama_layout/decorators/moneris_decorator"
11
12
  require "ama_layout/decorators/navigation_decorator"
12
13
  require "ama_layout/decorators/navigation_item_decorator"
14
+ require "ama_layout/controllers/action_controller"
13
15
 
14
16
  module AmaLayout
15
17
  module Rails
16
18
  class Engine < ::Rails::Engine
19
+ initializer('ama_layout') do
20
+ I18n.load_path << File.join(self.root, 'app', 'config', 'locales', 'en.yml')
21
+ ::ActionController::Base.send :include, AmaLayout::ActionController
22
+ end
17
23
  end
18
24
  end
19
25
  end
@@ -0,0 +1,16 @@
1
+ module AmaLayout
2
+ module ActionController
3
+ extend ActiveSupport::Concern
4
+
5
+ included do
6
+ before_action :check_browser
7
+ end
8
+
9
+ private
10
+
11
+ def check_browser
12
+ browser_url = 'http://windows.microsoft.com/en-ca/internet-explorer/download-ie'
13
+ flash[:alert] = I18n.t("errors.unsupported_ie", ie_path: browser_url) unless browser.modern?
14
+ end
15
+ end
16
+ end
@@ -1,3 +1,3 @@
1
1
  module AmaLayout
2
- VERSION = "2.2.13"
2
+ VERSION = "2.3.0"
3
3
  end
@@ -0,0 +1,48 @@
1
+ require 'spec_helper'
2
+
3
+ describe PagesController, type: :controller do
4
+ UNSUPPORTED_BROWSER_HEADERS = {
5
+ 'IE 6' => 'MSIE 6.0',
6
+ 'IE 7' => 'MSIE 7.0',
7
+ 'IE 8' => 'MSIE 8.0'
8
+ }
9
+
10
+ SUPPORTED_BROWSER_HEADERS = {
11
+ 'IE 9' => 'MSIE 9.0',
12
+ 'IE 10' => 'Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; Trident/6.0)',
13
+ 'IE 11' => 'Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko',
14
+ 'EDGE' => 'Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.10136'
15
+ }
16
+
17
+ let(:browser_url) { 'http://windows.microsoft.com/en-ca/internet-explorer/download-ie' }
18
+ let(:message) do
19
+ I18n.t('errors.unsupported_ie', ie_path: browser_url)
20
+ .gsub(/>/, '&gt;')
21
+ .gsub(/</, '&lt;')
22
+ .gsub(/'/, '&#39;')
23
+ end
24
+
25
+ describe '#index' do
26
+ context 'with unsupported user agent' do
27
+ UNSUPPORTED_BROWSER_HEADERS.each do |name, header|
28
+ it "renders a flash alert for #{name}" do
29
+ request.env['HTTP_USER_AGENT'] = header
30
+ get :index
31
+
32
+ expect(response.body).to include(message)
33
+ end
34
+ end
35
+ end
36
+
37
+ context 'with supported user agent' do
38
+ SUPPORTED_BROWSER_HEADERS.each do |name, header|
39
+ it "does not render a flash alert for #{name}" do
40
+ request.env['HTTP_USER_AGENT'] = header
41
+ get :index
42
+
43
+ expect(response.body).to_not include(message)
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
@@ -0,0 +1,2 @@
1
+ class ApplicationController < ActionController::Base
2
+ end
@@ -0,0 +1,18 @@
1
+ class PagesController < ApplicationController
2
+ def index
3
+ html = <<-HTML
4
+ <!DOCTYPE html>
5
+ <html lang="en">
6
+ <head>
7
+ <meta charset="utf-8">
8
+ <title>Test</title>
9
+ </head>
10
+ <body>
11
+ <p><%= flash[:alert] %></p>
12
+ </body>
13
+ </html>
14
+ HTML
15
+
16
+ render inline: html
17
+ end
18
+ end
@@ -1,3 +1,4 @@
1
1
  Rails.application.routes.draw do
2
- #
2
+ root 'pages#index'
3
+ get '/pages', to: 'pages#index', as: 'pages'
3
4
  end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ama_layout
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.13
5
- prerelease:
4
+ version: 2.3.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Michael van den Beuken
@@ -15,15 +14,15 @@ authors:
15
14
  - Adam Melnyk
16
15
  - Kayt Campbell
17
16
  - Kathleen Robertson
17
+ - Jesse Doyle
18
18
  autorequire:
19
19
  bindir: bin
20
20
  cert_chain: []
21
- date: 2016-01-27 00:00:00.000000000 Z
21
+ date: 2016-02-08 00:00:00.000000000 Z
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency
24
24
  name: foundation-rails
25
25
  requirement: !ruby/object:Gem::Requirement
26
- none: false
27
26
  requirements:
28
27
  - - '='
29
28
  - !ruby/object:Gem::Version
@@ -31,7 +30,6 @@ dependencies:
31
30
  type: :runtime
32
31
  prerelease: false
33
32
  version_requirements: !ruby/object:Gem::Requirement
34
- none: false
35
33
  requirements:
36
34
  - - '='
37
35
  - !ruby/object:Gem::Version
@@ -39,39 +37,34 @@ dependencies:
39
37
  - !ruby/object:Gem::Dependency
40
38
  name: rails
41
39
  requirement: !ruby/object:Gem::Requirement
42
- none: false
43
40
  requirements:
44
- - - ~>
41
+ - - "~>"
45
42
  - !ruby/object:Gem::Version
46
43
  version: '4.2'
47
44
  type: :runtime
48
45
  prerelease: false
49
46
  version_requirements: !ruby/object:Gem::Requirement
50
- none: false
51
47
  requirements:
52
- - - ~>
48
+ - - "~>"
53
49
  - !ruby/object:Gem::Version
54
50
  version: '4.2'
55
51
  - !ruby/object:Gem::Dependency
56
52
  name: sass-rails
57
53
  requirement: !ruby/object:Gem::Requirement
58
- none: false
59
54
  requirements:
60
- - - ~>
55
+ - - "~>"
61
56
  - !ruby/object:Gem::Version
62
57
  version: '5.0'
63
58
  type: :runtime
64
59
  prerelease: false
65
60
  version_requirements: !ruby/object:Gem::Requirement
66
- none: false
67
61
  requirements:
68
- - - ~>
62
+ - - "~>"
69
63
  - !ruby/object:Gem::Version
70
64
  version: '5.0'
71
65
  - !ruby/object:Gem::Dependency
72
66
  name: font-awesome-sass
73
67
  requirement: !ruby/object:Gem::Requirement
74
- none: false
75
68
  requirements:
76
69
  - - '='
77
70
  - !ruby/object:Gem::Version
@@ -79,7 +72,6 @@ dependencies:
79
72
  type: :runtime
80
73
  prerelease: false
81
74
  version_requirements: !ruby/object:Gem::Requirement
82
- none: false
83
75
  requirements:
84
76
  - - '='
85
77
  - !ruby/object:Gem::Version
@@ -87,148 +79,144 @@ dependencies:
87
79
  - !ruby/object:Gem::Dependency
88
80
  name: draper
89
81
  requirement: !ruby/object:Gem::Requirement
90
- none: false
91
82
  requirements:
92
- - - ~>
83
+ - - "~>"
93
84
  - !ruby/object:Gem::Version
94
85
  version: '2.1'
95
86
  type: :runtime
96
87
  prerelease: false
97
88
  version_requirements: !ruby/object:Gem::Requirement
98
- none: false
99
89
  requirements:
100
- - - ~>
90
+ - - "~>"
101
91
  - !ruby/object:Gem::Version
102
92
  version: '2.1'
93
+ - !ruby/object:Gem::Dependency
94
+ name: browser
95
+ requirement: !ruby/object:Gem::Requirement
96
+ requirements:
97
+ - - "~>"
98
+ - !ruby/object:Gem::Version
99
+ version: '1.1'
100
+ type: :runtime
101
+ prerelease: false
102
+ version_requirements: !ruby/object:Gem::Requirement
103
+ requirements:
104
+ - - "~>"
105
+ - !ruby/object:Gem::Version
106
+ version: '1.1'
103
107
  - !ruby/object:Gem::Dependency
104
108
  name: bundler
105
109
  requirement: !ruby/object:Gem::Requirement
106
- none: false
107
110
  requirements:
108
- - - ~>
111
+ - - "~>"
109
112
  - !ruby/object:Gem::Version
110
113
  version: '1.7'
111
114
  type: :development
112
115
  prerelease: false
113
116
  version_requirements: !ruby/object:Gem::Requirement
114
- none: false
115
117
  requirements:
116
- - - ~>
118
+ - - "~>"
117
119
  - !ruby/object:Gem::Version
118
120
  version: '1.7'
119
121
  - !ruby/object:Gem::Dependency
120
122
  name: rake
121
123
  requirement: !ruby/object:Gem::Requirement
122
- none: false
123
124
  requirements:
124
- - - ~>
125
+ - - "~>"
125
126
  - !ruby/object:Gem::Version
126
127
  version: '10.0'
127
128
  type: :development
128
129
  prerelease: false
129
130
  version_requirements: !ruby/object:Gem::Requirement
130
- none: false
131
131
  requirements:
132
- - - ~>
132
+ - - "~>"
133
133
  - !ruby/object:Gem::Version
134
134
  version: '10.0'
135
135
  - !ruby/object:Gem::Dependency
136
136
  name: rspec-rails
137
137
  requirement: !ruby/object:Gem::Requirement
138
- none: false
139
138
  requirements:
140
- - - ! '>='
139
+ - - ">="
141
140
  - !ruby/object:Gem::Version
142
141
  version: '0'
143
142
  type: :development
144
143
  prerelease: false
145
144
  version_requirements: !ruby/object:Gem::Requirement
146
- none: false
147
145
  requirements:
148
- - - ! '>='
146
+ - - ">="
149
147
  - !ruby/object:Gem::Version
150
148
  version: '0'
151
149
  - !ruby/object:Gem::Dependency
152
150
  name: factory_girl
153
151
  requirement: !ruby/object:Gem::Requirement
154
- none: false
155
152
  requirements:
156
- - - ! '>='
153
+ - - ">="
157
154
  - !ruby/object:Gem::Version
158
155
  version: '0'
159
156
  type: :development
160
157
  prerelease: false
161
158
  version_requirements: !ruby/object:Gem::Requirement
162
- none: false
163
159
  requirements:
164
- - - ! '>='
160
+ - - ">="
165
161
  - !ruby/object:Gem::Version
166
162
  version: '0'
167
163
  - !ruby/object:Gem::Dependency
168
164
  name: simplecov
169
165
  requirement: !ruby/object:Gem::Requirement
170
- none: false
171
166
  requirements:
172
- - - ! '>='
167
+ - - ">="
173
168
  - !ruby/object:Gem::Version
174
169
  version: '0'
175
170
  type: :development
176
171
  prerelease: false
177
172
  version_requirements: !ruby/object:Gem::Requirement
178
- none: false
179
173
  requirements:
180
- - - ! '>='
174
+ - - ">="
181
175
  - !ruby/object:Gem::Version
182
176
  version: '0'
183
177
  - !ruby/object:Gem::Dependency
184
178
  name: pry
185
179
  requirement: !ruby/object:Gem::Requirement
186
- none: false
187
180
  requirements:
188
- - - ! '>='
181
+ - - ">="
189
182
  - !ruby/object:Gem::Version
190
183
  version: '0'
191
184
  type: :development
192
185
  prerelease: false
193
186
  version_requirements: !ruby/object:Gem::Requirement
194
- none: false
195
187
  requirements:
196
- - - ! '>='
188
+ - - ">="
197
189
  - !ruby/object:Gem::Version
198
190
  version: '0'
199
191
  - !ruby/object:Gem::Dependency
200
192
  name: combustion
201
193
  requirement: !ruby/object:Gem::Requirement
202
- none: false
203
194
  requirements:
204
- - - ! '>='
195
+ - - ">="
205
196
  - !ruby/object:Gem::Version
206
197
  version: '0'
207
198
  type: :development
208
199
  prerelease: false
209
200
  version_requirements: !ruby/object:Gem::Requirement
210
- none: false
211
201
  requirements:
212
- - - ! '>='
202
+ - - ">="
213
203
  - !ruby/object:Gem::Version
214
204
  version: '0'
215
205
  - !ruby/object:Gem::Dependency
216
206
  name: sqlite3
217
207
  requirement: !ruby/object:Gem::Requirement
218
- none: false
219
208
  requirements:
220
- - - ! '>='
209
+ - - ">="
221
210
  - !ruby/object:Gem::Version
222
211
  version: '0'
223
212
  type: :development
224
213
  prerelease: false
225
214
  version_requirements: !ruby/object:Gem::Requirement
226
- none: false
227
215
  requirements:
228
- - - ! '>='
216
+ - - ">="
229
217
  - !ruby/object:Gem::Version
230
218
  version: '0'
231
- description: .ama.ab.ca site layouts
219
+ description: ".ama.ab.ca site layouts"
232
220
  email:
233
221
  - michael.beuken@gmail.com
234
222
  - ruben.a.estevez@gmail.com
@@ -240,14 +228,15 @@ email:
240
228
  - adam.melnyk@ama.ab.ca
241
229
  - kayt.campbell@ama.ab.ca
242
230
  - kathleen.robertson@ama.ab.ca
231
+ - jesse.doyle@ama.ab.ca
243
232
  executables: []
244
233
  extensions: []
245
234
  extra_rdoc_files: []
246
235
  files:
247
- - .gitignore
248
- - .rspec
249
- - .simplecov
250
- - .travis.yml
236
+ - ".gitignore"
237
+ - ".rspec"
238
+ - ".simplecov"
239
+ - ".travis.yml"
251
240
  - Gemfile
252
241
  - LICENSE.txt
253
242
  - README.md
@@ -300,6 +289,7 @@ files:
300
289
  - app/assets/stylesheets/ama_layout/webfonts/ss-symbolicons-block.ttf
301
290
  - app/assets/stylesheets/ama_layout/webfonts/ss-symbolicons-block.woff
302
291
  - app/assets/stylesheets/ama_layout/webfonts/ss-symbolicons.js
292
+ - app/config/locales/en.yml
303
293
  - app/helpers/ama_layout_content_helper.rb
304
294
  - app/helpers/ama_layout_path_helper.rb
305
295
  - app/views/ama_layout/_alert.html.erb
@@ -319,6 +309,7 @@ files:
319
309
  - app/views/ama_layout/_top_sub_nav.html.erb
320
310
  - app/views/ama_layout/_top_sub_nav_item.html.erb
321
311
  - lib/ama_layout.rb
312
+ - lib/ama_layout/controllers/action_controller.rb
322
313
  - lib/ama_layout/decorators/moneris_decorator.rb
323
314
  - lib/ama_layout/decorators/navigation_decorator.rb
324
315
  - lib/ama_layout/decorators/navigation_item_decorator.rb
@@ -328,6 +319,7 @@ files:
328
319
  - lib/ama_layout/navigation.yml
329
320
  - lib/ama_layout/navigation_item.rb
330
321
  - lib/ama_layout/version.rb
322
+ - spec/ama_layout/controllers/pages_controller_spec.rb
331
323
  - spec/ama_layout/decorators/moneris_decorator_spec.rb
332
324
  - spec/ama_layout/decorators/navigation_decorator_spec.rb
333
325
  - spec/ama_layout/decorators/navigation_item_decorator_spec.rb
@@ -338,6 +330,8 @@ files:
338
330
  - spec/factories/navigation_item.rb
339
331
  - spec/helpers/ama_layout_content_helper_spec.rb
340
332
  - spec/helpers/ama_layout_path_helper_spec.rb
333
+ - spec/internal/app/controllers/application_controller.rb
334
+ - spec/internal/app/controllers/pages_controller.rb
341
335
  - spec/internal/config/database.yml
342
336
  - spec/internal/config/routes.rb
343
337
  - spec/internal/db/combustion_test.sqlite
@@ -348,35 +342,29 @@ files:
348
342
  homepage: ''
349
343
  licenses:
350
344
  - MIT
345
+ metadata: {}
351
346
  post_install_message:
352
347
  rdoc_options: []
353
348
  require_paths:
354
349
  - lib
355
350
  required_ruby_version: !ruby/object:Gem::Requirement
356
- none: false
357
351
  requirements:
358
- - - ! '>='
352
+ - - ">="
359
353
  - !ruby/object:Gem::Version
360
354
  version: '0'
361
- segments:
362
- - 0
363
- hash: -2884989047528559443
364
355
  required_rubygems_version: !ruby/object:Gem::Requirement
365
- none: false
366
356
  requirements:
367
- - - ! '>='
357
+ - - ">="
368
358
  - !ruby/object:Gem::Version
369
359
  version: '0'
370
- segments:
371
- - 0
372
- hash: -2884989047528559443
373
360
  requirements: []
374
361
  rubyforge_project:
375
- rubygems_version: 1.8.23
362
+ rubygems_version: 2.5.1
376
363
  signing_key:
377
- specification_version: 3
378
- summary: .ama.ab.ca site layouts
364
+ specification_version: 4
365
+ summary: ".ama.ab.ca site layouts"
379
366
  test_files:
367
+ - spec/ama_layout/controllers/pages_controller_spec.rb
380
368
  - spec/ama_layout/decorators/moneris_decorator_spec.rb
381
369
  - spec/ama_layout/decorators/navigation_decorator_spec.rb
382
370
  - spec/ama_layout/decorators/navigation_item_decorator_spec.rb
@@ -387,6 +375,8 @@ test_files:
387
375
  - spec/factories/navigation_item.rb
388
376
  - spec/helpers/ama_layout_content_helper_spec.rb
389
377
  - spec/helpers/ama_layout_path_helper_spec.rb
378
+ - spec/internal/app/controllers/application_controller.rb
379
+ - spec/internal/app/controllers/pages_controller.rb
390
380
  - spec/internal/config/database.yml
391
381
  - spec/internal/config/routes.rb
392
382
  - spec/internal/db/combustion_test.sqlite