Displaying 4 results from an estimated 4 matches for "consumer_key".
2013 Jan 29
0
How to stub a class inside a module with Mocha in Ruby?
...9;ve tried all of
them but none of them works. Basically, I''m trying to stub
TwitterOAuth::Client so my test won''t call the real api every time.
Here''s the bit from TwitterOAuth gem that I use.
module TwitterOAuth
  class Client
    def initialize(options = {})
      @consumer_key = options[:consumer_key]
      @consumer_secret = options[:consumer_secret]
      @token = options[:token]
      @secret = options[:secret]
      @proxy = options[:proxy]
      @debug = options[:debug]
      @api_version = options[:api_version] || ''1''
      @api_host = options[:ap...
2011 Sep 26
2
undefined method `options' for #<EventMachine::HttpClien
Hi , I am writing a rake task to consume twitter stream API. The task
contains the following code:
consumer = OAuth::Consumer.new(CONSUMER_KEY, CONSUMER_SECRET, :site =>
''http://twitter.com'')
access_token =
OAuth::AccessToken.new(consumer,ACCESS_TOKEN,ACCESS_TOKEN_SECRET)
oauth_params = {:consumer => consumer, :token => access_token}
EventMachine.run do
          # now, let''s subscribe to twitter site s...
2011 Oct 16
4
Ruby on rails with twitter integration
...-rails-integrated-cookbook-style-in-the-console-updated-for-twitter-1-0/
after some steps with the rails console, *Then i got some errors after i   
gave the steps to send the tweet from the application *
* client = Twitter::Client.new*, 
=> #<Twitter::Client:0x971204c @adapter=:net_http, @consumer_key=nil, 
@consumer_secret=nil, @endpoint="https://api.twitter.com/", @format=:json, 
@gateway=nil, @oauth_token=nil, @oauth_token_secret=nil, @proxy=nil, 
@search_endpoint="https://search.twitter.com/", @user_agent="Twitter Ruby 
Gem 1.7.2", @media_endpoint="https://...
2011 Oct 12
36
ROR setup on ubuntu machine
I am new to ROR, i need to setup ROR on my ubuntu machine. can u give some 
steps to follow for ROR? or some effective tutorials link to setup this?
-- 
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/ciRx6txsgY4J.
To post to this group, send