uffizzi-cli 1.0.4 → 1.0.5

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: 5aa0242e35791e35a51a850316bb18a97f1651aa345c64ee05264cb6b7faa702
4
- data.tar.gz: bc9a8c8176c2969edf8728be715a0d45c38dab6a3d0e6da37c8022e04d9e8e24
3
+ metadata.gz: 52ed7b3048478db9710fad59d37f003adc38778d9f7dba20bf6cfa9a050f940a
4
+ data.tar.gz: c38c9a39c5f93f541937398bcfdd1e3b41465cc91da4be0cf2f2f6f6a353005b
5
5
  SHA512:
6
- metadata.gz: 993d29e07d6fe739cd3ab82383a948ed2d251f7b00662b02b87cd3a9b1b556ee2e1ed16f224f857ce0689ac64b84d02b74aa711f24f477d546d1f13c378938a1
7
- data.tar.gz: d91befdb081561d8395800f672918518397a70734abc3ff1ec2b57faa0180063f808722afc14de85e056507972d97eb4ef774614d1dd72a54311f5f34629abf0
6
+ metadata.gz: 18460c1f129c98588efe256fcfa0584521098d81f3d4473573859e78e08bfddce15e66ae7c3b541611dc5ee2ae4c96c96f601cb09ab334700202a6b8cc53f82e
7
+ data.tar.gz: 628a6f2448ce1545e49274d486c7c0b52eed61b51d05f170ea6847417cb24a8e732a4c838bc3842c93cc52d8dd24d6996ba337a307f841388beed820cf503b03
@@ -70,9 +70,8 @@ module Uffizzi
70
70
  logs = response[:body][:logs] || []
71
71
  return Uffizzi.ui.say("The service '#{container_name}' has no logs") if logs.empty?
72
72
 
73
- logs.each do |log|
74
- Uffizzi.ui.say(log)
75
- end
73
+ logs_columns = logs.map { |log| [log[:timestamp], log[:payload]] }
74
+ Uffizzi.ui.print_table(logs_columns)
76
75
  end
77
76
  end
78
77
  end
@@ -7,7 +7,9 @@ require 'base64'
7
7
  class EnvVariablesService
8
8
  class << self
9
9
  def substitute_env_variables(compose_file_data)
10
- compose_file_data.gsub(/\$\{?([?:\-_A-Za-z0-9]+)\}?/) do |variable|
10
+ compose_file_data.gsub(/\${1,2}\{?([?:\-_A-Za-z0-9]+)\}?/) do |variable|
11
+ next variable if variable.start_with?('$$')
12
+
11
13
  variable_content = variable.match(/[?:\-_A-Za-z0-9]+/).to_s
12
14
  fetch_variable_value(variable_content)
13
15
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uffizzi
4
- VERSION = '1.0.4'
4
+ VERSION = '1.0.5'
5
5
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uffizzi-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Thurman
8
8
  - Grayson Adkins
9
- autorequire:
9
+ autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2022-10-18 00:00:00.000000000 Z
12
+ date: 2022-11-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: awesome_print
@@ -473,7 +473,7 @@ metadata:
473
473
  homepage_uri: https://uffizzi.com
474
474
  source_code_uri: https://github.com/UffizziCloud/uffizzi_cli
475
475
  changelog_uri: https://github.com/UffizziCloud/uffizzi_cli/blob/master/CHANGELOG.md
476
- post_install_message:
476
+ post_install_message:
477
477
  rdoc_options: []
478
478
  require_paths:
479
479
  - lib
@@ -488,8 +488,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
488
488
  - !ruby/object:Gem::Version
489
489
  version: '0'
490
490
  requirements: []
491
- rubygems_version: 3.3.7
492
- signing_key:
491
+ rubygems_version: 3.2.32
492
+ signing_key:
493
493
  specification_version: 4
494
494
  summary: uffizzi-cli
495
495
  test_files: []