From a7d82d32d9fb9fbfebbfa14b1d6fc00c21361f5a Mon Sep 17 00:00:00 2001 From: Evgeny Udalov Date: Fri, 15 Dec 2023 19:38:54 +0400 Subject: [PATCH] GHI-5855 - Added the type field to the Ey::Core::Client::Alert class (updated ey-core 3.6.5) (#139) * Changed gem version to debug one * Added debug messages to check if it appears in the output * Added `type` field to `Ey::Core::Client::Alert` class * Added bin/console script * Added Idea IDE related files to ``.gitignore` * Fixed typo in debug message and changed the gem version * Added homepage * Removed debug message * Fixed .gitignore --- .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..f3a9104 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,6 @@ tmp .rspec .gemrelease tags + +# Idea IDE 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 e2880aa..cc33455 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 842a3ab..122a197 100644 --- a/lib/ey-core/version.rb +++ b/lib/ey-core/version.rb @@ -1,5 +1,5 @@ module Ey module Core - VERSION = "3.6.5" + VERSION = "3.6.6" end end