deploy_pin 1.1.2 → 1.1.3
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 +4 -4
- data/lib/deploy_pin/collector.rb +10 -2
- data/lib/deploy_pin/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46972e3ae1de0473d6bc9cfa562d1278bc4063a1023586c677edaa9bf8b47466
|
4
|
+
data.tar.gz: c31626b6f0711cf7d7db14258ff4a64c1bca3b96058bf2dcbeb810eccb38fa45
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 906f19ce26ce0bdd3d29b124ea5e4327f53f8ad5c24945a630a00320348263831457939155cbf1ffde7035bd334f282b74ee2adc125f23f0e5e880f9e1486f84
|
7
|
+
data.tar.gz: 447c61ad0c2eddc0af71f1b2eee7cf74b65857567c631ada48e71762d599e2bff15209cc2c4f4820a58738d85fba35b75718303d3c4a45a81613ae4871845aa8
|
data/lib/deploy_pin/collector.rb
CHANGED
@@ -32,11 +32,11 @@ module DeployPin
|
|
32
32
|
# run only uniq tasks
|
33
33
|
executable = _tasks[0..index].none? { |_task| task.eql?(_task) }
|
34
34
|
|
35
|
+
yield(index, _tasks.count, task, executable)
|
36
|
+
|
35
37
|
# run if executable
|
36
38
|
task.run if executable
|
37
39
|
|
38
|
-
yield(index, _tasks.count, task, executable)
|
39
|
-
|
40
40
|
# mark each task as done
|
41
41
|
task.mark
|
42
42
|
end
|
@@ -48,5 +48,13 @@ module DeployPin
|
|
48
48
|
yield(index, _tasks.count, task)
|
49
49
|
end
|
50
50
|
end
|
51
|
+
|
52
|
+
def exacutable
|
53
|
+
# cache tasks
|
54
|
+
_tasks = tasks
|
55
|
+
_tasks.map.with_index do |task, index|
|
56
|
+
task if _tasks[0..index].none? { |_task| task.eql?(_task) }
|
57
|
+
end.compact
|
58
|
+
end
|
51
59
|
end
|
52
60
|
end
|
data/lib/deploy_pin/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deploy_pin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- rafael
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-04-
|
11
|
+
date: 2019-04-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -223,8 +223,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
223
223
|
- !ruby/object:Gem::Version
|
224
224
|
version: '0'
|
225
225
|
requirements: []
|
226
|
-
|
227
|
-
rubygems_version: 2.7.6
|
226
|
+
rubygems_version: 3.0.2
|
228
227
|
signing_key:
|
229
228
|
specification_version: 4
|
230
229
|
summary: pin some task around deployment
|