lib/ragoon.rb in ragoon-0.8.1 vs lib/ragoon.rb in ragoon-1.0.0

- old
+ new

@@ -1,23 +1,25 @@ +require 'nokogiri' +require 'rest-client' +require 'time' + require 'ragoon/version' require 'ragoon/xml' require 'ragoon/client' require 'ragoon/services' require 'ragoon/services/schedule' require 'ragoon/services/notification' require 'ragoon/services/workflow' -require 'nokogiri' -require 'rest-client' - module Ragoon @@secret_options = {} def self.default_options { endpoint: ENV['GAROON_ENDPOINT'] || secret_options[:garoon_endpoint] || raise_option_error('endpoint'), username: ENV['GAROON_USERNAME'] || secret_options[:garoon_username] || raise_option_error('username'), - password: ENV['GAROON_PASSWORD'] || secret_options[:garoon_password] || raise_option_error('password') + password: ENV['GAROON_PASSWORD'] || secret_options[:garoon_password] || raise_option_error('password'), + version: ENV['GAROON_VERSION'] || secret_options[:garoon_version] || 4 } end def self.raise_option_error(type) raise "must specify garoon_#{type} by ENV or `./.secret_options`."