clomp 0.0.8 → 0.0.9

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: a6893745a5c03bed50832d7c4e60cd820d1e9b0a
4
- data.tar.gz: 44c458bfe50fa6033170fe4f454587ce772b531d
3
+ metadata.gz: a1a7097edec0d066d18846301a419ce9ed2c067e
4
+ data.tar.gz: 15a99e0ad2b724321e23b333e200fb6c0f36c258
5
5
  SHA512:
6
- metadata.gz: c417fe6c145614e607730ef5b6f5a92299f96958fd1a24219bd822c4d2b5d3fc7087e5bb4c4379c4ae367174042091ed35829584b42b8ec8ec3faefb40a80a95
7
- data.tar.gz: 76bf01d6eae23be8b117e4797745b935b5ae904e881ba004a732c75ee0781e215fc9aeca4147aa7ca2a415be56f72e3c357bb4a638d97f0de68ee87329f66968
6
+ metadata.gz: 364506a2f73e2546626135f18b8d8cb1f280333632d622103fed4cfcdbc80bd0a0ce00c9a6d82228491c4e7dfa9de5a4bf77b8eb58f9b4e221b2e775e8e92eaa
7
+ data.tar.gz: 8ad9a6a374658565c7b6870ebb6db3ecf46dbb4efdbc0a883332978015f10bd979aea8961ee0e182a255a55f9e58df46acf26a9c3f51b866d0e4a40b699738ce
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- clomp (0.0.7)
4
+ clomp (0.0.9)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -9,7 +9,7 @@ or plain ruby object.
9
9
  Add this line to your application's Gemfile:
10
10
 
11
11
  ```ruby
12
- gem 'Clomp'
12
+ gem 'clomp'
13
13
  ```
14
14
 
15
15
  And then execute:
@@ -18,7 +18,7 @@ And then execute:
18
18
 
19
19
  Or install it yourself as:
20
20
 
21
- $ gem install Clomp
21
+ $ gem install clomp
22
22
 
23
23
  ## Usage
24
24
  Build any service with the track! Add as many tracks as you want.
@@ -16,8 +16,6 @@ module Clomp
16
16
 
17
17
  _track = track.exec!(_callable_object, options)
18
18
 
19
- _self.executed << _track
20
-
21
19
  _track.executed = true
22
20
 
23
21
  # Considering pass first on success state
@@ -144,10 +144,10 @@ module Clomp
144
144
 
145
145
  private
146
146
 
147
- def build_track(track_name, track_options = {}, track_type, track_for: nil, &block)
147
+ def build_track(track_name, track_options = {}, track_type = true, track_for: nil, &block)
148
148
  @configs ||= Configuration.new
149
149
 
150
- TrackBuilder[track_name: track_name, track_options: track_options, track_type: true, track_for: track_for, &block]
150
+ TrackBuilder[track_name: track_name, track_options: track_options, track_type: track_type, track_for: track_for, &block]
151
151
  end
152
152
  end
153
153
  end
data/lib/clomp/result.rb CHANGED
@@ -6,7 +6,7 @@ module Clomp
6
6
  @report = {}
7
7
  @operation = set_prop :operation, operation || Operation.new
8
8
  @tracks = set_prop :tracks, tracks || []
9
- @options ||= {}
9
+ @options = {}
10
10
  @immutable_data = set_prop :options, options
11
11
  @state = ->(tracks) {tracks.select {|track| track.failure?}.count.zero?}
12
12
  end
data/lib/clomp/track.rb CHANGED
@@ -14,7 +14,8 @@ module Clomp
14
14
  @track_options = track_options
15
15
  @state = 'pending'
16
16
  @error = nil
17
- @right = true
17
+ @right = right
18
+ @left = !@right
18
19
  @executed = false
19
20
  end
20
21
 
@@ -53,8 +54,6 @@ module Clomp
53
54
  rescue => e
54
55
  @error = e.message
55
56
 
56
- pp @error
57
-
58
57
  mark_as_failure!
59
58
 
60
59
  self
data/lib/clomp/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Clomp
2
- VERSION = '0.0.8'
2
+ VERSION = '0.0.9'
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.8
4
+ version: 0.0.9
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-31 00:00:00.000000000 Z
11
+ date: 2018-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler