lib/wss_agent.rb in wss_agent-0.0.17 vs lib/wss_agent.rb in wss_agent-0.0.21

- old
+ new

@@ -1,10 +1,10 @@ require 'thor' require 'net/http' require 'awesome_print' require 'yaml' -require 'oj' +require 'multi_json' require 'faraday' require 'faraday_middleware' require 'yell' require 'wss_agent/version' require 'wss_agent/specifications' @@ -15,24 +15,23 @@ require 'wss_agent/response_inventory' require 'wss_agent/client' require 'wss_agent/gem_sha1' require 'wss_agent/project' - module WssAgent - # Your code goes here... + DEFAULT_CA_BUNDLE_PATH = File.dirname(__FILE__) + '/data/ca-certificates.crt' class WssAgentError < StandardError def self.status_code(code) define_method(:status_code) { code } end end - class NotFoundConfigFile < WssAgentError; status_code(8) ; end - class InvalidConfigFile < WssAgentError; status_code(9) ; end - class TokenNotFound < WssAgentError; status_code(10) ; end - class ApiUrlNotFound < WssAgentError; status_code(11) ; end - class ApiUrlInvalid < WssAgentError; status_code(12) ; end + class NotFoundConfigFile < WssAgentError; status_code(8); end + class InvalidConfigFile < WssAgentError; status_code(9); end + class TokenNotFound < WssAgentError; status_code(10); end + class ApiUrlNotFound < WssAgentError; status_code(11); end + class ApiUrlInvalid < WssAgentError; status_code(12); end def self.logger @logger ||= Yell.new STDOUT, level: [:info] end