Sha256: e0e097003b744d7735032d4a665abcc969d16c846511cc026901fe19ebb0d69e
Contents?: true
Size: 568 Bytes
Versions: 2
Compression:
Stored size: 568 Bytes
Contents
require "open-uri" begin require "json" rescue LoadError require "rubygems" require "json" end require "cruisestatus/feed_parser" class CruiseStatus class RunCodeRunParser < FeedParser attr_accessor :url def check response_json = @feed.read response = JSON.parse( response_json ) @failures = response["user"]["projects"].select { |proj| proj["status"] != "success" }.map { |proj| proj["name"] } rescue Exception => e @failures = [e.message] end def failures @failures end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cruisestatus-1.3.2 | lib/cruisestatus/run_code_run_parser.rb |
cruisestatus-1.3.1 | lib/cruisestatus/run_code_run_parser.rb |