[SCM] ci-tooling packaging branch, master, updated. 617ceece8a4abadc1a5ebd117ef22b98b6b66227

Harald Sitter apachelogger-guest at moszumanska.debian.org
Fri Feb 6 14:11:24 UTC 2015


Gitweb-URL: http://git.debian.org/?p=pkg-kde/ci-tooling.git;a=commitdiff;h=2455d8d

The following commit has been merged in the master branch:
commit 2455d8d526eb084c5da0cf6ae0a44dfbf7428658
Author: Harald Sitter <sitter at kde.org>
Date:   Fri Feb 6 14:59:18 2015 +0100

    lp: from_path method for rubber
    
    ideally I actually would like to move the from_ functions to the module
    it reads very awkwardly to have Launchpad::Rubber.from_foo while absolutely
    correct in what it expresses the detail that this is a rubber is not
    not useful nor should it be by its very design
---
 lib/lp.rb | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/lib/lp.rb b/lib/lp.rb
index feef1a4..7c2f53e 100644
--- a/lib/lp.rb
+++ b/lib/lp.rb
@@ -194,5 +194,12 @@ module Launchpad
       reply = Launchpad.get(uri)
       Rubber.from_json(reply)
     end
+
+    def self.from_path(path)
+      prefix = ''
+      prefix = 'devel' unless path.start_with?('devel/') ||
+                              path.start_with?('/devel/')
+      Rubber.from_url("https://api.launchpad.net/#{prefix}/#{path}")
+    end
   end
 end

-- 
ci-tooling packaging



More information about the pkg-kde-commits mailing list