ayadn 1.8.1 → 1.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/ayadn/api.rb +3 -3
- data/lib/ayadn/version.rb +1 -1
- data/spec/unit/endpoints_spec.rb +11 -11
- 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: bc40902646614f7f39c512c4d8d7628c708ef905
|
4
|
+
data.tar.gz: bb3f83c664b67aaca653b8db7b94c67ae3a91ff2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ebcc7f9b8c6a404f2b324ac9f0a68235bf85a071f137ee3d97d2af4791cea10a41916bdf3c7cf292a0187f52365fb44befc8ce710fbadeb74df6319759a14a09
|
7
|
+
data.tar.gz: 079b43ae0ee6e536e1acdf1aaefb639940c93bc59dce831efbc32600eb97a3e40823dd3f21415cf177dc76dbdfe76f9a0f92f97c79f59174d66fe10b4fec30cc
|
data/CHANGELOG.md
CHANGED
data/lib/ayadn/api.rb
CHANGED
@@ -275,11 +275,11 @@ module Ayadn
|
|
275
275
|
html = 0
|
276
276
|
end
|
277
277
|
if arg[:since_id]
|
278
|
-
"&count=#{count}&include_html=#{html}&
|
278
|
+
"&count=#{count}&include_html=#{html}&include_directed_posts=#{directed}&include_deleted=0&include_annotations=1&since_id=#{arg[:since_id]}"
|
279
279
|
elsif arg[:recent_message]
|
280
|
-
"&count=#{count}&include_html=#{html}&
|
280
|
+
"&count=#{count}&include_html=#{html}&include_directed_posts=#{directed}&include_deleted=0&include_annotations=1&include_recent_message=#{arg[:recent_message]}"
|
281
281
|
else
|
282
|
-
"&count=#{count}&include_html=#{html}&
|
282
|
+
"&count=#{count}&include_html=#{html}&include_directed_posts=#{directed}&include_deleted=0&include_annotations=1"
|
283
283
|
end
|
284
284
|
end
|
285
285
|
|
data/lib/ayadn/version.rb
CHANGED
data/spec/unit/endpoints_spec.rb
CHANGED
@@ -24,57 +24,57 @@ describe Ayadn::Endpoints do
|
|
24
24
|
end
|
25
25
|
describe '#unified' do
|
26
26
|
it "returns the Unified url" do
|
27
|
-
expect(Ayadn::Endpoints.new.unified({})).to eq 'https://api.app.net/posts/stream/unified?access_token=XXX&count=33&include_html=0&
|
27
|
+
expect(Ayadn::Endpoints.new.unified({})).to eq 'https://api.app.net/posts/stream/unified?access_token=XXX&count=33&include_html=0&include_directed_posts=1&include_deleted=0&include_annotations=1'
|
28
28
|
end
|
29
29
|
end
|
30
30
|
describe '#global' do
|
31
31
|
it "returns the Global url" do
|
32
|
-
expect(Ayadn::Endpoints.new.global({since_id: 336699})).to eq 'https://api.app.net/posts/stream/global?access_token=XXX&count=100&include_html=0&
|
32
|
+
expect(Ayadn::Endpoints.new.global({since_id: 336699})).to eq 'https://api.app.net/posts/stream/global?access_token=XXX&count=100&include_html=0&include_directed_posts=1&include_deleted=0&include_annotations=1&since_id=336699'
|
33
33
|
end
|
34
34
|
end
|
35
35
|
describe "#checkins" do
|
36
36
|
it "returns the Checkins url" do
|
37
|
-
expect(Ayadn::Endpoints.new.checkins({count: 66, html: 1})).to eq 'https://api.app.net/posts/stream/explore/checkins?access_token=XXX&count=66&include_html=1&
|
37
|
+
expect(Ayadn::Endpoints.new.checkins({count: 66, html: 1})).to eq 'https://api.app.net/posts/stream/explore/checkins?access_token=XXX&count=66&include_html=1&include_directed_posts=1&include_deleted=0&include_annotations=1'
|
38
38
|
end
|
39
39
|
end
|
40
40
|
describe '#trending' do
|
41
41
|
it "returns the trending url" do
|
42
|
-
expect(Ayadn::Endpoints.new.trending({deleted: 1})).to eq 'https://api.app.net/posts/stream/explore/trending?access_token=XXX&count=100&include_html=0&
|
42
|
+
expect(Ayadn::Endpoints.new.trending({deleted: 1})).to eq 'https://api.app.net/posts/stream/explore/trending?access_token=XXX&count=100&include_html=0&include_directed_posts=1&include_deleted=0&include_annotations=1'
|
43
43
|
end
|
44
44
|
end
|
45
45
|
describe '#photos' do
|
46
46
|
it "returns the photos url" do
|
47
|
-
expect(Ayadn::Endpoints.new.photos({count: 33})).to eq "https://api.app.net/posts/stream/explore/photos?access_token=XXX&count=33&include_html=0&
|
47
|
+
expect(Ayadn::Endpoints.new.photos({count: 33})).to eq "https://api.app.net/posts/stream/explore/photos?access_token=XXX&count=33&include_html=0&include_directed_posts=1&include_deleted=0&include_annotations=1"
|
48
48
|
end
|
49
49
|
end
|
50
50
|
describe '#conversations' do
|
51
51
|
it "returns the conversations url" do
|
52
|
-
expect(Ayadn::Endpoints.new.conversations({})).to eq "https://api.app.net/posts/stream/explore/conversations?access_token=XXX&count=12&include_html=0&
|
52
|
+
expect(Ayadn::Endpoints.new.conversations({})).to eq "https://api.app.net/posts/stream/explore/conversations?access_token=XXX&count=12&include_html=0&include_directed_posts=1&include_deleted=0&include_annotations=1"
|
53
53
|
end
|
54
54
|
end
|
55
55
|
describe '#mentions' do
|
56
56
|
it "returns the mentions url" do
|
57
|
-
expect(Ayadn::Endpoints.new.mentions('@test', {count: 33})).to eq 'https://api.app.net/users/@test/mentions/?access_token=XXX&count=33&include_html=0&
|
57
|
+
expect(Ayadn::Endpoints.new.mentions('@test', {count: 33})).to eq 'https://api.app.net/users/@test/mentions/?access_token=XXX&count=33&include_html=0&include_directed_posts=1&include_deleted=0&include_annotations=1'
|
58
58
|
end
|
59
59
|
end
|
60
60
|
describe '#posts' do
|
61
61
|
it "returns the posts url" do
|
62
|
-
expect(Ayadn::Endpoints.new.posts('@test', {count: 8})).to eq 'https://api.app.net/users/@test/posts/?access_token=XXX&count=8&include_html=0&
|
62
|
+
expect(Ayadn::Endpoints.new.posts('@test', {count: 8})).to eq 'https://api.app.net/users/@test/posts/?access_token=XXX&count=8&include_html=0&include_directed_posts=1&include_deleted=0&include_annotations=1'
|
63
63
|
end
|
64
64
|
end
|
65
65
|
describe '#whatstarred' do
|
66
66
|
it "returns the whatstarred url" do
|
67
|
-
expect(Ayadn::Endpoints.new.whatstarred('@test', {count: 16})).to eq 'https://api.app.net/users/@test/stars/?access_token=XXX&count=16&include_html=0&
|
67
|
+
expect(Ayadn::Endpoints.new.whatstarred('@test', {count: 16})).to eq 'https://api.app.net/users/@test/stars/?access_token=XXX&count=16&include_html=0&include_directed_posts=1&include_deleted=0&include_annotations=1'
|
68
68
|
end
|
69
69
|
end
|
70
70
|
describe '#channel' do
|
71
71
|
it "returns the channel url" do
|
72
|
-
expect(Ayadn::Endpoints.new.channel([56789, 12345])).to eq 'https://api.app.net/channels/?ids=56789,12345&access_token=XXX&count=100&include_html=0&
|
72
|
+
expect(Ayadn::Endpoints.new.channel([56789, 12345])).to eq 'https://api.app.net/channels/?ids=56789,12345&access_token=XXX&count=100&include_html=0&include_directed_posts=1&include_deleted=0&include_annotations=1&include_marker=1'
|
73
73
|
end
|
74
74
|
end
|
75
75
|
describe '#messages' do
|
76
76
|
it "returns the messages url" do
|
77
|
-
expect(Ayadn::Endpoints.new.messages(56789)).to eq 'https://api.app.net/channels/56789/messages?access_token=XXX&count=100&include_html=0&
|
77
|
+
expect(Ayadn::Endpoints.new.messages(56789)).to eq 'https://api.app.net/channels/56789/messages?access_token=XXX&count=100&include_html=0&include_directed_posts=1&include_deleted=0&include_annotations=1&include_machine=1&include_marker=1'
|
78
78
|
end
|
79
79
|
end
|
80
80
|
describe '#file' do
|