[SCM] ci-tooling packaging branch, master, updated. 72b18c2bfb72b8baa222ea565411d105a14d1a31
Harald Sitter
apachelogger-guest at moszumanska.debian.org
Fri Nov 28 11:50:11 UTC 2014
Gitweb-URL: http://git.debian.org/?p=pkg-kde/ci-tooling.git;a=commitdiff;h=a0855e6
The following commit has been merged in the master branch:
commit a0855e662ca1ab2136532f46874b52cd0614085c
Author: Harald Sitter <sitter at kde.org>
Date: Fri Nov 28 12:49:50 2014 +0100
add from_url for launchpad rubber
---
lib/lp.rb | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/lib/lp.rb b/lib/lp.rb
index 280eb35..765aedb 100644
--- a/lib/lp.rb
+++ b/lib/lp.rb
@@ -110,6 +110,12 @@ module Launchpad
def self.from_json(json)
return JSON::parse(json, :object_class => Rubber)
- end
+ end
+
+ def self.from_url(url)
+ uri = URI(url)
+ data = Launchpad::token.get(uri.path)
+ return Rubber::from_json(data)`
+ end
end
end
--
ci-tooling packaging
More information about the pkg-kde-commits
mailing list