mushy 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/mushy +1 -1
- data/lib/mushy/builder/index.rb +31 -29
- data/mushy.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2eaed069f8d37db0a6d58fea9c994e4a5135f43a18a7e7ad8421a601983bb954
|
4
|
+
data.tar.gz: 3224715b652898edaac99ad89a8378ccc4d2aa4ba21b891ca33fec0b99252a85
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df28cc21a604e023284ad3f88b2cd11a3ab4261c3cd9747a2033d07528203262de29daa2d12f82e404eb91109b79ee9a5e5a5bf71396c360e26ff270d08a2449
|
7
|
+
data.tar.gz: 05410eb4c9fee4afd4aa31397409b6c794bc152257cf599aa4fb1502cb7009c518b9fac2eb76b3f78ca1e58e2a31e28e6dcd6c5266febb8bddd7ea7fbe7fdea1
|
data/bin/mushy
CHANGED
data/lib/mushy/builder/index.rb
CHANGED
@@ -248,37 +248,39 @@ module Mushy
|
|
248
248
|
parent: { type: 'selectrecord', label: 'Receive Events From', value: '', options: flowdata.fluxs },
|
249
249
|
};
|
250
250
|
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
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
|
-
|
275
|
-
|
276
|
-
|
268
|
+
if (index < 0)
|
269
|
+
app.flow.fluxs.push(flux);
|
270
|
+
else
|
271
|
+
app.flow.fluxs[index] = flux;
|
277
272
|
|
278
|
-
|
279
|
-
|
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.
|
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.'
|