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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b2897bcee91248ea1e129e5cf04a4f0c1ede2844
4
- data.tar.gz: ffbebcfa8a92445270a5241ca67e7b2a2feac89c
3
+ metadata.gz: 7c418b320600ccde0e84cc5250117b3d8c5aadba
4
+ data.tar.gz: e3b8474832d3515c04a3deb208f190eed65c8421
5
5
  SHA512:
6
- metadata.gz: 29f661c90f771c2aae273523978bb1ec1f6dad7fc75efe1080e206c33afa9e93b7fea49cbc8879d895f815454f7274caeef6cf74ffd7ed6c3ecc9bd13078a6d7
7
- data.tar.gz: 9316a8d4c8e18b6536d80b5f0c7e82c16ff7c302e111a0f15cd30e76cd93b2f5aca1d7a66bb14573dd468b5ff62a94e75593e99e2353b1354951a72b345093e2
6
+ metadata.gz: b032d79261a2a9a5edef35dfe846c915d0ade487d099307f72992adfc67d6238b85c80b4a0c291e3a7b5c946f9b459ac434246b4d6fd8a271d58a05d0ea84e18
7
+ data.tar.gz: e12bb1b356643d00c6c80e22c2e7fe72fbd040742aeac083537661ee3a5fa0390d233ed1ecf09bec489c9c853180a24f9ca63594b33656477fd9a93174901d13
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ### 1.0.0 RC15 - 2014-08-17
4
+
5
+ - Fixed an issue where Octopress would trigger site_payload too early.
6
+
3
7
  ### 1.0.0 RC14 - 2014-08-11
4
8
 
5
9
  - Reworked asset methods
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 = Octopress.site.site_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
- config = Ink::Plugins.config
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)
@@ -1,5 +1,5 @@
1
1
  module Octopress
2
2
  module Ink
3
- VERSION = "1.0.0.rc.14"
3
+ VERSION = "1.0.0.rc.15"
4
4
  end
5
5
  end
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.14
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-12 00:00:00.000000000 Z
11
+ date: 2014-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll