bookends 10.1.1 → 10.2.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aba10072411aecdbd351392e444e269cca46b36327e5631508567d6816ff808d
4
- data.tar.gz: bc6ba21a2a3f904e24d8dfe2344747222b962ff1ceb7857f4e21460e06718e8f
3
+ metadata.gz: 157524bf4d346b2b85a00ed246ccfdf55697fbf51b88a5af2f58c867a9cbfd2d
4
+ data.tar.gz: 71596c9a6eccbeaf1977caaced3dd514d29c83043dbb4fde97ebe3564fd09ed1
5
5
  SHA512:
6
- metadata.gz: 250483664e71b5b89b87ae54787f3a138e4c8d145edc6e9fd5e44c8c024608e4c040dc6c1d48ce79d1d01858d77136e8b54de23e478f07880f44895fe24c5b39
7
- data.tar.gz: 5e6aa394ad9378f09a6e002fcab15e6c6e42668a154a48fe7f7599c949d21f7cc3a1e3b319f6f183b02b8bc174c4218d0801345718960560354c15ce04d89f7c
6
+ metadata.gz: 3effbeb35ca35c91979ae49abe4b3151861a3efb6cceaf0d092198eb63600b2a18d9d539df8c851be9a859f839ff820f7bb4c400c692df0662e810b5e0325028
7
+ data.tar.gz: 541e761041e7938b42c49a0480203ab02262d779c13a0be151e35788efa62bf9fbcae7b0b00fedbe91bdec66cba9b81ea596c8a5e792734a2b27674971a38d7d
@@ -12,5 +12,4 @@
12
12
  @import 'search';
13
13
  @import 'search-page';
14
14
  @import 'footer';
15
- @import 'cookie-banner';
16
15
  @import 'helpers';
@@ -7,7 +7,7 @@
7
7
  <li><a href="<%= Bookends::Config.host_www %>/platform">Heroku Platform</a></li>
8
8
  <li><a href="<%= Bookends::Config.host_www %>/managed-data-services">Heroku Data Services</a></li>
9
9
  <li><a href="<%= Bookends::Config.host_www %>/postgres">Heroku Postgres</a></li>
10
- <li><a href="<%= Bookends::Config.host_www %>/redis">Heroku Redis</a></li>
10
+ <li><a href="<%= Bookends::Config.host_www %>/redis">Heroku Data for Redis</a></li>
11
11
  <li><a href="<%= Bookends::Config.host_www %>/kafka">Apache Kafka on Heroku</a></li>
12
12
  <li><a href="<%= Bookends::Config.host_www %>/enterprise">Heroku Enterprise</a></li>
13
13
  <li><a href="<%= Bookends::Config.host_www %>/private-spaces">Heroku Private Spaces</a></li>
@@ -91,7 +91,7 @@
91
91
  <li><a class="heroku-footer-icon-instagram" href="https://instagram.com/heroku" target="_blank" aria-label="Opens in new window" title="Heroku's Instagram">Instagram</a></li>
92
92
  <li><a class="heroku-footer-icon-github" href="https://github.com/heroku" target="_blank" aria-label="Opens in new window" title="Heroku's GitHub">GitHub</a></li>
93
93
  <li><a class="heroku-footer-icon-linkedin" href="https://www.linkedin.com/company/heroku" target="_blank" aria-label="Opens in new window" title="Heroku's LinkedIn">LinkedIn</a></li>
94
- <li><a class="heroku-footer-icon-youtube" href="https://www.youtube.com/c/HerokuOfficial" target="_blank" aria-label="Opens in new window" title="Heroku's YouTube">YouTube</a></li>
94
+ <li><a class="heroku-footer-icon-youtube" href="https://www.youtube.com/c/SalesforceDevelopers/community" target="_blank" aria-label="Opens in new window" title="Heroku's YouTube">YouTube</a></li>
95
95
  </ul>
96
96
  <% if ENV['BOOKENDS_JP_LINK'] == 'true' %>
97
97
  <div class="language-select">
@@ -108,9 +108,10 @@
108
108
  <div class="col">
109
109
  <ul>
110
110
  <li><a href="<%= Bookends::Config.host_www %>/home">heroku.com</a></li>
111
- <li><a href="<%= Bookends::Config.host_www %>/policy/salesforce-heroku-msa" rel="nofollow">Terms of Service</a></li>
111
+ <li><a href="<%= ENV['BOOKENDS_TOS_URL'] || 'https://www.salesforce.com/company/legal/sfdc-website-terms-of-service/' %>" rel="nofollow">Terms of Service</a></li>
112
112
  <li><a href="https://www.salesforce.com/company/privacy/" rel="nofollow">Privacy</a></li>
113
113
  <li><a href="https://www.salesforce.com/company/privacy/full_privacy.jsp#nav_info" rel="nofollow">Cookies</a></li>
114
+ <li><a class="optanon-toggle-display" rel="nofollow" href="#">Cookie Preferences</a></li>
114
115
  <li class="copyright">
115
116
  &copy;
116
117
  <%= Date.current.year %>
@@ -1,5 +1,3 @@
1
- <div id="heroku-cookie-banner"></div>
2
-
3
1
  <!--googleoff: anchor-->
4
2
  <a class="visuallyhidden skip-link" href="#skip-link">Skip Navigation</a>
5
3
  <!--googleon: anchor-->
@@ -44,7 +42,7 @@
44
42
  <a class="bookends-icon data" href="<%= Bookends::Config.host_www %>/managed-data-services">Heroku Data Services</a>
45
43
  <ul class="dropdown wide">
46
44
  <li><a class="bookends-icon postgres" href="<%= Bookends::Config.host_www %>/postgres">Heroku Postgres</a></li>
47
- <li><a class="bookends-icon redis" href="<%= Bookends::Config.host_www %>/redis">Heroku Redis</a></li>
45
+ <li><a class="bookends-icon redis" href="<%= Bookends::Config.host_www %>/redis">Heroku Data for Redis</a></li>
48
46
  <li><a class="bookends-icon kafka" href="<%= Bookends::Config.host_www %>/kafka">Apache Kafka on Heroku</a></li>
49
47
  </ul>
50
48
  </li>
@@ -71,28 +69,6 @@
71
69
  <li><a id="pricing-head" href="<%= Bookends::Config.host_www %>/pricing">Pricing</a></li>
72
70
  <li><a id="doc-head" href="<%= Bookends::Config.host_dev_center %>">Documentation</a></li>
73
71
  <li><a href="<%= Bookends::Config.host_www %>/support">Support</a></li>
74
- <% if ENV['COVID_HEADER_MENU_ENABLED'] == 'true' %>
75
- <li class="has-dropdown">
76
- <a class="" href="#">COVID-19</a>
77
- <ul class="dropdown wider">
78
- <% if ENV['WORK_COM_IN_COVID_HEADER'] == 'true' %>
79
- <li><%= link_to_new_window('Work.com', 'https://www.salesforce.com/work', class: 'bookends-icon bullet') %></li>
80
- <% end %>
81
- <li><%= link_to_new_window('Leading Through Change with Data', 'https://www.tableau.com/leading-through-change?placement=homepage&utm_medium=Referral&utm_source=Salesforce', class: 'bookends-icon bullet') %></li>
82
- <li><%= link_to_new_window('COVID-19 Data Hub', 'https://www.tableau.com/covid-19-coronavirus-data-resources?placement=homepage&utm_medium=Referral&utm_source=Salesforce', class: 'bookends-icon bullet') %></li>
83
- <li><%= link_to_new_window('COVID-19 Global Daily Tracker', 'https://www.tableau.com/covid-19-coronavirus-data-resources/global-tracker?placement=homepage&utm_medium=Referral&utm_source=Salesforce', class: 'bookends-icon bullet') %></li>
84
- <li><%= link_to_new_window('Global Economy Data Track', 'https://www.tableau.com/covid-19-coronavirus-data-resources/economy-data-track?placement=homepage&utm_medium=Referral&utm_source=Salesforce', class: 'bookends-icon bullet') %></li>
85
- <li><%= link_to_new_window('Government Data Track', 'https://www.tableau.com/covid-19-coronavirus-data-resources/government-data-track?placement=homepage&utm_medium=Referral&utm_source=Salesforce', class: 'bookends-icon bullet') %></li>
86
- <li><%= link_to_new_window('Healthcare Data Track', 'https://www.tableau.com/covid-19-coronavirus-data-resources/healthcare-data-track?placement=homepage&utm_medium=Referral&utm_source=Salesforce', class: 'bookends-icon bullet') %></li>
87
- <li><%= link_to_new_window('B-Well Together', 'https://www.salesforce.com/resources/videos/be-well/?d=cta-glob-nav-5', class: 'bookends-icon bullet') %></li>
88
- <li><%= link_to_new_window('Leading Through Change', 'https://www.salesforce.com/resources/leading-through-change/#!page=1', class: 'bookends-icon bullet') %></li>
89
- <li><%= link_to_new_window('Salesforce Care', 'https://www.salesforce.com/solutions/covid-19-response/overview/?d=cta-glob-nav-7', class: 'bookends-icon bullet') %></li>
90
- <li><%= link_to_new_window('Trailhead Resources', 'https://trailhead.salesforce.com/users/strailhead/trailmixes/trailhead-resources-during-covid-19?utm_source=salesforce_properties&utm_medium=global_nav&utm_campaign=covid19&utm_content=covid_resources_trailmix', class: 'bookends-icon bullet') %></li>
91
- <li><%= link_to_new_window('AppExchange Resources', 'https://appexchange.salesforce.com/mktcollections/curated/c19response?d=cta-nav-external', class: 'bookends-icon bullet') %></li>
92
- <li><%= link_to_new_window('MuleSoft Resources', 'https://www.mulesoft.com/resources/covid-19', class: 'bookends-icon bullet') %></li>
93
- </ul>
94
- </li>
95
- <% end %>
96
72
  <li class="has-dropdown">
97
73
  <a class="nav-more" href="#">More</a>
98
74
  <div class="dropdown more">
@@ -1,3 +1,3 @@
1
1
  module Bookends
2
- VERSION = '10.1.1'.freeze
2
+ VERSION = '10.2.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bookends
3
3
  version: !ruby/object:Gem::Version
4
- version: 10.1.1
4
+ version: 10.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marketing Web Ops at heroku
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-05 00:00:00.000000000 Z
11
+ date: 2022-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -78,6 +78,20 @@ dependencies:
78
78
  - - "~>"
79
79
  - !ruby/object:Gem::Version
80
80
  version: '9.0'
81
+ - !ruby/object:Gem::Dependency
82
+ name: execjs
83
+ requirement: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - '='
86
+ - !ruby/object:Gem::Version
87
+ version: 2.7.0
88
+ type: :runtime
89
+ prerelease: false
90
+ version_requirements: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - '='
93
+ - !ruby/object:Gem::Version
94
+ version: 2.7.0
81
95
  - !ruby/object:Gem::Dependency
82
96
  name: fernet
83
97
  requirement: !ruby/object:Gem::Requirement
@@ -221,7 +235,6 @@ files:
221
235
  - app/assets/images/nav-flyout-caret.svg
222
236
  - app/assets/javascripts/blog-fetcher.js
223
237
  - app/assets/javascripts/bookends.js
224
- - app/assets/javascripts/cookie-banner.js
225
238
  - app/assets/javascripts/heroku-namespace.js
226
239
  - app/assets/javascripts/lscache.js
227
240
  - app/assets/javascripts/md5.js
@@ -237,7 +250,6 @@ files:
237
250
  - app/assets/javascripts/vendor/algoliasearch.js
238
251
  - app/assets/stylesheets/bookends/_base.scss
239
252
  - app/assets/stylesheets/bookends/_colors.scss
240
- - app/assets/stylesheets/bookends/_cookie-banner.scss
241
253
  - app/assets/stylesheets/bookends/_fonts.scss
242
254
  - app/assets/stylesheets/bookends/_footer.scss
243
255
  - app/assets/stylesheets/bookends/_glostick.scss
@@ -308,8 +320,6 @@ files:
308
320
  - spec/test_app/config/routes.rb
309
321
  - spec/test_app/config/secrets.yml
310
322
  - spec/test_app/db/development.sqlite3
311
- - spec/test_app/db/test.sqlite3
312
- - spec/test_app/log/test.log
313
323
  - spec/test_app/public/404.html
314
324
  - spec/test_app/public/422.html
315
325
  - spec/test_app/public/500.html
@@ -317,7 +327,7 @@ files:
317
327
  homepage: https://www.heroku.com
318
328
  licenses: []
319
329
  metadata: {}
320
- post_install_message:
330
+ post_install_message:
321
331
  rdoc_options: []
322
332
  require_paths:
323
333
  - lib
@@ -332,8 +342,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
332
342
  - !ruby/object:Gem::Version
333
343
  version: '0'
334
344
  requirements: []
335
- rubygems_version: 3.2.6
336
- signing_key:
345
+ rubygems_version: 3.3.18
346
+ signing_key:
337
347
  specification_version: 4
338
348
  summary: an engine to abstract common html/css elements across Heroku properties
339
349
  test_files:
@@ -378,9 +388,7 @@ test_files:
378
388
  - spec/test_app/public/422.html
379
389
  - spec/test_app/public/500.html
380
390
  - spec/test_app/public/404.html
381
- - spec/test_app/db/test.sqlite3
382
391
  - spec/test_app/db/development.sqlite3
383
- - spec/test_app/log/test.log
384
392
  - spec/test_app/README.rdoc
385
393
  - spec/helpers/bookends/application_helper_spec.rb
386
394
  - spec/services/bookends/glostick_user_extractor_spec.rb
@@ -1,49 +0,0 @@
1
- // Uses cookies to see if users have dismissed the cookie banner.
2
- // If they haven't, inserts the banner:
3
- // - if an element with ID = Heroku.CookieBanner.domElementId exists, inserts the content of the banner there
4
- // - if not, inserts the banner at the top of the body element
5
- var Heroku = Heroku || {};
6
-
7
- Heroku.CookieBanner = {
8
- cookieName : 'heroku-cookie-banner-dismissed',
9
- cookieDismissedValue : '1',
10
- domElementId : 'heroku-cookie-banner',
11
- domain : '.heroku.com', // accessible to all subdomains
12
- init : function() {
13
- var dismissed = Heroku.CookieBanner.getCookie(Heroku.CookieBanner.cookieName) == Heroku.CookieBanner.cookieDismissedValue;
14
- if (!dismissed) {
15
- Heroku.CookieBanner.insert();
16
- }
17
- },
18
- insert : function() {
19
- var html = '<div class="heroku-cookie-banner" aria-live="polite" role="status"><p>We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used and to tailor advertising. You can <a href="https://www.salesforce.com/company/privacy/full_privacy.jsp#nav_info">read more</a> and <a href="https://www.salesforce.com/company/privacy/full_privacy.jsp#nav_info">make your cookie choices here</a>. By continuing to use this site you are giving us your consent to do this.</p> <a class="heroku-cookie-banner__dismiss" href="#" onclick="Heroku.CookieBanner.dismiss(event)"><svg viewBox="0 0 16 16"><path fill-rule="evenodd" d="M6.663 8.01l-3.362 3.362a.955.955 0 0 0-.005 1.352.953.953 0 0 0 1.352-.005L8.01 9.357l3.362 3.362a.955.955 0 0 0 1.352.005.953.953 0 0 0-.005-1.352L9.357 8.01l3.362-3.362a.955.955 0 0 0 .005-1.352.953.953 0 0 0-1.352.005L8.01 6.663 4.648 3.301a.955.955 0 0 0-1.352-.005.953.953 0 0 0 .005 1.352L6.663 8.01z"></path></svg></a></div>';
20
- var placeholder = document.getElementById('heroku-cookie-banner');
21
- if (placeholder) {
22
- placeholder.innerHTML = html;
23
- } else {
24
- var banner = document.createElement('div');
25
- banner.setAttribute('id', Heroku.CookieBanner.domElementId);
26
- banner.innerHTML = html;
27
- document.body.insertBefore(banner, document.body.childNodes[0]);
28
- }
29
- },
30
- getCookie: function(name) {
31
- var v = document.cookie.match('(^|;) ?' + name + '=([^;]*)(;|$)');
32
- return v ? v[2] : null;
33
- },
34
- setCookie : function(name, value, domain, days) {
35
- var d = new Date;
36
- d.setTime(d.getTime() + 24*60*60*1000*days);
37
- document.cookie = name + '=' + value + ';domain=' + domain + ';path=/;expires=' + d.toGMTString();
38
- },
39
- dismiss : function(event) {
40
- Heroku.CookieBanner.setCookie(Heroku.CookieBanner.cookieName, Heroku.CookieBanner.cookieDismissedValue, Heroku.CookieBanner.domain, 365);
41
- var cookieBanner = document.getElementById(Heroku.CookieBanner.domElementId);
42
- cookieBanner.parentElement.removeChild(cookieBanner);
43
- event.preventDefault();
44
- }
45
- };
46
-
47
- document.addEventListener("DOMContentLoaded", function(event) {
48
- Heroku.CookieBanner.init();
49
- });
@@ -1,91 +0,0 @@
1
- /* Cookie Banner */
2
-
3
- .heroku-cookie-banner {
4
- background: #F9F9FB;
5
- font-family: inherit;
6
- line-height: 1.4;
7
- box-shadow: 0 0 0 1px rgba(89,105,128,0.05),0 3px 20px 0 rgba(89,105,128,0.1),0 1px 2px 0 rgba(0,0,0,0.05);
8
- position: relative;
9
- z-index: 1000;
10
- display: flex;
11
- }
12
-
13
- .heroku-cookie-banner a {
14
- color: #1969ca;
15
- }
16
-
17
- .heroku-cookie-banner.heroku-cookie-banner p {
18
- margin: 0;
19
- padding: 0;
20
- color: #333D47;
21
- padding: 15px 20px;
22
- max-width: 1024px;
23
- margin-right: auto;
24
- font-size: 14px;
25
- line-height: 1.4;
26
- }
27
-
28
- .heroku-cookie-banner__dismiss {
29
- border-left: 1px solid #e7e7e7;
30
- display: flex;
31
- padding: 20px;
32
- transition: background-color 0.3s;
33
- }
34
-
35
- .heroku-cookie-banner__dismiss:hover {
36
- background-color: #F0F7FF;
37
- }
38
-
39
- .heroku-cookie-banner__dismiss svg {
40
- width: 16px;
41
- height: 100%;
42
- fill: currentColor;
43
- vertical-align: middle;
44
- }
45
-
46
- /* Media Queries */
47
-
48
- @media (max-width: 600px) {
49
- .heroku-cookie-banner {
50
- font-size: 13px;
51
- flex-direction: column;
52
- }
53
-
54
- .heroku-cookie-banner p,
55
- .heroku-cookie-banner__dismiss {
56
- padding: 15px;
57
- }
58
-
59
- .heroku-cookie-banner__dismiss {
60
- text-decoration: none;
61
- border-top: 1px solid #eee;
62
- border-left: none;
63
- }
64
-
65
- .heroku-cookie-banner__dismiss::after {
66
- content: "Dismiss";
67
- padding-left: 10px;
68
- }
69
-
70
- .heroku-cookie-banner__dismiss svg {
71
- height: 16px;
72
- }
73
- }
74
-
75
- /* Overrides */
76
- /* Banner mode */
77
- #heroku-cookie-banner.banner-mode .heroku-cookie-banner {
78
- border-radius: 3px;
79
- margin: 20px auto;
80
- z-index: 0;
81
- max-width: 1024px;
82
- }
83
-
84
- /* Overrides */
85
- /* Fixed mode */
86
- #heroku-cookie-banner.fixed-mode .heroku-cookie-banner {
87
- position: fixed;
88
- top: 0;
89
- left: 0;
90
- width: 100%;
91
- }
File without changes
@@ -1,39 +0,0 @@
1
-  (1.3ms) SELECT sqlite_version(*)
2
- TRANSACTION (0.0ms) begin transaction
3
- TRANSACTION (0.0ms) rollback transaction
4
-  (0.8ms) SELECT sqlite_version(*)
5
- TRANSACTION (0.0ms) begin transaction
6
- TRANSACTION (0.0ms) rollback transaction
7
-  (0.8ms) SELECT sqlite_version(*)
8
- TRANSACTION (0.0ms) begin transaction
9
- TRANSACTION (0.0ms) rollback transaction
10
-  (1.1ms) SELECT sqlite_version(*)
11
- TRANSACTION (0.0ms) begin transaction
12
- TRANSACTION (0.0ms) rollback transaction
13
- TRANSACTION (0.1ms) begin transaction
14
- TRANSACTION (0.0ms) rollback transaction
15
- TRANSACTION (0.1ms) begin transaction
16
- TRANSACTION (0.0ms) rollback transaction
17
- TRANSACTION (0.0ms) begin transaction
18
- TRANSACTION (0.0ms) rollback transaction
19
- TRANSACTION (0.0ms) begin transaction
20
- TRANSACTION (0.0ms) rollback transaction
21
- TRANSACTION (0.0ms) begin transaction
22
- TRANSACTION (0.0ms) rollback transaction
23
- TRANSACTION (0.0ms) begin transaction
24
- TRANSACTION (0.0ms) rollback transaction
25
-  (0.9ms) SELECT sqlite_version(*)
26
- TRANSACTION (0.0ms) begin transaction
27
- TRANSACTION (0.0ms) rollback transaction
28
- TRANSACTION (0.0ms) begin transaction
29
- TRANSACTION (0.0ms) rollback transaction
30
- TRANSACTION (0.0ms) begin transaction
31
- TRANSACTION (0.0ms) rollback transaction
32
- TRANSACTION (0.0ms) begin transaction
33
- TRANSACTION (0.0ms) rollback transaction
34
- TRANSACTION (0.0ms) begin transaction
35
- TRANSACTION (0.0ms) rollback transaction
36
- TRANSACTION (0.0ms) begin transaction
37
- TRANSACTION (0.0ms) rollback transaction
38
- TRANSACTION (0.0ms) begin transaction
39
- TRANSACTION (0.0ms) rollback transaction