Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing compilation error and version restrictions to allow for crystal 1.0 #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion shard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ authors:

license: MIT

crystal: 0.24.2
crystal: ">= 0.24.2, < 2.0.0"

dependencies:
stdio:
Expand Down
2 changes: 1 addition & 1 deletion src/have_files.cr
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module HaveFiles
end
end
end
Dir.rmdir(path)
Dir.delete(path)
else
File.delete(path)
end
Expand Down
5 changes: 4 additions & 1 deletion src/spec/expectation.cr
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ require "file_utils"
module HaveFiles::Spec
struct Expectation
@diff : String?
def diff; @diff.as(String); end

def diff
@diff.as(String)
end
Comment on lines -8 to +11
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was from running the crystal formatter


def initialize(@expected_dir : String, @base_dir : String = "/tmp", @cleanup : Bool = true)
end
Expand Down