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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c997aba1d3233f14592d404a8b92d7f49d9db20e
4
- data.tar.gz: 522dd2e071da30e701937f7ccf4491c068549527
3
+ metadata.gz: b6eaf384dd30eb294d2b911feb3438fda17abbcf
4
+ data.tar.gz: 90d6a29e6a070cf7f10b248070e222b769303853
5
5
  SHA512:
6
- metadata.gz: 8a9f9c4239bc8b4ec17a68b03d4221c8c0aa5875b55494019cc76ead766b6b268641fa0780bb70077c7f64267fe71add6c415314305696694f96628e5d96924c
7
- data.tar.gz: 9501d02bbbdffa98dfdd6d933cab9ecfc1becf209659b282c945c3794d70936b1856f1bdf5e2dfdff2f01d48b85866530e7e51e4a6e795383a0c03cac90af5f4
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::ConvertiblePage.new(context.registers[:site], @path, content)
65
+ page = Jekyll::ConvertiblePartial.new(context.registers[:site], @path, content)
66
66
  page.render({})
67
67
  page.output.strip
68
68
  end
@@ -1,5 +1,5 @@
1
1
  module Octopress
2
2
  module Ink
3
- VERSION = "1.0.0.rc.8"
3
+ VERSION = "1.0.0.rc.9"
4
4
  end
5
5
  end
@@ -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.8
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-09 00:00:00.000000000 Z
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