Skip to content

Commit 9427f16

Browse files
committed
feat: move to annotations
BREAKING CHANGE: updated Query semantics. Closes #67, fixes #62, also closes #45 and closes #64
1 parent 77adcfc commit 9427f16

137 files changed

Lines changed: 5052 additions & 3275 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.travis.yml

Lines changed: 32 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,42 @@
11
language: crystal
22
services:
33
- postgresql
4-
script:
5-
- crystal spec
6-
- env POSTGRESQL_URL=$POSTGRESQL_URL crystal spec db_spec
7-
- crystal docs
4+
cache:
5+
directories:
6+
- lib
7+
jobs:
8+
include:
9+
- stage: Install shards
10+
script: shards install
11+
- stage: Run tests
12+
- name: Run Crystal specs
13+
script:
14+
- crystal spec
15+
- name: Run PostgreSQL specs
16+
env:
17+
- POSTGRESQL_URL=postgres://postgres@localhost:5432/test
18+
before_script:
19+
- psql -c 'create database test;' -U postgres
20+
- psql $POSTGRESQL_URL < db_spec/pg/migration.sql
21+
script:
22+
- shards install
23+
- env POSTGRESQL_URL=$POSTGRESQL_URL crystal spec db_spec/pg
24+
- name: Run SQLite3 specs
25+
env: $SQLITE3_URL=sqlite3://./test.sqlite3
26+
before_script:
27+
- sqlite3 ./test.sqlite3 < db_spec/sqlite3/migration.sql
28+
script:
29+
- env SQLITE3_URL=$SQLITE3_URL crystal spec db_spec/sqlite3
30+
- name: Generate docs
31+
script:
32+
- crystal docs
833
deploy:
934
provider: pages
1035
skip_cleanup: true
36+
keep_history: true
1137
github_token: $GITHUB_TOKEN
1238
on:
1339
branch: master
1440
local_dir: docs
15-
before_script:
16-
- psql -c 'create database test;' -U postgres
17-
- psql $POSTGRESQL_URL < db_spec/pg/migration.sql
18-
env:
19-
- POSTGRESQL_URL=postgres://postgres@localhost:5432/test
41+
addons:
42+
postgresql: "9.5"

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2017 Vlad Faust
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

0 commit comments

Comments
 (0)