jekyll-feed 0.5.0 → 0.5.1

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: b161ab71c3a9ab3055433f765a4d8d0a983a84a4
4
- data.tar.gz: b6effe491af09a724eb3578f2d7a1be2967deead
3
+ metadata.gz: 80c0827ec88c28865d0417d28b5f06173934edcf
4
+ data.tar.gz: 1439eced789aac13552f0894f43df74f3ec6302b
5
5
  SHA512:
6
- metadata.gz: 07717d6f03181c1bfcfdf60d122db21d22b4f140f45783976aceea4357cf0a3ccaa5c2090c26e11aea8bc1c3dba8433e132f63c4e4a4ddf8464c656427e4828f
7
- data.tar.gz: 8dfb4ef9faf4a6457949ec64d083ed89220c26ecce4cb2121d37a27f08934728c35517475e2cc4baffd4d59715ef6e9b13cc570ee1e0c0bf004513bd9a83621b
6
+ metadata.gz: a9aa3eb03c7e39204916bc4aa3156826d2de45a0c61673697fb26c96527d421e5149be4b0c43da8bde2f9fb2a2de298dc23614084d1f30972ea87243aa7978dd
7
+ data.tar.gz: e95dccf7210adf25351e95049e6a09b2fd0758e40a3eb9e7a8956ad12f0614e89eea211a08ad61b757156a385bf6662bd0a73720601865ded6f583aba077632a
data/History.markdown CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.5.1 / 2016-04-18
2
+
3
+ * Fix mangling of whitespace when `site.lang` is set (#110)
4
+
1
5
  ## 0.5.0 / 2016-04-13
2
6
 
3
7
  * Consolidate regexps for stripping whitespace (#82)
data/jekyll-feed.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "jekyll-feed"
5
- spec.version = "0.5.0"
5
+ spec.version = "0.5.1"
6
6
  spec.authors = ["Ben Balter"]
7
7
  spec.email = ["ben.balter@github.com"]
8
8
  spec.summary = "A Jekyll plugin to generate an Atom feed of your Jekyll posts"
@@ -32,7 +32,7 @@ module Jekyll
32
32
 
33
33
  def feed_content
34
34
  feed = PageWithoutAFile.new(@site, File.dirname(__FILE__), "", path)
35
- feed.content = File.read(source_path).gsub(/\s+([{<])/, '\1')
35
+ feed.content = File.read(source_path).gsub(/(?<!\")\s+([<{])/, '\1')
36
36
  feed.data["layout"] = nil
37
37
  feed.data["sitemap"] = false
38
38
  feed.output
@@ -244,4 +244,12 @@ describe(Jekyll::JekyllFeed) do
244
244
  expect(feed_meta).to include(expected)
245
245
  end
246
246
  end
247
+
248
+ context "with site.lang set" do
249
+ let(:overrides) { { "lang" => "en-US" } }
250
+
251
+ it "should set the language" do
252
+ expect(contents).to match %r{type="text/html" hreflang="en-US" />}
253
+ end
254
+ end
247
255
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-feed
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Balter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-14 00:00:00.000000000 Z
11
+ date: 2016-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll