SYMBOL INDEX (187 symbols across 22 files) FILE: lib/omnicontacts.rb type OmniContacts (line 1) | module OmniContacts class AuthorizationError (line 11) | class AuthorizationError < RuntimeError function integration_test (line 15) | def self.integration_test FILE: lib/omnicontacts/authorization/oauth1.rb type OmniContacts (line 15) | module OmniContacts type Authorization (line 16) | module Authorization type OAuth1 (line 17) | module OAuth1 function fetch_authorization_token (line 24) | def fetch_authorization_token function request_token_req_params (line 31) | def request_token_req_params function random_string (line 43) | def random_string function timestamp (line 47) | def timestamp function values_from_query_string (line 51) | def values_from_query_string query_string, keys_to_extract function authorization_url (line 65) | def authorization_url auth_token function fetch_access_token (line 73) | def fetch_access_token auth_token, auth_token_secret, auth_verifie... function access_token_req_params (line 80) | def access_token_req_params auth_token, auth_token_secret, auth_ve... function oauth_signature (line 108) | def oauth_signature method, url, params, secret FILE: lib/omnicontacts/authorization/oauth2.rb type OmniContacts (line 15) | module OmniContacts type Authorization (line 16) | module Authorization type OAuth2 (line 17) | module OAuth2 function authorization_url (line 22) | def authorization_url function authorize_url_params (line 28) | def authorize_url_params function fetch_access_token (line 42) | def fetch_access_token code function token_req_params (line 48) | def token_req_params code function access_token_from_response (line 58) | def access_token_from_response response function refresh_access_token (line 70) | def refresh_access_token refresh_token function refresh_token_req_params (line 76) | def refresh_token_req_params refresh_token FILE: lib/omnicontacts/builder.rb type OmniContacts (line 3) | module OmniContacts class Builder (line 4) | class Builder < Rack::Builder method initialize (line 5) | def initialize(app, &block) method rack14? (line 14) | def rack14? method importer (line 19) | def importer importer, *args method call (line 26) | def call env FILE: lib/omnicontacts/http_utils.rb type OmniContacts (line 7) | module OmniContacts type HTTPUtils (line 8) | module HTTPUtils function query_string_to_map (line 14) | def query_string_to_map query_string function to_query_string (line 22) | def to_query_string map function encode (line 29) | def encode to_encode function host_url_from_rack_env (line 37) | def host_url_from_rack_env env function scheme (line 43) | def scheme env function http_get (line 62) | def http_get host, path, params function https_post (line 69) | def https_post host, path, params function https_get (line 77) | def https_get host, path, params, headers = nil function https_connection (line 83) | def https_connection (host) function process_http_response (line 95) | def process_http_response response FILE: lib/omnicontacts/importer.rb type OmniContacts (line 1) | module OmniContacts type Importer (line 2) | module Importer FILE: lib/omnicontacts/importer/facebook.rb type OmniContacts (line 5) | module OmniContacts type Importer (line 6) | module Importer class Facebook (line 7) | class Facebook < Middleware::OAuth2 method initialize (line 12) | def initialize *args method fetch_contacts_using_access_token (line 24) | def fetch_contacts_using_access_token access_token, access_token_s... method fetch_current_user (line 39) | def fetch_current_user access_token method extract_spouse_id (line 47) | def extract_spouse_id response method contacts_from_response (line 56) | def contacts_from_response(spouse_response, family_response, frien... method create_contact_element (line 81) | def create_contact_element contact_info method image_url (line 96) | def image_url fb_id method escape_windows_format (line 100) | def escape_windows_format value method birthday (line 104) | def birthday dob method current_user (line 110) | def current_user me FILE: lib/omnicontacts/importer/gmail.rb type OmniContacts (line 4) | module OmniContacts type Importer (line 5) | module Importer class Gmail (line 6) | class Gmail < Middleware::OAuth2 method initialize (line 11) | def initialize *args method fetch_contacts_using_access_token (line 24) | def fetch_contacts_using_access_token access_token, token_type method fetch_current_user (line 30) | def fetch_current_user access_token, token_type method contacts_req_params (line 38) | def contacts_req_params method contacts_req_headers (line 42) | def contacts_req_headers token, token_type method contacts_from_response (line 46) | def contacts_from_response(response_as_json, access_token) method current_user (line 185) | def current_user me, access_token, token_type method birthday (line 195) | def birthday dob method contact_id (line 202) | def contact_id(profile_url) FILE: lib/omnicontacts/importer/hotmail.rb type OmniContacts (line 5) | module OmniContacts type Importer (line 6) | module Importer class Hotmail (line 7) | class Hotmail < Middleware::OAuth2 method initialize (line 12) | def initialize app, client_id, client_secret, options ={} method fetch_contacts_using_access_token (line 23) | def fetch_contacts_using_access_token access_token, access_token_s... method fetch_current_user (line 29) | def fetch_current_user access_token method contacts_from_response (line 37) | def contacts_from_response response_as_json method parse_email (line 57) | def parse_email(emails) method current_user (line 62) | def current_user me method image_url (line 74) | def image_url hotmail_id method escape_windows_format (line 78) | def escape_windows_format value method valid_email? (line 82) | def valid_email? value FILE: lib/omnicontacts/importer/linkedin.rb type OmniContacts (line 4) | module OmniContacts type Importer (line 5) | module Importer class Linkedin (line 6) | class Linkedin < Middleware::OAuth2 method initialize (line 11) | def initialize *args method fetch_contacts_using_access_token (line 24) | def fetch_contacts_using_access_token access_token, token_type method contacts_req_params (line 32) | def contacts_req_params method contacts_req_headers (line 36) | def contacts_req_headers token, token_type method contacts_from_response (line 40) | def contacts_from_response response_as_json method authorize_url_params (line 56) | def authorize_url_params FILE: lib/omnicontacts/importer/outlook.rb type OmniContacts (line 6) | module OmniContacts type Importer (line 7) | module Importer class Outlook (line 8) | class Outlook < Middleware::OAuth2 method initialize (line 13) | def initialize app, client_id, client_secret, options ={} method fetch_contacts_using_access_token (line 24) | def fetch_contacts_using_access_token access_token, token_type method fetch_current_user (line 30) | def fetch_current_user access_token, token_type method contacts_req_headers (line 38) | def contacts_req_headers token, token_type method current_user (line 42) | def current_user me method contacts_from_response (line 59) | def contacts_from_response response_as_json method empty_contact (line 87) | def empty_contact method parse_email (line 93) | def parse_email emails method birthday (line 100) | def birthday dob method valid_email? (line 107) | def valid_email? value FILE: lib/omnicontacts/importer/yahoo.rb type OmniContacts (line 5) | module OmniContacts type Importer (line 6) | module Importer class Yahoo (line 7) | class Yahoo < Middleware::OAuth1 method initialize (line 12) | def initialize *args method fetch_contacts_from_token_and_verifier (line 21) | def fetch_contacts_from_token_and_verifier auth_token, auth_token_... method fetch_current_user (line 29) | def fetch_current_user access_token, access_token_secret, guid method contacts_req_params (line 38) | def contacts_req_params access_token, access_token_secret, contact... method contacts_from_response (line 53) | def contacts_from_response response_as_json method image_url (line 114) | def image_url yahoo_id method parse_email (line 118) | def parse_email(emails) method birthday (line 136) | def birthday dob method gender (line 144) | def gender g method my_image (line 149) | def my_image img method current_user (line 154) | def current_user me FILE: lib/omnicontacts/integration_test.rb class IntegrationTest (line 3) | class IntegrationTest method initialize (line 8) | def initialize method clear_mocks (line 13) | def clear_mocks method mock (line 18) | def mock provider, contacts, user = {} method mock_authorization_from_user (line 23) | def mock_authorization_from_user provider method mock_fetch_contacts (line 27) | def mock_fetch_contacts provider method mock_fetch_user (line 38) | def mock_fetch_user provider FILE: lib/omnicontacts/middleware/base_oauth.rb type OmniContacts (line 8) | module OmniContacts type Middleware (line 9) | module Middleware class BaseOAuth (line 10) | class BaseOAuth method initialize (line 14) | def initialize app, options method class_name (line 20) | def class_name method call (line 34) | def call env method test_mode? (line 49) | def test_mode? method handle_initial_request (line 53) | def handle_initial_request method handle_callback (line 63) | def handle_callback method set_current_user (line 75) | def set_current_user user method execute_and_rescue_exceptions (line 82) | def execute_and_rescue_exceptions method handle_error (line 92) | def handle_error error_type, exception method session (line 100) | def session method logger (line 105) | def logger method base_prop_name (line 109) | def base_prop_name method append_request_params (line 113) | def append_request_params(target_url) method append_state_query (line 122) | def append_state_query(target_url) FILE: lib/omnicontacts/middleware/oauth1.rb type OmniContacts (line 10) | module OmniContacts type Middleware (line 11) | module Middleware class OAuth1 (line 12) | class OAuth1 < BaseOAuth method initialize (line 17) | def initialize app, consumer_key, consumer_secret, options = {} method callback (line 25) | def callback method request_authorization_from_user (line 34) | def request_authorization_from_user method token_secret_prop_name (line 41) | def token_secret_prop_name oauth_token method redirect_to_authorization_site (line 45) | def redirect_to_authorization_site auth_token method fetch_contacts (line 56) | def fetch_contacts FILE: lib/omnicontacts/middleware/oauth2.rb type OmniContacts (line 11) | module OmniContacts type Middleware (line 12) | module Middleware class OAuth2 (line 13) | class OAuth2 < BaseOAuth method initialize (line 18) | def initialize app, client_id, client_secret, options ={} method request_authorization_from_user (line 26) | def request_authorization_from_user method redirect_uri (line 31) | def redirect_uri method fetch_contacts (line 44) | def fetch_contacts method refresh_token_prop_name (line 61) | def refresh_token_prop_name code FILE: lib/omnicontacts/parse_utils.rb type OmniContacts (line 1) | module OmniContacts type ParseUtils (line 2) | module ParseUtils function birthday_format (line 5) | def birthday_format month, day, year function normalize_name (line 12) | def normalize_name name function full_name (line 21) | def full_name first_name, last_name function email_to_name (line 29) | def email_to_name username_or_email function image_url_from_email (line 41) | def image_url_from_email email FILE: spec/omnicontacts/authorization/oauth1_spec.rb class OAuth1TestClass (line 8) | class OAuth1TestClass FILE: spec/omnicontacts/authorization/oauth2_spec.rb class OAuth2TestClass (line 8) | class OAuth2TestClass FILE: spec/omnicontacts/middleware/base_oauth_spec.rb class TestProvider (line 8) | class TestProvider < OmniContacts::Middleware::BaseOAuth method initialize (line 9) | def initialize app, consumer_key, consumer_secret, options = {} method redirect_path (line 13) | def redirect_path method mock_session (line 17) | def self.mock_session method session (line 21) | def session FILE: spec/omnicontacts/middleware/oauth1_spec.rb class OAuth1Middleware (line 7) | class OAuth1Middleware < OmniContacts::Middleware::OAuth1 method mock_auth_token_resp (line 8) | def self.mock_auth_token_resp method fetch_authorization_token (line 12) | def fetch_authorization_token method authorization_url (line 16) | def authorization_url auth_token method fetch_contacts_from_token_and_verifier (line 20) | def fetch_contacts_from_token_and_verifier oauth_token, ouath_token_se... method mock_session (line 24) | def self.mock_session method session (line 28) | def session FILE: spec/omnicontacts/middleware/oauth2_spec.rb class OAuth2Middleware (line 7) | class OAuth2Middleware < OmniContacts::Middleware::OAuth2 method authorization_url (line 8) | def authorization_url method redirect_path (line 12) | def redirect_path method mock_session (line 16) | def self.mock_session method session (line 20) | def session method fetch_access_token (line 24) | def fetch_access_token code method fetch_contacts_using_access_token (line 28) | def fetch_contacts_using_access_token token, token_type