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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c3d5f574966052ae97f6cd32ce6de46d6ba0349c
4
- data.tar.gz: 2d168acee2a87a80112c67a1c9bdb312f5b6025d
3
+ metadata.gz: deedaa5ae6db6c27c680a5cdb6707de3a5f4f06a
4
+ data.tar.gz: 7c86319dca00f3dc47356642bfa68d955472e8be
5
5
  SHA512:
6
- metadata.gz: 2406f23f35850e9d905afb94c89242879a9f0cd86d481d07d1b134c41cc5e9f1060493ae9f613ffbbdb3adfcac97790627ced29479dc37481000bf5e4dbdb325
7
- data.tar.gz: d7085ca103f7b0401389dd8b990caa33ff72f8543d311fef60dd05401103afb4562a35fe03013fa7490b58dc325916a6c6bb0f632eea2070efbe99c5723f86ad
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 (3.5.2)
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" && me.server.bgStop({});
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" && me.server.bgRestart({});
461
+ if (btn == "ok" && value == "RESTART") {
462
+ me.showLoadmask('Restarting delayed job...');
463
+ me.server.bgRestart({});
464
+ }
461
465
  }
462
466
  });
463
467
  }
@@ -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
 
@@ -129,7 +129,6 @@ class Marty::DataExporter
129
129
 
130
130
  # remove _id
131
131
  c = c[0..-4]
132
-
133
132
  assoc_keys = type[:assoc_keys]
134
133
 
135
134
  # if association has a single key, just use col name
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Marty
2
- VERSION = "1.0.39"
2
+ VERSION = "1.0.41"
3
3
  end
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.39
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-09-19 00:00:00.000000000 Z
17
+ date: 2017-10-03 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: pg