secondHandler 1.1.2 → 1.1.3
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.
- checksums.yaml +4 -4
- data/lib/second_handler/version.rb +2 -2
- data/lib/second_handler.rb +22 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f952d71536a07bb62aae790d1d730f8a217b081c
|
|
4
|
+
data.tar.gz: b0fa2b2eaf8c2ea0a46b731c90ab1fe30521b9a5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 301df76e3792b4da0b818ecefbb6d740b1b7948354739b22ea2c7de98e1bd35b18a2db09f107a63c0b2c948f47edade2536ab7f089fed3c8a0ba8098d52afb85
|
|
7
|
+
data.tar.gz: fad81956293e80d5e996492d23bc56ae7a72e805c375d938bf883f7f553bc19a8f722cc057d0784773ef4f2368154dc593981c6aeed23566d39c995676597580
|
data/lib/second_handler.rb
CHANGED
|
@@ -36,6 +36,28 @@ module SecondHandler
|
|
|
36
36
|
]
|
|
37
37
|
)
|
|
38
38
|
end
|
|
39
|
+
#
|
|
40
|
+
# Get specified page comment
|
|
41
|
+
# == Parameters:
|
|
42
|
+
# token::
|
|
43
|
+
# paging token
|
|
44
|
+
# actions::
|
|
45
|
+
# canbe :before or :after
|
|
46
|
+
#
|
|
47
|
+
def specified_comment(token, action)
|
|
48
|
+
@comment = @graph.get_connections(@post_id, "comments",
|
|
49
|
+
:limit=>1,
|
|
50
|
+
:fields => ["from{name,id,picture}",
|
|
51
|
+
"id",
|
|
52
|
+
"message",
|
|
53
|
+
"created_time",
|
|
54
|
+
"like_count",
|
|
55
|
+
],
|
|
56
|
+
action => token,
|
|
57
|
+
)
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
|
|
39
61
|
|
|
40
62
|
def get_comment
|
|
41
63
|
@comment.map do |single_comment|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: secondHandler
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sheng Jung Wu
|
|
@@ -11,7 +11,7 @@ authors:
|
|
|
11
11
|
autorequire:
|
|
12
12
|
bindir: bin
|
|
13
13
|
cert_chain: []
|
|
14
|
-
date: 2016-01-
|
|
14
|
+
date: 2016-01-07 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: minitest
|