kase 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/CHANGELOG.md +11 -0
- data/README.md +20 -8
- data/lib/kase/switcher.rb +1 -1
- data/lib/kase/version.rb +1 -1
- data/lib/kase.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb222da1a962d8afccb1b98556a72e2e4160897e
|
4
|
+
data.tar.gz: 6b10ed97e49ae29112a432bc84fbda91171980c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1fb61b66deed365819d02994d2384b83c5ebfc687297c04c6b5a9349efde4e4a56b63e71deb129eceb0f8bdf8f9c286900e608f01acb33a14b1603577fc3a39
|
7
|
+
data.tar.gz: 8027035e607c4df711bbc2a07b55e01e6a207aa039371df62a66f64842e2a579242dd5ddf12ef61a2b12ff7c07c9f62dbdb8da15b047a47284cc27640c3313a1
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
ADDED
data/README.md
CHANGED
@@ -1,10 +1,13 @@
|
|
1
1
|
# Kase
|
2
2
|
|
3
|
-
Kase gracefully
|
3
|
+
Kase gracefully pattern matches `[:ok, result]`-like return values.
|
4
4
|
|
5
5
|
It is a tool to avoid using exceptions as flow control and to write safer and
|
6
6
|
more readable code.
|
7
7
|
|
8
|
+
[![Gem Version](https://badge.fury.io/rb/kase.svg)](https://badge.fury.io/rb/kase)
|
9
|
+
[![Build Status](https://travis-ci.org/lasseebert/kase.svg?branch=master)](https://travis-ci.org/lasseebert/kase)
|
10
|
+
|
8
11
|
## Introduction
|
9
12
|
|
10
13
|
The idea is inspired by Elixir in which many functions returns something like
|
@@ -72,7 +75,7 @@ end
|
|
72
75
|
|
73
76
|
This is much more easy to read and reason about.
|
74
77
|
|
75
|
-
See below for
|
78
|
+
See below for a full list of what Kase does.
|
76
79
|
|
77
80
|
## Installation
|
78
81
|
|
@@ -250,7 +253,7 @@ Note that `#kase` is aliased to `#call` so you can use the shorthand
|
|
250
253
|
|
251
254
|
## Development
|
252
255
|
|
253
|
-
* Install dependencies with `bundle`
|
256
|
+
* Install development dependencies with `bundle`
|
254
257
|
* Run specs with `bundle exec rspec`
|
255
258
|
|
256
259
|
## Contributing
|
@@ -264,12 +267,21 @@ contributors are expected to adhere to the
|
|
264
267
|
|
265
268
|
### Pull requests
|
266
269
|
|
267
|
-
|
270
|
+
A pull request should consist of
|
271
|
+
|
272
|
+
* At least one failing test that proves the bug or documents the feature.
|
273
|
+
* The implementation of the bugfix or feature
|
274
|
+
* A line in the `CHANGELOG.md` with a description of the change, a link to the pull
|
275
|
+
request and a link to your github user.
|
276
|
+
|
277
|
+
## Contact
|
278
|
+
|
279
|
+
Find me on twitter: [@lasseebert](https://twitter.com/lasseebert)
|
280
|
+
|
281
|
+
## Alternatives
|
268
282
|
|
269
|
-
|
270
|
-
|
271
|
-
3. Implement bugfix or feature
|
272
|
-
4. Make pull request
|
283
|
+
* [Noadi](https://github.com/katafrakt/noaidi) mimics the functional pattern
|
284
|
+
matching of Elixir and might be used as an alternative of Kase.
|
273
285
|
|
274
286
|
## License
|
275
287
|
|
data/lib/kase/switcher.rb
CHANGED
data/lib/kase/version.rb
CHANGED
data/lib/kase.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kase
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lasse Skindstad Ebert
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-04-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -76,6 +76,7 @@ files:
|
|
76
76
|
- ".gitignore"
|
77
77
|
- ".rspec"
|
78
78
|
- ".travis.yml"
|
79
|
+
- CHANGELOG.md
|
79
80
|
- CODE_OF_CONDUCT.md
|
80
81
|
- Gemfile
|
81
82
|
- LICENSE.txt
|