octopress-social 1.4.1 → 1.4.2

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
  SHA1:
3
- metadata.gz: 5b27b594472a3bee6b57fcabbac74abca1c50815
4
- data.tar.gz: 587d0237852ed9b7b766f557ffa4c12c4c6f7e3f
3
+ metadata.gz: 6f1eccb0867450fa0a689a2a908c3f3bf08c81cf
4
+ data.tar.gz: 90f9fdd3427c646bf56e8a07f9a23b4706eaec5c
5
5
  SHA512:
6
- metadata.gz: 3f53135023ff92f843ceacd311d2015b210f1817700f690a38be302f41b415717272b1bfc2fa991af92b1e01c5fc17ffd98d4553e6d09bcc76431a7c53873fd9
7
- data.tar.gz: 230dfffc3171a891d789f8810e57287f206199c3a47e55fa6d9b7659fff81275b63396a541768bededb4c923b59e58d8366d8e593f41ce8590d09df9c0f9f36a
6
+ metadata.gz: b6538401784377eeabb3ae4257ee259b9ed5f2d3fa726e4b9533c559f771df0c0549c1f2f65032c9a587a0d37a4551824758fcc63327d0a4e63278b9700c6c7a
7
+ data.tar.gz: c6d00a7f93cb35aaf298d06bf877918c7b78c2cc524a4b483bc96ffd9d7e00bd77d917b63148facdace68de5fb8db4fddb75cf5db6fc11ec05eb960f4839985f
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ### 1.4.2 (2015-04-01)
4
+ - Fix: Doesn't break if email address configured as a top level key, e.g. `email: me@example.com`.
5
+
3
6
  ### 1.4.1 (2015-03-24)
4
7
  - Fix: Added title attribute for email share link.
5
8
 
@@ -18,7 +18,11 @@ module Octopress
18
18
  def set_config(site)
19
19
  @config ||= begin
20
20
  config = site['octopress_social'] || site
21
- DEFAULTS.merge(config['email'] || {})
21
+ if config['email'] && config['email'].is_a?(String) && config['email'].include?('@')
22
+ DEFAULTS.merge({'address' => config['email']} || {})
23
+ else
24
+ DEFAULTS.merge(config['email'] || {})
25
+ end
22
26
  end
23
27
  end
24
28
 
@@ -1,5 +1,5 @@
1
1
  module Octopress
2
2
  module Social
3
- VERSION = "1.4.1"
3
+ VERSION = "1.4.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octopress-social
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-25 00:00:00.000000000 Z
11
+ date: 2015-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll