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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3274c97946362d96e713004853c32790b28282bc
4
- data.tar.gz: d1647e5d1bee604c2875ec40a6dbe974091935be
3
+ metadata.gz: 9e47ea6ec093b8ab11e99b615dddf91181d24eed
4
+ data.tar.gz: 59167d45beac40e14a6f4f72c5ebb9fa9ef5f1b7
5
5
  SHA512:
6
- metadata.gz: b20d6816638ca8b9530df827610d3277538623b7f7ca95d09458d42341de994854e65e2033c9b3982eda326066ceedae9f9b6469aab8a71fed697e6c03497099
7
- data.tar.gz: 2f7304738d7bc18c62ed79617119e7fd68af14b3e8b2cc42be7743c747747661d47158e0a9916877b296a48167d1ec8b5143c41b9494d7c0fddacab741609e90
6
+ metadata.gz: c2d46715a028669f2854144443b80df6a7a143a5fb5f94c027d3e33e239d8024e090c1aeb8fdf1207293e211dbec4cb401342f5af9a7832691aedbfb8d3f58a6
7
+ data.tar.gz: 607fed96028adb84a7c281d245444d579d0a820dfa4a20bb109f469331af3e8e9441fe659e5bd506de9a46aeb9740aecde3bce3fd49bdd6b84e41b143f2752be
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- clomp (0.0.3)
4
+ clomp (0.0.4)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -1,4 +1,5 @@
1
- # Clomp [![CircleCI](https://circleci.com/gh/rubyrider/clomp.svg?style=svg)](https://circleci.com/gh/rubyrider/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) { tracks.select {|track| track.failure?}.count.zero? }
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
@@ -1,3 +1,3 @@
1
1
  module Clomp
2
- VERSION = "0.0.4"
2
+ VERSION = '0.0.5'
3
3
  end
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
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-12 00:00:00.000000000 Z
11
+ date: 2018-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler