scout-rig 0.2.5 → 0.2.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3e3f0f41ad3040aa251d03ddef193c6b3bd79fef11074e83a65feb83f3534dee
4
- data.tar.gz: 6fc7536c4d7fa3dfd786053670ba26652c7577950e98ae92418d6219557a9d66
3
+ metadata.gz: 2e7f259179605738f756eb6024da684bd3050817fbcb12eaca7c8993cd3b7c68
4
+ data.tar.gz: 77c252b8433dcb7c0acc785f9e47cee4235d38aa6cd82a6a6b30d33d90f567ba
5
5
  SHA512:
6
- metadata.gz: '058750407dc01b6c95657f30b4ed063a8012e3b963c43247e2e30ac7e87c29a0be8deec2c1a1c000bac7b2c3c0006d8928d8907e387da445211c5f53857008bf'
7
- data.tar.gz: adf47c9177aebe4dc1aef81350ac1e3458cefedd3c3a74cb82b485ab7bc96dbe7c118b47e721209fbe80c06db97e64ee7740cb72ae2dae9c4cafd54fce174c2a
6
+ metadata.gz: df8ea457258faa543b2e4a3d67a4f3998823057e4b8f60b497072b777b5f2005d224987fcfc00e9271eb7e333a2f5ad058e7eecd12c20f0ecefff7c1cd43c003
7
+ data.tar.gz: 714e0102c1badc3208a78b5c954ada2bc4c3d7289cada6015d30d94ae2f40561d2334b61c4e646ea63f3b90bc1c0a0edcacb777a57396c74bf46a509c923e3df
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.5
1
+ 0.2.6
@@ -48,5 +48,14 @@ module ScoutPython
48
48
  end
49
49
  hash
50
50
  end
51
+
52
+ def self.dict2hash(obj)
53
+ keys = py2ruby_a(obj.keys)
54
+ hash = {}
55
+ keys.each do |k|
56
+ hash[k] = obj.get(k)
57
+ end
58
+ hash
59
+ end
51
60
  end
52
61
 
@@ -73,7 +73,11 @@ module PythonWorkflow
73
73
  task_desc = desc || meta['description']
74
74
 
75
75
  ruby_returns = PythonWorkflow.map_returns(meta['returns'])
76
- ruby_inputs = meta['params'].map { |p| PythonWorkflow.map_param(p) }
76
+ if meta['params'].nil?
77
+ ruby_inputs = []
78
+ else
79
+ ruby_inputs = meta['params'].map { |p| PythonWorkflow.map_param(p) }
80
+ end
77
81
 
78
82
  ruby_inputs.each do |inp|
79
83
  input(inp[:name].to_sym, inp[:type], inp[:desc], inp[:default], inp[:options] || {})
@@ -9,7 +9,7 @@ module PythonWorkflow
9
9
  attr_accessor :python_task_dir
10
10
 
11
11
  def python_task_dir
12
- @python_task_dir ||= Scout.python.task.find(:lib)
12
+ @python_task_dir ||= Scout.python.task.find
13
13
  end
14
14
 
15
15
  def self.load_directory(path = nil, workflow_name = nil)
data/scout-rig.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: scout-rig 0.2.5 ruby lib
5
+ # stub: scout-rig 0.2.6 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "scout-rig".freeze
9
- s.version = "0.2.5".freeze
9
+ s.version = "0.2.6".freeze
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib".freeze]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scout-rig
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez