Skip to content

Commit

Permalink
Updated for Crystal 0.36.0
Browse files Browse the repository at this point in the history
  • Loading branch information
naqvis committed Jan 27, 2021
1 parent ae7afd8 commit 43da04c
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 22 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/crystar-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: '0 6 * * 6'
jobs:
build:
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
- name: Install Crystal
uses: oprypin/install-crystal@v1.3.0
- name: Install dependencies
run: shards install
- name: Run tests
run: crystal spec
- name: Generate docs
run: crystal doc
- name: Deploy
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: docs
SINGLE_COMMIT: true
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
[![Build Status](https://travis-ci.org/naqvis/crystar.svg?branch=master)](https://travis-ci.org/naqvis/crystar)
# Crystal Tar (Crystar)
![CI](https://github.com/naqvis/crystar/workflows/CI/badge.svg)
[![GitHub release](https://img.shields.io/github/release/naqvis/crystar.svg)](https://github.com/naqvis/crystar/releases)
[![Docs](https://img.shields.io/badge/docs-available-brightgreen.svg)](https://naqvis.github.io/crystar/)

# Crystal Tar (Crystar)

Shard `Crystar` implements access to tar archives.

*No external library needed.* This is written in **pure Crystal**.
Expand Down
4 changes: 2 additions & 2 deletions shard.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: crystar
version: 0.1.8
version: 0.1.9
description: |
Shard Crystar implements access to tar archives. This shard aims to cover most variations of the format, including those produced by GNU and BSD tar tools.
authors:
- Ali Naqvi <syed.alinaqvi@gmail.com>

crystal: 0.35.1
crystal: 0.36.0

license: MIT
2 changes: 1 addition & 1 deletion spec/reader_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ module Crystar
else
IO.copy entry.io, data
end
chksums << Digest::MD5.hexdigest data
chksums << Digest::MD5.hexdigest data.to_s
end

hdrs.size.should eq(v.headers.size)
Expand Down
2 changes: 1 addition & 1 deletion src/crystar.cr
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ require "./tar/*"
# end
# ```
module Crystar
VERSION = "0.1.8"
VERSION = "0.1.9"

# Common Crystar exceptions
class Error < Exception
Expand Down
2 changes: 1 addition & 1 deletion src/tar/header.cr
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ module Crystar
def initialize(@header)
end

def size : UInt64
def size : Int64
header.size
end

Expand Down

0 comments on commit 43da04c

Please sign in to comment.