ama_layout 5.12.0 → 6.3.0.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +0 -2
- data/ama_layout.gemspec +20 -21
- data/app/assets/javascripts/ama_layout/desktop/foundation-custom.js +8 -10
- data/app/assets/javascripts/ama_layout/desktop/index.js +0 -1
- data/app/helpers/ama_layout_path_helper.rb +5 -5
- data/app/views/ama_layout/_siteheader.html.erb +3 -8
- data/lib/ama_layout.rb +20 -28
- data/lib/ama_layout/decorators/moneris_decorator.rb +2 -3
- data/lib/ama_layout/decorators/navigation_decorator.rb +6 -52
- data/lib/ama_layout/decorators/navigation_item_decorator.rb +2 -3
- data/lib/ama_layout/moneris.rb +1 -4
- data/lib/ama_layout/navigation.rb +1 -7
- data/lib/ama_layout/navigation.yml +6 -58
- data/lib/ama_layout/navigation_item.rb +1 -4
- data/lib/ama_layout/version.rb +1 -1
- data/spec/ama_layout/decorators/navigation_decorator_spec.rb +8 -124
- data/spec/ama_layout/decorators/navigation_item_decorator_spec.rb +4 -2
- data/spec/ama_layout/navigation_spec.rb +43 -13
- data/spec/helpers/ama_layout_path_helper_spec.rb +6 -6
- data/spec/internal/app/controllers/application_controller.rb +0 -21
- data/spec/internal/config/routes.rb +0 -1
- data/spec/spec_helper.rb +16 -9
- data/styles.scss +0 -0
- metadata +41 -79
- data/PULL_REQUEST_TEMPLATE.md +0 -10
- data/app/assets/javascripts/ama_layout/notifications.coffee +0 -17
- data/app/controllers/ama_layout/api/v1/notifications_controller.rb +0 -18
- data/app/views/ama_layout/_notification.html.erb +0 -10
- data/app/views/ama_layout/_notification_sidebar.html.erb +0 -22
- data/app/views/ama_layout/_notifications.html.erb +0 -6
- data/app/views/ama_layout/_sign_out_link.html.erb +0 -3
- data/config/routes.rb +0 -9
- data/lib/ama_layout/decorators/notification_decorator.rb +0 -46
- data/lib/ama_layout/draper_replacement.rb +0 -27
- data/lib/ama_layout/navigation_helper.rb +0 -31
- data/lib/ama_layout/notification.rb +0 -87
- data/lib/ama_layout/notification_scrubber.rb +0 -13
- data/lib/ama_layout/notification_set.rb +0 -140
- data/lib/ama_layout/notifications.rb +0 -73
- data/lib/ama_layout/notifications/abstract_store.rb +0 -17
- data/lib/ama_layout/notifications/redis_store.rb +0 -38
- data/spec/ama_layout/controllers/ama_layout/api/v1/notifications_controller_spec.rb +0 -13
- data/spec/ama_layout/decorators/notification_decorator_spec.rb +0 -57
- data/spec/ama_layout/navigation_helper_spec.rb +0 -63
- data/spec/ama_layout/notification_scrubber_spec.rb +0 -10
- data/spec/ama_layout/notification_set_spec.rb +0 -281
- data/spec/ama_layout/notification_spec.rb +0 -193
- data/spec/ama_layout/notifications/abstract_store_spec.rb +0 -23
- data/spec/ama_layout/notifications/redis_store_spec.rb +0 -94
- data/spec/ama_layout/notifications_spec.rb +0 -109
- data/spec/factories/users.rb +0 -35
- data/spec/support/shared_examples/member_navigation.rb +0 -105
data/lib/ama_layout/version.rb
CHANGED
@@ -7,8 +7,8 @@ describe AmaLayout::NavigationDecorator do
|
|
7
7
|
let(:membership_site) { "http://membership.waffles.ca" }
|
8
8
|
let(:driveredonline_site) { "http://driveredonline.waffles.ca" }
|
9
9
|
let(:registries_site) { "http://registries.waffles.ca" }
|
10
|
-
let(:automotive_site) { "http://automotive.waffles.ca"
|
11
|
-
let(:travel_site) { "http://travel.waffles.ca"
|
10
|
+
let(:automotive_site) { "http://automotive.waffles.ca"}
|
11
|
+
let(:travel_site) { "http://travel.waffles.ca"}
|
12
12
|
|
13
13
|
before(:each) do
|
14
14
|
allow(Rails.configuration).to receive(:gatekeeper_site).and_return(gatekeeper_site)
|
@@ -94,9 +94,8 @@ describe AmaLayout::NavigationDecorator do
|
|
94
94
|
context "with items" do
|
95
95
|
it "renders the partial" do
|
96
96
|
allow_any_instance_of(AmaLayout::Navigation).to receive(:user).and_return(OpenStruct.new(navigation: "member"))
|
97
|
-
|
98
|
-
|
99
|
-
expect(navigation_presenter.top_nav).to include("AMA Road Reports", "http://auth.waffles.ca")
|
97
|
+
allow_any_instance_of(Draper::HelperProxy).to receive(:render).and_return "render"
|
98
|
+
expect(navigation_presenter.top_nav).to eq "render"
|
100
99
|
end
|
101
100
|
end
|
102
101
|
|
@@ -111,7 +110,8 @@ describe AmaLayout::NavigationDecorator do
|
|
111
110
|
context "with items" do
|
112
111
|
it "renders the partial" do
|
113
112
|
allow_any_instance_of(AmaLayout::Navigation).to receive(:user).and_return(OpenStruct.new(navigation: "member"))
|
114
|
-
|
113
|
+
allow_any_instance_of(Draper::HelperProxy).to receive(:render).and_return "render"
|
114
|
+
expect(navigation_presenter.sidebar).to eq "render"
|
115
115
|
end
|
116
116
|
end
|
117
117
|
|
@@ -125,124 +125,8 @@ describe AmaLayout::NavigationDecorator do
|
|
125
125
|
context "account toggle" do
|
126
126
|
it "in ama_layout it renders a blank partial" do
|
127
127
|
allow_any_instance_of(AmaLayout::Navigation).to receive(:user).and_return(OpenStruct.new(navigation: "member"))
|
128
|
-
|
129
|
-
|
130
|
-
end
|
131
|
-
|
132
|
-
context 'notification center' do
|
133
|
-
let(:store) do
|
134
|
-
AmaLayout::Notifications::RedisStore.new(
|
135
|
-
db: 4,
|
136
|
-
namespace: 'test_notifications',
|
137
|
-
host: 'localhost'
|
138
|
-
)
|
139
|
-
end
|
140
|
-
let(:notification_set) { AmaLayout::NotificationSet.new(store, 1) }
|
141
|
-
let(:user) { OpenStruct.new(navigation: 'member', notifications: notification_set) }
|
142
|
-
let(:navigation) { FactoryGirl.build :navigation, user: user }
|
143
|
-
subject { described_class.new(navigation) }
|
144
|
-
|
145
|
-
around(:each) do |example|
|
146
|
-
Timecop.freeze(Time.zone.local(2017, 6, 19)) do
|
147
|
-
store.clear
|
148
|
-
example.run
|
149
|
-
store.clear
|
150
|
-
end
|
151
|
-
end
|
152
|
-
|
153
|
-
describe '#notifications' do
|
154
|
-
it 'renders the content to the page' do
|
155
|
-
expect(subject.notifications).to include("data-notifications-toggle")
|
156
|
-
end
|
157
|
-
end
|
158
|
-
|
159
|
-
describe '#notification_badge' do
|
160
|
-
context 'with 1 active notification' do
|
161
|
-
before(:each) do
|
162
|
-
user.notifications.create(
|
163
|
-
type: :warning,
|
164
|
-
header: 'test',
|
165
|
-
content: 'test'
|
166
|
-
)
|
167
|
-
end
|
168
|
-
|
169
|
-
it 'returns a div with the count of active notifications' do
|
170
|
-
expect(subject.notification_badge).to include('div')
|
171
|
-
expect(subject.notification_badge).to include('1')
|
172
|
-
end
|
173
|
-
end
|
174
|
-
|
175
|
-
context 'with only inactive notifications' do
|
176
|
-
before(:each) do
|
177
|
-
user.notifications.create(
|
178
|
-
type: :warning,
|
179
|
-
header: 'test',
|
180
|
-
content: 'test'
|
181
|
-
)
|
182
|
-
user.notifications.first.dismiss!
|
183
|
-
user.notifications.save
|
184
|
-
end
|
185
|
-
|
186
|
-
it 'does not return the badge markup' do
|
187
|
-
expect(subject.notification_badge).to be nil
|
188
|
-
end
|
189
|
-
end
|
190
|
-
|
191
|
-
context 'with only active and inactive notifications' do
|
192
|
-
before(:each) do
|
193
|
-
user.notifications.create(
|
194
|
-
type: :warning,
|
195
|
-
header: 'test',
|
196
|
-
content: 'test'
|
197
|
-
)
|
198
|
-
2.times do |i|
|
199
|
-
user.notifications.create(
|
200
|
-
type: :notice,
|
201
|
-
header: i,
|
202
|
-
content: i
|
203
|
-
)
|
204
|
-
end
|
205
|
-
user.notifications.first.dismiss!
|
206
|
-
user.notifications.save
|
207
|
-
end
|
208
|
-
|
209
|
-
it 'returns a div with the count of active notifications' do
|
210
|
-
expect(subject.notification_badge).to include('div')
|
211
|
-
expect(subject.notification_badge).to include('2')
|
212
|
-
end
|
213
|
-
end
|
214
|
-
end
|
215
|
-
|
216
|
-
describe '#notification_sidebar' do
|
217
|
-
it 'renders content to the page' do
|
218
|
-
expect(subject.notification_sidebar).to include("Sign up now","off-canvas position-right")
|
219
|
-
end
|
220
|
-
end
|
221
|
-
|
222
|
-
describe '#notifications_heading' do
|
223
|
-
context 'when notifications are present' do
|
224
|
-
before(:each) do
|
225
|
-
user.notifications.create(
|
226
|
-
type: :warning,
|
227
|
-
header: 'test',
|
228
|
-
content: 'test'
|
229
|
-
)
|
230
|
-
end
|
231
|
-
|
232
|
-
it 'returns the correct heading' do
|
233
|
-
expect(subject.notifications_heading).to include('Most Recent Notifications')
|
234
|
-
end
|
235
|
-
end
|
236
|
-
|
237
|
-
context 'when notifications are not present' do
|
238
|
-
it 'returns the correct heading' do
|
239
|
-
expect(subject.notifications_heading).to include('No Recent Notifications')
|
240
|
-
end
|
241
|
-
|
242
|
-
it 'italicizes the message' do
|
243
|
-
expect(subject.notifications_heading).to include('italic')
|
244
|
-
end
|
245
|
-
end
|
128
|
+
allow_any_instance_of(Draper::HelperProxy).to receive(:render).and_return "render"
|
129
|
+
expect(navigation_presenter.account_toggle).to eq "render"
|
246
130
|
end
|
247
131
|
end
|
248
132
|
end
|
@@ -39,7 +39,8 @@ describe AmaLayout::NavigationItemDecorator do
|
|
39
39
|
context "with items" do
|
40
40
|
it "renders the partial" do
|
41
41
|
navigation_item.sub_nav = items
|
42
|
-
|
42
|
+
allow_any_instance_of(Draper::HelperProxy).to receive(:render).and_return "render"
|
43
|
+
expect(navigation_item_presenter.top_sub_nav).to eq "render"
|
43
44
|
end
|
44
45
|
end
|
45
46
|
|
@@ -54,7 +55,8 @@ describe AmaLayout::NavigationItemDecorator do
|
|
54
55
|
context "with items" do
|
55
56
|
it "renders the partial" do
|
56
57
|
navigation_item.sub_nav = items
|
57
|
-
|
58
|
+
allow_any_instance_of(Draper::HelperProxy).to receive(:render).and_return "render"
|
59
|
+
expect(navigation_item_presenter.sidebar_sub_nav).to eq "render"
|
58
60
|
end
|
59
61
|
end
|
60
62
|
|
@@ -66,7 +66,37 @@ describe AmaLayout::Navigation do
|
|
66
66
|
|
67
67
|
context "member" do
|
68
68
|
context "subnavs" do
|
69
|
-
|
69
|
+
context "automotive" do
|
70
|
+
let(:automotive_subnav) { subject.items[2].sub_nav }
|
71
|
+
|
72
|
+
it "returns the subnav items" do
|
73
|
+
expect(automotive_subnav[0].text).to eq "Roadside Assistance Overview"
|
74
|
+
expect(automotive_subnav[0].link).to eq "#{automotive_site}/"
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
context "driver education" do
|
79
|
+
let(:driver_education_subnav) { subject.items[3].sub_nav }
|
80
|
+
|
81
|
+
it "return the subnav items" do
|
82
|
+
expect(driver_education_subnav[0].text).to eq "Driver Education Overview"
|
83
|
+
expect(driver_education_subnav[0].link).to eq "#{driveredonline_site}/"
|
84
|
+
|
85
|
+
expect(driver_education_subnav[1].text).to eq "New Driver Online Program"
|
86
|
+
expect(driver_education_subnav[1].link).to eq "#{driveredonline_site}/dashboard"
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
context "registries" do
|
91
|
+
let(:registries_subnav) { subject.items[5].sub_nav }
|
92
|
+
|
93
|
+
it "returns the subnav items" do
|
94
|
+
expect(registries_subnav[0].text).to eq "Registries Overview"
|
95
|
+
expect(registries_subnav[0].link).to eq "#{registries_site}/"
|
96
|
+
expect(registries_subnav[1].text).to eq "Vehicle Registration Auto-Renew"
|
97
|
+
expect(registries_subnav[1].link).to eq "#{registries_site}/order/registrations/new"
|
98
|
+
end
|
99
|
+
end
|
70
100
|
end
|
71
101
|
end
|
72
102
|
|
@@ -91,18 +121,18 @@ describe AmaLayout::Navigation do
|
|
91
121
|
|
92
122
|
context "member-in-renewal" do
|
93
123
|
context "subnavs" do
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
124
|
+
context "driver education" do
|
125
|
+
before(:each) do
|
126
|
+
subject.user = OpenStruct.new navigation: "member-in-renewal"
|
127
|
+
end
|
128
|
+
let(:driver_education_subnav) { subject.items[2].sub_nav }
|
99
129
|
|
100
|
-
|
101
|
-
|
130
|
+
it "return the subnav items" do
|
131
|
+
expect(driver_education_subnav[0].text).to eq "Driver Education Overview"
|
132
|
+
expect(driver_education_subnav[0].link).to eq "#{driveredonline_site}/"
|
102
133
|
|
103
|
-
|
104
|
-
expect(
|
105
|
-
expect(membership_subnav[1].link).to eq "#{membership_site}/renews/new"
|
134
|
+
expect(driver_education_subnav[1].text).to eq "New Driver Online Program"
|
135
|
+
expect(driver_education_subnav[1].link).to eq "#{driveredonline_site}/dashboard"
|
106
136
|
end
|
107
137
|
end
|
108
138
|
end
|
@@ -118,7 +148,7 @@ describe AmaLayout::Navigation do
|
|
118
148
|
expect(subject.items[0].text).to eq "Account Dashboard"
|
119
149
|
expect(subject.items[0].link).to eq "#{gatekeeper_site}/"
|
120
150
|
expect(subject.items[1].text).to eq "Renew"
|
121
|
-
expect(subject.items[1].link).to eq "#{
|
151
|
+
expect(subject.items[1].link).to eq "#{youraccount_site}/renew"
|
122
152
|
end
|
123
153
|
end
|
124
154
|
|
@@ -147,7 +177,7 @@ describe AmaLayout::Navigation do
|
|
147
177
|
expect(subject.items[0].text).to eq "Account Dashboard"
|
148
178
|
expect(subject.items[0].link).to eq "#{gatekeeper_site}/"
|
149
179
|
expect(subject.items[1].text).to eq "Pay Outstanding Balance"
|
150
|
-
expect(subject.items[1].link).to eq "#{
|
180
|
+
expect(subject.items[1].link).to eq "#{youraccount_site}/renew"
|
151
181
|
end
|
152
182
|
end
|
153
183
|
|
@@ -27,6 +27,12 @@ describe AmaLayoutPathHelper do
|
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
30
|
+
describe "#youraccount_help_path" do
|
31
|
+
it "returns the help path" do
|
32
|
+
expect(helper.youraccount_help_path).to eq "#{youraccount_site}/help"
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
30
36
|
describe "#youraccount_billing_path" do
|
31
37
|
it "returns the billing path" do
|
32
38
|
expect(helper.youraccount_billing_path).to eq "#{youraccount_site}/billing"
|
@@ -105,12 +111,6 @@ describe AmaLayoutPathHelper do
|
|
105
111
|
end
|
106
112
|
end
|
107
113
|
|
108
|
-
describe "#membership_renew_path" do
|
109
|
-
it "returns the membership renew path" do
|
110
|
-
expect(helper.membership_renew_path).to eq "#{membership_site}/renews/new"
|
111
|
-
end
|
112
|
-
end
|
113
|
-
|
114
114
|
describe "#driveredonline_path" do
|
115
115
|
it "returns the driveredonile path" do
|
116
116
|
expect(helper.driveredonline_path).to eq "#{driveredonline_site}"
|
@@ -1,23 +1,2 @@
|
|
1
1
|
class ApplicationController < ActionController::Base
|
2
|
-
class NotificationsStub
|
3
|
-
include Enumerable
|
4
|
-
|
5
|
-
def each
|
6
|
-
[OpenStruct.new(dismiss!: true)].each do |element|
|
7
|
-
yield element
|
8
|
-
end
|
9
|
-
end
|
10
|
-
|
11
|
-
def save
|
12
|
-
true
|
13
|
-
end
|
14
|
-
end
|
15
|
-
|
16
|
-
def require_login
|
17
|
-
@current_user = OpenStruct.new(notifications: NotificationsStub.new)
|
18
|
-
end
|
19
|
-
|
20
|
-
def current_user
|
21
|
-
@current_user
|
22
|
-
end
|
23
2
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -1,16 +1,15 @@
|
|
1
|
-
require
|
2
|
-
require
|
3
|
-
require
|
4
|
-
require
|
5
|
-
require
|
6
|
-
require
|
7
|
-
require 'timecop'
|
1
|
+
require "simplecov"
|
2
|
+
require "factory_girl"
|
3
|
+
require "ama_layout"
|
4
|
+
require "pry"
|
5
|
+
require "rspec/rails"
|
6
|
+
require "combustion"
|
8
7
|
|
9
|
-
ENV[
|
8
|
+
ENV["RAILS_ENV"] ||= "test"
|
10
9
|
|
11
10
|
Combustion.initialize! :all
|
12
11
|
|
13
|
-
Dir[
|
12
|
+
Dir["./spec/support/**/*.rb"].sort.each { |file| require file }
|
14
13
|
|
15
14
|
FactoryGirl.find_definitions
|
16
15
|
|
@@ -18,6 +17,14 @@ ActionView::TestCase::TestController.instance_eval do
|
|
18
17
|
helper Rails.application.routes.url_helpers
|
19
18
|
end
|
20
19
|
|
20
|
+
ActionView::TestCase::TestController.class_eval do
|
21
|
+
def _routes
|
22
|
+
Rails.application.routes
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
Draper::ViewContext.test_strategy :fast
|
27
|
+
|
21
28
|
RSpec.configure do |config|
|
22
29
|
config.infer_spec_type_from_file_location!
|
23
30
|
config.include Rails.application.routes.url_helpers
|
data/styles.scss
ADDED
File without changes
|
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:
|
4
|
+
version: 6.3.0.pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael van den Beuken
|
@@ -18,78 +18,92 @@ authors:
|
|
18
18
|
autorequire:
|
19
19
|
bindir: bin
|
20
20
|
cert_chain: []
|
21
|
-
date: 2017-
|
21
|
+
date: 2017-06-21 00:00:00.000000000 Z
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|
24
24
|
name: foundation-rails
|
25
|
+
requirement: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 6.3.1.0
|
30
|
+
type: :runtime
|
31
|
+
prerelease: false
|
32
|
+
version_requirements: !ruby/object:Gem::Requirement
|
33
|
+
requirements:
|
34
|
+
- - "~>"
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: 6.3.1.0
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: rails
|
25
39
|
requirement: !ruby/object:Gem::Requirement
|
26
40
|
requirements:
|
27
41
|
- - ">="
|
28
42
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
43
|
+
version: '5.0'
|
30
44
|
type: :runtime
|
31
45
|
prerelease: false
|
32
46
|
version_requirements: !ruby/object:Gem::Requirement
|
33
47
|
requirements:
|
34
48
|
- - ">="
|
35
49
|
- !ruby/object:Gem::Version
|
36
|
-
version:
|
50
|
+
version: '5.0'
|
37
51
|
- !ruby/object:Gem::Dependency
|
38
|
-
name:
|
52
|
+
name: activemodel-serializers-xml
|
39
53
|
requirement: !ruby/object:Gem::Requirement
|
40
54
|
requirements:
|
41
55
|
- - ">="
|
42
56
|
- !ruby/object:Gem::Version
|
43
|
-
version: '
|
57
|
+
version: '0'
|
44
58
|
type: :runtime
|
45
59
|
prerelease: false
|
46
60
|
version_requirements: !ruby/object:Gem::Requirement
|
47
61
|
requirements:
|
48
62
|
- - ">="
|
49
63
|
- !ruby/object:Gem::Version
|
50
|
-
version: '
|
64
|
+
version: '0'
|
51
65
|
- !ruby/object:Gem::Dependency
|
52
|
-
name:
|
66
|
+
name: draper
|
53
67
|
requirement: !ruby/object:Gem::Requirement
|
54
68
|
requirements:
|
55
|
-
- -
|
69
|
+
- - '='
|
56
70
|
- !ruby/object:Gem::Version
|
57
|
-
version:
|
71
|
+
version: 3.0.0.pre1
|
58
72
|
type: :runtime
|
59
73
|
prerelease: false
|
60
74
|
version_requirements: !ruby/object:Gem::Requirement
|
61
75
|
requirements:
|
62
|
-
- -
|
76
|
+
- - '='
|
63
77
|
- !ruby/object:Gem::Version
|
64
|
-
version:
|
78
|
+
version: 3.0.0.pre1
|
65
79
|
- !ruby/object:Gem::Dependency
|
66
|
-
name:
|
80
|
+
name: browser
|
67
81
|
requirement: !ruby/object:Gem::Requirement
|
68
82
|
requirements:
|
69
83
|
- - "~>"
|
70
84
|
- !ruby/object:Gem::Version
|
71
|
-
version:
|
85
|
+
version: '2.0'
|
72
86
|
type: :runtime
|
73
87
|
prerelease: false
|
74
88
|
version_requirements: !ruby/object:Gem::Requirement
|
75
89
|
requirements:
|
76
90
|
- - "~>"
|
77
91
|
- !ruby/object:Gem::Version
|
78
|
-
version:
|
92
|
+
version: '2.0'
|
79
93
|
- !ruby/object:Gem::Dependency
|
80
|
-
name:
|
94
|
+
name: breadcrumbs_on_rails
|
81
95
|
requirement: !ruby/object:Gem::Requirement
|
82
96
|
requirements:
|
83
|
-
- - "
|
97
|
+
- - "~>"
|
84
98
|
- !ruby/object:Gem::Version
|
85
|
-
version:
|
99
|
+
version: 3.0.1
|
86
100
|
type: :runtime
|
87
101
|
prerelease: false
|
88
102
|
version_requirements: !ruby/object:Gem::Requirement
|
89
103
|
requirements:
|
90
|
-
- - "
|
104
|
+
- - "~>"
|
91
105
|
- !ruby/object:Gem::Version
|
92
|
-
version:
|
106
|
+
version: 3.0.1
|
93
107
|
- !ruby/object:Gem::Dependency
|
94
108
|
name: bundler
|
95
109
|
requirement: !ruby/object:Gem::Requirement
|
@@ -108,14 +122,14 @@ dependencies:
|
|
108
122
|
name: rake
|
109
123
|
requirement: !ruby/object:Gem::Requirement
|
110
124
|
requirements:
|
111
|
-
- - "
|
125
|
+
- - "~>"
|
112
126
|
- !ruby/object:Gem::Version
|
113
127
|
version: '11.0'
|
114
128
|
type: :development
|
115
129
|
prerelease: false
|
116
130
|
version_requirements: !ruby/object:Gem::Requirement
|
117
131
|
requirements:
|
118
|
-
- - "
|
132
|
+
- - "~>"
|
119
133
|
- !ruby/object:Gem::Version
|
120
134
|
version: '11.0'
|
121
135
|
- !ruby/object:Gem::Dependency
|
@@ -202,20 +216,6 @@ dependencies:
|
|
202
216
|
- - ">="
|
203
217
|
- !ruby/object:Gem::Version
|
204
218
|
version: '0'
|
205
|
-
- !ruby/object:Gem::Dependency
|
206
|
-
name: timecop
|
207
|
-
requirement: !ruby/object:Gem::Requirement
|
208
|
-
requirements:
|
209
|
-
- - ">="
|
210
|
-
- !ruby/object:Gem::Version
|
211
|
-
version: '0'
|
212
|
-
type: :development
|
213
|
-
prerelease: false
|
214
|
-
version_requirements: !ruby/object:Gem::Requirement
|
215
|
-
requirements:
|
216
|
-
- - ">="
|
217
|
-
- !ruby/object:Gem::Version
|
218
|
-
version: '0'
|
219
219
|
description: ".ama.ab.ca site layouts"
|
220
220
|
email:
|
221
221
|
- michael.beuken@gmail.com
|
@@ -239,7 +239,6 @@ files:
|
|
239
239
|
- ".travis.yml"
|
240
240
|
- Gemfile
|
241
241
|
- LICENSE.txt
|
242
|
-
- PULL_REQUEST_TEMPLATE.md
|
243
242
|
- README.md
|
244
243
|
- Rakefile
|
245
244
|
- ama_layout.gemspec
|
@@ -258,10 +257,8 @@ files:
|
|
258
257
|
- app/assets/javascripts/ama_layout/mobile/mobile_menu.coffee
|
259
258
|
- app/assets/javascripts/ama_layout/mobile/ready.coffee
|
260
259
|
- app/assets/javascripts/ama_layout/mobile/tablesaw.stackonly.js
|
261
|
-
- app/assets/javascripts/ama_layout/notifications.coffee
|
262
260
|
- app/assets/javascripts/ama_layout/real_date_picker.coffee
|
263
261
|
- app/config/locales/en.yml
|
264
|
-
- app/controllers/ama_layout/api/v1/notifications_controller.rb
|
265
262
|
- app/helpers/ama_layout_breadcrumb_helper.rb
|
266
263
|
- app/helpers/ama_layout_content_helper.rb
|
267
264
|
- app/helpers/ama_layout_path_helper.rb
|
@@ -275,11 +272,7 @@ files:
|
|
275
272
|
- app/views/ama_layout/_main_top_nav_item.html.erb
|
276
273
|
- app/views/ama_layout/_notice.html.erb
|
277
274
|
- app/views/ama_layout/_notices.html.erb
|
278
|
-
- app/views/ama_layout/_notification.html.erb
|
279
|
-
- app/views/ama_layout/_notification_sidebar.html.erb
|
280
|
-
- app/views/ama_layout/_notifications.html.erb
|
281
275
|
- app/views/ama_layout/_sidebar.html.erb
|
282
|
-
- app/views/ama_layout/_sign_out_link.html.erb
|
283
276
|
- app/views/ama_layout/_siteheader.html.erb
|
284
277
|
- app/views/ama_layout/_sub_nav.html.erb
|
285
278
|
- app/views/ama_layout/_sub_nav_item.html.erb
|
@@ -288,51 +281,31 @@ files:
|
|
288
281
|
- app/views/ama_layout/_top_sub_nav.html.erb
|
289
282
|
- app/views/ama_layout/_top_sub_nav_item.html.erb
|
290
283
|
- app/views/application/_account_toggle.html.erb
|
291
|
-
- config/routes.rb
|
292
284
|
- lib/ama_layout.rb
|
293
285
|
- lib/ama_layout/breadcrumb_builder.rb
|
294
286
|
- lib/ama_layout/controllers/action_controller.rb
|
295
287
|
- lib/ama_layout/decorators/moneris_decorator.rb
|
296
288
|
- lib/ama_layout/decorators/navigation_decorator.rb
|
297
289
|
- lib/ama_layout/decorators/navigation_item_decorator.rb
|
298
|
-
- lib/ama_layout/decorators/notification_decorator.rb
|
299
|
-
- lib/ama_layout/draper_replacement.rb
|
300
290
|
- lib/ama_layout/moneris.rb
|
301
291
|
- lib/ama_layout/moneris/textbox.txt
|
302
292
|
- lib/ama_layout/navigation.rb
|
303
293
|
- lib/ama_layout/navigation.yml
|
304
|
-
- lib/ama_layout/navigation_helper.rb
|
305
294
|
- lib/ama_layout/navigation_item.rb
|
306
|
-
- lib/ama_layout/notification.rb
|
307
|
-
- lib/ama_layout/notification_scrubber.rb
|
308
|
-
- lib/ama_layout/notification_set.rb
|
309
|
-
- lib/ama_layout/notifications.rb
|
310
|
-
- lib/ama_layout/notifications/abstract_store.rb
|
311
|
-
- lib/ama_layout/notifications/redis_store.rb
|
312
295
|
- lib/ama_layout/version.rb
|
313
296
|
- spec/ama_layout/breadcrumb_builder_spec.rb
|
314
|
-
- spec/ama_layout/controllers/ama_layout/api/v1/notifications_controller_spec.rb
|
315
297
|
- spec/ama_layout/controllers/pages_controller_spec.rb
|
316
298
|
- spec/ama_layout/decorators/moneris_decorator_spec.rb
|
317
299
|
- spec/ama_layout/decorators/navigation_decorator_spec.rb
|
318
300
|
- spec/ama_layout/decorators/navigation_item_decorator_spec.rb
|
319
|
-
- spec/ama_layout/decorators/notification_decorator_spec.rb
|
320
301
|
- spec/ama_layout/fixtures/navigation.yml
|
321
302
|
- spec/ama_layout/fixtures/real_date_picker.html
|
322
303
|
- spec/ama_layout/javascripts/real_date_picker_spec.coffee
|
323
304
|
- spec/ama_layout/moneris_spec.rb
|
324
|
-
- spec/ama_layout/navigation_helper_spec.rb
|
325
305
|
- spec/ama_layout/navigation_item_spec.rb
|
326
306
|
- spec/ama_layout/navigation_spec.rb
|
327
|
-
- spec/ama_layout/notification_scrubber_spec.rb
|
328
|
-
- spec/ama_layout/notification_set_spec.rb
|
329
|
-
- spec/ama_layout/notification_spec.rb
|
330
|
-
- spec/ama_layout/notifications/abstract_store_spec.rb
|
331
|
-
- spec/ama_layout/notifications/redis_store_spec.rb
|
332
|
-
- spec/ama_layout/notifications_spec.rb
|
333
307
|
- spec/factories/navigation.rb
|
334
308
|
- spec/factories/navigation_item.rb
|
335
|
-
- spec/factories/users.rb
|
336
309
|
- spec/helpers/ama_layout_breadcrumb_helper_spec.rb
|
337
310
|
- spec/helpers/ama_layout_content_helper_spec.rb
|
338
311
|
- spec/helpers/ama_layout_path_helper_spec.rb
|
@@ -344,8 +317,8 @@ files:
|
|
344
317
|
- spec/internal/log/.gitignore
|
345
318
|
- spec/internal/public/favicon.ico
|
346
319
|
- spec/spec_helper.rb
|
347
|
-
-
|
348
|
-
homepage:
|
320
|
+
- styles.scss
|
321
|
+
homepage: ''
|
349
322
|
licenses:
|
350
323
|
- MIT
|
351
324
|
metadata: {}
|
@@ -360,39 +333,29 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
360
333
|
version: '0'
|
361
334
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
362
335
|
requirements:
|
363
|
-
- - "
|
336
|
+
- - ">"
|
364
337
|
- !ruby/object:Gem::Version
|
365
|
-
version:
|
338
|
+
version: 1.3.1
|
366
339
|
requirements: []
|
367
340
|
rubyforge_project:
|
368
|
-
rubygems_version: 2.5.1
|
341
|
+
rubygems_version: 2.4.5.1
|
369
342
|
signing_key:
|
370
343
|
specification_version: 4
|
371
344
|
summary: ".ama.ab.ca site layouts"
|
372
345
|
test_files:
|
373
346
|
- spec/ama_layout/breadcrumb_builder_spec.rb
|
374
|
-
- spec/ama_layout/controllers/ama_layout/api/v1/notifications_controller_spec.rb
|
375
347
|
- spec/ama_layout/controllers/pages_controller_spec.rb
|
376
348
|
- spec/ama_layout/decorators/moneris_decorator_spec.rb
|
377
349
|
- spec/ama_layout/decorators/navigation_decorator_spec.rb
|
378
350
|
- spec/ama_layout/decorators/navigation_item_decorator_spec.rb
|
379
|
-
- spec/ama_layout/decorators/notification_decorator_spec.rb
|
380
351
|
- spec/ama_layout/fixtures/navigation.yml
|
381
352
|
- spec/ama_layout/fixtures/real_date_picker.html
|
382
353
|
- spec/ama_layout/javascripts/real_date_picker_spec.coffee
|
383
354
|
- spec/ama_layout/moneris_spec.rb
|
384
|
-
- spec/ama_layout/navigation_helper_spec.rb
|
385
355
|
- spec/ama_layout/navigation_item_spec.rb
|
386
356
|
- spec/ama_layout/navigation_spec.rb
|
387
|
-
- spec/ama_layout/notification_scrubber_spec.rb
|
388
|
-
- spec/ama_layout/notification_set_spec.rb
|
389
|
-
- spec/ama_layout/notification_spec.rb
|
390
|
-
- spec/ama_layout/notifications/abstract_store_spec.rb
|
391
|
-
- spec/ama_layout/notifications/redis_store_spec.rb
|
392
|
-
- spec/ama_layout/notifications_spec.rb
|
393
357
|
- spec/factories/navigation.rb
|
394
358
|
- spec/factories/navigation_item.rb
|
395
|
-
- spec/factories/users.rb
|
396
359
|
- spec/helpers/ama_layout_breadcrumb_helper_spec.rb
|
397
360
|
- spec/helpers/ama_layout_content_helper_spec.rb
|
398
361
|
- spec/helpers/ama_layout_path_helper_spec.rb
|
@@ -404,4 +367,3 @@ test_files:
|
|
404
367
|
- spec/internal/log/.gitignore
|
405
368
|
- spec/internal/public/favicon.ico
|
406
369
|
- spec/spec_helper.rb
|
407
|
-
- spec/support/shared_examples/member_navigation.rb
|