First commit

This commit is contained in:
Sdogruyol 2016-04-09 17:37:46 +03:00
commit 189d577c64
10 changed files with 118 additions and 0 deletions

6
.gitignore vendored Normal file
View File

@ -0,0 +1,6 @@
/doc/
/libs/
/.crystal/
/.shards/

1
.travis.yml Normal file
View File

@ -0,0 +1 @@
language: crystal

21
LICENSE Normal file
View File

@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2016 Sdogruyol
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

31
README.md Normal file
View File

@ -0,0 +1,31 @@
# spec-kemal
Kemal helpers for `spec` for easy testing.
## Installation
TODO: Write installation instructions here
## Usage
TODO: Write usage instructions here
## Development
TODO: Write development instructions here
## Contributing
1. Fork it ( https://github.com/[your-github-name]/spec-kemal/fork )
2. Create your feature branch (git checkout -b my-new-feature)
3. Commit your changes (git commit -am 'Add some feature')
4. Push to the branch (git push origin my-new-feature)
5. Create a new Pull Request
## Contributors
- [[your-github-name]](https://github.com/[your-github-name]) Sdogruyol - creator, maintainer

14
shard.lock Normal file
View File

@ -0,0 +1,14 @@
version: 1.0
shards:
kemal:
github: sdogruyol/kemal
commit: 65d0af5b5f953c9c263d0e4c657517c4d64567ce
kilt:
github: jeromegn/kilt
version: 0.3.3
radix:
github: luislavena/radix
version: 0.1.1

12
shard.yml Normal file
View File

@ -0,0 +1,12 @@
name: spec-kemal
version: 0.1.0
dependencies:
kemal:
github: sdogruyol/kemal
branch: master
authors:
- Sdogruyol <dogruyolserdar@gmail.com>
license: MIT

9
spec/spec-kemal_spec.cr Normal file
View File

@ -0,0 +1,9 @@
require "./spec_helper"
describe Spec::Kemal do
# TODO: Write tests
it "works" do
false.should eq(true)
end
end

2
spec/spec_helper.cr Normal file
View File

@ -0,0 +1,2 @@
require "spec"
require "../src/spec-kemal"

19
src/spec-kemal.cr Normal file
View File

@ -0,0 +1,19 @@
require "spec"
require "kemal"
Kemal.config.env = "test"
Spec.before_each do
spawn do
Kemal.run
Kemal.config.server.listen
end
sleep 0.00001
end
Spec.after_each do
spawn do
Kemal.run
Kemal.config.server.listen
end
end

View File

@ -0,0 +1,3 @@
module Spec::Kemal
VERSION = "0.1.0"
end