marty 1.0.39 → 1.0.41
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 +4 -4
- data/Gemfile.lock +3 -1
- data/app/components/marty/main_auth_app.rb +8 -4
- data/lib/marty/data_change.rb +6 -0
- data/lib/marty/data_exporter.rb +0 -1
- data/lib/marty/rpc_call.rb +3 -1
- data/lib/marty/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: deedaa5ae6db6c27c680a5cdb6707de3a5f4f06a
|
4
|
+
data.tar.gz: 7c86319dca00f3dc47356642bfa68d955472e8be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6abef04a5d54ec802bc3d0019a68b90b706a9b49aa2a5f7beecac8b195be8e71d8b487d5d8336ddc60892472b947042c342c57e8828c768cdb7f8292a3788304
|
7
|
+
data.tar.gz: 892af85ab6b7af8671b1de303e07317d5db34fc8ce65e10d42b4e919ff5b98c71b27e068deb709b961218578950670c5a84881bd906b9cc512d2bbd5ac65b855
|
data/Gemfile.lock
CHANGED
@@ -175,9 +175,10 @@ GEM
|
|
175
175
|
rspec-support (~> 3.6.0)
|
176
176
|
rspec-support (3.6.0)
|
177
177
|
rubyzip (1.1.7)
|
178
|
-
selenium-webdriver (
|
178
|
+
selenium-webdriver (2.53.4)
|
179
179
|
childprocess (~> 0.5)
|
180
180
|
rubyzip (~> 1.0)
|
181
|
+
websocket (~> 1.0)
|
181
182
|
slop (3.6.0)
|
182
183
|
sprockets (3.7.1)
|
183
184
|
concurrent-ruby (~> 1.0)
|
@@ -196,6 +197,7 @@ GEM
|
|
196
197
|
thread_safe (~> 0.1)
|
197
198
|
uglifier (3.2.0)
|
198
199
|
execjs (>= 0.3.0, < 3)
|
200
|
+
websocket (1.2.4)
|
199
201
|
xpath (2.1.0)
|
200
202
|
nokogiri (~> 1.3)
|
201
203
|
|
@@ -432,7 +432,6 @@ class Marty::MainAuthApp < Marty::AuthApp
|
|
432
432
|
c.netzke_on_bg_stop = l(<<-JS)
|
433
433
|
function(params) {
|
434
434
|
var me = this;
|
435
|
-
me.showLoadmask('Stopping delayed job...');
|
436
435
|
Ext.Msg.show({
|
437
436
|
title: 'Stop Delayed Jobs',
|
438
437
|
msg: 'Enter STOP and press OK to force a stop of delayed_job',
|
@@ -440,7 +439,10 @@ class Marty::MainAuthApp < Marty::AuthApp
|
|
440
439
|
buttons: Ext.Msg.OKCANCEL,
|
441
440
|
prompt: true,
|
442
441
|
fn: function (btn, value) {
|
443
|
-
btn == "ok" && value == "STOP"
|
442
|
+
if (btn == "ok" && value == "STOP") {
|
443
|
+
me.showLoadmask('Stopping delayed job...');
|
444
|
+
me.server.bgStop({});
|
445
|
+
}
|
444
446
|
}
|
445
447
|
});
|
446
448
|
}
|
@@ -449,7 +451,6 @@ class Marty::MainAuthApp < Marty::AuthApp
|
|
449
451
|
c.netzke_on_bg_restart = l(<<-JS)
|
450
452
|
function(params) {
|
451
453
|
var me = this;
|
452
|
-
me.showLoadmask('Restarting delayed job...');
|
453
454
|
Ext.Msg.show({
|
454
455
|
title: 'Restart Delayed Jobs',
|
455
456
|
msg: 'Enter RESTART and press OK to force a restart of delayed_job',
|
@@ -457,7 +458,10 @@ class Marty::MainAuthApp < Marty::AuthApp
|
|
457
458
|
buttons: Ext.Msg.OKCANCEL,
|
458
459
|
prompt: true,
|
459
460
|
fn: function (btn, value) {
|
460
|
-
btn == "ok" && value == "RESTART"
|
461
|
+
if (btn == "ok" && value == "RESTART") {
|
462
|
+
me.showLoadmask('Restarting delayed job...');
|
463
|
+
me.server.bgRestart({});
|
464
|
+
}
|
461
465
|
}
|
462
466
|
});
|
463
467
|
}
|
data/lib/marty/data_change.rb
CHANGED
@@ -123,6 +123,12 @@ class Marty::DataChange
|
|
123
123
|
do_export(pt, klass.constantize, sort_field, exclude_attrs)
|
124
124
|
end
|
125
125
|
|
126
|
+
delorean_fn :do_pg_enum_export, sig: 1 do
|
127
|
+
|k|
|
128
|
+
klass = k.constantize
|
129
|
+
next (klass.is_a? Marty::PgEnum) ? klass.get_all : []
|
130
|
+
end
|
131
|
+
|
126
132
|
delorean_fn :export_changes, sig: 3 do
|
127
133
|
|t0, t1, class_name|
|
128
134
|
|
data/lib/marty/data_exporter.rb
CHANGED
data/lib/marty/rpc_call.rb
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
class Marty::RpcCall
|
2
2
|
# POST to a remote marty
|
3
|
-
def self.marty_post(host, port, path, script, node, attrs, params, options={}
|
3
|
+
def self.marty_post(host, port, path, script, node, attrs, params, options={},
|
4
|
+
ssl=false)
|
4
5
|
http = Net::HTTP.new(host, port)
|
6
|
+
http.use_ssl = ssl
|
5
7
|
request = Net::HTTP::Post.new(path)
|
6
8
|
request.add_field('Content-Type', 'application/json')
|
7
9
|
request.body = (options + {
|
data/lib/marty/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: marty
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.41
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arman Bostani
|
@@ -14,7 +14,7 @@ authors:
|
|
14
14
|
autorequire:
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
|
-
date: 2017-
|
17
|
+
date: 2017-10-03 00:00:00.000000000 Z
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|
20
20
|
name: pg
|