Revert "Upstream 20240517"

This commit is contained in:
KMY(雪あすか) 2024-05-24 08:15:12 +09:00 committed by GitHub
parent 9c006fd893
commit f6dec44e95
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2347 changed files with 26470 additions and 87494 deletions

View file

@ -16,7 +16,7 @@
class SoftwareUpdate < ApplicationRecord
self.inheritance_column = nil
enum :type, { patch: 0, minor: 1, major: 2 }, suffix: :type
enum type: { patch: 0, minor: 1, major: 2 }, _suffix: :type
def gem_version
Gem::Version.new(version)
@ -36,13 +36,5 @@ class SoftwareUpdate < ApplicationRecord
def urgent_pending?
pending_to_a.any?(&:urgent?)
end
def major_pending?
pending_to_a.any?(&:major_type?)
end
def patch_pending?
pending_to_a.any?(&:patch_type?)
end
end
end