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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f43cb3f1357b1eeb55d129fed314692c5c053322
4
- data.tar.gz: 63ba1cd6367f652f75c968a479530ae6830dc663
3
+ metadata.gz: fceb7a7101d7fee0f5a3d64a4b554c0a0526b028
4
+ data.tar.gz: 4cfc354aebbcf7d22a7fc85d34cfdc74e17245e3
5
5
  SHA512:
6
- metadata.gz: 2a30fa65c04fe76bb58af64df4d1940272507d765b942eea1433ad070f0f924566f0c5b3569700dd50f947fc9c6bafe634a46c77279c42e4ac22ee8133e7adcf
7
- data.tar.gz: eca0811f6a72525467c766996191feb3c0bc59b533dbe91831379e7ba3142b4010f37452b232d52145431e66391c3c0a858c0457a8dbe98bd857e1cbc7e0a015
6
+ metadata.gz: 1ca1be3a71d372a712708730fc265b293da204309fcfc577229b96190f84bbea4f5dfb12d2ce3dbdb93f0adf2330da2ee8f97b07676fb826b61e42560e5c09c6
7
+ data.tar.gz: ce739c19f41b2dcff91ed9d6827839123407a471d644743ec7c292de4c24185b6b66adeacd968fd065a84d18277ee2b49308bf993af5a98d8f1121218dd1e50f
@@ -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 "http://rubygems.org"
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 [![Build Status](https://secure.travis-ci.org/rtomayko/tilt.png)](http://travis-ci.org/rtomayko/tilt) [![Dependency Status](https://gemnasium.com/rtomayko/tilt.png)](https://gemnasium.com/rtomayko/tilt)
2
2
  ====
3
3
 
4
- **NOTE** The follow file documents the upcoming release of Tilt (2.0). See
5
- https://github.com/rtomayko/tilt/tree/tilt-1 for the current version.
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.mappings.each do |pattern,engines|
47
+ Tilt.lazy_map.each do |pattern,engines|
48
48
  engines.each do |engine|
49
- key = engine.name.split('::').last.sub(/Template$/, '')
49
+ key = engine[0].split('::').last.sub(/Template$/, '')
50
50
  (groups[key] ||= []) << pattern
51
51
  end
52
52
  end
@@ -4,7 +4,7 @@ require 'tilt/template'
4
4
  # Namespace for Tilt. This module is not intended to be included anywhere.
5
5
  module Tilt
6
6
  # Current version.
7
- VERSION = '2.0.0'
7
+ VERSION = '2.0.1'
8
8
 
9
9
  @default_mapping = Mapping.new
10
10
 
@@ -148,7 +148,7 @@ module Tilt
148
148
  #
149
149
  # @return [template class]
150
150
  def [](file)
151
- prefix, ext = split(file)
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
@@ -1,4 +1,3 @@
1
- require 'tilt'
2
1
  require 'thread'
3
2
 
4
3
  module Tilt
@@ -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 </p>", template.render.strip
31
+ assert_equal "<p>HELLO</p>", template.render.strip
32
32
  end
33
33
  end
34
34
  rescue LoadError => boom
@@ -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.0'
7
- s.date = '2013-11-30'
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.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: 2013-11-30 00:00:00.000000000 Z
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.0.3
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