bookends 2.3.4 → 2.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +4 -0
- data/fixtures/dummy-jekyll/.gitkeep +0 -0
- data/lib/bookends/templates/jekyll_header.html +3 -3
- data/lib/bookends/templates/newsletter-init-turbolinks.js +1 -1
- data/lib/bookends/templates/newsletter.js +12 -12
- data/lib/bookends/templates/rails_header.html.erb +5 -5
- data/lib/bookends/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e96b71fb3edb33f8b7b04f5b70ba99cd5716cc3d
|
|
4
|
+
data.tar.gz: 1f4ccca209310022d12b01ba95be007c699c6f8f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bf8bb6a30d4be26bd7b725618df5af290239c0f62d6e2527a12f8a5bf85cbec4e5f387b70e9263f78b38049380a14b0fe56ae1925c474d5e9a39efe67b8078c1
|
|
7
|
+
data.tar.gz: 85aaf1551df65df40fb6f303efba5a9254f279a2a59f2cfda48773958459dc816c6f8b3d3f41ec0bbab2f2d4f3ee1f0ee0492fa9b8cb13bb2deab9f5b297f945
|
data/.travis.yml
CHANGED
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<header id="header">
|
|
2
2
|
<div id="navigation" role="navigation">
|
|
3
|
-
<span class="mobile-nav">
|
|
3
|
+
<span class="mobile-nav" aria-hidden="true">
|
|
4
4
|
Show nav
|
|
5
5
|
<span></span>
|
|
6
6
|
<span></span>
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
</span>
|
|
10
10
|
|
|
11
11
|
<div class="wrapper wrapper-full">
|
|
12
|
-
<
|
|
12
|
+
<div id="logo">
|
|
13
13
|
<a href="https://www.heroku.com/home">Heroku</a>
|
|
14
|
-
</
|
|
14
|
+
</div>
|
|
15
15
|
|
|
16
16
|
<div class="nav-wrapper">
|
|
17
17
|
|
|
@@ -4,13 +4,13 @@ var bind = function(fn, me){ return function(){ return fn.apply(me, arguments);
|
|
|
4
4
|
Heroku.NewsletterSignup = (function() {
|
|
5
5
|
function NewsletterSignup() {
|
|
6
6
|
this.handleSubmit = bind(this.handleSubmit, this);
|
|
7
|
-
this.$container = $(
|
|
8
|
-
this.$honeyPot = this.$container.find(
|
|
9
|
-
this.$input = this.$container.find(
|
|
10
|
-
this.$submit = this.$container.find(
|
|
11
|
-
this.$resultContainer = $(
|
|
7
|
+
this.$container = $('#bookends-newsletter');
|
|
8
|
+
this.$honeyPot = this.$container.find('#bookends-website');
|
|
9
|
+
this.$input = this.$container.find('input[type=email]');
|
|
10
|
+
this.$submit = this.$container.find(':submit');
|
|
11
|
+
this.$resultContainer = $('#bookends-newsletter-result');
|
|
12
12
|
|
|
13
|
-
this.$container.on(
|
|
13
|
+
this.$container.on('submit', this.handleSubmit);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
NewsletterSignup.prototype.handleSubmit = function(e) {
|
|
@@ -18,15 +18,15 @@ Heroku.NewsletterSignup = (function() {
|
|
|
18
18
|
var self;
|
|
19
19
|
|
|
20
20
|
e.preventDefault();
|
|
21
|
-
if(this.$honeyPot.val() !==
|
|
21
|
+
if(this.$honeyPot.val() !== '') {
|
|
22
22
|
return this.handleSuccess();
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
val = this.$input.val();
|
|
26
26
|
self = this;
|
|
27
27
|
$.ajax({
|
|
28
|
-
url:
|
|
29
|
-
type:
|
|
28
|
+
url: 'https://www.heroku.com/newsletter_signups',
|
|
29
|
+
type: 'POST',
|
|
30
30
|
crossDomain: true,
|
|
31
31
|
data: { newsletter_signup: { email: val } }
|
|
32
32
|
})
|
|
@@ -39,14 +39,14 @@ Heroku.NewsletterSignup = (function() {
|
|
|
39
39
|
};
|
|
40
40
|
|
|
41
41
|
NewsletterSignup.prototype.handleSuccess = function() {
|
|
42
|
-
this.$input.replaceWith(
|
|
42
|
+
this.$input.replaceWith('<p>Check your email now to confirm your sign-up.</p>');
|
|
43
43
|
};
|
|
44
44
|
|
|
45
45
|
NewsletterSignup.prototype.handleFailure = function() {
|
|
46
46
|
this.$input.val("");
|
|
47
47
|
this.$resultContainer
|
|
48
|
-
.removeClass(
|
|
49
|
-
.text(
|
|
48
|
+
.removeClass('hide')
|
|
49
|
+
.text('There was an error registering you. Please refresh.');
|
|
50
50
|
};
|
|
51
51
|
|
|
52
52
|
return NewsletterSignup;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<header id="header">
|
|
2
2
|
<nav id="navigation" role="navigation">
|
|
3
|
-
<span class="mobile-nav">
|
|
3
|
+
<span class="mobile-nav" aria-hidden="true">
|
|
4
4
|
Show nav
|
|
5
5
|
<span></span>
|
|
6
6
|
<span></span>
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
</span>
|
|
10
10
|
|
|
11
11
|
<div class="wrapper-full">
|
|
12
|
-
<
|
|
13
|
-
<a href="https://www.heroku.com/home">Heroku</a>
|
|
14
|
-
</
|
|
12
|
+
<div id="logo">
|
|
13
|
+
<a id="logo"href="https://www.heroku.com/home">Heroku</a>
|
|
14
|
+
</div>
|
|
15
15
|
<div class="nav-wrapper">
|
|
16
16
|
<ul class="main-nav">
|
|
17
17
|
<li class="has-dropdown">
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
<section class="more-resources">
|
|
42
42
|
<span class="more-title">Additional Resources</span>
|
|
43
43
|
<ul>
|
|
44
|
-
<li><a href="https://www.heroku.com/what">What
|
|
44
|
+
<li><a href="https://www.heroku.com/what">What is Heroku?</a></li>
|
|
45
45
|
<li><a href="https://www.heroku.com/help">Help</a></li>
|
|
46
46
|
<li><a href="https://www.heroku.com/customers">Customers</a></li>
|
|
47
47
|
<li><a href="https://www.heroku.com/careers">Careers</a></li>
|
data/lib/bookends/version.rb
CHANGED
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: 2.3.
|
|
4
|
+
version: 2.3.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Marketing Web Ops at heroku
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-03-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: thor
|
|
@@ -155,6 +155,7 @@ files:
|
|
|
155
155
|
- bin/bookends
|
|
156
156
|
- bin/setup
|
|
157
157
|
- bookends.gemspec
|
|
158
|
+
- fixtures/dummy-jekyll/.gitkeep
|
|
158
159
|
- fixtures/dummy-rails/README.md
|
|
159
160
|
- fixtures/dummy-rails/Rakefile
|
|
160
161
|
- fixtures/dummy-rails/app/assets/fonts/bentonsans-book.eot
|
|
@@ -254,7 +255,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
254
255
|
version: '0'
|
|
255
256
|
requirements: []
|
|
256
257
|
rubyforge_project:
|
|
257
|
-
rubygems_version: 2.4.
|
|
258
|
+
rubygems_version: 2.4.8
|
|
258
259
|
signing_key:
|
|
259
260
|
specification_version: 4
|
|
260
261
|
summary: an engine to abstract common html/css elements across Heroku properties
|