marty 1.0.50 → 1.0.51

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 73b7b86b7b401ad7cd06091b271c56ba22b5cc1d
4
- data.tar.gz: c047c73fe41f5c5336813a6be4867e9613d98679
3
+ metadata.gz: 60c1999e93a298020436ad757f39f5a578c6d8c8
4
+ data.tar.gz: b0e144e8cf6ad3e99373ec0c5f89d15d7030d235
5
5
  SHA512:
6
- metadata.gz: 7aea286471dee9a5ae2212b04a5da813aaf647c760a91ce60c05c94c0921ff5390f63a9e32e0aeb0344acf845ef3afb4e89852984974a76c1d4b2b853bc84af7
7
- data.tar.gz: fe45b8a98c849b94e2a5d70fad092be0f96c2d3f16589673a7fb68ea124f2759b1fe742b759a58795e492e9fdeade1997dd7bd856add88feb27346f184120d0e
6
+ metadata.gz: fc71562cf81e8699cbeef23d79f6465fad439ccbe43639422444be67f7d557e80d634ecef1969b8409982b479829ea1319c0d8fac3fc387835b05a821cbe0fae
7
+ data.tar.gz: 7638536ad3d07a7196b5eff15498f2cb3c04792c280419d16578825cf17ddd4613a21a9535e1c03bf95042dd0c3336b9721711eb06b4badf066e8c89d8c62269
@@ -376,8 +376,12 @@ module Marty
376
376
  end
377
377
 
378
378
  def get_private_ips
379
- get_instances['reservationSet']['item'].
380
- map{|i| i['instancesSet']['item']['privateIpAddress']}
379
+ get_instances['reservationSet']['item'].map{
380
+ |i|
381
+ item = i['instancesSet']['item']
382
+ item.is_a?(Array) ? item.map{|i| i['privateIpAddress']} :
383
+ item['privateIpAddress']
384
+ }.flatten
381
385
  end
382
386
  end
383
387
  end
@@ -82,15 +82,18 @@ class Marty::RpcController < ActionController::Base
82
82
  end
83
83
 
84
84
  return {error: "Malformed params"} unless params.is_a?(Hash)
85
- need_log,
86
- need_input_validate,
87
- need_output_validate,
88
- need_strict_validate = Marty::ApiConfig.lookup(sname, node, attr)
89
- opt = {validate_schema: true,
90
- errors_as_objects: true,
91
- version: Marty::JsonSchema::RAW_URI }
92
- to_append = {"\$schema" => Marty::JsonSchema::RAW_URI}
93
- validation_error = nil
85
+
86
+ need_log, need_input_validate, need_output_validate, need_strict_validate = (
87
+ Marty::ApiConfig.lookup sname, node, attr)
88
+
89
+ opt = {
90
+ validate_schema: true,
91
+ errors_as_objects: true,
92
+ version: Marty::JsonSchema::RAW_URI,
93
+ }
94
+
95
+ to_append = {"\$schema" => Marty::JsonSchema::RAW_URI}
96
+ validation_error = nil
94
97
 
95
98
  if need_input_validate
96
99
  begin
data/lib/marty/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Marty
2
- VERSION = "1.0.50"
2
+ VERSION = "1.0.51"
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.50
4
+ version: 1.0.51
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-11-09 00:00:00.000000000 Z
17
+ date: 2017-11-13 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: pg