MuranoCLI 3.0.6 → 3.0.7
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/lib/MrMurano/Settings-HttpService.rb +38 -0
- data/lib/MrMurano/Solution-ServiceConfig.rb +1 -0
- data/lib/MrMurano/SyncUpDown.rb +5 -1
- data/lib/MrMurano/http.rb +1 -1
- data/lib/MrMurano/version.rb +2 -2
- data/lib/MrMurano.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 42ba380e8b5ca16f20f06bee796bff578db09bcd
|
4
|
+
data.tar.gz: e7d33d39b2814804f583cc7e5a8a70762f229be2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b8c9c36f36761f164fcf748e66af4684f7da5fe881967aee2244cae28aadff565937148476cedc8f88e1b0cb5f47e4ce442e5b1b684d83277d5fff19c4ae571f
|
7
|
+
data.tar.gz: def44224a4a21c19e0f0961580291d4b5990dc0a37c5d8f347aaab0a09cd79365958ab4b3942e569032ec720f412baf10bb0f114e2ca365efe0a1c49ab6d8ca9
|
@@ -0,0 +1,38 @@
|
|
1
|
+
require 'MrMurano/Solution-ServiceConfig'
|
2
|
+
require 'json'
|
3
|
+
|
4
|
+
module MrMurano
|
5
|
+
module Httpservice
|
6
|
+
class Base < ServiceConfig
|
7
|
+
def initialize(api_id=nil)
|
8
|
+
@solntype = 'application.id'
|
9
|
+
super
|
10
|
+
@uriparts << :http
|
11
|
+
end
|
12
|
+
|
13
|
+
def info
|
14
|
+
get
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
# For things on ServiceConfig, they always have a parameters…
|
19
|
+
class Settings < Base
|
20
|
+
def credentials
|
21
|
+
ret = get
|
22
|
+
astr = (ret[:parameters] or {})[:credentials] or ''
|
23
|
+
JSON.parse(astr, json_opts)
|
24
|
+
end
|
25
|
+
def credentials=(x)
|
26
|
+
raise 'Not Hash' unless x.is_a? Hash
|
27
|
+
put('', {
|
28
|
+
:parameters => {
|
29
|
+
:credentials => x.to_json
|
30
|
+
}
|
31
|
+
})
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
# vim: set ai et sw=2 ts=2 :
|
data/lib/MrMurano/SyncUpDown.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Last Modified: 2017.
|
1
|
+
# Last Modified: 2017.11.03 /coding: utf-8
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
4
|
# Copyright © 2016-2017 Exosite LLC.
|
@@ -93,6 +93,10 @@ module MrMurano
|
|
93
93
|
# @param value [Object] value to set
|
94
94
|
def []=(key, value)
|
95
95
|
public_send("#{key}=", value)
|
96
|
+
rescue StandardError => err
|
97
|
+
MrMurano::Verbose.error(
|
98
|
+
"Unable to set key: #{key} / value: #{value} / err: #{err} / self: #{inspect}"
|
99
|
+
)
|
96
100
|
end
|
97
101
|
|
98
102
|
# Delete a key
|
data/lib/MrMurano/http.rb
CHANGED
@@ -141,7 +141,7 @@ module MrMurano
|
|
141
141
|
resp += JSON.pretty_generate(jsn)
|
142
142
|
elsif jsn.is_a? Hash
|
143
143
|
resp += "[#{jsn[:statusCode]}] " if jsn.key? :statusCode
|
144
|
-
resp += jsn[:message] if jsn.key? :message
|
144
|
+
resp += jsn[:message].to_s if jsn.key? :message
|
145
145
|
else
|
146
146
|
resp += jsn.to_s
|
147
147
|
end
|
data/lib/MrMurano/version.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Last Modified: 2017.
|
1
|
+
# Last Modified: 2017.11.03 /coding: utf-8
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
4
|
# Copyright © 2016-2017 Exosite LLC.
|
@@ -26,7 +26,7 @@ module MrMurano
|
|
26
26
|
# '3.0.0-beta.2' is changed to '3.0.0.pre.beta.2'
|
27
27
|
# which breaks our build (which expects the version to match herein).
|
28
28
|
# So stick to using the '.pre.X' syntax, which ruby/gems knows.
|
29
|
-
VERSION = '3.0.
|
29
|
+
VERSION = '3.0.7'
|
30
30
|
EXE_NAME = File.basename($PROGRAM_NAME)
|
31
31
|
SIGN_UP_URL = 'https://exosite.com/signup/'
|
32
32
|
end
|
data/lib/MrMurano.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: MuranoCLI
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Conrad Tadpol Tilstra
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: certified
|
@@ -440,6 +440,7 @@ files:
|
|
440
440
|
- lib/MrMurano/ProjectFile.rb
|
441
441
|
- lib/MrMurano/ReCommander.rb
|
442
442
|
- lib/MrMurano/Setting.rb
|
443
|
+
- lib/MrMurano/Settings-HttpService.rb
|
443
444
|
- lib/MrMurano/Solution-ServiceConfig.rb
|
444
445
|
- lib/MrMurano/Solution-Services.rb
|
445
446
|
- lib/MrMurano/Solution-Users.rb
|