jekyll-seo-tag 0.1.2 → 0.1.3

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: c1173f90595476514c015ea14be74a504e109597
4
- data.tar.gz: 5545fb1e6fb37db7fa963bcce697ed7add4202e8
3
+ metadata.gz: 8cdff06231b75a2ecb150cdfb81cdb801313ddb8
4
+ data.tar.gz: 03934ef692a5c3ab070ca620f3e5ad564b4ba334
5
5
  SHA512:
6
- metadata.gz: 7426c7c29c8d4311d241c4b27d81d53c101bcb3d99cb943f74fcfda10916a2b22670ae28bfd5ece067c01c2840c48a67354d6a12313b81b8662551a1ea4dac26
7
- data.tar.gz: 558066a99ba9c378bffe20b8fbe64b7b7290b63bff1d4347a129dfd70336b9ec582a67ed82d367cfd6cbca0696781099c509b2f57056625941fd8ce6bd76825c
6
+ metadata.gz: 103731eadffe841e6955ea3669413d48f9445cfd2e90e94f9218ea6ab3b9dc8071215b37f080891dabd0f888978e2cf7f1abd90bd5d26c09f05035868bddb4c6
7
+ data.tar.gz: 28f7a0d315788fc49df2132e56e471b9bcd4e4c5089c21bef1e40ce7c648b55fb50843655c438b09ef2ccc053f597327d5a99ad1d94dc1adbbdb1119601b3830
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "jekyll-seo-tag"
7
- spec.version = "0.1.2"
7
+ spec.version = "0.1.3"
8
8
  spec.authors = ["Ben Balter"]
9
9
  spec.email = ["ben.balter@github.com"]
10
10
  spec.summary = %q{A Jekyll plugin to add metadata tags for search engines and social networks to better index and display your site's content.}
@@ -5,7 +5,16 @@ module Jekyll
5
5
 
6
6
  def render(context)
7
7
  @context = context
8
- Liquid::Template.parse(template_contents).render!(payload, info).gsub(/[\n\s]{2,}/, "\n")
8
+ output = Liquid::Template.parse(template_contents).render!(payload, info)
9
+
10
+ # Minify
11
+ output.gsub!(/[\s]{2,}/, "\n")
12
+
13
+ # Encode smart quotes. See https://github.com/benbalter/jekyll-seo-tag/pull/6
14
+ output.gsub!("\u201c", "“")
15
+ output.gsub!("\u201d", "”")
16
+
17
+ output
9
18
  end
10
19
 
11
20
  private
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-seo-tag
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Balter
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-11-01 00:00:00.000000000 Z
11
+ date: 2015-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -121,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
121
  version: '0'
122
122
  requirements: []
123
123
  rubyforge_project:
124
- rubygems_version: 2.4.8
124
+ rubygems_version: 2.5.0
125
125
  signing_key:
126
126
  specification_version: 4
127
127
  summary: A Jekyll plugin to add metadata tags for search engines and social networks