Sha256: 8c4c4a35ff55407278327a4c7c2715bf7e8a19733cf53cd36369a9f4a1ff62dd

Contents?: true

Size: 888 Bytes

Versions: 4

Compression:

Stored size: 888 Bytes

Contents

class TestCredentials
  attr_reader :twitter_consumer_key, :twitter_consumer_secret, :twitter_oauth_token, :twitter_oauth_token_secret, :fb_app_id, :fb_app_secret
  def initialize twitter_consumer_key, twitter_consumer_secret, twitter_oauth_token, twitter_oauth_token_secret, fb_app_id, fb_app_secret
    @twitter_consumer_key, @twitter_consumer_secret, @twitter_oauth_token, @twitter_oauth_token_secret, @fb_app_id, @fb_app_secret = twitter_consumer_key, twitter_consumer_secret, twitter_oauth_token, twitter_oauth_token_secret, fb_app_id, fb_app_secret
  end
  credentials_file = File.expand_path("#{__FILE__}/../credentials.rb")
  unless File.exists?(credentials_file)
    puts "Please configure your Facebook and Twitter application credentials by copying #{credentials_file}.example to #{credentials_file} and configuring the required values there appropriately."
    exit
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
social_count-0.0.7 spec/support/test_credentials.rb
social_count-0.0.6 spec/support/test_credentials.rb
social_count-0.0.4 spec/support/test_credentials.rb
social_count-0.0.3 spec/support/test_credentials.rb