clomp 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +2 -1
- data/lib/clomp/result.rb +10 -3
- data/lib/clomp/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: 9e47ea6ec093b8ab11e99b615dddf91181d24eed
|
4
|
+
data.tar.gz: 59167d45beac40e14a6f4f72c5ebb9fa9ef5f1b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c2d46715a028669f2854144443b80df6a7a143a5fb5f94c027d3e33e239d8024e090c1aeb8fdf1207293e211dbec4cb401342f5af9a7832691aedbfb8d3f58a6
|
7
|
+
data.tar.gz: 607fed96028adb84a7c281d245444d579d0a820dfa4a20bb109f469331af3e8e9441fe659e5bd506de9a46aeb9740aecde3bce3fd49bdd6b84e41b143f2752be
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,5 @@
|
|
1
|
-
# Clomp
|
1
|
+
# Clomp
|
2
|
+
[![CircleCI](https://circleci.com/gh/rubyrider/clomp.svg?style=svg)](https://circleci.com/gh/rubyrider/clomp) [![Issues](http://img.shields.io/github/issues/rubyrider/clomp.svg)]( https://github.com/rubyrider/clomp/issues ) [![Gem Version](https://badge.fury.io/rb/clomp.svg)](https://badge.fury.io/rb/clomp) [![MIT license](http://img.shields.io/badge/license-MIT-brightgreen.svg)](http://opensource.org/licenses/MIT) [![Maintainability](https://api.codeclimate.com/v1/badges/a7edc252626bdf40d389/maintainability)](https://codeclimate.com/github/rubyrider/clomp/maintainability) [![Chat](https://img.shields.io/badge/gitter.im-rubyrider/clomp-green.svg)]( https://gitter.im/clomp-ruby/Lobby ) [![Code Triagers Badge](https://www.codetriage.com/rubyrider/clomp/badges/users.svg)](https://www.codetriage.com/rubyrider/clomp)
|
2
3
|
|
3
4
|
**Clomp gem provides a smooth, lightweight, productive and reusable way to build an operation using Railway oriented programing paradigm.**
|
4
5
|
Clomp will give you an easy interface to complete your service operation. You can use it with any framework
|
data/lib/clomp/result.rb
CHANGED
@@ -3,13 +3,20 @@ module Clomp
|
|
3
3
|
attr_reader :options, :operation, :state
|
4
4
|
|
5
5
|
def initialize(options: {}, tracks: [], operation: nil)
|
6
|
-
@report
|
7
|
-
|
6
|
+
@report = {}
|
8
7
|
@operation = set_prop :operation, operation || Operation.new
|
9
8
|
@tracks = set_prop :tracks, tracks || []
|
10
9
|
@options ||= {}
|
11
10
|
@immutable_data = set_prop :options, options
|
12
|
-
@state = ->(tracks) {
|
11
|
+
@state = ->(tracks) {tracks.select {|track| track.failure?}.count.zero?}
|
12
|
+
end
|
13
|
+
|
14
|
+
def data
|
15
|
+
options[:mutable_data]
|
16
|
+
end
|
17
|
+
|
18
|
+
def immutable_data
|
19
|
+
options[:immutable_data]
|
13
20
|
end
|
14
21
|
|
15
22
|
def success?
|
data/lib/clomp/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: clomp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Irfan Ahmed
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-01-
|
11
|
+
date: 2018-01-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|