From 14b0a933db7b147cda80b1c69a2e69adf0d397f4 Mon Sep 17 00:00:00 2001 From: Evgeny Udalov Date: Fri, 15 Dec 2023 19:38:43 +0400 Subject: [PATCH] GHI-5855 - Added the type field to the Ey::Core::Client::Alert class (updated ey-core 3.4.4) (#138) * Added debug messages to check if it appears in the output * Added `type` field to `Ey::Core::Client::Alert` class * Changed the version number * Added bin/console script * Removed debug message * Added Idea IDE file to .gitignore * Removed meaningless changes in get_alerts.rb * Added homepage --- .gitignore | 3 +++ bin/console | 4 ++++ ey-core.gemspec | 2 +- lib/ey-core/models/alert.rb | 1 + lib/ey-core/version.rb | 2 +- 5 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 bin/console diff --git a/.gitignore b/.gitignore index 0108070..2e6247f 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,6 @@ tmp .rspec .gemrelease tags + +# Idea files +.idea/ \ No newline at end of file diff --git a/bin/console b/bin/console new file mode 100644 index 0000000..6eab8a7 --- /dev/null +++ b/bin/console @@ -0,0 +1,4 @@ +#!/usr/bin/env ruby + +require "irb" +IRB.start(__FILE__) \ No newline at end of file diff --git a/ey-core.gemspec b/ey-core.gemspec index 4ae91c0..f2dea35 100644 --- a/ey-core.gemspec +++ b/ey-core.gemspec @@ -10,7 +10,7 @@ Gem::Specification.new do |gem| gem.email = ["engineering@engineyard.com"] gem.description = %q{Engine Yard Core API Ruby Client} gem.summary = %q{Client library providing real and mock functionality for accessing Engine Yard's Core API} - gem.homepage = "" + gem.homepage = "https://github.com/engineyard/core-client-rb" gem.files = `git ls-files`.split($/) gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) } diff --git a/lib/ey-core/models/alert.rb b/lib/ey-core/models/alert.rb index ad48eb2..c09c3c2 100644 --- a/lib/ey-core/models/alert.rb +++ b/lib/ey-core/models/alert.rb @@ -15,6 +15,7 @@ class Ey::Core::Client::Alert < Ey::Core::Model attribute :severity attribute :started_at, type: :time attribute :updated_at, type: :time + attribute :type attr_writer :database_server, :server, :agent, :resource diff --git a/lib/ey-core/version.rb b/lib/ey-core/version.rb index 2b1e43f..9a8f907 100644 --- a/lib/ey-core/version.rb +++ b/lib/ey-core/version.rb @@ -1,5 +1,5 @@ module Ey module Core - VERSION = "3.4.4" + VERSION = "3.4.5" end end