octopress-ink 1.0.0.alpha.34 → 1.0.0.alpha.35

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: 0d1a4f5b802349cd448e8a704fca49677a8fa365
4
- data.tar.gz: 2762503e84829b574d8763548c38c2b9fec56b2f
3
+ metadata.gz: 768fa9c52f22622c7612a91b2b7361a9f6b00e6e
4
+ data.tar.gz: e35a3eaab4d06c86ba3e114e08c240e593700047
5
5
  SHA512:
6
- metadata.gz: 877d1fbd6cc33054a5fe2be3d966174b34fda93c35486c33a077a043c5594794c1b05d9feca6b1a84cd46dca70675b38afa10695e36935f40c62f21063a95528
7
- data.tar.gz: c12a7d2635f8052c52e508eb57110d8f0f813f663ae9c84c06e7a3e423f80d21601db9f30d779cd1074a9f8c9b33ea5a21fa68d1e06593d1c7dcdc5c006a50b9
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(Octopress.config)
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
@@ -1,5 +1,3 @@
1
- require 'octopress'
2
-
3
1
  module Octopress
4
2
  module Ink
5
3
  module Plugins
@@ -1,5 +1,5 @@
1
1
  module Octopress
2
2
  module Ink
3
- VERSION = "1.0.0.alpha.34"
3
+ VERSION = "1.0.0.alpha.35"
4
4
  end
5
5
  end
@@ -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
@@ -1,7 +1,4 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- group :octopress do
4
- gem "octopress-ink", path: "../"
5
- end
6
-
3
+ gem "octopress-ink", path: "../"
7
4
  gem "pry-debugger"
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 octopress build --config #{config.join(',')}"
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.34
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
File without changes
File without changes