MuranoCLI 3.0.6 → 3.0.7

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: d7674b5979fb03799795303b94e871e2021a2f44
4
- data.tar.gz: 3f15da4d29cb1482e396e89d84971be9783d15b0
3
+ metadata.gz: 42ba380e8b5ca16f20f06bee796bff578db09bcd
4
+ data.tar.gz: e7d33d39b2814804f583cc7e5a8a70762f229be2
5
5
  SHA512:
6
- metadata.gz: 1847646d933b575158caec9c9c3a0c2e4d092323253f077929a5dc14a5868b6fb911460ccbda8431d58384aa6ef22f0f51889c6410f02baa835046ba66a8c927
7
- data.tar.gz: c17643abde19389b0513a27247197ea06cb64dc77f15bba0df5b37b77b84066caa8a947db90c7276f38990694ab66f9e2b3b26b24566c9fff074043a47b15799
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 :
@@ -113,6 +113,7 @@ module MrMurano
113
113
  # :nocov:
114
114
  class Services < SolutionBase
115
115
  def initialize(api_id=nil)
116
+ @solntype = 'application.id'
116
117
  super
117
118
  @uriparts << :service
118
119
  end
@@ -1,4 +1,4 @@
1
- # Last Modified: 2017.09.21 /coding: utf-8
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
@@ -1,4 +1,4 @@
1
- # Last Modified: 2017.10.06 /coding: utf-8
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.6'
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
@@ -32,6 +32,7 @@ require 'MrMurano/Gateway'
32
32
  require 'MrMurano/Keystore'
33
33
  require 'MrMurano/Mock'
34
34
  require 'MrMurano/Setting'
35
+ require 'MrMurano/Settings-HttpService'
35
36
  require 'MrMurano/SolutionId'
36
37
  require 'MrMurano/Solution'
37
38
  require 'MrMurano/Solution-Services'
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.6
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-10-06 00:00:00.000000000 Z
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