Skip to content

Commit

Permalink
update for crystal 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
robacarp committed Apr 10, 2021
1 parent 30c9cae commit 9dfd3ec
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 16 deletions.
12 changes: 6 additions & 6 deletions shard.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
name: mosquito
version: 0.10.0
version: 0.11.0

authors:
- robacarp

crystal: '1.0.0'
crystal: '>= 0.36.1, < 2.0.0'

license: MIT

dependencies:
redis:
github: stefanwille/crystal-redis
version: ~> 2.6.0
version: ~> 2.7.0
habitat:
github: luckyframework/habitat
version: ~> 0.4.4
version: ~> 0.4.7

development_dependencies:
minitest:
github: ysbaddaden/minitest.cr
version: ~> 0.5.1
version: ~> 1.0.0

timecop:
github: crystal-community/timecop.cr
version: ~> 0.4.0
version: ~> 0.4.1
2 changes: 1 addition & 1 deletion src/mosquito/version.cr
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Mosquito
VERSION = "0.10.0"
VERSION = "0.11.0"
end
1 change: 1 addition & 0 deletions test/mosquito/queue_test.cr
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ describe Queue do
assert_includes waiting_tasks, task.id
end

# todo: brittle test
it "can enqueue a task with a relative time" do
offset = 3.seconds
timestamp = offset.from_now.to_unix_ms
Expand Down
9 changes: 0 additions & 9 deletions test/mosquito/version_test.cr
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,3 @@ describe "mosquito version numbers" do
end
end
end

describe "crystal version numbers" do
it "matches" do
version_file_contents = File.read(".crystal-version").strip
File.open("shard.yml") do |file|
assert_equal version_file_contents, YAML.parse(file)["crystal"].as_s
end
end
end

0 comments on commit 9dfd3ec

Please sign in to comment.