Skip to content

Commit

Permalink
feat: update to crystal 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lbguilherme committed May 11, 2021
1 parent 1fb3af1 commit 4ea739e
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 19 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/crystal.yml
Expand Up @@ -13,7 +13,7 @@ jobs:
- 28015:28015

container:
image: crystallang/crystal:0.35.1
image: crystallang/crystal:1.0.0

steps:
- uses: actions/checkout@v1
Expand All @@ -22,10 +22,10 @@ jobs:
run: |
apt-get update && \
apt-get install wget libgflags2.2 libsnappy1v5 duktape-dev -y && \
wget https://launchpad.net/~hnakamur/+archive/ubuntu/rocksdb/+files/librocksdb6.5_6.5.2-1ppa2~bionic_amd64.deb && \
wget https://launchpad.net/~hnakamur/+archive/ubuntu/rocksdb/+files/librocksdb-dev_6.5.2-1ppa2~bionic_amd64.deb && \
apt install ./librocksdb6.5_6.5.2-1ppa2~bionic_amd64.deb -y && \
apt install ./librocksdb-dev_6.5.2-1ppa2~bionic_amd64.deb -y
wget https://launchpad.net/~hnakamur/+archive/ubuntu/rocksdb/+files/librocksdb6.5_6.7.3-1ppa1~bionic_amd64.deb && \
wget https://launchpad.net/~hnakamur/+archive/ubuntu/rocksdb/+files/librocksdb-dev_6.7.3-1ppa1~bionic_amd64.deb && \
apt install ./librocksdb6.5_6.7.3-1ppa1~bionic_amd64.deb -y && \
apt install ./librocksdb-dev_6.7.3-1ppa1~bionic_amd64.deb -y
- name: Install dependencies from shards
run: shards install
Expand All @@ -40,7 +40,7 @@ jobs:
runs-on: ubuntu-latest

container:
image: crystallang/crystal:0.35.1
image: crystallang/crystal:1.0.0

steps:
- uses: actions/checkout@v1
Expand Down
4 changes: 2 additions & 2 deletions shard.lock
Expand Up @@ -2,9 +2,9 @@ version: 2.0
shards:
future:
git: https://github.com/crystal-community/future.cr.git
version: 0.1.0
version: 1.0.0

rocksdb:
git: https://github.com/lbguilherme/rocksdb-crystal.git
version: 0.1.0+git.commit.5136ce80a3ad90904c429e3989c5d3625c1a16c8
version: 0.1.0+git.commit.16cd3010e23c65199ddade92be70b06411ea9576

2 changes: 1 addition & 1 deletion shard.yml
Expand Up @@ -15,6 +15,6 @@ dependencies:
future:
github: crystal-community/future.cr

crystal: 0.35.1
crystal: ">= 1.0, < 2.0"

license: MIT
8 changes: 0 additions & 8 deletions spec/original_rethinkdb_testsuite/reql_spec.cr
Expand Up @@ -107,14 +107,6 @@ def recursive_match(result, target)
end
end

# def recursive_match(result : Array, target : Array)
# result.should be_a Array(ReQL::Datum)
# result.size.should eq target.size
# result.size.times do |i|
# recursive_match result[i], target[i]
# end
# end

struct ReqlMatchers
def int_cmp(value)
IntCmpMatcher.new(value.to_i64)
Expand Down
2 changes: 1 addition & 1 deletion src/driver/remote_connection.cr
Expand Up @@ -88,7 +88,7 @@ module RethinkDB
@socket.read(slice)
@channels[id]?.try &.send String.new(slice)
end
rescue IO::EOFError | Errno
rescue IO::Error
@channels.each_value &.close
@channels.clear
@socket.close rescue nil
Expand Down
2 changes: 1 addition & 1 deletion src/reql/terms/floor_ceil_round.cr
Expand Up @@ -38,7 +38,7 @@ module ReQL

def eval_term(term : RoundTerm)
target = eval(term.args[0])
Datum.new(target.number_value.round)
Datum.new(target.number_value.round(:ties_away))
end
end
end

0 comments on commit 4ea739e

Please sign in to comment.