Skip to content

Commit

Permalink
update: Fix compatibility with crystal v1.0.0
Browse files Browse the repository at this point in the history
* deps: remove daemonize dependency
  • Loading branch information
Nephos committed Mar 23, 2021
1 parent e1b1b78 commit 8786aa1
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 19 deletions.
36 changes: 22 additions & 14 deletions shard.lock
Original file line number Diff line number Diff line change
@@ -1,30 +1,38 @@
version: 1.0
version: 2.0
shards:
crirc:
github: Meoowww/Crirc
commit: ffc405d1d4e271aa357c2bb20fc2bd2857b4d094
git: https://github.com/meoowww/crirc.git
version: 0.5.1+git.commit.c21010a9d9d3ef9067b5610ec4cb4ea389fdc508

daemonize:
github: DougEverly/daemonize.cr
commit: 03d7da27fe76ee6b77d47a66984969a308a42027
git: https://github.com/dougeverly/daemonize.cr.git
version: 0.1.0+git.commit.03d7da27fe76ee6b77d47a66984969a308a42027

db:
github: crystal-lang/crystal-db
version: 0.9.0
git: https://github.com/crystal-lang/crystal-db.git
version: 0.10.1

dotenv:
github: gdotdesign/cr-dotenv
git: https://github.com/gdotdesign/cr-dotenv.git
version: 0.7.0

micrate:
github: juanedi/micrate
version: 0.7.0
git: https://github.com/juanedi/micrate.git
version: 0.10.0

mysql:
git: https://github.com/crystal-lang/crystal-mysql.git
version: 0.13.0

pg:
github: will/crystal-pg
version: 0.21.0
git: https://github.com/will/crystal-pg.git
version: 0.23.1

rollable:
github: Nephos/crystal_rollable
commit: 98590287860e3307db6a7ff72774ab1469d90195
git: https://github.com/nephos/crystal_rollable.git
version: 1.0.0+git.commit.050af10ac2076293e79c69b511d1f3e0e0835f86

sqlite3:
git: https://github.com/crystal-lang/crystal-sqlite3.git
version: 0.18.0

3 changes: 0 additions & 3 deletions shard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,3 @@ dependencies:
# .env file
dotenv:
github: gdotdesign/cr-dotenv
# --daemonize
daemonize:
github: DougEverly/daemonize.cr
4 changes: 2 additions & 2 deletions src/DashBot/arguments.cr
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ class DashBot::Arguments
Dir.mkdir(File.dirname(@out)) if !Dir.exists?(File.dirname(@out))
}
parser.on("-h", "--help", "Show this help") { puts parser; exit }
parser.on("-d", "--daemonize", "Run in background as daemon") { @daemonize = true }
# parser.on("-d", "--daemonize", "Run in background as daemon") { @daemonize = true }
end
Daemonize.daemonize(stdout: @out, stderr: @err, stdin: "/dev/null") if @daemonize
# Daemonize.daemonize(stdout: @out, stderr: @err, stdin: "/dev/null") if @daemonize
end
end

0 comments on commit 8786aa1

Please sign in to comment.