octopress-ink 1.0.0.rc.14 → 1.0.0.rc.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/octopress-ink.rb +17 -0
- data/lib/octopress-ink/assets/asset.rb +7 -1
- data/lib/octopress-ink/jekyll/hooks.rb +1 -15
- data/lib/octopress-ink/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: 7c418b320600ccde0e84cc5250117b3d8c5aadba
|
4
|
+
data.tar.gz: e3b8474832d3515c04a3deb208f190eed65c8421
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b032d79261a2a9a5edef35dfe846c915d0ade487d099307f72992adfc67d6238b85c80b4a0c291e3a7b5c946f9b459ac434246b4d6fd8a271d58a05d0ea84e18
|
7
|
+
data.tar.gz: e12bb1b356643d00c6c80e22c2e7fe72fbd040742aeac083537661ee3a5fa0390d233ed1ecf09bec489c9c853180a24f9ca63594b33656477fd9a93174901d13
|
data/CHANGELOG.md
CHANGED
data/lib/octopress-ink.rb
CHANGED
@@ -57,6 +57,23 @@ module Octopress
|
|
57
57
|
version << "Octopress Ink v#{Octopress::Ink::VERSION}"
|
58
58
|
end
|
59
59
|
|
60
|
+
def self.payload
|
61
|
+
config = Plugins.config
|
62
|
+
ink_payload = {
|
63
|
+
'plugins' => config['plugins'],
|
64
|
+
'theme' => config['theme'],
|
65
|
+
'octopress' => {
|
66
|
+
'version' => version
|
67
|
+
}
|
68
|
+
}
|
69
|
+
|
70
|
+
if Octopress.config['docs_mode']
|
71
|
+
ink_payload['doc_pages'] = Ink::Plugins.doc_pages
|
72
|
+
end
|
73
|
+
|
74
|
+
ink_payload
|
75
|
+
end
|
76
|
+
|
60
77
|
# Register a new plugin
|
61
78
|
#
|
62
79
|
# plugin - A subclass of Plugin
|
@@ -129,7 +129,13 @@ module Octopress
|
|
129
129
|
|
130
130
|
def payload
|
131
131
|
unless @payload
|
132
|
-
@payload =
|
132
|
+
@payload = Ink.payload
|
133
|
+
@payload['jekyll'] = {
|
134
|
+
'version' => Jekyll::VERSION,
|
135
|
+
'environment' => Jekyll.env
|
136
|
+
}
|
137
|
+
@payload['site'] = Octopress.site.config
|
138
|
+
@payload['site']['data'] = Octopress.site.site_data
|
133
139
|
@payload['page'] = data
|
134
140
|
end
|
135
141
|
|
@@ -9,21 +9,7 @@ module Octopress
|
|
9
9
|
end
|
10
10
|
|
11
11
|
def merge_payload(payload, site)
|
12
|
-
|
13
|
-
|
14
|
-
new_payload = {
|
15
|
-
'plugins' => config['plugins'],
|
16
|
-
'theme' => config['theme'],
|
17
|
-
'octopress' => {
|
18
|
-
'version' => Ink.version
|
19
|
-
}
|
20
|
-
}
|
21
|
-
|
22
|
-
if Octopress.config['docs_mode']
|
23
|
-
new_payload['doc_pages'] = Ink::Plugins.doc_pages
|
24
|
-
end
|
25
|
-
|
26
|
-
new_payload
|
12
|
+
Ink.payload
|
27
13
|
end
|
28
14
|
|
29
15
|
def post_write(site)
|
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.15
|
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-08-
|
11
|
+
date: 2014-08-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|