facegroup 0.5.0 → 0.6.0
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/facegroup/group.rb +2 -3
- data/lib/facegroup/version.rb +1 -1
- data/spec/facegroup_spec.rb +5 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d7537a0bbdcaa7d0e21beae9e989f76073b807d0
|
4
|
+
data.tar.gz: 51d8739d6c268d01e6fbdc5b254efcff12f4df93
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c92b2e587fa7748348d5df40559988b29947caad387113642a6ac041bb67a064b514d26595d6cda853e4c23eb69048b7106ad4361dd6a85e4610d6f14d1f4257
|
7
|
+
data.tar.gz: e8db6bee6dbf1f065e2439bfda37be9e6755d49f29d862fbf47504edd814c488ef58aca72e13fd2fda531548fdb4c24824ab470395686fd9f6eb91b78b4357a8
|
data/lib/facegroup/group.rb
CHANGED
@@ -18,9 +18,8 @@ module FaceGroup
|
|
18
18
|
group_data.include?('error') ? nil : new(group_data: group_data)
|
19
19
|
end
|
20
20
|
|
21
|
-
def
|
22
|
-
|
23
|
-
Time.parse(latest_postings.first['updated_time'])
|
21
|
+
def latest_postings
|
22
|
+
FbApi.newest_group_postings(id)
|
24
23
|
end
|
25
24
|
end
|
26
25
|
end
|
data/lib/facegroup/version.rb
CHANGED
data/spec/facegroup_spec.rb
CHANGED
@@ -54,12 +54,12 @@ describe 'FaceGroup specifications' do
|
|
54
54
|
end
|
55
55
|
end
|
56
56
|
|
57
|
-
describe 'Checking Latest
|
58
|
-
it '(HAPPY) should get the latest
|
57
|
+
describe 'Checking Latest Postings on Group Feed' do
|
58
|
+
it '(HAPPY) should get only the latest postings time from a group feed' do
|
59
59
|
group = FaceGroup::Group.find(id: ENV['FB_GROUP_ID'])
|
60
|
-
|
61
|
-
|
62
|
-
|
60
|
+
latest_postings = group.latest_postings
|
61
|
+
latest_postings.count.must_be :>=, 10
|
62
|
+
latest_postings.count.must_be :<=, 25
|
63
63
|
end
|
64
64
|
end
|
65
65
|
end
|