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 +4 -4
- data/History.markdown +4 -0
- data/jekyll-feed.gemspec +1 -1
- data/lib/jekyll/jekyll-feed.rb +1 -1
- data/spec/jekyll-feed_spec.rb +8 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 80c0827ec88c28865d0417d28b5f06173934edcf
|
4
|
+
data.tar.gz: 1439eced789aac13552f0894f43df74f3ec6302b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9aa3eb03c7e39204916bc4aa3156826d2de45a0c61673697fb26c96527d421e5149be4b0c43da8bde2f9fb2a2de298dc23614084d1f30972ea87243aa7978dd
|
7
|
+
data.tar.gz: e95dccf7210adf25351e95049e6a09b2fd0758e40a3eb9e7a8956ad12f0614e89eea211a08ad61b757156a385bf6662bd0a73720601865ded6f583aba077632a
|
data/History.markdown
CHANGED
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.
|
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"
|
data/lib/jekyll/jekyll-feed.rb
CHANGED
@@ -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(
|
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
|
data/spec/jekyll-feed_spec.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2016-04-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|