octopress-ink 1.0.0.rc.7 → 1.0.0.rc.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -2
- data/lib/octopress-ink/version.rb +1 -1
- data/lib/octopress-ink.rb +32 -17
- 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: c997aba1d3233f14592d404a8b92d7f49d9db20e
|
4
|
+
data.tar.gz: 522dd2e071da30e701937f7ccf4491c068549527
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a9f9c4239bc8b4ec17a68b03d4221c8c0aa5875b55494019cc76ead766b6b268641fa0780bb70077c7f64267fe71add6c415314305696694f96628e5d96924c
|
7
|
+
data.tar.gz: 9501d02bbbdffa98dfdd6d933cab9ecfc1becf209659b282c945c3794d70936b1856f1bdf5e2dfdff2f01d48b85866530e7e51e4a6e795383a0c03cac90af5f4
|
data/CHANGELOG.md
CHANGED
@@ -2,12 +2,17 @@
|
|
2
2
|
|
3
3
|
## Current released version
|
4
4
|
|
5
|
-
### 1.0.0
|
5
|
+
### 1.0.0 RC8 - 2014-06-09
|
6
6
|
|
7
|
-
-
|
7
|
+
- Improved the way Ink manages the payload
|
8
|
+
- Added `linkposts` and `articles` methods to Ink
|
8
9
|
|
9
10
|
## Past versions
|
10
11
|
|
12
|
+
### 1.0.0 RC7 - 2014-06-08
|
13
|
+
|
14
|
+
- New: Added `excerpted` post var, true if post.excerpt is shorted than post.content.
|
15
|
+
|
11
16
|
### 1.0.0 RC6 - 2014-06-07
|
12
17
|
|
13
18
|
- Fixed: Gemspec scaffold does not include Ink's pre-release version numbers.
|
data/lib/octopress-ink.rb
CHANGED
@@ -76,27 +76,42 @@ module Octopress
|
|
76
76
|
@site = site
|
77
77
|
end
|
78
78
|
|
79
|
-
def self.payload(
|
80
|
-
|
81
|
-
|
82
|
-
payload['theme'] = config['theme']
|
83
|
-
payload['octopress'] = {}
|
84
|
-
payload['octopress']['version'] = Octopress::Ink.version
|
85
|
-
if Octopress::Ink.config['docs_mode']
|
86
|
-
payload['doc_pages'] = Octopress::Ink::Plugins.doc_pages
|
87
|
-
end
|
88
|
-
|
89
|
-
payload['site'] ||= {}
|
79
|
+
def self.payload(jekyll_payload={})
|
80
|
+
Jekyll::Utils.deep_merge_hashes(jekyll_payload, custom_payload)
|
81
|
+
end
|
90
82
|
|
91
|
-
|
92
|
-
|
93
|
-
|
83
|
+
def self.custom_payload
|
84
|
+
unless @custom_payload
|
85
|
+
config = Plugins.config
|
86
|
+
|
87
|
+
payload = {
|
88
|
+
'plugins' => config['plugins'],
|
89
|
+
'theme' => config['theme'],
|
90
|
+
'octopress' => {
|
91
|
+
'version' => Octopress::Ink.version
|
92
|
+
},
|
93
|
+
'site' => {
|
94
|
+
'linkposts' => self.linkposts,
|
95
|
+
'articles' => self.articles,
|
96
|
+
}
|
97
|
+
}
|
98
|
+
|
99
|
+
if Octopress::Ink.config['docs_mode']
|
100
|
+
payload['doc_pages'] = Octopress::Ink::Plugins.doc_pages
|
101
|
+
end
|
94
102
|
|
95
|
-
|
96
|
-
p.data['linkpost']
|
103
|
+
@custom_payload = payload
|
97
104
|
end
|
98
105
|
|
99
|
-
|
106
|
+
@custom_payload
|
107
|
+
end
|
108
|
+
|
109
|
+
def self.linkposts
|
110
|
+
@linkposts ||= site.posts.select {|p| p.data['linkpost']}
|
111
|
+
end
|
112
|
+
|
113
|
+
def self.articles
|
114
|
+
@articles ||= site.posts.reject {|p| p.data['linkpost']}
|
100
115
|
end
|
101
116
|
|
102
117
|
def self.init_site(options)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: octopress-ink
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.rc.
|
4
|
+
version: 1.0.0.rc.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandon Mathis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|