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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c002ed66cd4400178db525b0446de6f6aea8e6d1
4
- data.tar.gz: 3b2cbfd97cebb3f4063408a54120d4c6a2ff2f5c
3
+ metadata.gz: bc40902646614f7f39c512c4d8d7628c708ef905
4
+ data.tar.gz: bb3f83c664b67aaca653b8db7b94c67ae3a91ff2
5
5
  SHA512:
6
- metadata.gz: 5ed25a04fd265524ea45dbe8a90380274528fdf1de4c198e7ee13b6f1c88415dc56aec35f5b44b5e340a33382fa1ef5cbc8afb07b6c236c57ea8661058f3ead1
7
- data.tar.gz: c2ef0d0b4252c1405d15396e4d92e6fd7aed7f8a3b3e5b28b4e085a55be248925b90b86481f6b199a9e609b5c8244ca33d43d929b002dc55406d32e7ae03841b
6
+ metadata.gz: ebcc7f9b8c6a404f2b324ac9f0a68235bf85a071f137ee3d97d2af4791cea10a41916bdf3c7cf292a0187f52365fb44befc8ce710fbadeb74df6319759a14a09
7
+ data.tar.gz: 079b43ae0ee6e536e1acdf1aaefb639940c93bc59dce831efbc32600eb97a3e40823dd3f21415cf177dc76dbdfe76f9a0f92f97c79f59174d66fe10b4fec30cc
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 1.8.2 - 2014-10-31 - 'Asylum'
2
+
3
+ - Fix: directed posts in timeline, bis
4
+
1
5
  # 1.8.1 - 2014-10-31 - 'Stockholm'
2
6
 
3
7
  - Fix: directed posts in timeline
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}&include_directed=#{directed}&include_deleted=0&include_annotations=1&since_id=#{arg[:since_id]}"
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}&include_directed=#{directed}&include_deleted=0&include_annotations=1&include_recent_message=#{arg[:recent_message]}"
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}&include_directed=#{directed}&include_deleted=0&include_annotations=1"
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
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module Ayadn
3
- VERSION = "1.8.1"
3
+ VERSION = "1.8.2"
4
4
  end
@@ -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&include_directed=1&include_deleted=0&include_annotations=1'
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&include_directed=1&include_deleted=0&include_annotations=1&since_id=336699'
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&include_directed=1&include_deleted=0&include_annotations=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&include_directed=1&include_deleted=0&include_annotations=1'
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&include_directed=1&include_deleted=0&include_annotations=1"
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&include_directed=1&include_deleted=0&include_annotations=1"
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&include_directed=1&include_deleted=0&include_annotations=1'
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&include_directed=1&include_deleted=0&include_annotations=1'
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&include_directed=1&include_deleted=0&include_annotations=1'
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&include_directed=1&include_deleted=0&include_annotations=1&include_marker=1'
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&include_directed=1&include_deleted=0&include_annotations=1&include_machine=1&include_marker=1'
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ayadn
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.1
4
+ version: 1.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Dejonckheere