stevenson 2.3.1 → 2.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/stevenson/output_filters/jekyll.rb +10 -3
- data/lib/stevenson/version.rb +1 -1
- data/spec/lib/output_filters/jekyll_spec.rb +3 -8
- data/stevenson.gemspec +1 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d9b3131d56856c57f1a694eb81fee86b3e567bc3
|
4
|
+
data.tar.gz: 1366e70b4d60d352b28e0533ed32e4185de939c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d108b49421ccd660d71d23cf5980004c0b4e757923d2da478b01f41e85786f32e97ee9ae8aec3f1eaa4869b6cee8275c927a75c7daa8cc3f2318bae134d9bed
|
7
|
+
data.tar.gz: d1f848944a142bdd5eda86e71b25245054df989170c30451021c8e9860836cb0a94edef92d2a8b7e5f5eca3bdbfefb6d2489b1a6f2bf5c815e58db709c9b8970
|
data/CHANGELOG.md
CHANGED
@@ -1,15 +1,22 @@
|
|
1
|
+
require 'cocaine'
|
2
|
+
|
1
3
|
module Stevenson
|
2
4
|
module OutputFilter
|
3
5
|
class Jekyll < Base
|
4
6
|
|
5
7
|
def output
|
6
8
|
# Jekyll Build the Directory
|
7
|
-
|
8
|
-
`jekyll b`
|
9
|
-
end
|
9
|
+
command.run(source: directory)
|
10
10
|
|
11
|
+
# Return output directory
|
11
12
|
File.join(directory, '_site')
|
12
13
|
end
|
14
|
+
|
15
|
+
private
|
16
|
+
|
17
|
+
def command
|
18
|
+
Cocaine::CommandLine.new("jekyll", "build --source :source")
|
19
|
+
end
|
13
20
|
end
|
14
21
|
end
|
15
22
|
end
|
data/lib/stevenson/version.rb
CHANGED
@@ -2,22 +2,17 @@ describe Stevenson::OutputFilter::Jekyll do
|
|
2
2
|
let(:options) { {} }
|
3
3
|
let(:temporary_directory) { '/tmp/directory' }
|
4
4
|
let(:template) { double(:template, local_directory: temporary_directory) }
|
5
|
+
let(:cocaine_line) { double(:cocaine_line, run: true) }
|
6
|
+
before { allow(subject).to receive(:command).and_return(cocaine_line) }
|
5
7
|
subject { described_class.new(template.local_directory, options) }
|
6
8
|
|
7
9
|
describe '#output' do
|
8
|
-
it "should change into the template's directory" do
|
9
|
-
expect(Dir).to receive(:chdir).with(temporary_directory)
|
10
|
-
subject.output
|
11
|
-
end
|
12
|
-
|
13
10
|
it "should build jekyll" do
|
14
|
-
|
15
|
-
expect(subject).to receive(:`).with("jekyll b")
|
11
|
+
expect(cocaine_line).to receive(:run).with(hash_including(source: temporary_directory))
|
16
12
|
subject.output
|
17
13
|
end
|
18
14
|
|
19
15
|
it 'outputs a jekyll compiled directory' do
|
20
|
-
allow(Dir).to receive(:chdir).with(temporary_directory)
|
21
16
|
expect(subject.output).to eq File.join(temporary_directory, '_site')
|
22
17
|
end
|
23
18
|
end
|
data/stevenson.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stevenson
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- RootsRated
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-01-
|
11
|
+
date: 2016-01-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -52,6 +52,20 @@ dependencies:
|
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: cocaine
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0.5'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0.5'
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
70
|
name: git
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|