lib/emissary.rb in emissary-ruby-0.0.5 vs lib/emissary.rb in emissary-ruby-0.0.6
- old
+ new
@@ -3,11 +3,11 @@
require 'loggr';
class Emissary
class << self
- attr_accessor :webhooks_url, :bot_token, :trello_public_key, :trello_member_token, :server_name, :header_format
+ attr_accessor :webhooks_url, :bot_token, :trello_public_key, :trello_member_token, :server_name, :header_format, :json_file_path
def configure(&block)
block.call(self)
end
def header
@@ -33,10 +33,10 @@
def respond
end
def read_loggrs
- file = File.open "./lib/loggr.json"
+ file = File.open Emissary.json_file_path
raw_loggrs = JSON.load file
raw_loggrs.each do |k, v|
loggr = Loggr.new v
loggrs[loggr.command] = loggr
end