mushy 0.1.3 → 0.1.4

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: 5f516df95fc3919dd7d02ffe32228fd96364c06a56595ae8a7e986d406abc3af
4
- data.tar.gz: c2dc07c4f8ad462134d674aeb4006eeabff5a07abee0d20d1ec5ff89312f80e7
3
+ metadata.gz: 2eaed069f8d37db0a6d58fea9c994e4a5135f43a18a7e7ad8421a601983bb954
4
+ data.tar.gz: 3224715b652898edaac99ad89a8378ccc4d2aa4ba21b891ca33fec0b99252a85
5
5
  SHA512:
6
- metadata.gz: b2e8a4bc112300daeb8089a455c10ef7c6842524a0a8dc3a00aa0c8715ecee836eff17f89c461ead76ae4ba716c56e49e436be57e8f163de3a57d8fe8249e816
7
- data.tar.gz: ef23272c88796185deb60fd11ad9a326b3dd4a84d2df7aa86830727e72408811eda47a2fb13e59cb481b6a0fb0ad505a7ee4c606cf50b6478e7dc0d7303c0371
6
+ metadata.gz: df28cc21a604e023284ad3f88b2cd11a3ab4261c3cd9747a2033d07528203262de29daa2d12f82e404eb91109b79ee9a5e5a5bf71396c360e26ff270d08a2449
7
+ data.tar.gz: 05410eb4c9fee4afd4aa31397409b6c794bc152257cf599aa4fb1502cb7009c518b9fac2eb76b3f78ca1e58e2a31e28e6dcd6c5266febb8bddd7ea7fbe7fdea1
data/bin/mushy CHANGED
@@ -5,7 +5,7 @@ require 'mushy'
5
5
 
6
6
  class MushyCLI < Thor
7
7
 
8
- argument :file
8
+ argument :file, optional: true, type: :string
9
9
  argument :values, optional: true, type: :hash
10
10
 
11
11
  desc "start FILE", "Run this workflow file."
@@ -248,37 +248,39 @@ module Mushy
248
248
  parent: { type: 'selectrecord', label: 'Receive Events From', value: '', options: flowdata.fluxs },
249
249
  };
250
250
 
251
- for (var key in configs)
252
- {
253
- configs[key].save = { type: 'button', name: 'Save This Flux', click: function(config, hey) {
254
- var nameOfTheSaveButton = hey.save.name;
255
- Vue.set(hey.save, 'name', 'Saving');
256
- delete config.test_event;
257
- var setup = thingToData(app.setup);
258
- var flux = {
259
- id: setup.id,
260
- name: setup.name,
261
- flux: setup.flux,
262
- parent: setup.parent,
263
- config: config,
264
- };
265
- var index = -1;
266
- for(var i = 0; i < app.flow.fluxs.length; i++)
267
- if (app.flow.fluxs[i].id == flux.id)
268
- index = i;
269
- if (index < 0)
270
- app.flow.fluxs.push(flux);
271
- else
272
- app.flow.fluxs[index] = flux;
251
+ var saveFlux = function(config, hey) {
252
+ var nameOfTheSaveButton = hey.save.name;
253
+ Vue.set(hey.save, 'name', 'Saving');
254
+ delete config.test_event;
255
+ var setup = thingToData(app.setup);
256
+ var flux = {
257
+ id: setup.id,
258
+ name: setup.name,
259
+ flux: setup.flux,
260
+ parent: setup.parent,
261
+ config: config,
262
+ };
263
+ var index = -1;
264
+ for(var i = 0; i < app.flow.fluxs.length; i++)
265
+ if (app.flow.fluxs[i].id == flux.id)
266
+ index = i;
273
267
 
274
- setTimeout(function(){
275
- Vue.set(hey.save, 'name', nameOfTheSaveButton);
276
- app.setup.id.value = '';
268
+ if (index < 0)
269
+ app.flow.fluxs.push(flux);
270
+ else
271
+ app.flow.fluxs[index] = flux;
277
272
 
278
- Vue.set(app.setup, 'showFlux', false);
279
- }, 500);
280
- }
281
- };
273
+ setTimeout(function(){
274
+ Vue.set(hey.save, 'name', nameOfTheSaveButton);
275
+ app.setup.id.value = '';
276
+
277
+ Vue.set(app.setup, 'showFlux', false);
278
+ }, 500);
279
+ };
280
+
281
+ for (var key in configs)
282
+ {
283
+ configs[key].save = { type: 'button', name: 'Save This Flux', click: saveFlux };
282
284
 
283
285
  configs[key].test_event = { type: 'json', value: '{}', default: '{}' };
284
286
 
data/mushy.gemspec CHANGED
@@ -4,7 +4,7 @@ require 'mushy/version'
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = 'mushy'
7
- s.version = '0.1.3'
7
+ s.version = '0.1.4'
8
8
  s.date = '2020-11-23'
9
9
  s.summary = 'Process streams of work using common modules.'
10
10
  s.description = 'This tool assists in the creation and processing of workflows.'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mushy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Darren Cauthon