zerofetcher 0.0.37 → 0.0.38
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/code/JekyllFile.rb +6 -5
- data/lib/code/JekyllPost.rb +7 -7
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 53b18fa14aa19a6ab076c5153fa5279c0ecf5f9b
|
4
|
+
data.tar.gz: 5d51b63de675fe8fe4af6d582a558869ba007670
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a31087836fa0f4d249cb51bce8c6ec3430264131788528f999b388129e9297504df1f9032a946a163c583db842b2a482df582756d342f53b9c6ec188f4e186d
|
7
|
+
data.tar.gz: 262603fc897d457783cdf2a648d856168bab5289cc25b0d664f5bb7c0c383cb46f2f545029058b862680f65a042efb8fa9d826a178e788e2f6cfd79da242f200
|
data/lib/code/JekyllFile.rb
CHANGED
@@ -42,10 +42,10 @@ class JekyllFile
|
|
42
42
|
{{ ' + @file_data['url'] + ' | markdownify }}'
|
43
43
|
end
|
44
44
|
end
|
45
|
-
|
45
|
+
|
46
46
|
# set layout
|
47
47
|
if !@yaml_parsed.key?('layout') || 'page' == @file_type
|
48
|
-
@yaml_parsed['layout'] =
|
48
|
+
@yaml_parsed['layout'] = getPageLayout
|
49
49
|
end
|
50
50
|
|
51
51
|
# do some file type specific stuff
|
@@ -77,10 +77,9 @@ class JekyllFile
|
|
77
77
|
end
|
78
78
|
end
|
79
79
|
end
|
80
|
-
|
81
|
-
end if
|
80
|
+
end
|
82
81
|
|
83
|
-
def
|
82
|
+
def getPageLayout
|
84
83
|
case @file_type
|
85
84
|
when 'page'
|
86
85
|
if @file_data['layout']
|
@@ -96,6 +95,8 @@ class JekyllFile
|
|
96
95
|
layout = 'post'
|
97
96
|
end
|
98
97
|
|
98
|
+
puts "Layout:" + layout
|
99
|
+
|
99
100
|
return layout
|
100
101
|
end
|
101
102
|
|
data/lib/code/JekyllPost.rb
CHANGED
@@ -8,6 +8,13 @@ class JekyllPost
|
|
8
8
|
@content_section = ''
|
9
9
|
@post
|
10
10
|
|
11
|
+
def savePageFile
|
12
|
+
file_contents = @yaml_parsed.to_yaml
|
13
|
+
file_contents += '---'+"\n"
|
14
|
+
file_contents += @content_section
|
15
|
+
File.write(@file_path, file_contents)
|
16
|
+
end
|
17
|
+
|
11
18
|
def initialize(path, post)
|
12
19
|
@post = post
|
13
20
|
@file_path = path + '/' + @post['date']+'-'+@post['slug']+'.md'
|
@@ -26,11 +33,4 @@ class JekyllPost
|
|
26
33
|
|
27
34
|
@content_section = post['content']
|
28
35
|
end
|
29
|
-
|
30
|
-
def savePageFile
|
31
|
-
file_contents = @yaml_parsed.to_yaml
|
32
|
-
file_contents += '---'+"\n"
|
33
|
-
file_contents += @content_section
|
34
|
-
File.write(@file_path, file_contents)
|
35
|
-
end
|
36
36
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zerofetcher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.38
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Liccardo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-06-
|
11
|
+
date: 2017-06-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: image_optimizer
|
@@ -55,7 +55,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
55
55
|
version: '0'
|
56
56
|
requirements: []
|
57
57
|
rubyforge_project:
|
58
|
-
rubygems_version: 2.
|
58
|
+
rubygems_version: 2.6.11
|
59
59
|
signing_key:
|
60
60
|
specification_version: 4
|
61
61
|
summary: Zero Fetcher
|