Sha256: 9f429db0448486167d984b6f0e6b6491917037a984e1aa1ee0874940aafb7585

Contents?: true

Size: 1.42 KB

Versions: 8

Compression:

Stored size: 1.42 KB

Contents

require "plataforma_social/support"
require "plataforma_social/version"
require "plataforma_social/configuration"
require "plataforma_social/domains"
require "plataforma_social/facebook"
require "plataforma_social/request"
require "plataforma_social/helpers"
require "plataforma_social/ranking"
require "plataforma_social/ranking/custom"
require "plataforma_social/ranking/general"
require "plataforma_social/badge"

module PlataformaSocial
  class << self
    def configuration
      @configuration ||= Configuration.new
    end
    
    def configure
      yield(configuration)
    end
    
    def api_key
      configuration.api_key
    end
    
    def secret
      configuration.secret
    end
    
    def facebook_app_id
      configuration.facebook_app_id
    end
    
    def facebook_app_secret
      configuration.facebook_app_secret
    end
    
    def facebook_app_namespace
      configuration.facebook_app_namespace
    end
    
    def facebook_scope
      configuration.facebook_scope
    end
    
    def facebook_callback_url
      protocol = Rails.env.development? || Rails.env.staging? ? 'http' : 'https'
      configuration.facebook_callback_url || "#{protocol}://apps.facebook.com/#{configuration.facebook_app_namespace}/"
    end
    
    def admin_controller_name
      configuration.admin_controller_name || 'admin'
    end
    
    def environment
      configuration.environment || Rails.env.to_s
    end
    
  end  
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
plataforma_social-0.0.35 lib/plataforma_social.rb
plataforma_social-0.0.34 lib/plataforma_social.rb
plataforma_social-0.0.33 lib/plataforma_social.rb
plataforma_social-0.0.32 lib/plataforma_social.rb
plataforma_social-0.0.30 lib/plataforma_social.rb
plataforma_social-0.0.29 lib/plataforma_social.rb
plataforma_social-0.0.28 lib/plataforma_social.rb
plataforma_social-0.0.27 lib/plataforma_social.rb