[SCM] ci-tooling packaging branch, master, updated. 81eda080c0042379d745029488c047ddb748db1d
Harald Sitter
apachelogger-guest at moszumanska.debian.org
Mon Jan 5 01:27:24 UTC 2015
Gitweb-URL: http://git.debian.org/?p=pkg-kde/ci-tooling.git;a=commitdiff;h=81eda08
The following commit has been merged in the master branch:
commit 81eda080c0042379d745029488c047ddb748db1d
Author: Harald Sitter <sitter at kde.org>
Date: Mon Jan 5 02:27:09 2015 +0100
lp: use quirks mode for json parsing as lp returns literals
this is RFC compliant since 2013, before than objects only were valid
---
lib/lp.rb | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/lib/lp.rb b/lib/lp.rb
index 2042bea..6b60c2a 100644
--- a/lib/lp.rb
+++ b/lib/lp.rb
@@ -142,7 +142,10 @@ module Launchpad
end
def self.from_json(json)
- return JSON::parse(json, :object_class => Rubber)
+ # Launchpad uses new-style JSON which can be any of the JSON literals
+ # other than object/array. To make the parser pick this up we need
+ # to enable quirks mode.
+ return JSON::parse(json, quirks_mode: true, object_class: Rubber)
end
def self.from_url(url)
--
ci-tooling packaging
More information about the pkg-kde-commits
mailing list