pathway 0.0.16 → 0.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 44064358d4eecc254675bd8c06339391665f2bc7
4
- data.tar.gz: 7572f812298d4967f4bb4524a837e3bb2a073112
3
+ metadata.gz: 0f7e4c097fd9029a04f2a89b3cd08f5cc1bf1d04
4
+ data.tar.gz: 8ba11ece82c8df606d7a2550fd107c8738ed595a
5
5
  SHA512:
6
- metadata.gz: cb09576e32c06454c5eeb0493ebfe95c110db6551047b5cecd2c977cb0effd784e6079f04db7a47bfb4f9bb77fbdffd9bc7cbdd3031579f22a083d69bd8f63aa
7
- data.tar.gz: 2a9bb5f9e1ec76a287e737c430830f5ece21dde19a9d53f9a448cb11ef929ee81a99708c6719a7d06a35c0b99da23ae28a10607128fc03c9c8c0b9524582bbd4
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
- Pathway allows you to encapsulate your app's business logic into operation objects (also known as application services on the DDD lingo).
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
- ### Core API and concepts
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
@@ -1,3 +1,3 @@
1
1
  module Pathway
2
- VERSION = '0.0.16'
2
+ VERSION = '0.0.17'
3
3
  end
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.16
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-22 00:00:00.000000000 Z
11
+ date: 2017-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: inflecto