README.rdoc in rest-graph-1.6.0 vs README.rdoc in rest-graph-1.7.0

- old
+ new

@@ -1,6 +1,6 @@ -= rest-graph 1.6.0 += rest-graph 1.7.0 by Cardinal Blue ( http://cardinalblue.com ) == LINKS: * {github}[http://github.com/cardinalblue/rest-graph] @@ -86,28 +86,27 @@ * {Example}[http://github.com/cardinalblue/rest-graph/blob/master/test/config/rest-graph.yaml] To enable, just require anywhere: - require 'rest-graph/auto_load' + require 'rest-graph/autoload' If you are using Rails and rest-graph as a gem, you can include this when you specify the gem in your environment file by using: - config.gem 'rest-graph', :lib => 'rest-graph/auto_load' + config.gem 'rest-graph', :lib => 'rest-graph/autoload' Or if using bundler, by adding this line into your Gemfile: - gem 'rest-graph', :require => 'rest-graph/auto_load' + gem 'rest-graph', :require => 'rest-graph/autoload' === Setup options: Here are ALL the available options for new instance of RestGraph. rg = RestGraph.new( :access_token => TOKEN , # default nil - :strict => false , # this is the default :graph_server => 'https://graph.facebook.com/', # this is the default :old_server => 'https://api.facebook.com/' , # this is the default :accept => 'text/javascript' , # this is the default :lang => 'en-us' , # this affect search :auto_decode => true , # decode by json @@ -188,11 +187,11 @@ RestGraph::LoadConfig.load_config!('path/to/rest-graph.yaml', 'production') rg = RestGraph.new 4. Load config automatically - require 'rest-graph/auto_load' # under Rails, load config/rest-graph.yaml + require 'rest-graph/autoload' # under Rails, load config/rest-graph.yaml rg = RestGraph.new 5. Override directly module MyDefaults @@ -246,12 +245,13 @@ }.to_json, :action_links => [{:text => 'Go to Wikipedia', :href => 'http://wikipedia.org/'} ].to_json }, - :suppress_decode => true) # You'll need to set suppress_decode to true - # if Facebook is not returning a proper JSON - # response. Otherwise, this could be omitted. + :auto_decode => false) # You'll need to set auto_decode to false for + # this API request if Facebook is not returning + # a proper formatted JSON response. Otherwise, + # this could be omitted. # Some Old Rest API requires a special access token with app secret # inside of it. For those methods, use secret_old_rest instead of the # usual old_rest with common access token. rg.secret_old_rest('admin.getAppProperties', :properties => 'app_id')