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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +2 -2
- data/lib/clomp/executor.rb +0 -2
- data/lib/clomp/operation.rb +2 -2
- data/lib/clomp/result.rb +1 -1
- data/lib/clomp/track.rb +2 -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: a1a7097edec0d066d18846301a419ce9ed2c067e
|
4
|
+
data.tar.gz: 15a99e0ad2b724321e23b333e200fb6c0f36c258
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 364506a2f73e2546626135f18b8d8cb1f280333632d622103fed4cfcdbc80bd0a0ce00c9a6d82228491c4e7dfa9de5a4bf77b8eb58f9b4e221b2e775e8e92eaa
|
7
|
+
data.tar.gz: 8ad9a6a374658565c7b6870ebb6db3ecf46dbb4efdbc0a883332978015f10bd979aea8961ee0e182a255a55f9e58df46acf26a9c3f51b866d0e4a40b699738ce
|
data/Gemfile.lock
CHANGED
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 '
|
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
|
21
|
+
$ gem install clomp
|
22
22
|
|
23
23
|
## Usage
|
24
24
|
Build any service with the track! Add as many tracks as you want.
|
data/lib/clomp/executor.rb
CHANGED
data/lib/clomp/operation.rb
CHANGED
@@ -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:
|
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 =
|
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
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.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-
|
11
|
+
date: 2018-02-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|