octopress-ink 1.0.0.alpha.34 → 1.0.0.alpha.35
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/lib/octopress-ink/configuration.rb +16 -1
- data/lib/octopress-ink/plugins.rb +0 -2
- data/lib/octopress-ink/version.rb +1 -1
- data/octopress-ink.gemspec +0 -1
- data/test/Gemfile +1 -4
- data/test/test.rb +6 -2
- metadata +1 -17
- data/assets/docs/food.html +0 -0
- data/assets/docs/index.html +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 768fa9c52f22622c7612a91b2b7361a9f6b00e6e
|
4
|
+
data.tar.gz: e35a3eaab4d06c86ba3e114e08c240e593700047
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e07ec4b06d2b6ee24f78c7913d6b2a8aac6f62b9c0f50b83fa09362781fcad8e192e9e0bf51c4af28e4ae06bb37a16ebf251b584caa2978020f65b17046c6760
|
7
|
+
data.tar.gz: 54358f50230a19b846dfa0185045e6edf37fa67f720dc86924ce621424600764b3d77c9ee814300fab2604cea8db08325625b016f2392553bc58171a21449142
|
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'yaml'
|
2
|
+
|
1
3
|
module Octopress
|
2
4
|
module Ink
|
3
5
|
module Configuration
|
@@ -13,7 +15,20 @@ module Octopress
|
|
13
15
|
}
|
14
16
|
|
15
17
|
def self.config
|
16
|
-
@config ||= DEFAULTS.deep_merge(
|
18
|
+
@config ||= DEFAULTS.deep_merge(octopress_config)
|
19
|
+
end
|
20
|
+
|
21
|
+
def self.octopress_config
|
22
|
+
if defined? Octopress.config
|
23
|
+
Octopress.config
|
24
|
+
else
|
25
|
+
file = '_octopress.yml'
|
26
|
+
if File.exist? file
|
27
|
+
YAML.safe_load(File.open(file))
|
28
|
+
else
|
29
|
+
{}
|
30
|
+
end
|
31
|
+
end
|
17
32
|
end
|
18
33
|
end
|
19
34
|
end
|
data/octopress-ink.gemspec
CHANGED
@@ -20,7 +20,6 @@ Gem::Specification.new do |spec|
|
|
20
20
|
|
21
21
|
spec.add_runtime_dependency "jekyll", "~> 1.4.3"
|
22
22
|
spec.add_runtime_dependency "sass", "~> 3.2.0"
|
23
|
-
spec.add_runtime_dependency "octopress", ">= 3.0.0.alpha8"
|
24
23
|
|
25
24
|
spec.add_development_dependency "bundler", "~> 1.3"
|
26
25
|
spec.add_development_dependency "rake"
|
data/test/Gemfile
CHANGED
data/test/test.rb
CHANGED
@@ -38,9 +38,13 @@ end
|
|
38
38
|
|
39
39
|
def build(options={})
|
40
40
|
config = ['_config.yml'] << options[:config]
|
41
|
-
cmd = "rm -rf site && bundle exec
|
42
|
-
cmd += " --octopress-config #{options[:octopress_config]}" if options[:octopress_config]
|
41
|
+
cmd = "rm -rf site && bundle exec jekyll build --config #{config.join(',')}"
|
42
|
+
#cmd += " --octopress-config #{options[:octopress_config]}" if options[:octopress_config]
|
43
|
+
if options[:octopress_config]
|
44
|
+
FileUtils.cp options[:octopress_config], '_octopress.yml'
|
45
|
+
end
|
43
46
|
`#{cmd}`
|
47
|
+
`rm _octopress.yml`
|
44
48
|
end
|
45
49
|
|
46
50
|
def diff_file(file, target_dir='expected', source_dir='site')
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: octopress-ink
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.alpha.
|
4
|
+
version: 1.0.0.alpha.35
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandon Mathis
|
@@ -38,20 +38,6 @@ dependencies:
|
|
38
38
|
- - ~>
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 3.2.0
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: octopress
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - '>='
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: 3.0.0.alpha8
|
48
|
-
type: :runtime
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - '>='
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: 3.0.0.alpha8
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
42
|
name: bundler
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -108,8 +94,6 @@ files:
|
|
108
94
|
- LICENSE.txt
|
109
95
|
- README.md
|
110
96
|
- Rakefile
|
111
|
-
- assets/docs/food.html
|
112
|
-
- assets/docs/index.html
|
113
97
|
- lib/octopress-ink.rb
|
114
98
|
- lib/octopress-ink/assets.rb
|
115
99
|
- lib/octopress-ink/assets/asset.rb
|
data/assets/docs/food.html
DELETED
File without changes
|
data/assets/docs/index.html
DELETED
File without changes
|