tilt 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -0
- data/Gemfile +7 -2
- data/README.md +2 -2
- data/bin/tilt +2 -2
- data/lib/tilt.rb +1 -1
- data/lib/tilt/mapping.rb +2 -2
- data/lib/tilt/template.rb +0 -1
- data/test/tilt_marukutemplate_test.rb +1 -1
- data/tilt.gemspec +2 -2
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fceb7a7101d7fee0f5a3d64a4b554c0a0526b028
|
4
|
+
data.tar.gz: 4cfc354aebbcf7d22a7fc85d34cfdc74e17245e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ca1be3a71d372a712708730fc265b293da204309fcfc577229b96190f84bbea4f5dfb12d2ce3dbdb93f0adf2330da2ee8f97b07676fb826b61e42560e5c09c6
|
7
|
+
data.tar.gz: ce739c19f41b2dcff91ed9d6827839123407a471d644743ec7c292de4c24185b6b66adeacd968fd065a84d18277ee2b49308bf993af5a98d8f1121218dd1e50f
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,16 @@
|
|
1
1
|
## master
|
2
2
|
|
3
|
+
## 2.0.1 (2014-03-21)
|
4
|
+
|
5
|
+
* Fix Tilt::Mapping bug in Ruby 2.1.0 (9589652c569760298f2647f7a0f9ed4f85129f20)
|
6
|
+
* Fix `tilt --list` (#223, Achrome)
|
7
|
+
* Fix circular require (#221, amarshall)
|
8
|
+
|
9
|
+
## 2.0.0 (2013-11-30)
|
10
|
+
|
11
|
+
* Support Pathname in Template#new (#219, kabturek)
|
12
|
+
* Add Mapping#templates_for (judofyr)
|
13
|
+
* Support old-style #register (judofyr)
|
3
14
|
* Add Handlebars as external template engine (#204, judofyr, jimothyGator)
|
4
15
|
* Add org-ruby as external template engine (#207, judofyr, minad)
|
5
16
|
* Documentation typo (#208, elgalu)
|
data/Gemfile
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
source
|
1
|
+
source 'https://rubygems.org'
|
2
2
|
|
3
3
|
gem 'yard', '~> 0.8.6'
|
4
4
|
gem 'minitest', '~> 5.0'
|
@@ -21,10 +21,10 @@ group :engines do
|
|
21
21
|
gem 'nokogiri' if RUBY_VERSION > '1.9.2'
|
22
22
|
gem 'radius'
|
23
23
|
gem 'sass'
|
24
|
-
gem 'wikicloth'
|
25
24
|
gem 'rdoc', (ENV['RDOC_VERSION'] || '> 0')
|
26
25
|
|
27
26
|
platform :ruby do
|
27
|
+
gem 'wikicloth'
|
28
28
|
gem 'yajl-ruby'
|
29
29
|
gem 'redcarpet' if RUBY_VERSION > '1.8.7'
|
30
30
|
gem 'rdiscount', '>= 2.1.6' if RUBY_VERSION != '1.9.2'
|
@@ -37,3 +37,8 @@ group :engines do
|
|
37
37
|
end
|
38
38
|
end
|
39
39
|
|
40
|
+
## WHY do I have to do this?!?
|
41
|
+
platform :rbx do
|
42
|
+
gem 'rubysl'
|
43
|
+
end
|
44
|
+
|
data/README.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
Tilt [](http://travis-ci.org/rtomayko/tilt) [](https://gemnasium.com/rtomayko/tilt)
|
2
2
|
====
|
3
3
|
|
4
|
-
**NOTE** The
|
5
|
-
https://github.com/rtomayko/tilt/tree/tilt-1 for
|
4
|
+
**NOTE** The following file documents the current release of Tilt (2.0). See
|
5
|
+
https://github.com/rtomayko/tilt/tree/tilt-1 for documentation for Tilt 1.4.
|
6
6
|
|
7
7
|
Tilt is a thin interface over a bunch of different Ruby template engines in
|
8
8
|
an attempt to make their usage as generic as possible. This is useful for web
|
data/bin/tilt
CHANGED
@@ -44,9 +44,9 @@ ARGV.options do |o|
|
|
44
44
|
# list all available template engines
|
45
45
|
o.on("-l", "--list") do
|
46
46
|
groups = {}
|
47
|
-
Tilt.
|
47
|
+
Tilt.lazy_map.each do |pattern,engines|
|
48
48
|
engines.each do |engine|
|
49
|
-
key = engine.
|
49
|
+
key = engine[0].split('::').last.sub(/Template$/, '')
|
50
50
|
(groups[key] ||= []) << pattern
|
51
51
|
end
|
52
52
|
end
|
data/lib/tilt.rb
CHANGED
data/lib/tilt/mapping.rb
CHANGED
@@ -148,7 +148,7 @@ module Tilt
|
|
148
148
|
#
|
149
149
|
# @return [template class]
|
150
150
|
def [](file)
|
151
|
-
|
151
|
+
_, ext = split(file)
|
152
152
|
ext && lookup(ext)
|
153
153
|
end
|
154
154
|
|
@@ -256,8 +256,8 @@ module Tilt
|
|
256
256
|
|
257
257
|
def constant_defined?(name)
|
258
258
|
name.split('::').inject(Object) do |scope, n|
|
259
|
-
return false unless scope.const_defined?(n)
|
260
259
|
return false if scope.autoload?(n) # skip autload
|
260
|
+
return false unless scope.const_defined?(n)
|
261
261
|
scope.const_get(n)
|
262
262
|
end
|
263
263
|
end
|
data/lib/tilt/template.rb
CHANGED
@@ -28,7 +28,7 @@ begin
|
|
28
28
|
test "removes HTML when :filter_html is set" do
|
29
29
|
template = Tilt::MarukuTemplate.new(:filter_html => true) { |t|
|
30
30
|
"HELLO <blink>WORLD</blink>" }
|
31
|
-
assert_equal "<p>HELLO
|
31
|
+
assert_equal "<p>HELLO</p>", template.render.strip
|
32
32
|
end
|
33
33
|
end
|
34
34
|
rescue LoadError => boom
|
data/tilt.gemspec
CHANGED
@@ -3,8 +3,8 @@ Gem::Specification.new do |s|
|
|
3
3
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
4
4
|
|
5
5
|
s.name = 'tilt'
|
6
|
-
s.version = '2.0.
|
7
|
-
s.date = '
|
6
|
+
s.version = '2.0.1'
|
7
|
+
s.date = '2014-03-21'
|
8
8
|
|
9
9
|
s.description = "Generic interface to multiple Ruby template engines"
|
10
10
|
s.summary = s.description
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tilt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Tomayko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-03-21 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Generic interface to multiple Ruby template engines
|
14
14
|
email: r@tomayko.com
|
@@ -102,27 +102,27 @@ licenses:
|
|
102
102
|
metadata: {}
|
103
103
|
post_install_message:
|
104
104
|
rdoc_options:
|
105
|
-
- --line-numbers
|
106
|
-
- --inline-source
|
107
|
-
- --title
|
105
|
+
- "--line-numbers"
|
106
|
+
- "--inline-source"
|
107
|
+
- "--title"
|
108
108
|
- Tilt
|
109
|
-
- --main
|
109
|
+
- "--main"
|
110
110
|
- Tilt
|
111
111
|
require_paths:
|
112
112
|
- lib
|
113
113
|
required_ruby_version: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- -
|
115
|
+
- - ">="
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: '0'
|
118
118
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
119
119
|
requirements:
|
120
|
-
- -
|
120
|
+
- - ">="
|
121
121
|
- !ruby/object:Gem::Version
|
122
122
|
version: '0'
|
123
123
|
requirements: []
|
124
124
|
rubyforge_project:
|
125
|
-
rubygems_version: 2.
|
125
|
+
rubygems_version: 2.2.1
|
126
126
|
signing_key:
|
127
127
|
specification_version: 2
|
128
128
|
summary: Generic interface to multiple Ruby template engines
|