MuranoCLI 3.2.2 → 3.2.3.beta.1

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
  SHA256:
3
- metadata.gz: 4da493344058e7f41b1117ebe45e0a83d357b45318e1d06a33350aa2cdd81e6b
4
- data.tar.gz: b07df5f2d28e54481e1e56fd9e0e5a45e88928c4ea4182b2c4b51ccc33f85d54
3
+ metadata.gz: c01f00ac27a62c6845fc1f5a5b8d0634bb815df90e73777e599304e0dcedf04a
4
+ data.tar.gz: 8607ec50ab670ac57d57c06c605a08ffe827906d656373ed6fc2d96123419800
5
5
  SHA512:
6
- metadata.gz: '05692e57644cc46f78a96e502f7a221a3e8fb7fb32e11eb0022e4700bb060a44ed9841e1b007203f0034399bf93d1ec8472bbcd860d09510d749d5af54dc9684'
7
- data.tar.gz: b64c5a7df9930de299d135aa256bf0bedeab89802206893e263f6878e80d2d11e46a3f353b46ac5d59da7cd6494cd900296a27e0806b58286c2eb05b5c6d146d
6
+ metadata.gz: 30d1e61ce380872b8f61f16e31bd6edcb605f807cba414d12736e806a69bbe764af5103ff237d7132d31d38401161496301b2c3ac9a9466759cb980982889e12
7
+ data.tar.gz: b5517a2088bf611a7da3a943c88422ee3b260397370ff135390d6e00997636d80d8f524a3ea5745d5f9ff94a86a84f7f89eb4b2b66a50fddd764fcdae1ef0c31
data/MuranoCLI.gemspec CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright © 2016-2017 Exosite LLC. All Rights Reserved
1
+ # Copyright © 2016-2018 Exosite LLC. All Rights Reserved
2
2
  # License: PROPRIETARY. See LICENSE.txt.
3
3
  # frozen_string_literal: true
4
4
 
@@ -11,10 +11,10 @@ require_relative 'lib/MrMurano/version.rb'
11
11
  Gem::Specification.new do |s|
12
12
  s.name = 'MuranoCLI'
13
13
  s.version = MrMurano::VERSION
14
- s.authors = ['Michael Conrad Tadpol Tilstra']
15
- s.email = ['miketilstra@exosite.com']
14
+ s.authors = ['Exosite LLC']
15
+ s.email = ['it@exosite.com']
16
16
  s.license = 'MIT'
17
- s.homepage = 'https://github.com/exosite/MuranoCLI'
17
+ s.homepage = 'http://docs.exosite.com/development/tools/murano-cli/'
18
18
  s.summary = 'Do more from the command line with Murano'
19
19
  s.description = %(
20
20
  Do more from the command line with Murano.
@@ -29,7 +29,7 @@ Dotenv.load
29
29
  # Per https://ruby-doc.org/core-2.2.0/Signal.html
30
30
  Signal.trap('INT', 'EXIT')
31
31
 
32
- program :version, MrMurano::VERSION
32
+ program :version, MrMurano.check_version
33
33
 
34
34
  program :description, %(
35
35
  Manage Applications and Products in Exosite's Murano
@@ -33,7 +33,6 @@ module MrMurano
33
33
 
34
34
  def setkey(key, value)
35
35
  key = URI.encode_www_form_component(key)
36
- value = URI.encode_www_form_component(value)
37
36
  call(:set, :post, key: key, value: value)
38
37
  end
39
38
 
@@ -208,7 +208,14 @@ Also, many date-time formats can be parsed and will be converted to microseconds
208
208
  query[:mode] = options.mode unless options.mode.nil?
209
209
  query[:order_by] = options.order_by unless options.order_by.nil?
210
210
 
211
- query[:fill] = options.fill unless options.fill.nil?
211
+ # Check if --fill was given an integer
212
+ begin
213
+ fill_integer = Integer(options.fill)
214
+ query[:fill] = fill_integer
215
+ rescue
216
+ query[:fill] = options.fill unless options.fill.nil?
217
+ end
218
+
212
219
  return if options.aggregate.nil?
213
220
  query[:aggregate] = options.aggregate.split(',')
214
221
  end
data/lib/MrMurano/http.rb CHANGED
@@ -187,6 +187,9 @@ module MrMurano
187
187
  else
188
188
  resp += (jsn || 'nil')
189
189
  end
190
+
191
+ # If we get a 404, then let the user know what uri was not found
192
+ response.code.to_s == '404' ? resp += " => #{request.uri}" : nil
190
193
  error resp
191
194
  end
192
195
 
@@ -26,7 +26,20 @@ 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.2.2'
29
+ def self.check_version
30
+ available_version = `gem query -r MuranoCLI`.strip
31
+ installed_version = "MuranoCLI (#{VERSION})".strip
32
+ return VERSION unless installed_version != available_version
33
+ version_notification = VERSION + "\n\n\n\n"
34
+ version_notification += "\033[30m----------------------------------------------------------\n\n"
35
+ version_notification += " A new version of MuranoCLI is available\n"
36
+ version_notification += " - Installed version: \033[34m" + installed_version + "\033[30m\n"
37
+ version_notification += " - Latest version: \033[32m" + available_version + "\033[30m\n\n"
38
+ version_notification += " Run \033[32mgem update MuranoCLI \033[30mto get the latest version! \n\n"
39
+ version_notification += "----------------------------------------------------------\n\n\n\n\n\n"
40
+ version_notification
41
+ end
42
+ VERSION = '3.2.3.beta.1'
30
43
  EXE_NAME = File.basename($PROGRAM_NAME)
31
44
  SIGN_UP_URL = 'https://exosite.com/signup/'
32
45
  end
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.2.2
4
+ version: 3.2.3.beta.1
5
5
  platform: ruby
6
6
  authors:
7
- - Michael Conrad Tadpol Tilstra
7
+ - Exosite LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-13 00:00:00.000000000 Z
11
+ date: 2018-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: certified
@@ -497,7 +497,7 @@ description: |-
497
497
 
498
498
  (This gem was formerly known as MrMurano.)
499
499
  email:
500
- - miketilstra@exosite.com
500
+ - it@exosite.com
501
501
  executables:
502
502
  - murano
503
503
  extensions: []
@@ -606,7 +606,7 @@ files:
606
606
  - lib/MrMurano/variegated/ruby_dig.rb
607
607
  - lib/MrMurano/verbosing.rb
608
608
  - lib/MrMurano/version.rb
609
- homepage: https://github.com/exosite/MuranoCLI
609
+ homepage: http://docs.exosite.com/development/tools/murano-cli/
610
610
  licenses:
611
611
  - MIT
612
612
  metadata: {}
@@ -621,9 +621,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
621
621
  version: '2.0'
622
622
  required_rubygems_version: !ruby/object:Gem::Requirement
623
623
  requirements:
624
- - - ">="
624
+ - - ">"
625
625
  - !ruby/object:Gem::Version
626
- version: '0'
626
+ version: 1.3.1
627
627
  requirements: []
628
628
  rubyforge_project:
629
629
  rubygems_version: 2.7.6