Skip to content

Commit

Permalink
Add compatibility with Crystal 0.35.0
Browse files Browse the repository at this point in the history
  • Loading branch information
straight-shoota committed Jun 9, 2020
1 parent 96039f1 commit 7511403
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Changelog
All notable changes to Crinja will be documented in this file.

## 0.6.1 (2020-06-09)

Compatibility with Crystal 0.35.0

## 0.6.0 (2020-04-03)

Compatibility with Crystal 0.34.0
Expand Down
4 changes: 2 additions & 2 deletions shard.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: crinja
version: 0.6.0
version: 0.6.1
license: Apache-2.0
crystal: 0.34.0
crystal: 0.35.0

authors:
- Johannes Müller <straightshoota@gmail.com>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/filter/join.cr
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module Crinja::Filter
do_attribute = attribute.truthy?
attr_name = attribute.to_s
SafeString.build do |io|
target.join(separator, io) do |item|
target.join(io, separator) do |item|
if do_attribute
item = Resolver.resolve_attribute(attr_name, item)
end
Expand Down
4 changes: 2 additions & 2 deletions src/loader.cr
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ abstract class Crinja::Loader

def to_s(io)
io << "FileSystemLoader("
searchpaths.join(':', io)
searchpaths.join(io, ':')
io << ")"
end

Expand Down Expand Up @@ -123,7 +123,7 @@ abstract class Crinja::Loader
# :nodoc:
def to_s(io)
io << "#<HashLoader:"
data.keys.join(", ", io)
data.keys.join(io, ", ")
io << ">"
end
end
Expand Down
4 changes: 2 additions & 2 deletions src/runtime/finalizer.cr
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ struct Crinja::Finalizer
protected def stringify(array : Array)
@inside_struct = true
@io << "["
array.join(", ", @io) { |item| stringify(item) }
array.join(@io, ", ") { |item| stringify(item) }
@io << "]"
end

Expand All @@ -76,7 +76,7 @@ struct Crinja::Finalizer
protected def stringify(array : Crinja::Tuple)
@inside_struct = true
@io << "("
array.join(", ", @io) { |item| stringify(item) }
array.join(@io, ", ") { |item| stringify(item) }
@io << ")"
end

Expand Down
2 changes: 1 addition & 1 deletion src/runtime/tuple.cr
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class Crinja::Tuple

def to_s(io)
io << "(("
join ", ", io, &.inspect(io)
join io, ", ", &.inspect(io)
io << "))"
end

Expand Down

0 comments on commit 7511403

Please sign in to comment.