Sha256: e8e2accca12c2f88d2cc6e13b580a0b28c49b1731d5c05b158a46e17d5458960
Contents?: true
Size: 899 Bytes
Versions: 4
Compression:
Stored size: 899 Bytes
Contents
require 'rubygems' require "bundler/setup" require 'active_support/all' require 'oauth2' require 'json' require 'hashie' require 'rest_client' require 'uri' require "base64" require "openssl" require 'fbgraph/result' require 'fbgraph/client' require 'fbgraph/base' require 'fbgraph/authorization' require 'fbgraph/selection' require 'fbgraph/search' require 'fbgraph/realtime' require 'fbgraph/canvas' module FBGraph @config = nil class << self def config @config ||= load_config(config_path).freeze end def config_path if defined?(Rails) File.join(Rails.root , 'config' , 'facebook.yml') else 'facebook.yml' end end def load_config(yaml_file) return {} unless File.exist?(yaml_file) cfg = YAML::load(File.open(yaml_file)) if defined? Rails cfg = cfg[Rails.env] end cfg end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
fbgraph-1.9.0 | lib/fbgraph.rb |
fbgraph-1.8.4 | lib/fbgraph.rb |
fbgraph-1.8.3 | lib/fbgraph.rb |
fbgraph-1.8.0 | lib/fbgraph.rb |