octopress-ink 1.0.0.alpha.28 → 1.0.0.alpha.29

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: fc46c805b9c9408a12e59be45bce38d1e60a9b98
4
- data.tar.gz: f3235034540210c39d801bfc0afb6cd2d7b7d3a2
3
+ metadata.gz: 1b32b9130d0f7aa2c02fd31e843550e1f3fe76fe
4
+ data.tar.gz: 46be5b6827a83af4a481ab318f425a2cf406f477
5
5
  SHA512:
6
- metadata.gz: 5448ac1ba45a66b2a692f1ffb1acc3e7955ac1639bb6df01d5f8c92c128edc7dedb8b7e00a47fefd0f6bc790bad94a57bf0c749b3af4ee62eb47ae44fdc991d0
7
- data.tar.gz: 060ba433677737ad6fddc84b15b41016784c0c6a5c6138d10e987900b6590391729929c03eaae5d3dccd935b10b201067b45639d4de90fbab07a6ef6c5b0ca40
6
+ metadata.gz: 2a6ac361f9f02a354888431144e604cf36c6c1067066a2dd3526722ce0f228a3a77b96e894c6254c8ca32f99cd7d224e29fd60b863dc416a286fef466527ef4e
7
+ data.tar.gz: cd09c65826a81d14f74f9549511869ccfb23057211cc860e2c929e30538d2800729e5cf0706271f0c5522f9e1318f6e7e8fec9e4caf6784f607e0a5e3fcadc1b
data/lib/octopress-ink.rb CHANGED
@@ -35,10 +35,7 @@ Liquid::Template.register_tag('return', Octopress::Tags::ReturnTag)
35
35
  Liquid::Template.register_tag('render', Octopress::Tags::RenderTag)
36
36
  Liquid::Template.register_tag('octopress_js', Octopress::Tags::JavascriptTag)
37
37
  Liquid::Template.register_tag('octopress_css', Octopress::Tags::StylesheetTag)
38
- Liquid::Template.register_tag('content_for', Octopress::Tags::ContentForBlock)
39
- Liquid::Template.register_tag('head', Octopress::Tags::HeadBlock)
40
- Liquid::Template.register_tag('footer', Octopress::Tags::FooterBlock)
41
- Liquid::Template.register_tag('scripts', Octopress::Tags::ScriptsBlock)
38
+ Liquid::Template.register_tag('content_for', Octopress::Tags::ContentForTag)
42
39
  Liquid::Template.register_tag('yield', Octopress::Tags::YieldTag)
43
40
  Liquid::Template.register_tag('wrap', Octopress::Tags::WrapTag)
44
41
  Liquid::Template.register_tag('_', Octopress::Tags::LineCommentTag)
@@ -7,11 +7,8 @@ module Octopress
7
7
  autoload :CaptureTag, 'octopress-ink/tags/capture'
8
8
  autoload :JavascriptTag, 'octopress-ink/tags/javascript'
9
9
  autoload :StylesheetTag, 'octopress-ink/tags/stylesheet'
10
- autoload :ContentForBlock, 'octopress-ink/tags/content_for'
11
- autoload :HeadBlock, 'octopress-ink/tags/head'
12
- autoload :FooterBlock, 'octopress-ink/tags/footer'
10
+ autoload :ContentForTag, 'octopress-ink/tags/content_for'
13
11
  autoload :YieldTag, 'octopress-ink/tags/yield'
14
- autoload :ScriptsBlock, 'octopress-ink/tags/scripts'
15
12
  autoload :WrapTag, 'octopress-ink/tags/wrap'
16
13
  autoload :LineCommentTag, 'octopress-ink/tags/line_comment'
17
14
  end
@@ -1,7 +1,7 @@
1
1
  # Inspired by jekyll-contentblocks https://github.com/rustygeldmacher/jekyll-contentblocks
2
2
  module Octopress
3
3
  module Tags
4
- class ContentForBlock < Liquid::Block
4
+ class ContentForTag < Liquid::Block
5
5
 
6
6
  def initialize(tag_name, markup, tokens)
7
7
  super
@@ -1,5 +1,5 @@
1
1
  module Octopress
2
2
  module Ink
3
- VERSION = "1.0.0.alpha.28"
3
+ VERSION = "1.0.0.alpha.29"
4
4
  end
5
5
  end
@@ -1,7 +1 @@
1
- Testing content for → Testing content for
2
-
3
- Testing scripts → Testing scripts
4
-
5
- Testing head tag → Testing head tag
6
-
7
- Testing footer → Testing footer
1
+ Testing content_for → Testing content_for
@@ -1,7 +1 @@
1
- Testing content for → Testing content for
2
-
3
- Testing scripts → Testing scripts
4
-
5
- Testing head tag → Testing head tag
6
-
7
- Testing footer → Testing footer
1
+ Testing content_for → Testing content_for
@@ -1,21 +1,7 @@
1
1
  ---
2
2
  ---
3
- Testing content for → {% content_for foo %}Testing content for{% endcontent_for %}{% yield foo %}
4
-
5
- Testing scripts → {% scripts %}
3
+ Testing content_for → {% content_for test %}
6
4
  Testing
7
- {% endscripts %}{% scripts %}
8
- scripts
9
- {% endscripts %}{% yield scripts | join_space %}
10
-
11
- Testing head tag → {% head %}
12
- Testing
13
- {% endhead %}{% head %}
14
- head tag
15
- {% endhead %}{% yield head | join_space %}
16
-
17
- Testing footer → {% footer %}
18
- Testing
19
- {% endfooter %}{% footer %}
20
- footer
21
- {% endfooter %}{% yield footer | join_space %}
5
+ {% endcontent_for %}{% content_for test %}
6
+ content_for
7
+ {% endcontent_for %}{% yield test | join_space %}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octopress-ink
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.alpha.28
4
+ version: 1.0.0.alpha.29
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis
@@ -122,14 +122,11 @@ files:
122
122
  - lib/octopress-ink/tags/assign.rb
123
123
  - lib/octopress-ink/tags/capture.rb
124
124
  - lib/octopress-ink/tags/content_for.rb
125
- - lib/octopress-ink/tags/footer.rb
126
- - lib/octopress-ink/tags/head.rb
127
125
  - lib/octopress-ink/tags/include.rb
128
126
  - lib/octopress-ink/tags/javascript.rb
129
127
  - lib/octopress-ink/tags/line_comment.rb
130
128
  - lib/octopress-ink/tags/render.rb
131
129
  - lib/octopress-ink/tags/return.rb
132
- - lib/octopress-ink/tags/scripts.rb
133
130
  - lib/octopress-ink/tags/stylesheet.rb
134
131
  - lib/octopress-ink/tags/wrap.rb
135
132
  - lib/octopress-ink/tags/yield.rb
@@ -1,11 +0,0 @@
1
- module Octopress
2
- module Tags
3
- class FooterBlock < ContentForBlock
4
- def initialize(tag_name, markup, tokens)
5
- @block_name = 'footer'
6
- @markup = markup
7
- super
8
- end
9
- end
10
- end
11
- end
@@ -1,11 +0,0 @@
1
- module Octopress
2
- module Tags
3
- class HeadBlock < ContentForBlock
4
- def initialize(tag_name, markup, tokens)
5
- @block_name = 'head'
6
- @markup = markup
7
- super
8
- end
9
- end
10
- end
11
- end
@@ -1,11 +0,0 @@
1
- module Octopress
2
- module Tags
3
- class ScriptsBlock < ContentForBlock
4
- def initialize(tag_name, markup, tokens)
5
- @block_name = 'scripts'
6
- @markup = markup
7
- super
8
- end
9
- end
10
- end
11
- end