jekyll-slim 0.8.0 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 9591864a19b847b3a2c42987f4b9a91eb5bf7f59
4
+ data.tar.gz: 548038aedfec01e826b0b100e1f1f9ff05fac3a2
5
+ SHA512:
6
+ metadata.gz: dc0f4dfecf8cecb55c35563b71675e62e2b666a6d99aaed45c5a1478caa67b6935adf3620dc8d12877797ba0facb76505246c5b7a745b8ff1ae94a618b11095b
7
+ data.tar.gz: e9fa9acbf6002181598c6733a2b81cc439366e911a86f72abd91fe4d5f6d33a92d7578faa0d42ab23aeb90e1bd9d351a73f23224344e4b812dbb5c3c4e3ccc4a
@@ -1,3 +1,4 @@
1
1
  language: ruby
2
2
  rvm:
3
3
  - "1.9.3"
4
+ script: bundle exec rspec
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Jekyll-slim
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/jekyll-slim.png)](http://badge.fury.io/rb/jekyll-slim) [![Dependency Status](https://gemnasium.com/kaishin/jekyll-slim.png)](https://gemnasium.com/kaishin/jekyll-slim) [![Code Climate](https://codeclimate.com/github/kaishin/jekyll-slim.png)](https://codeclimate.com/github/kaishin/jekyll-slim)
3
+ [![Gem Version](https://badge.fury.io/rb/jekyll-slim.png)](http://badge.fury.io/rb/jekyll-slim) [![Dependency Status](https://gemnasium.com/kaishin/jekyll-slim.png)](https://gemnasium.com/kaishin/jekyll-slim) [![Code Climate](https://codeclimate.com/github/kaishin/jekyll-slim.png)](https://codeclimate.com/github/kaishin/jekyll-slim) [![Build Status](https://travis-ci.org/kaishin/jekyll-slim.png)](https://travis-ci.org/kaishin/jekyll-slim)
4
4
 
5
5
  A gem that adds [slim-lang](http://slim-lang.com) support to [Jekyll](http://github.com/mojombo/jekyll). Works for for pages, includes and layouts.
6
6
 
@@ -0,0 +1,15 @@
1
+ module Jekyll
2
+ class Layout
3
+ def initialize(site, base, name)
4
+ @site = site
5
+ @base = base
6
+ @name = name
7
+
8
+ self.data = {}
9
+
10
+ self.process(name)
11
+ self.read_yaml(base, name)
12
+ self.transform
13
+ end
14
+ end
15
+ end
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module Slim
3
- VERSION = "0.8.0"
3
+ VERSION = "0.8.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,94 +1,83 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-slim
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
5
- prerelease:
4
+ version: 0.8.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Reda Lemeden
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-04-13 00:00:00.000000000 Z
11
+ date: 2013-05-05 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: jekyll
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: 0.10.0
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: 0.10.0
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: slim
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: rake
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - '>='
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - '>='
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: bundler
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ! '>='
59
+ - - '>='
68
60
  - !ruby/object:Gem::Version
69
61
  version: '0'
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ! '>='
66
+ - - '>='
76
67
  - !ruby/object:Gem::Version
77
68
  version: '0'
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: rspec
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
- - - ! '>='
73
+ - - '>='
84
74
  - !ruby/object:Gem::Version
85
75
  version: '0'
86
76
  type: :development
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
- - - ! '>='
80
+ - - '>='
92
81
  - !ruby/object:Gem::Version
93
82
  version: '0'
94
83
  description: Slim html converter for Jekyll
@@ -108,39 +97,32 @@ files:
108
97
  - Rakefile
109
98
  - jekyll-slim.gemspec
110
99
  - lib/jekyll-slim.rb
111
- - lib/jekyll-slim/ext/convertible.rb
100
+ - lib/jekyll-slim/ext/layout.rb
112
101
  - lib/jekyll-slim/tags/slim_partial.rb
113
102
  - lib/jekyll-slim/version.rb
114
103
  - spec/spec_helper.rb
115
104
  homepage: ''
116
105
  licenses: []
106
+ metadata: {}
117
107
  post_install_message:
118
108
  rdoc_options: []
119
109
  require_paths:
120
110
  - lib
121
111
  required_ruby_version: !ruby/object:Gem::Requirement
122
- none: false
123
112
  requirements:
124
- - - ! '>='
113
+ - - '>='
125
114
  - !ruby/object:Gem::Version
126
115
  version: '0'
127
- segments:
128
- - 0
129
- hash: -3054739146948184044
130
116
  required_rubygems_version: !ruby/object:Gem::Requirement
131
- none: false
132
117
  requirements:
133
- - - ! '>='
118
+ - - '>='
134
119
  - !ruby/object:Gem::Version
135
120
  version: '0'
136
- segments:
137
- - 0
138
- hash: -3054739146948184044
139
121
  requirements: []
140
122
  rubyforge_project:
141
- rubygems_version: 1.8.25
123
+ rubygems_version: 2.0.3
142
124
  signing_key:
143
- specification_version: 3
125
+ specification_version: 4
144
126
  summary: Slim-lang support for Jekyll. Handles includes and layouts as well.
145
127
  test_files:
146
128
  - spec/spec_helper.rb
@@ -1,12 +0,0 @@
1
- module Jekyll
2
- class Layout
3
- def content
4
- if ext == '.slim' && @converted != true
5
- @content = ::Slim::Template.new{ @content }.render
6
- @converted = true
7
- else
8
- @content
9
- end
10
- end
11
- end
12
- end