octopress-ink 1.0.0.rc.8 → 1.0.0.rc.9
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.rb +1 -1
- data/lib/octopress-ink/jekyll/hooks.rb +0 -20
- data/lib/octopress-ink/tags/render.rb +1 -1
- data/lib/octopress-ink/version.rb +1 -1
- data/octopress-ink.gemspec +1 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6eaf384dd30eb294d2b911feb3438fda17abbcf
|
4
|
+
data.tar.gz: 90d6a29e6a070cf7f10b248070e222b769303853
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4968cce78029753c133b61587bf793f519775543d44a5bf8359f375225a04a706f61f220fefed0bbf12c8936e684d0c4ff9a5d364157f36eb7ec1f0417845c36
|
7
|
+
data.tar.gz: d68ede583160a08cca5fcdc2adc73e70b699f967605efee160f5de3ae0afddccf160a9a7cc5d7f0c2d142ec660bed630b76da64ca89240924f0d0cfb87278224
|
data/CHANGELOG.md
CHANGED
@@ -2,13 +2,18 @@
|
|
2
2
|
|
3
3
|
## Current released version
|
4
4
|
|
5
|
+
### 1.0.0 RC9 - 2014-06-21
|
6
|
+
|
7
|
+
- Added jekyll-page-hooks as a dependency.
|
8
|
+
- Now processing partials as ConvertiblePartials
|
9
|
+
|
10
|
+
## Past versions
|
11
|
+
|
5
12
|
### 1.0.0 RC8 - 2014-06-09
|
6
13
|
|
7
14
|
- Improved the way Ink manages the payload
|
8
15
|
- Added `linkposts` and `articles` methods to Ink
|
9
16
|
|
10
|
-
## Past versions
|
11
|
-
|
12
17
|
### 1.0.0 RC7 - 2014-06-08
|
13
18
|
|
14
19
|
- New: Added `excerpted` post var, true if post.excerpt is shorted than post.content.
|
data/lib/octopress-ink.rb
CHANGED
@@ -3,13 +3,13 @@ require 'sass'
|
|
3
3
|
require 'uglifier'
|
4
4
|
require 'autoprefixer-rails'
|
5
5
|
require 'digest/md5'
|
6
|
+
require 'jekyll-page-hooks'
|
6
7
|
|
7
8
|
require 'octopress-ink/version'
|
8
9
|
|
9
10
|
require 'octopress-ink/utils'
|
10
11
|
require 'octopress-ink/generators/plugin_assets'
|
11
12
|
require 'octopress-ink/jekyll/hooks'
|
12
|
-
require 'octopress-ink/version'
|
13
13
|
|
14
14
|
module Octopress
|
15
15
|
module Ink
|
@@ -149,26 +149,6 @@ module Jekyll
|
|
149
149
|
end
|
150
150
|
end
|
151
151
|
|
152
|
-
# Create a new page class to allow partials to trigger Jekyll Page Hooks.
|
153
|
-
class ConvertiblePage
|
154
|
-
include Convertible
|
155
|
-
|
156
|
-
attr_accessor :name, :content, :site, :ext, :output, :data
|
157
|
-
|
158
|
-
def initialize(site, name, content)
|
159
|
-
@site = site
|
160
|
-
@name = name
|
161
|
-
@ext = File.extname(name)
|
162
|
-
@content = content
|
163
|
-
@data = { layout: "no_layout" } # hack
|
164
|
-
|
165
|
-
end
|
166
|
-
|
167
|
-
def render(payload)
|
168
|
-
do_layout(payload, { no_layout: nil })
|
169
|
-
end
|
170
|
-
end
|
171
|
-
|
172
152
|
class Site
|
173
153
|
alias_method :write_orig, :write
|
174
154
|
# Called after write
|
@@ -62,7 +62,7 @@ module Octopress
|
|
62
62
|
end
|
63
63
|
|
64
64
|
def parse_convertible(content, context)
|
65
|
-
page = Jekyll::
|
65
|
+
page = Jekyll::ConvertiblePartial.new(context.registers[:site], @path, content)
|
66
66
|
page.render({})
|
67
67
|
page.output.strip
|
68
68
|
end
|
data/octopress-ink.gemspec
CHANGED
@@ -21,6 +21,7 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.add_runtime_dependency "jekyll", "~> 2.0"
|
22
22
|
spec.add_runtime_dependency "uglifier", "~> 2.5"
|
23
23
|
spec.add_runtime_dependency "autoprefixer-rails", "~> 1.1", ">= 1.1.20140403"
|
24
|
+
spec.add_runtime_dependency "jekyll-page-hooks", "~> 1.3"
|
24
25
|
|
25
26
|
spec.add_development_dependency "octopress"
|
26
27
|
spec.add_development_dependency "bundler", "~> 1.3"
|
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.9
|
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-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -58,6 +58,20 @@ dependencies:
|
|
58
58
|
- - ">="
|
59
59
|
- !ruby/object:Gem::Version
|
60
60
|
version: 1.1.20140403
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: jekyll-page-hooks
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - "~>"
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '1.3'
|
68
|
+
type: :runtime
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - "~>"
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '1.3'
|
61
75
|
- !ruby/object:Gem::Dependency
|
62
76
|
name: octopress
|
63
77
|
requirement: !ruby/object:Gem::Requirement
|