Skip to content

Commit

Permalink
Add support for Crystal 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lbarasti committed Apr 12, 2021
1 parent d4a97c0 commit 57d23fb
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 16 deletions.
7 changes: 0 additions & 7 deletions .editorconfig

This file was deleted.

19 changes: 19 additions & 0 deletions .github/workflows/crystal.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Crystal spec

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
test:
runs-on: ubuntu-latest

container:
image: crystallang/crystal

steps:
- uses: actions/checkout@v2
- name: Run tests
run: crystal spec
4 changes: 0 additions & 4 deletions .travis.yml

This file was deleted.

9 changes: 9 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"spellright.language": [
"engb"
],
"spellright.documentTypes": [
"markdown",
"latex"
]
}
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
[![GitHub release](https://img.shields.io/github/release/lbarasti/dataclass.svg)](https://github.com/lbarasti/dataclass/releases)
[![Build Status](https://travis-ci.org/lbarasti/dataclass.svg?branch=master)](https://travis-ci.org/lbarasti/dataclass)
![Build Status](https://github.com/lbarasti/dataclass/workflows/Crystal%20spec/badge.svg)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)


# dataclass

A [Crystal](http://crystal-lang.org/) macro to ease the definition of *data classes*, i.e. classes whose main purpose is to hold data.
Expand Down Expand Up @@ -228,7 +227,7 @@ end
dataclass A{id : String}
dataclass B{id : String, extra : Int32} < A # => won't compile
```
This is by design. Try defining your data classes so that they [inherit from a commmon abstract class](https://stackoverflow.com/a/12706475) instead.
This is by design. Try defining your data classes so that they [inherit from a common abstract class](https://stackoverflow.com/a/12706475) instead.

## Development

Expand Down
4 changes: 2 additions & 2 deletions shard.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: dataclass
version: 1.1.0
version: 1.1.1

authors:
- lbarasti

description: |
Data class macros for the Crystal Language.
crystal: 0.32.1
crystal: ">= 0.32.1"

license: MIT

0 comments on commit 57d23fb

Please sign in to comment.