Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
moklidia committed Aug 22, 2023
2 parents 64ab8e5 + 12256e7 commit d5cabe2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
PATH
remote: .
specs:
uffizzi-cli (2.0.22)
uffizzi-cli (2.0.23)
activesupport
awesome_print
bump
faker
launchy
minitar
Expand Down Expand Up @@ -134,6 +133,7 @@ PLATFORMS
x86_64-linux-musl

DEPENDENCIES
bump
bundler (~> 2.1)
byebug
deepsort (~> 0.4.5)
Expand Down
4 changes: 1 addition & 3 deletions lib/uffizzi/clients/api/http_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

require 'net/http'
require 'json'
require 'bump'

module Uffizzi
class HttpClient
Expand Down Expand Up @@ -75,9 +74,8 @@ def build_request(uri, params, method)
def get_headers(access_token)
content_type_headers = { 'Content-Type' => 'application/json' }
auth_headers = access_token ? { 'Authorization' => "Bearer #{access_token}" } : {}
cli_version = { 'x-uffizzi-cli-version' => Bump::Bump.current }

content_type_headers.merge(auth_headers).merge(cli_version)
content_type_headers.merge(auth_headers)
end
end
end
2 changes: 1 addition & 1 deletion lib/uffizzi/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Uffizzi
VERSION = '2.0.22'
VERSION = '2.0.23'
end
2 changes: 1 addition & 1 deletion uffizzi.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ Gem::Specification.new do |spec|

spec.add_dependency 'activesupport'
spec.add_dependency 'awesome_print'
spec.add_dependency 'bump'
spec.add_dependency 'faker'
spec.add_dependency 'launchy'
spec.add_dependency 'minitar'
Expand All @@ -38,6 +37,7 @@ Gem::Specification.new do |spec|
spec.add_dependency 'tty-prompt'
spec.add_dependency 'tty-spinner'

spec.add_development_dependency 'bump'
spec.add_development_dependency 'bundler', '~> 2.1'
spec.add_development_dependency 'byebug'
spec.add_development_dependency 'deepsort', '~> 0.4.5'
Expand Down

0 comments on commit d5cabe2

Please sign in to comment.