README.md in rest-graph-1.8.0 vs README.md in rest-graph-1.9.0

- old
+ new

@@ -51,11 +51,11 @@ gem install rest-graph Or if you want development version, put this in Gemfile: - gem 'rest-graph', :git => 'git://github.com/cardinalblue/rest-graph.git + gem 'rest-graph', :git => 'git://github.com/cardinalblue/rest-graph.git' Or as a Rails2 plugin: ./script/plugin install git://github.com/cardinalblue/rest-graph.git @@ -185,40 +185,40 @@ ### Alternate ways to setup RestGraph: 1. Set upon RestGraph object creation: - rg = RestGraph.new :app_id => 1234 + rg = RestGraph.new :app_id => 1234 2. Set via the rest_graph_setup call in a Controller: - rest_graph_setup :app_id => 1234 + rest_graph_setup :app_id => 1234 3. Load from a YAML file - require 'rest-graph/config_util' - RestGraph.load_config('path/to/rest-graph.yaml', 'production') - rg = RestGraph.new + require 'rest-graph/config_util' + RestGraph.load_config('path/to/rest-graph.yaml', 'production') + rg = RestGraph.new 4. Load config automatically - require 'rest-graph' # under Rails, would load config/rest-graph.yaml - rg = RestGraph.new + require 'rest-graph' # under Rails, would load config/rest-graph.yaml + rg = RestGraph.new 5. Override directly - module MyDefaults - def default_app_id - '456' - end + module MyDefaults + def default_app_id + '456' + end - def default_secret - 'category theory' - end - end - RestGraph.send(:extend, MyDefaults) - rg = RestGraph.new + def default_secret + 'category theory' + end + end + RestGraph.send(:extend, MyDefaults) + rg = RestGraph.new ## API REFERENCE: ### Facebook Graph API: @@ -228,19 +228,23 @@ # GET https://graph.facebook.com/me?metadata=1&access_token=TOKEN rg.get('me', :metadata => '1') # extra options: - # auto_decode: Bool # decode with json or not in this method call + # auto_decode: Bool # decode with json or not in this API request # # default: auto_decode in rest-graph instance + # timeout: Int # the timeout for this API request + # # default: timeout in rest-graph instance # secret: Bool # use secret_acccess_token or not # # default: false # cache: Bool # use cache or not; if it's false, update cache, too # # default: true # expires_in: Int # control when would the cache be expired - # # default: nothing + # # default: nil # async: Bool # use eventmachine for http client or not # # default: false, but true in aget family + # headers: Hash # additional hash you want to pass + # # default: {} rg.get('me', {:metadata => '1'}, :secret => true, expires_in => 600) #### post rg.post('me/feed', :message => 'bread!')