uffizzi_core 2.2.3 → 2.2.4

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
  SHA256:
3
- metadata.gz: ed276a0db55ef8e4abe20854cde6ad43b7cb0a5f57f4feeb31181a0f6d2ab4b6
4
- data.tar.gz: 90cb1783899f084847430e2e9af0dc65a7c62d45b9d9328e1a15a844e93a961e
3
+ metadata.gz: d9a737645810c1744fe73cfbfb2e0d249d0895d75105065dcec75e7f4dea0844
4
+ data.tar.gz: a303130b01e8538a78dd5d891c2d8b9a51224c50d25b0ef5cdb830a7de55de2d
5
5
  SHA512:
6
- metadata.gz: 8f744b78da4678074d957830e75b2262c2e70e5aea369f04d8fc0b4d33560d825e1203cdc78a75cb4565e3395c11e0b24ab8e954b63330d2db20ec67345ea3af
7
- data.tar.gz: cd3cff720cc918e38e959932ac19b2c3422bd8c042aea48d1a74584dda6efc6d8ac281d41d618ee3604ba8a0d13b275ffe552269f1c90d4502851892c8222e48
6
+ metadata.gz: '043837408678dd986b192992cd149f9ca67c1490b7cc07a49cbbc464302fb717ca27ddbcd1819093e92ea7cc7c095930e349caed34bed2593dac4fc01e00c41f'
7
+ data.tar.gz: 62e606f4b9e4ef2ccbcdb0f7f73a6acf91970e1697a00f87a03675ce63fc18f84c835e165e45ab47a7b5797db9b278e83654de02e381631832d37e98c6d6de37
@@ -5,5 +5,5 @@ module UffizziCore::Api::Cli::V1::Projects::ClustersControllerModule
5
5
 
6
6
  def update_show_trial_quota_exceeded_warning; end
7
7
 
8
- def stop_if_deployment_forbidden; end
8
+ def check_account_quota; end
9
9
  end
@@ -3,7 +3,7 @@
3
3
  module UffizziCore::Api::Cli::V1::Projects::DeploymentsControllerModule
4
4
  private
5
5
 
6
- def stop_if_deployment_forbidden; end
6
+ def check_account_quota; end
7
7
 
8
8
  def update_show_trial_quota_exceeded_warning; end
9
9
  end
@@ -4,7 +4,7 @@ class UffizziCore::Api::Cli::V1::Projects::ClustersController < UffizziCore::Api
4
4
  include UffizziCore::Api::Cli::V1::Projects::ClustersControllerModule
5
5
 
6
6
  before_action :authorize_uffizzi_core_api_cli_v1_projects_clusters
7
- before_action :stop_if_deployment_forbidden, only: [:create]
7
+ before_action :check_account_quota, only: [:create]
8
8
  after_action :update_show_trial_quota_exceeded_warning, only: [:create, :destroy]
9
9
 
10
10
  def index
@@ -6,7 +6,7 @@ class UffizziCore::Api::Cli::V1::Projects::DeploymentsController < UffizziCore::
6
6
  include UffizziCore::Api::Cli::V1::Projects::DeploymentsControllerModule
7
7
 
8
8
  before_action :authorize_uffizzi_core_api_cli_v1_projects_deployments
9
- before_action :stop_if_deployment_forbidden, only: :create
9
+ before_action :check_account_quota, only: :create
10
10
  after_action :update_show_trial_quota_exceeded_warning, only: :destroy
11
11
 
12
12
  # Get a list of active deployements for a project
@@ -2,6 +2,8 @@
2
2
 
3
3
  class UffizziCore::Api::Cli::V1::ShortProjectSerializer < UffizziCore::BaseSerializer
4
4
  type :project
5
+ belongs_to :account, serializer: UffizziCore::Api::Cli::V1::ProjectSerializer::AccountSerializer
5
6
 
7
+ # account_id supports CLI versions < 2.0.5
6
8
  attributes :name, :slug, :account_id
7
9
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module UffizziCore
4
- VERSION = '2.2.3'
4
+ VERSION = '2.2.4'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uffizzi_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.3
4
+ version: 2.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Thurman
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-07-11 00:00:00.000000000 Z
12
+ date: 2023-07-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aasm