facegroup 0.6.0 → 0.6.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d7537a0bbdcaa7d0e21beae9e989f76073b807d0
4
- data.tar.gz: 51d8739d6c268d01e6fbdc5b254efcff12f4df93
3
+ metadata.gz: e8db714279ba578e7c50503d9463d00fb89bf9b0
4
+ data.tar.gz: 0ed7e985b2bd18fc1836235def5d79b04f5ffd02
5
5
  SHA512:
6
- metadata.gz: c92b2e587fa7748348d5df40559988b29947caad387113642a6ac041bb67a064b514d26595d6cda853e4c23eb69048b7106ad4361dd6a85e4610d6f14d1f4257
7
- data.tar.gz: e8db6bee6dbf1f065e2439bfda37be9e6755d49f29d862fbf47504edd814c488ef58aca72e13fd2fda531548fdb4c24824ab470395686fd9f6eb91b78b4357a8
6
+ metadata.gz: 24f818ce7da16c7ae0fa51a880e5c92b077478f51d89b9a048d007eb2f252be05e16cd8aee7655855b895d760adc552a112e3b22528ac000792fea4b1445eeec
7
+ data.tar.gz: 804505a943e3dfd5e51cde4ca78b1eff6a425c259cb270534f9e59bce683c7aa53a301a72c5d32ed3c1681982e4cf3fb962e809e938f163f52948002522c38f8
@@ -18,7 +18,7 @@ module FaceGroup
18
18
  group_data.include?('error') ? nil : new(group_data: group_data)
19
19
  end
20
20
 
21
- def latest_postings
21
+ def self.latest_postings(id:)
22
22
  FbApi.newest_group_postings(id)
23
23
  end
24
24
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FaceGroup
4
- VERSION = '0.6.0'
4
+ VERSION = '0.6.1'
5
5
  end
@@ -56,10 +56,9 @@ describe 'FaceGroup specifications' do
56
56
 
57
57
  describe 'Checking Latest Postings on Group Feed' do
58
58
  it '(HAPPY) should get only the latest postings time from a group feed' do
59
- group = FaceGroup::Group.find(id: ENV['FB_GROUP_ID'])
60
- latest_postings = group.latest_postings
61
- latest_postings.count.must_be :>=, 10
62
- latest_postings.count.must_be :<=, 25
59
+ latest = FaceGroup::Group.latest_postings(id: ENV['FB_GROUP_ID'])
60
+ latest.count.must_be :>=, 10
61
+ latest.count.must_be :<=, 25
63
62
  end
64
63
  end
65
64
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: facegroup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Soumya Ray