fb_graph 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +1 -1
- data/VERSION +1 -1
- data/fb_graph.gemspec +1 -1
- data/lib/fb_graph/connections/comments.rb +1 -1
- data/lib/fb_graph.rb +6 -1
- metadata +2 -2
data/README.rdoc
CHANGED
|
@@ -9,8 +9,8 @@ This is a work in progress.
|
|
|
9
9
|
|
|
10
10
|
== Resources
|
|
11
11
|
|
|
12
|
+
* View RDoc on RDoc.info (http://rdoc.info/projects/nov/fb_graph)
|
|
12
13
|
* View Source on GitHub (http://github.com/nov/fb_graph)
|
|
13
|
-
* View RDoc on GitHub (http://nov.github.com/fb_graph)
|
|
14
14
|
* Report Issues on GitHub (http://github.com/nov/fb_graph/issues)
|
|
15
15
|
* Facebook fan page (http://www.facebook.com/pages/FbGraph/117513961602338)
|
|
16
16
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.1
|
data/fb_graph.gemspec
CHANGED
|
@@ -2,7 +2,7 @@ module FbGraph
|
|
|
2
2
|
module Connections
|
|
3
3
|
module Comments
|
|
4
4
|
def comments(options = {})
|
|
5
|
-
comments = if options.blank?
|
|
5
|
+
comments = if @_comments_.present? && options.blank?
|
|
6
6
|
# Note:
|
|
7
7
|
# "comments" is a connection, but included in fetched "post" object
|
|
8
8
|
# this improves performance when rendering the stream with comments
|
data/lib/fb_graph.rb
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
require 'rubygems'
|
|
2
2
|
require 'json'
|
|
3
|
-
require 'active_support'
|
|
4
3
|
require 'restclient'
|
|
5
4
|
|
|
5
|
+
# NOTE:
|
|
6
|
+
# For some reason, ActiveSupport 3.0.0 doesn'tj load whole code.
|
|
7
|
+
# Load needed extention directly for now.
|
|
8
|
+
require 'active_support/core_ext/object'
|
|
9
|
+
require 'active_support/core_ext/hash'
|
|
10
|
+
|
|
6
11
|
module FbGraph
|
|
7
12
|
ROOT_URL = "https://graph.facebook.com"
|
|
8
13
|
|