[SCM] ci-tooling packaging branch, master, updated. 48a24f0232cb2ef5335b857a2f1f55ba55db58c2
Harald Sitter
apachelogger-guest at moszumanska.debian.org
Tue May 12 09:13:51 UTC 2015
Gitweb-URL: http://git.debian.org/?p=pkg-kde/ci-tooling.git;a=commitdiff;h=20454f5
The following commit has been merged in the master branch:
commit 20454f5d476053744d4c84fd803eb7a9dab6377d
Author: Harald Sitter <sitter at kde.org>
Date: Tue May 12 11:12:08 2015 +0200
add convenience function to get the latest kci series
---
lib/kci.rb | 5 +++++
test/test_kci.rb | 4 ++++
2 files changed, 9 insertions(+)
diff --git a/lib/kci.rb b/lib/kci.rb
index f56c95f..8fe466c 100644
--- a/lib/kci.rb
+++ b/lib/kci.rb
@@ -14,6 +14,11 @@ module KCI
data['series']
end
+ # @return [String] name of the latest (i.e. newest) series
+ def self.latest_series
+ @latest_series ||= series(sort: :descending).keys.first
+ end
+
# @return [Array<String>] architectues to integrate
def self.architectures
data['architectures']
diff --git a/test/test_kci.rb b/test/test_kci.rb
index ed61ba9..dfea2e1 100644
--- a/test/test_kci.rb
+++ b/test/test_kci.rb
@@ -28,4 +28,8 @@ class KCITest < TestCase
assert_equal('vivid', KCI.series(sort: :ascending).keys.first)
assert_equal('wily', KCI.series(sort: :descending).keys.first)
end
+
+ def test_latest_series
+ assert_equal('wily', KCI.latest_series)
+ end
end
--
ci-tooling packaging
More information about the pkg-kde-commits
mailing list