pathway 0.0.16 → 0.0.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -30
- data/lib/pathway.rb +1 -1
- data/lib/pathway/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f7e4c097fd9029a04f2a89b3cd08f5cc1bf1d04
|
4
|
+
data.tar.gz: 8ba11ece82c8df606d7a2550fd107c8738ed595a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bbe7728807988d4312337795ab6cb8d203b47541cc210dd3e18e34eb279aa2332a2f48b779312878fb00042ea0339386db5374d9d0ca527b6d8dd6df30a48131
|
7
|
+
data.tar.gz: 0de4b1d09b9753a8bfb5c6002b789b65d8e28248082c91c43aa6b78b12e857967cb3c2d20d238896068b72dc0bec0a3b349ddf2c63d03a580858f8dbf6f24cb9
|
data/README.md
CHANGED
@@ -4,7 +4,9 @@
|
|
4
4
|
[![CircleCI](https://circleci.com/gh/pabloh/pathway/tree/master.svg?style=shield)](https://circleci.com/gh/pabloh/pathway/tree/master)
|
5
5
|
[![Coverage Status](https://coveralls.io/repos/github/pabloh/pathway/badge.svg?branch=master)](https://coveralls.io/github/pabloh/pathway?branch=master)
|
6
6
|
|
7
|
-
|
7
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/pathway`. To experiment with that code, run `bin/console` for an interactive prompt.
|
8
|
+
|
9
|
+
TODO: Delete this and the text above, and describe your gem
|
8
10
|
|
9
11
|
## Installation
|
10
12
|
|
@@ -22,37 +24,9 @@ Or install it yourself as:
|
|
22
24
|
|
23
25
|
$ gem install pathway
|
24
26
|
|
25
|
-
## Introduction
|
26
|
-
|
27
27
|
## Usage
|
28
28
|
|
29
|
-
|
30
|
-
|
31
|
-
#### Function objects (`call` methods)
|
32
|
-
#### Steps
|
33
|
-
##### Succesful
|
34
|
-
##### Failed
|
35
|
-
#### Operation result
|
36
|
-
#### Initialization and context
|
37
|
-
#### Execution process state
|
38
|
-
#### Result value
|
39
|
-
#### Alternative invocation syntaxes and pattern matching DSL
|
40
|
-
|
41
|
-
### Plugins
|
42
|
-
#### Plugin architecture
|
43
|
-
|
44
|
-
#### `SimpleAuth` plugin
|
45
|
-
#### `DryValidation` plugin
|
46
|
-
#### `SequelModels` plugin
|
47
|
-
#### `Responder` plugin
|
48
|
-
|
49
|
-
### Testing tools
|
50
|
-
#### Rspec config
|
51
|
-
#### Rspec matchers
|
52
|
-
|
53
|
-
## Best practices
|
54
|
-
### Operation object design and organization
|
55
|
-
### Testing recomendations
|
29
|
+
TODO: Write usage instructions here
|
56
30
|
|
57
31
|
## Development
|
58
32
|
|
data/lib/pathway.rb
CHANGED
@@ -115,7 +115,7 @@ module Pathway
|
|
115
115
|
failure Error.new(type: type, message: message, details: details)
|
116
116
|
end
|
117
117
|
|
118
|
-
def wrap_if_present(value, type: :not_found, message: nil, details:
|
118
|
+
def wrap_if_present(value, type: :not_found, message: nil, details: {})
|
119
119
|
value.nil? ? error(type, message: message, details: details) : success(value)
|
120
120
|
end
|
121
121
|
end
|
data/lib/pathway/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pathway
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pablo Herrero
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-09-
|
11
|
+
date: 2017-09-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: inflecto
|