Skip to content

Commit

Permalink
Merge pull request #3 from jwoertink/crystal1.0
Browse files Browse the repository at this point in the history
Updates to support Crystal 1.0
  • Loading branch information
jwoertink authored Apr 19, 2021
2 parents e1b03a3 + 9332646 commit 2da7f6d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
8 changes: 7 additions & 1 deletion shard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,16 @@ version: 0.3.0
authors:
- Jeremy Woertink <[email protected]>

crystal: 0.29.0
crystal: ">= 0.35.1, < 2.0.0"

license: MIT

dependencies:
future:
github: crystal-community/future.cr
version: ~> 1.0.0

development_dependencies:
ameba:
github: crystal-ameba/ameba
version: ~> 0.14.2
1 change: 0 additions & 1 deletion spec/lucky-cluster_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ require "./spec_helper"

describe Lucky::Cluster do
# TODO: Write tests

end
4 changes: 1 addition & 3 deletions src/lucky-cluster.cr
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
require "future"

module Lucky

class Cluster < ::AppServer
VERSION = "0.3.0"
private getter processes : Array(Future::Compute(Nil))
Expand Down Expand Up @@ -48,7 +47,7 @@ module Lucky
log_boot
bind_tcp_and_listen

Signal::INT.trap do |signal|
Signal::INT.trap do |_signal|
puts "Stopping server"
server.close
end
Expand Down Expand Up @@ -98,6 +97,5 @@ module Lucky
end
end
end

end
end

0 comments on commit 2da7f6d

Please sign in to comment.