octopress 3.0.0 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/octopress/scaffold.rb +14 -1
- data/lib/octopress/version.rb +1 -1
- 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: 249663e144fb38926a1dfcfc34cac677b64c9e7f
|
4
|
+
data.tar.gz: 53ce18330fe13d9453d85136dc78e6d42382a751
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ebae011c7c8e715360988ae9283f9d97c66651b51a8cbddf1e04a55a79e3fc10bcd67ab024b912b7e208715b8ba49de2f3c6b90c2a367e3b9b1be9b9cf10d550
|
7
|
+
data.tar.gz: a66ca39d46c6be80c74f93e319199e32f4adc9e67245be8a42bbecdc5b0a9783ece50c9c2bb3d61e56afcd989e7cae3cd3118baa43d02a52c104b179882d8808
|
data/CHANGELOG.md
CHANGED
data/lib/octopress/scaffold.rb
CHANGED
@@ -5,10 +5,23 @@ module Octopress
|
|
5
5
|
attr_reader :path, :force
|
6
6
|
|
7
7
|
def initialize(args, options)
|
8
|
-
@path =
|
8
|
+
@path = init_path(args)
|
9
9
|
@force = !!options['force']
|
10
10
|
@blank = !!options['blank']
|
11
11
|
end
|
12
|
+
|
13
|
+
def init_path(args)
|
14
|
+
path = File.expand_path(args.join(" "), Dir.pwd)
|
15
|
+
config_file = File.join(path, '_config.yml')
|
16
|
+
|
17
|
+
# If there is a Jekyll configuration file present
|
18
|
+
# Add template to source directory
|
19
|
+
if File.exist?(config_file)
|
20
|
+
config = SafeYAML.load_file(config_file)
|
21
|
+
path = File.join(path, config['source'])
|
22
|
+
end
|
23
|
+
path
|
24
|
+
end
|
12
25
|
|
13
26
|
def write
|
14
27
|
if !@force && File.exist?(File.join(path, '_templates'))
|
data/lib/octopress/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: octopress
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandon Mathis
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-05-
|
12
|
+
date: 2015-05-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: mercenary
|