rake_fly 0.5.0 → 0.6.0

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: 3ebcb4f6df93fb7eec9b7c89d8d7fc00442846f0
4
- data.tar.gz: 4ee42653ead49f95a3533502c72681baced36740
3
+ metadata.gz: 7c3460c7da241de9ca22f7934b7b9ca1d0416dd9
4
+ data.tar.gz: 57f85ad365672a4d85b5a94fe21b0a9c8d4a43f7
5
5
  SHA512:
6
- metadata.gz: 61f0332950217566e76091d829719eae857fc95ce3eb1896c04d3b9ae0d6769c1e96955ef4f30c52baa669752376bef79f32a2ca6bf4590d2a6ba4888249dae7
7
- data.tar.gz: f8553dc790a35fd24d77eb6ba8e80a3b2ff64ab1b6dd1f87f3bfc5ea7666d6a8801a7b94b2d6547e3c27012b17b300b6da9c05572906b705e9716ae1b8db5466
6
+ metadata.gz: b33a2ed4d20e87208411e091743458f5aa42e89c65ebf459113e942fbc8d6647a289a7002423a12a132e548b72564cf7c8178ebce049f3cd993875d201a678d0
7
+ data.tar.gz: a35733c4fd65b9de7c37ba4a2b6159725d5b9bfb5d752ce3e91ca5957810a94f872e0b4c7412d0397b1987c98972dc2ec3b33aa47d3ad556679e9efaf1b3da3b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rake_fly (0.5.0)
4
+ rake_fly (0.6.0)
5
5
  rake_dependencies (~> 0.15)
6
6
  ruby_fly (~> 0.4)
7
7
 
@@ -17,7 +17,10 @@ module RakeFly
17
17
  end
18
18
 
19
19
  def define
20
- desc "Get pipeline #{pipeline} for target #{target}"
20
+ pipeline_name = pipeline.respond_to?(:call) ? "<derived>" : pipeline
21
+ target_name = target.respond_to?(:call) ? "<derived>" : target
22
+
23
+ desc "Get pipeline #{pipeline_name} for target #{target_name}"
21
24
  task name, argument_names => [ensure_task] do |_, args|
22
25
  derived_target = target.respond_to?(:call) ?
23
26
  target.call(*[args].slice(0, target.arity)) :
@@ -26,7 +29,7 @@ module RakeFly
26
29
  pipeline.call(*[args].slice(0, pipeline.arity)) :
27
30
  pipeline
28
31
 
29
- puts "Getting pipeline #{pipeline} for target #{target}..."
32
+ puts "Getting pipeline #{derived_pipeline} for target #{derived_target}..."
30
33
  RubyFly.get_pipeline(
31
34
  target: derived_target,
32
35
  pipeline: derived_pipeline)
@@ -45,11 +45,14 @@ module RakeFly
45
45
  t.pipeline = pipeline
46
46
  end
47
47
 
48
- desc "Push pipeline #{pipeline} to target #{target}"
48
+ pipeline_name = pipeline.respond_to?(:call) ? "<derived>" : pipeline
49
+ target_name = target.respond_to?(:call) ? "<derived>" : target
50
+
49
51
  scoped_set_pipeline_task_name = scoped_task_name(set_pipeline_task_name)
50
52
  scoped_get_pipeline_task_name = scoped_task_name(get_pipeline_task_name)
51
53
  scoped_unpause_pipeline_task_name = scoped_task_name(unpause_pipeline_task_name)
52
54
 
55
+ desc "Push pipeline #{pipeline_name} for target #{target_name}"
53
56
  task name, argument_names do |_, args|
54
57
  [
55
58
  scoped_set_pipeline_task_name,
@@ -22,7 +22,10 @@ module RakeFly
22
22
  end
23
23
 
24
24
  def define
25
- desc "Set pipeline #{pipeline} for target #{target}"
25
+ pipeline_name = pipeline.respond_to?(:call) ? "<derived>" : pipeline
26
+ target_name = target.respond_to?(:call) ? "<derived>" : target
27
+
28
+ desc "Set pipeline #{pipeline_name} for target #{target_name}"
26
29
  task name, argument_names => [ensure_task] do |_, args|
27
30
  derived_target = target.respond_to?(:call) ?
28
31
  target.call(*[args].slice(0, target.arity)) :
@@ -40,7 +43,7 @@ module RakeFly
40
43
  var_files.call(*[args].slice(0, var_files.arity)) :
41
44
  var_files
42
45
 
43
- puts "Setting pipeline #{pipeline} for target #{target}..."
46
+ puts "Setting pipeline #{derived_pipeline} for target #{derived_target}..."
44
47
  RubyFly.set_pipeline(
45
48
  target: derived_target,
46
49
  pipeline: derived_pipeline,
@@ -17,7 +17,10 @@ module RakeFly
17
17
  end
18
18
 
19
19
  def define
20
- desc "Unpause pipeline #{pipeline} for target #{target}"
20
+ pipeline_name = pipeline.respond_to?(:call) ? "<derived>" : pipeline
21
+ target_name = target.respond_to?(:call) ? "<derived>" : target
22
+
23
+ desc "Unpause pipeline #{pipeline_name} for target #{target_name}"
21
24
  task name, argument_names => [ensure_task] do |_, args|
22
25
  derived_target = target.respond_to?(:call) ?
23
26
  target.call(*[args].slice(0, target.arity)) :
@@ -26,7 +29,7 @@ module RakeFly
26
29
  pipeline.call(*[args].slice(0, pipeline.arity)) :
27
30
  pipeline
28
31
 
29
- puts "Unpausing pipeline #{pipeline} for target #{target}..."
32
+ puts "Unpausing pipeline #{derived_pipeline} for target #{derived_target}..."
30
33
  RubyFly.unpause_pipeline(
31
34
  target: derived_target,
32
35
  pipeline: derived_pipeline)
@@ -1,3 +1,3 @@
1
1
  module RakeFly
2
- VERSION = '0.5.0'
2
+ VERSION = '0.6.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rake_fly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Toby Clemson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-11-01 00:00:00.000000000 Z
11
+ date: 2017-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake_dependencies