bridgetown-feed 1.0.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.rubocop.yml +3 -6
- data/CHANGELOG.md +21 -0
- data/Gemfile +1 -6
- data/README.md +32 -15
- data/bridgetown-feed.gemspec +4 -4
- data/lib/bridgetown-feed.rb +1 -7
- data/lib/bridgetown-feed/builder.rb +49 -0
- data/lib/bridgetown-feed/feed.xml +16 -11
- data/lib/bridgetown-feed/generator.rb +9 -8
- data/lib/bridgetown-feed/version.rb +1 -1
- metadata +12 -56
- data/History.markdown +0 -5
- data/lib/bridgetown-feed/meta-tag.rb +0 -37
- data/lib/bridgetown-feed/page-without-a-file.rb +0 -9
- data/script/bootstrap +0 -3
- data/script/cibuild +0 -7
- data/script/fmt +0 -10
- data/script/release +0 -7
- data/script/test +0 -4
- data/spec/bridgetown-feed_spec.rb +0 -525
- data/spec/fixtures/bridgetown.config.yml +0 -9
- data/spec/fixtures/src/_collection/2018-01-01-collection-doc.md +0 -4
- data/spec/fixtures/src/_collection/2018-01-02-collection-category-doc.md +0 -5
- data/spec/fixtures/src/_data/authors.yml +0 -5
- data/spec/fixtures/src/_layouts/some_default.html +0 -11
- data/spec/fixtures/src/_posts/2013-12-12-dec-the-second.md +0 -7
- data/spec/fixtures/src/_posts/2014-03-02-march-the-second.md +0 -6
- data/spec/fixtures/src/_posts/2014-03-04-march-the-fourth.md +0 -9
- data/spec/fixtures/src/_posts/2015-01-12-a-draft.md +0 -5
- data/spec/fixtures/src/_posts/2015-01-18-jekyll-last-modified-at.md +0 -5
- data/spec/fixtures/src/_posts/2015-02-12-strip-newlines.md +0 -6
- data/spec/fixtures/src/_posts/2015-05-12-liquid.md +0 -7
- data/spec/fixtures/src/_posts/2015-05-12-pre.html +0 -8
- data/spec/fixtures/src/_posts/2015-05-18-author-detail.md +0 -9
- data/spec/fixtures/src/_posts/2015-08-08-stuck-in-the-middle.html +0 -6
- data/spec/fixtures/src/_posts/2016-04-25-author-reference.md +0 -6
- data/spec/fixtures/src/feed.xslt.xml +0 -0
- data/spec/spec_helper.rb +0 -35
File without changes
|
data/spec/spec_helper.rb
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require "bridgetown"
|
4
|
-
require "typhoeus" unless Gem.win_platform?
|
5
|
-
require "nokogiri"
|
6
|
-
require "rss"
|
7
|
-
require File.expand_path("../lib/bridgetown-feed", __dir__)
|
8
|
-
|
9
|
-
Bridgetown.logger.log_level = :error
|
10
|
-
|
11
|
-
RSpec.configure do |config|
|
12
|
-
config.run_all_when_everything_filtered = true
|
13
|
-
config.filter_run :focus
|
14
|
-
config.order = "random"
|
15
|
-
|
16
|
-
ROOT_DIR = File.expand_path("fixtures", __dir__)
|
17
|
-
SOURCE_DIR = File.join(ROOT_DIR, "src")
|
18
|
-
DEST_DIR = File.expand_path("dest", __dir__)
|
19
|
-
|
20
|
-
def root_dir(*files)
|
21
|
-
File.join(ROOT_DIR, *files)
|
22
|
-
end
|
23
|
-
|
24
|
-
def source_dir(*files)
|
25
|
-
File.join(SOURCE_DIR, *files)
|
26
|
-
end
|
27
|
-
|
28
|
-
def dest_dir(*files)
|
29
|
-
File.join(DEST_DIR, *files)
|
30
|
-
end
|
31
|
-
|
32
|
-
def make_context(registers = {})
|
33
|
-
Liquid::Context.new({}, {}, { :site => site }.merge(registers))
|
34
|
-
end
|
35
|
-
end
|