Skip to content

Commit

Permalink
Update CHANGELOG and bump version to 2.1.0
Browse files Browse the repository at this point in the history
Update tilt.gemspec so it doesn't need to be regenerated
via a rake task.

Fixes #301, #380, #385, #393, #384, #390
  • Loading branch information
jeremyevans committed Feb 11, 2023
1 parent 094a127 commit 9e2dba1
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 73 deletions.
15 changes: 14 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
## master
## 2.1.0 (2023-02-17)

* Use UnboundMethod#bind_call on Ruby 2.7+ for better performance (#380, jeremyevans)
* Add Tilt::Template#freeze_string_literals? for freezing string literals in compiled templates (#301, jeremyevans)
* Use Haml::Template for Tilt::HamlTemplate if available (Haml 6+) (#391, ntkme)
* Deprecate BlueCloth, Less, and Sigil support (#382, jeremyevans)
* Add Template#compiled_path accessor to save compiled template output to file (#369, jeremyevans)
* Add Mapping#unregister to remove registered extensions (#376, jeremyevans)
* Add Mapping#register_pipeline to register template pipelines (#259, jeremyevans)
* Remove Tilt::Dummy (#364, jeremyevans)
* Ensure Mapping#extensions\_for returns unique values (#342, mojavelinux)
* Remove opal support, since the the opal API changed (#374, jeremyevans)
* Remove .livescript extension for LiveScript (#374, jeremyevans)
* Set required\_ruby\_version in gemspec (#371, jeremyevans)

## 2.0.11 (2022-07-22)

Expand Down
22 changes: 0 additions & 22 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,25 +60,3 @@ if defined?(Gem)
mv File.basename(f.name), f.name
end
end

# GEMSPEC ===================================================================

file 'tilt.gemspec' => FileList['{lib,test}/**','Rakefile'] do |f|
# read version from tilt.rb
version = File.read('lib/tilt.rb')[/VERSION = '(.*)'/] && $1
# read spec file and split out manifest section
spec = File.
read(f.name).
sub(/s\.version\s*=\s*'.*'/, "s.version = '#{version}'")
parts = spec.split(" # = MANIFEST =\n")
# determine file list from git ls-files
files = `git ls-files -- lib bin COPYING`.
split("\n").sort.reject{ |file| file =~ /^\./ }.
map{ |file| " #{file}" }.join("\n")
# piece file back together and write...
parts[1] = " s.files = %w[\n#{files}\n ]\n"
spec = parts.join(" # = MANIFEST =\n")
spec.sub!(/s.date = '.*'/, "s.date = '#{Time.now.strftime("%Y-%m-%d")}'")
File.open(f.name, 'w') { |io| io.write(spec) }
puts "updated #{f.name}"
end
2 changes: 1 addition & 1 deletion lib/tilt.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Namespace for Tilt. This module is not intended to be included anywhere.
module Tilt
# Current version.
VERSION = '2.0.11'
VERSION = '2.1.0'

@default_mapping = Mapping.new

Expand Down
54 changes: 5 additions & 49 deletions tilt.gemspec
Original file line number Diff line number Diff line change
@@ -1,61 +1,17 @@
require './lib/tilt'

Gem::Specification.new do |s|
s.name = 'tilt'
s.version = '2.0.11'
s.date = '2022-07-22'
s.version = Tilt::VERSION

s.description = "Generic interface to multiple Ruby template engines"
s.summary = s.description
s.license = "MIT"

s.authors = ["Ryan Tomayko"]
s.authors = ["Ryan Tomayko", "Magnus Holm", "Jeremy Evans"]
s.email = "r@tomayko.com"

# = MANIFEST =
s.files = %w[
COPYING
bin/tilt
lib/tilt.rb
lib/tilt/asciidoc.rb
lib/tilt/babel.rb
lib/tilt/bluecloth.rb
lib/tilt/builder.rb
lib/tilt/coffee.rb
lib/tilt/commonmarker.rb
lib/tilt/creole.rb
lib/tilt/csv.rb
lib/tilt/dummy.rb
lib/tilt/erb.rb
lib/tilt/erubi.rb
lib/tilt/erubis.rb
lib/tilt/etanni.rb
lib/tilt/haml.rb
lib/tilt/kramdown.rb
lib/tilt/less.rb
lib/tilt/liquid.rb
lib/tilt/livescript.rb
lib/tilt/mapping.rb
lib/tilt/markaby.rb
lib/tilt/maruku.rb
lib/tilt/nokogiri.rb
lib/tilt/pandoc.rb
lib/tilt/plain.rb
lib/tilt/prawn.rb
lib/tilt/radius.rb
lib/tilt/rdiscount.rb
lib/tilt/rdoc.rb
lib/tilt/redcarpet.rb
lib/tilt/redcloth.rb
lib/tilt/rst-pandoc.rb
lib/tilt/sass.rb
lib/tilt/sigil.rb
lib/tilt/string.rb
lib/tilt/template.rb
lib/tilt/typescript.rb
lib/tilt/wikicloth.rb
lib/tilt/yajl.rb
]
# = MANIFEST =

s.files = %w'COPYING bin/tilt' + Dir["lib/**/*.rb"]
s.executables = ['tilt']

s.homepage = "https://github.com/rtomayko/tilt/"
Expand Down

0 comments on commit 9e2dba1

Please sign in to comment.