Skip to content

Commit

Permalink
Fix: Dir.working_directory is now Dir.current (Crystal > 0.9.1)
Browse files Browse the repository at this point in the history
  • Loading branch information
ysbaddaden committed Dec 8, 2015
1 parent 862cbc3 commit c626acd
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
5 changes: 1 addition & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
#ifndef CRYSTAL_BIN
# CRYSTAL_BIN := $(shell which crystal)
#endif
CRYSTAL_BIN := $(shell which crystal)
CRYSTAL_BIN ?= $(shell which crystal)

VERSION := $(shell cat VERSION)
OS := $(shell uname -s | tr '[:upper:]' '[:lower:]')
Expand Down
2 changes: 1 addition & 1 deletion shard.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ version: 1.0
shards:
minitest:
github: ysbaddaden/minitest.cr
version: 0.1.5
commit: dba7639846ea4df911d07ad0137fd04148853ab1

5 changes: 4 additions & 1 deletion shard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,7 @@ authors:
development_dependencies:
minitest:
github: ysbaddaden/minitest.cr
version: ">= 0.1.5"
branch: master
#version: "> 0.1.5"

license: Apache-2.0
2 changes: 1 addition & 1 deletion src/cli.cr
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module Shards

def self.run
OptionParser.parse! do |opts|
path = Dir.working_directory
path = Dir.current

opts.on("--no-color", "") { self.colors = false }
opts.on("--version", "") { puts self.version_string; exit }
Expand Down
4 changes: 2 additions & 2 deletions src/config.cr
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ module Shards
SPEC_FILENAME = "shard.yml"
LOCK_FILENAME = "shard.lock"

CACHE_DIRECTORY = ENV["SHARDS_CACHE_PATH"]? || File.join(Dir.working_directory, ".shards")
INSTALL_PATH = ENV["SHARDS_INSTALL_PATH"]? || File.join(Dir.working_directory, "libs")
CACHE_DIRECTORY = ENV["SHARDS_CACHE_PATH"]? || File.join(Dir.current, ".shards")
INSTALL_PATH = ENV["SHARDS_INSTALL_PATH"]? || File.join(Dir.current, "libs")

DEFAULT_COMMAND = "install"
DEFAULT_VERSION = "0"
Expand Down

0 comments on commit c626acd

Please sign in to comment.