steplib 0.9.0.1 → 0.9.0.2

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
  SHA1:
3
- metadata.gz: c0532328cd85829decb7abc6f975c613bf779c5b
4
- data.tar.gz: 068bb9377741bb74f22a463edc3d1a35675bbba0
3
+ metadata.gz: 729413a60384c780b11518f1894f909bc12c0fb0
4
+ data.tar.gz: 2440eef41e2bdb2b8861cecf3b8b62ceab8922b7
5
5
  SHA512:
6
- metadata.gz: 75730c68760bc91caf0da54870b73789621929425161036c26ed73aeca204471da68b2579c4a7b98f24258732420c101c98a3db3dc08440514474c7845c2d14b
7
- data.tar.gz: a4b16e7993fcede8fe53bfe5875346cfbd0bf10fce36b3c573f35b8aea6e627fe53036d410ffb5f5a572aa599414bf2eb28e237a94b928a596dd90c6426b2f53
6
+ metadata.gz: de7c866b9d7fa5907478283b805e6dd1ac9575c420b9fd8d0d72c427fc78bab0697cf184d3652e799863e79603109773dbbc05acd4a792239aa657bd1ff993b9
7
+ data.tar.gz: feaae528577c8e35a369ad355ef1cf4c5d08a6b7920c7da0990d89d29a85021cba5c754caacb0c020480e4dd700fadafc5c0c2f3fe7c17a7f6b2f724d409d75d
@@ -61,52 +61,57 @@ module Steplib
61
61
  ['outputs', Array],
62
62
  ])
63
63
 
64
- HashUtils.check_required_attributes_and_types!(step_version_data['source'], [
65
- ['git', String]
66
- ])
64
+ # optional - can be nil
65
+ step_version_data = HashUtils.set_missing_defaults(
66
+ step_version_data,
67
+ [{key: 'icon_url_256', value: nil}])
67
68
 
68
- a_host_os_tags = step_version_data['host_os_tags']
69
- a_host_os_tags.each { |a_tag|
70
- raise "Invalid host-os-tag (#{a_tag}), not a String (class: #{a_tag.class})!" unless a_tag.is_a? String
71
- }
69
+ HashUtils.check_required_attributes_and_types!(step_version_data['source'], [
70
+ ['git', String]
71
+ ])
72
72
 
73
- a_project_type_tags = step_version_data['project_type_tags']
74
- a_project_type_tags.each { |a_tag|
75
- raise "Invalid project-type-tag (#{a_tag}), not a String (class: #{a_tag.class})!" unless a_tag.is_a? String
76
- }
73
+ a_host_os_tags = step_version_data['host_os_tags']
74
+ a_host_os_tags.each { |a_tag|
75
+ raise "Invalid host-os-tag (#{a_tag}), not a String (class: #{a_tag.class})!" unless a_tag.is_a? String
76
+ }
77
+
78
+ a_project_type_tags = step_version_data['project_type_tags']
79
+ a_project_type_tags.each { |a_tag|
80
+ raise "Invalid project-type-tag (#{a_tag}), not a String (class: #{a_tag.class})!" unless a_tag.is_a? String
81
+ }
82
+
83
+ a_type_tags = step_version_data['type_tags']
84
+ a_type_tags.each { |a_tag|
85
+ raise "Invalid type-tag (#{a_tag}), not a String (class: #{a_tag.class})!" unless a_tag.is_a? String
86
+ }
87
+
88
+ a_inputs = step_version_data['inputs']
89
+ a_inputs.each do |a_input_itm|
90
+ HashUtils.check_required_attributes_and_types!(a_input_itm, [
91
+ ['title', String],
92
+ ['description', String],
93
+ ['mapped_to', String],
94
+ ['is_expand', ABooleanValue],
95
+ ['is_required', ABooleanValue],
96
+ ['value_options', Array],
97
+ ['value', String],
98
+ ['is_dont_change_value', ABooleanValue]
99
+ ])
77
100
 
78
- a_type_tags = step_version_data['type_tags']
79
- a_type_tags.each { |a_tag|
80
- raise "Invalid type-tag (#{a_tag}), not a String (class: #{a_tag.class})!" unless a_tag.is_a? String
101
+ a_value_options = a_input_itm['value_options']
102
+ a_value_options.each { |a_value_option|
103
+ raise "Invalid value-option (#{a_value_option}), not a String (class: #{a_value_option.class})!" unless a_value_option.is_a? String
81
104
  }
105
+ end
82
106
 
83
- a_inputs = step_version_data['inputs']
84
- a_inputs.each do |a_input_itm|
85
- HashUtils.check_required_attributes_and_types!(a_input_itm, [
86
- ['title', String],
87
- ['description', String],
88
- ['mapped_to', String],
89
- ['is_expand', ABooleanValue],
90
- ['is_required', ABooleanValue],
91
- ['value_options', Array],
92
- ['value', String],
93
- ['is_dont_change_value', ABooleanValue]
94
- ])
95
-
96
- a_value_options = a_input_itm['value_options']
97
- a_value_options.each { |a_value_option|
98
- raise "Invalid value-option (#{a_value_option}), not a String (class: #{a_value_option.class})!" unless a_value_option.is_a? String
99
- }
100
- end
101
-
102
- a_outputs = step_version_data['outputs']
103
- a_outputs.each do |a_output_itm|
104
- HashUtils.check_required_attributes_and_types!(a_output_itm, [
105
- ['title', String],
106
- ['description', String],
107
- ['mapped_to', String]
108
- ])
109
- end
107
+ a_outputs = step_version_data['outputs']
108
+ a_outputs.each do |a_output_itm|
109
+ HashUtils.check_required_attributes_and_types!(a_output_itm, [
110
+ ['title', String],
111
+ ['description', String],
112
+ ['mapped_to', String]
113
+ ])
114
+ end
110
115
  end
111
116
 
112
117
  end
@@ -33,7 +33,8 @@ module Steplib
33
33
  [
34
34
  'id', 'steplib_source', 'description',
35
35
  'website', 'fork_url', 'source', 'host_os_tags',
36
- 'project_type_tags', 'type_tags', 'is_requires_admin_user'
36
+ 'project_type_tags', 'type_tags', 'is_requires_admin_user',
37
+ 'icon_url_256'
37
38
  ]
38
39
  )
39
40
 
@@ -58,52 +58,57 @@ module Steplib
58
58
  ['outputs', Array],
59
59
  ])
60
60
 
61
- HashUtils.check_required_attributes_and_types!(workflow_step_data['source'], [
62
- ['git', String]
63
- ])
61
+ # optional - can be nil
62
+ workflow_step_data = HashUtils.set_missing_defaults(
63
+ workflow_step_data,
64
+ [{key: 'icon_url_256', value: nil}])
64
65
 
65
- a_host_os_tags = workflow_step_data['host_os_tags']
66
- a_host_os_tags.each { |a_tag|
67
- raise "Invalid host-os-tag (#{a_tag}), not a String (class: #{a_tag.class})!" unless a_tag.is_a? String
68
- }
66
+ HashUtils.check_required_attributes_and_types!(workflow_step_data['source'], [
67
+ ['git', String]
68
+ ])
69
69
 
70
- a_project_type_tags = workflow_step_data['project_type_tags']
71
- a_project_type_tags.each { |a_tag|
72
- raise "Invalid project-type-tag (#{a_tag}), not a String (class: #{a_tag.class})!" unless a_tag.is_a? String
73
- }
70
+ a_host_os_tags = workflow_step_data['host_os_tags']
71
+ a_host_os_tags.each { |a_tag|
72
+ raise "Invalid host-os-tag (#{a_tag}), not a String (class: #{a_tag.class})!" unless a_tag.is_a? String
73
+ }
74
+
75
+ a_project_type_tags = workflow_step_data['project_type_tags']
76
+ a_project_type_tags.each { |a_tag|
77
+ raise "Invalid project-type-tag (#{a_tag}), not a String (class: #{a_tag.class})!" unless a_tag.is_a? String
78
+ }
79
+
80
+ a_type_tags = workflow_step_data['type_tags']
81
+ a_type_tags.each { |a_tag|
82
+ raise "Invalid type-tag (#{a_tag}), not a String (class: #{a_tag.class})!" unless a_tag.is_a? String
83
+ }
74
84
 
75
- a_type_tags = workflow_step_data['type_tags']
76
- a_type_tags.each { |a_tag|
77
- raise "Invalid type-tag (#{a_tag}), not a String (class: #{a_tag.class})!" unless a_tag.is_a? String
85
+ a_inputs = workflow_step_data['inputs']
86
+ a_inputs.each do |a_input_itm|
87
+ HashUtils.check_required_attributes_and_types!(a_input_itm, [
88
+ ['title', String],
89
+ ['description', String],
90
+ ['mapped_to', String],
91
+ ['is_expand', ABooleanValue],
92
+ ['is_required', ABooleanValue],
93
+ ['value_options', Array],
94
+ ['value', String],
95
+ ['is_dont_change_value', ABooleanValue]
96
+ ])
97
+
98
+ a_value_options = a_input_itm['value_options']
99
+ a_value_options.each { |a_value_option|
100
+ raise "Invalid value-option (#{a_value_option}), not a String (class: #{a_value_option.class})!" unless a_value_option.is_a? String
78
101
  }
102
+ end
79
103
 
80
- a_inputs = workflow_step_data['inputs']
81
- a_inputs.each do |a_input_itm|
82
- HashUtils.check_required_attributes_and_types!(a_input_itm, [
83
- ['title', String],
84
- ['description', String],
85
- ['mapped_to', String],
86
- ['is_expand', ABooleanValue],
87
- ['is_required', ABooleanValue],
88
- ['value_options', Array],
89
- ['value', String],
90
- ['is_dont_change_value', ABooleanValue]
91
- ])
92
-
93
- a_value_options = a_input_itm['value_options']
94
- a_value_options.each { |a_value_option|
95
- raise "Invalid value-option (#{a_value_option}), not a String (class: #{a_value_option.class})!" unless a_value_option.is_a? String
96
- }
97
- end
98
-
99
- a_outputs = workflow_step_data['outputs']
100
- a_outputs.each do |a_output_itm|
101
- HashUtils.check_required_attributes_and_types!(a_output_itm, [
102
- ['title', String],
103
- ['description', String],
104
- ['mapped_to', String]
105
- ])
106
- end
104
+ a_outputs = workflow_step_data['outputs']
105
+ a_outputs.each do |a_output_itm|
106
+ HashUtils.check_required_attributes_and_types!(a_output_itm, [
107
+ ['title', String],
108
+ ['description', String],
109
+ ['mapped_to', String]
110
+ ])
111
+ end
107
112
  end
108
113
 
109
114
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: steplib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0.1
4
+ version: 0.9.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bitrise