ayadn 2.0.2 → 2.0.3

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: 3136c1aff5d100dd94ba2714d3932f84907bf5ae
4
- data.tar.gz: c81a9ad012a52c714683383ce7a500a8be939642
3
+ metadata.gz: 1b19a3dc1aa12adf7b39f48f5d49556057c486b9
4
+ data.tar.gz: 80c36b97acf3d121c3eb47a155cf151ebb330567
5
5
  SHA512:
6
- metadata.gz: 24b693a5a9d406106ec5f1f54c293a7b722ed609a82ae7a86274930bf1d3e1c295fa03b9e00dd77830135d2403279af6b6079a3f5c27a372eaaee6094fff0629
7
- data.tar.gz: a1f17e80aa44853d0746a358eff61d00fb950bc752eebe929cc709487b597219b0cbe69ca369d2cd424da05b5465852a391ada686431ee3d789e4c4ffbc0bdc0
6
+ metadata.gz: 85f82405d3fa6d68e3fc7596b7744c02cd4006217ed75229c7ead7eb2705ec8d75b572854f4dbd97e148ffaf4aa946f086f0ef96647ca696fd499cc99dd79a1c
7
+ data.tar.gz: 7f79f25d7bd8425eae96214416c0b5e414a454e41d262c84bb5a0d337f5779c1cc8e908dd71d4fc6f75b6b3d292578730364ea0edf745828fe5ff112e8cfa73f
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 2.0.3 - 2014-11-18 - 'Dexter'
2
+
3
+ - Fix: title of a pinned post
4
+ - Fix: unauthorize sets another user active if possible
5
+
6
+ ## 2.0.2 - 2014-11-18 - 'To beat the devil'
7
+
8
+ - Fix: config import in 'migrate'
9
+
1
10
  ## 2.0.1 - 2014-11-17 - 'Nessie'
2
11
 
3
12
  - Windows compatible (under conditions)
data/lib/ayadn/action.rb CHANGED
@@ -643,7 +643,7 @@ module Ayadn
643
643
  end
644
644
  credentials = pinner.load_credentials
645
645
  maker = Struct.new(:username, :password, :url, :tags, :text, :description)
646
- bookmark = maker.new(credentials[0], credentials[1], resp['canonical_url'], usertags.join(","), post_text, links[0])
646
+ bookmark = maker.new(credentials[0], credentials[1], resp['canonical_url'], usertags.join(","), post_text, resp['canonical_url'])
647
647
  @status.saving_pin
648
648
  pinner.pin(bookmark)
649
649
  @status.done
@@ -58,6 +58,14 @@ module Ayadn
58
58
  FileUtils.remove_dir(Dir.home + "/ayadn/#{user}")
59
59
  end
60
60
  @thor.say_status :done, "user @#{user} has been unauthorized", :green
61
+ remaining = Databases.all_accounts(db)
62
+ if remaining.flatten.empty?
63
+ @thor.say_status :info, "accounts database is now empty", :cyan
64
+ else
65
+ username = remaining[0][0]
66
+ Databases.set_active_account(db, username)
67
+ @thor.say_status :info, "user @#{username} is now the active user", :cyan
68
+ end
61
69
  puts "\n"
62
70
  rescue Interrupt
63
71
  Status.new.canceled
data/lib/ayadn/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module Ayadn
3
- VERSION = "2.0.2"
3
+ VERSION = "2.0.3"
4
4
  end
@@ -0,0 +1,205 @@
1
+ require 'spec_helper'
2
+ require 'helpers'
3
+
4
+ module Ayadn
5
+ class Errors
6
+ def self.global_error(args)
7
+ puts args[:error]
8
+ puts args[:caller]
9
+ end
10
+ end
11
+ end
12
+
13
+ describe Ayadn::Action do
14
+ before do
15
+ Ayadn::Settings.stub(:options).and_return(
16
+ {
17
+ timeline: {
18
+ directed: 1,
19
+ html: 0,
20
+ source: true,
21
+ symbols: true,
22
+ name: true,
23
+ date: true,
24
+ spinner: true,
25
+ debug: false,
26
+ compact: false
27
+ },
28
+ counts: {
29
+ default: 50,
30
+ unified: 100,
31
+ global: 100,
32
+ checkins: 100,
33
+ conversations: 50,
34
+ photos: 50,
35
+ trending: 100,
36
+ mentions: 100,
37
+ convo: 100,
38
+ posts: 100,
39
+ messages: 50,
40
+ search: 200,
41
+ whoreposted: 50,
42
+ whostarred: 50,
43
+ whatstarred: 100,
44
+ files: 100
45
+ },
46
+ formats: {
47
+ table: {
48
+ width: 75
49
+ }
50
+ },
51
+ colors: {
52
+ id: :blue,
53
+ index: :red,
54
+ username: :green,
55
+ name: :magenta,
56
+ date: :cyan,
57
+ link: :yellow,
58
+ dots: :blue,
59
+ hashtags: :cyan,
60
+ mentions: :red,
61
+ source: :cyan,
62
+ symbols: :green,
63
+ debug: :red,
64
+ excerpt: :green
65
+ },
66
+ backup: {
67
+ posts: false,
68
+ messages: false,
69
+ lists: false
70
+ },
71
+ scroll: {
72
+ timer: 3
73
+ },
74
+ nicerank: {
75
+ threshold: 2.1,
76
+ filter: false,
77
+ unranked: false
78
+ },
79
+ nowplaying: {},
80
+ movie: {
81
+ hashtag: 'nowwatching'
82
+ },
83
+ tvshow: {
84
+ hashtag: 'nowwatching'
85
+ },
86
+ blacklist: {
87
+ active: true
88
+ }
89
+ })
90
+ Ayadn::Settings.stub(:config).and_return({
91
+ identity: {
92
+ username: 'test',
93
+ handle: '@test'
94
+ },
95
+ post_max_length: 256,
96
+ message_max_length: 2048,
97
+ version: 'wee',
98
+ paths: {
99
+ db: 'spec/mock/',
100
+ log: 'spec/mock'
101
+ }
102
+ })
103
+ Ayadn::Settings.stub(:global).and_return({
104
+ scrolling: false,
105
+ force: false
106
+ })
107
+ Dir.stub(:home).and_return("spec/mock")
108
+ Ayadn::Settings.stub(:get_token).and_return('XYZ')
109
+ Ayadn::Settings.stub(:user_token).and_return('XYZ')
110
+ Ayadn::Settings.stub(:check_for_accounts).and_return([nil, nil, nil, "spec/mock"])
111
+ Ayadn::Settings.stub(:config_file)
112
+ Ayadn::Settings.stub(:create_api_file)
113
+ Ayadn::Settings.stub(:create_version_file)
114
+ Ayadn::Databases.stub(:blacklist).and_return("blacklist")
115
+ Ayadn::Databases.stub(:users).and_return("users")
116
+ Ayadn::Databases.stub(:get_index_length).and_return(50)
117
+ Ayadn::Databases.stub(:get_post_from_index).and_return(3333333333333)
118
+ Ayadn::Databases.stub(:is_in_blacklist?).and_return(false)
119
+ Ayadn::Databases.stub(:has_new?).and_return(true)
120
+ Ayadn::Databases.stub(:add_to_users_db_from_list)
121
+ end
122
+ let(:stream) { File.read("spec/mock/stream.json") }
123
+ let(:mentions) { File.read("spec/mock/mentions.json") }
124
+ let(:list) { File.read("spec/mock/fwr_@ayadn.json") }
125
+ let(:ranks) { JSON.parse(File.read("spec/mock/nicerank.json")) }
126
+ let(:cnx) {Ayadn::CNX}
127
+ describe "#Global" do
128
+ before do
129
+ cnx.stub(:get)
130
+ cnx.stub(:get_response_from).and_return(stream)
131
+ Ayadn::NiceRank.stub(:get_ranks).and_return(ranks)
132
+ end
133
+ it "gets Global" do
134
+ printed = capture_stdout do
135
+ puts Ayadn::Action.new.global({})
136
+ end
137
+ expect(printed).to include "\e[H\e[2J\n\e[34m23184500\e[0m \e[32m@wired\e[0m \e[35mWired\e[0m \e[36m2014-02-19 20:04:43\e[0m \e[36m[IFTTT]\e[0m\n\nAn F1 Run Captured in Insane 360-Degree Interactive Video http://ift.tt/1mtTrU9\n\n\e[33mhttp://ift.tt/1mtTrU9\e[0m\n\n\n\e[34m23184932\e[0m \e[32m@popsci\e[0m \e[35mPopular Science\e[0m \e[36m2014-02-19 20:09:03\e[0m \e[36m[PourOver]\e[0m\n\nCat Bites Are Linked To Depression [feeds.popsci.com]\n\n\e[33mhttp://feeds.popsci.com/c/34567/f/632419/s/374c6496/sc/38/l/0L0Spopsci0N0Carticle0Cscience0Ccat0Ebites0Eare0Elinked0Edepression/story01.htm?utm_medium=App.net&utm_source=PourOver\e[0m\n\n\n\e[34m23185033\e[0m \e[32m@hackernews\e[0m \e[35mHacker News\e[0m \e[36m2014-02-19 20:10:23\e[0m \e[36m[Dev Lite]\e[0m\n\nHow Microryza Acquired the Domain Experiment.com\nhttp://priceonomics.com/how-microryza-acquired-the-domain-experimentcom/\n» Comments [news.ycombinator.com]\n\n\e[33mhttp://Experiment.com\e[0m\n\e[33mhttp://priceonomics.com/how-microryza-acquired-the-domain-experimentcom/\e[0m\n\e[33mhttp://news.ycombinator.com/item?id=7265540\e[0m\n\n\n\e[34m23185081\e[0m \e[32m@500px\e[0m \e[35m500px Popular Photos\e[0m \e[36m2014-02-19 20:11:14\e[0m \e[36m[IFTTT]\e[0m\n\nEntre ciel et terre by Andre Villeneuve http://feed.500px.com/~r/500px-best/~3/hFi3AUnh_u8/61493427 \e[36m#photography\e[0m\n\n\e[33mhttp://feed.500px.com/~r/500px-best/~3/hFi3AUnh_u8/61493427\e[0m\n\n\n\e[34m23185112\e[0m \e[32m@appadvice\e[0m \e[35mAppAdvice.com\e[0m \e[36m2014-02-19 20:11:35\e[0m \e[36m[IFTTT]\e[0m\n\nEnjoy Ghoulish Multiplayer Brawls In Fright Fight http://ift.tt/1d0TA7I\n\n\e[33mhttp://ift.tt/1d0TA7I\e[0m\n\n\n\e[34m23185830\e[0m \e[32m@hackernews\e[0m \e[35mHacker News\e[0m \e[36m2014-02-19 20:20:34\e[0m \e[36m[Dev Lite]\e[0m\n\nWikipedia-size maths proof too big for humans to check\nhttp://www.newscientist.com/article/dn25068-wikipediasize-maths-proof-too-big-for-humans-to-check.html#.UwTuA3gRq8M\n» Comments [news.ycombinator.com]\n\n\e[33mhttp://www.newscientist.com/article/dn25068-wikipediasize-maths-proof-too-big-for-humans-to-check.html#.UwTuA3gRq8M\e[0m\n\e[33mhttp://news.ycombinator.com/item?id=7264886\e[0m\n\n\n\e[34m23186223\e[0m \e[32m@500px\e[0m \e[35m500px Popular Photos\e[0m \e[36m2014-02-19 20:25:51\e[0m \e[36m[IFTTT]\e[0m\n\nArizona Wildflowers by Lisa Holloway http://feed.500px.com/~r/500px-best/~3/i4uhLN-4rd4/61484745 \e[36m#photography\e[0m\n\n\e[33mhttp://feed.500px.com/~r/500px-best/~3/i4uhLN-4rd4/61484745\e[0m\n\n\n\e[34m23186340\e[0m \e[32m@arstechnica\e[0m \e[35mArs Technica\e[0m \e[36m2014-02-19 20:27:19\e[0m \e[36m[PourOver]\e[0m\n\nFCC thinks it can overturn state laws that restrict public broadband http://bit.ly/1cr16vM\n\n\e[33mhttp://bit.ly/1cr16vM\e[0m\n\n\n\e[34m23187363\e[0m \e[32m@adn\e[0m \e[35mApp.net Staff\e[0m \e[36m2014-02-19 20:39:34\e[0m \e[36m[Alpha]\e[0m\n\nBacker of the Day: Should Thinkful teach a class on Angular? https://app.net/b/m6bk3\n\n\e[33mhttps://app.net/b/m6bk3\e[0m\n\n\n\e[34m23187443\e[0m \e[32m@500px\e[0m \e[35m500px Popular Photos\e[0m \e[36m2014-02-19 20:40:56\e[0m \e[36m[IFTTT]\e[0m\n\nJagulsan. by Julia Cory ™ http://feed.500px.com/~r/500px-best/~3/c2tMPEJVf6I/61517259 \e[36m#photography\e[0m\n\n\e[33mhttp://feed.500px.com/~r/500px-best/~3/c2tMPEJVf6I/61517259\e[0m"
138
+ end
139
+ end
140
+ describe "#Unified" do
141
+ before do
142
+ cnx.stub(:get_response_from).and_return(stream)
143
+ end
144
+ it "gets Unified" do
145
+ printed = capture_stdout do
146
+ puts Ayadn::Action.new.unified({})
147
+ end
148
+ expect(printed).to include "\e[H\e[2J\n\e[34m23184500\e[0m \e[32m@wired\e[0m \e[35mWired\e[0m \e[36m2014-02-19 20:04:43\e[0m \e[36m[IFTTT]\e[0m\n\nAn F1 Run Captured in Insane 360-Degree Interactive Video http://ift.tt/1mtTrU9\n\n\e[33mhttp://ift.tt/1mtTrU9\e[0m\n\n\n\e[34m23184932\e[0m \e[32m@popsci\e[0m \e[35mPopular Science\e[0m \e[36m2014-02-19 20:09:03\e[0m \e[36m[PourOver]\e[0m\n\nCat Bites Are Linked To Depression [feeds.popsci.com]\n\n\e[33mhttp://feeds.popsci.com/c/34567/f/632419/s/374c6496/sc/38/l/0L0Spopsci0N0Carticle0Cscience0Ccat0Ebites0Eare0Elinked0Edepression/story01.htm?utm_medium=App.net&utm_source=PourOver\e[0m\n\n\n\e[34m23185033\e[0m \e[32m@hackernews\e[0m \e[35mHacker News\e[0m \e[36m2014-02-19 20:10:23\e[0m \e[36m[Dev Lite]\e[0m\n\nHow Microryza Acquired the Domain Experiment.com\nhttp://priceonomics.com/how-microryza-acquired-the-domain-experimentcom/\n» Comments [news.ycombinator.com]\n\n\e[33mhttp://Experiment.com\e[0m\n\e[33mhttp://priceonomics.com/how-microryza-acquired-the-domain-experimentcom/\e[0m\n\e[33mhttp://news.ycombinator.com/item?id=7265540\e[0m\n\n\n\e[34m23185081\e[0m \e[32m@500px\e[0m \e[35m500px Popular Photos\e[0m \e[36m2014-02-19 20:11:14\e[0m \e[36m[IFTTT]\e[0m\n\nEntre ciel et terre by Andre Villeneuve http://feed.500px.com/~r/500px-best/~3/hFi3AUnh_u8/61493427 \e[36m#photography\e[0m\n\n\e[33mhttp://feed.500px.com/~r/500px-best/~3/hFi3AUnh_u8/61493427\e[0m\n\n\n\e[34m23185112\e[0m \e[32m@appadvice\e[0m \e[35mAppAdvice.com\e[0m \e[36m2014-02-19 20:11:35\e[0m \e[36m[IFTTT]\e[0m\n\nEnjoy Ghoulish Multiplayer Brawls In Fright Fight http://ift.tt/1d0TA7I\n\n\e[33mhttp://ift.tt/1d0TA7I\e[0m\n\n\n\e[34m23185830\e[0m \e[32m@hackernews\e[0m \e[35mHacker News\e[0m \e[36m2014-02-19 20:20:34\e[0m \e[36m[Dev Lite]\e[0m\n\nWikipedia-size maths proof too big for humans to check\nhttp://www.newscientist.com/article/dn25068-wikipediasize-maths-proof-too-big-for-humans-to-check.html#.UwTuA3gRq8M\n» Comments [news.ycombinator.com]\n\n\e[33mhttp://www.newscientist.com/article/dn25068-wikipediasize-maths-proof-too-big-for-humans-to-check.html#.UwTuA3gRq8M\e[0m\n\e[33mhttp://news.ycombinator.com/item?id=7264886\e[0m\n\n\n\e[34m23186223\e[0m \e[32m@500px\e[0m \e[35m500px Popular Photos\e[0m \e[36m2014-02-19 20:25:51\e[0m \e[36m[IFTTT]\e[0m\n\nArizona Wildflowers by Lisa Holloway http://feed.500px.com/~r/500px-best/~3/i4uhLN-4rd4/61484745 \e[36m#photography\e[0m\n\n\e[33mhttp://feed.500px.com/~r/500px-best/~3/i4uhLN-4rd4/61484745\e[0m\n\n\n\e[34m23186340\e[0m \e[32m@arstechnica\e[0m \e[35mArs Technica\e[0m \e[36m2014-02-19 20:27:19\e[0m \e[36m[PourOver]\e[0m\n\nFCC thinks it can overturn state laws that restrict public broadband http://bit.ly/1cr16vM\n\n\e[33mhttp://bit.ly/1cr16vM\e[0m\n\n\n\e[34m23187363\e[0m \e[32m@adn\e[0m \e[35mApp.net Staff\e[0m \e[36m2014-02-19 20:39:34\e[0m \e[36m[Alpha]\e[0m\n\nBacker of the Day: Should Thinkful teach a class on Angular? https://app.net/b/m6bk3\n\n\e[33mhttps://app.net/b/m6bk3\e[0m\n\n\n\e[34m23187443\e[0m \e[32m@500px\e[0m \e[35m500px Popular Photos\e[0m \e[36m2014-02-19 20:40:56\e[0m \e[36m[IFTTT]\e[0m\n\nJagulsan. by Julia Cory ™ http://feed.500px.com/~r/500px-best/~3/c2tMPEJVf6I/61517259 \e[36m#photography\e[0m\n\n\e[33mhttp://feed.500px.com/~r/500px-best/~3/c2tMPEJVf6I/61517259\e[0m"
149
+ end
150
+ end
151
+ describe "#Unified -i" do
152
+ before do
153
+ cnx.stub(:get_response_from).and_return(stream)
154
+ end
155
+ it "gets Unified, indexed" do
156
+ printed = capture_stdout do
157
+ puts Ayadn::Action.new.unified({index: true})
158
+ end
159
+ expect(printed).to include '001'
160
+ expect(printed).to include '002'
161
+ expect(printed).to include '010'
162
+ expect(printed).to include '@wired'
163
+ expect(printed).to include '@500px'
164
+ expect(printed).to include 'An F1 Run Captured in Insane 360-Degree Interactive Video'
165
+ end
166
+ end
167
+ describe "#Unified -x" do
168
+ before do
169
+ cnx.stub(:get_response_from).and_return(stream)
170
+ end
171
+ it "gets Unified, raw" do
172
+ printed = capture_stdout do
173
+ puts Ayadn::Action.new.unified({raw: true})
174
+ end
175
+ expect(printed).to include 'meta'
176
+ expect(printed).to include '200'
177
+ expect(printed).to include 'marker'
178
+ expect(printed).to include 'you_blocked'
179
+ expect(printed).to include 'd2rfichhc2fb9n.cloudfront.net/image/5/1Pfjg_QPxpJsmpz0qm-'
180
+ expect(printed).to include 'you_can_subscribe'
181
+ end
182
+ end
183
+ describe "#Mentions" do
184
+ before do
185
+ cnx.stub(:get_response_from).and_return(mentions)
186
+ end
187
+ it "gets Mentions" do
188
+ printed = capture_stdout do
189
+ puts Ayadn::Action.new.mentions(["aya_tests"],{})
190
+ end
191
+ expect(printed).to include '43418888'
192
+ expect(printed).to include '@aya_tests'
193
+ expect(printed).to include 'Big Jim'
194
+ expect(printed).to include '[Ayadn]'
195
+ expect(printed).to include '20:11:37'
196
+ expect(printed).to include 'it’s fun talking to yourself'
197
+ end
198
+ end
199
+ after do
200
+ Ayadn::Databases.clear_users
201
+ Ayadn::Databases.clear_pagination
202
+ Ayadn::Databases.clear_index
203
+ File.delete('spec/mock/ayadn.log')
204
+ end
205
+ end
Binary file
@@ -0,0 +1,396 @@
1
+ {
2
+ "meta": {
3
+ "marker": {
4
+ "name": "mentions:185581"
5
+ },
6
+ "min_id": "24793141",
7
+ "code": 200,
8
+ "max_id": "43419207",
9
+ "more": true
10
+ },
11
+ "data": [
12
+ {
13
+ "annotations": [
14
+
15
+ ],
16
+ "num_stars": 0,
17
+ "num_reposts": 0,
18
+ "num_replies": 1,
19
+ "source": {
20
+ "link": "http://tigerbears.com/felix",
21
+ "name": "Felix",
22
+ "client_id": "cRWp45kA49pQKtxsZQXdwTnyuU6jBwuA"
23
+ },
24
+ "text": "@aya_tests it’s fun talking to yourself.",
25
+ "created_at": "2014-11-14T20:11:37Z",
26
+ "id": "43419207",
27
+ "canonical_url": "https://alpha.app.net/pastapp/post/43419207",
28
+ "entities": {
29
+ "mentions": [
30
+ {
31
+ "is_leading": true,
32
+ "pos": 0,
33
+ "id": "185581",
34
+ "len": 10,
35
+ "name": "aya_tests"
36
+ }
37
+ ],
38
+ "hashtags": [
39
+
40
+ ],
41
+ "links": [
42
+
43
+ ]
44
+ },
45
+ "machine_only": false,
46
+ "user": {
47
+ "you_muted": false,
48
+ "you_can_subscribe": true,
49
+ "is_following": true,
50
+ "is_follower": true,
51
+ "timezone": "Europe/London",
52
+ "you_follow": true,
53
+ "counts": {
54
+ "following": 34,
55
+ "posts": 77,
56
+ "followers": 21,
57
+ "stars": 7
58
+ },
59
+ "canonical_url": "https://alpha.app.net/pastapp",
60
+ "id": "204809",
61
+ "locale": "en_GB",
62
+ "type": "human",
63
+ "annotations": [
64
+
65
+ ],
66
+ "username": "pastapp",
67
+ "avatar_image": {
68
+ "url": "https://d2rfichhc2fb9n.cloudfront.net/image/5/P3B7XBY14k-MCjydHOoTGe_ABy57InMiOiJzMyIsImIiOiJhZG4tdXNlci1hc3NldHMiLCJrIjoiYXNzZXRzL3VzZXIvNzgvZTEvNzAvNzhlMTcwMDAwMDAwMDAwMC5wbmciLCJvIjoiIn0",
69
+ "width": 200,
70
+ "is_default": false,
71
+ "height": 200
72
+ },
73
+ "description": {
74
+ "text": "A noodly client for @adn - pastapp.net - testing silliness [dev.pastapp.net:3003] #oftenoffline",
75
+ "entities": {
76
+ "mentions": [
77
+ {
78
+ "pos": 20,
79
+ "id": "136",
80
+ "len": 4,
81
+ "name": "adn"
82
+ }
83
+ ],
84
+ "hashtags": [
85
+ {
86
+ "name": "oftenoffline",
87
+ "len": 13,
88
+ "pos": 82
89
+ }
90
+ ],
91
+ "links": [
92
+ {
93
+ "url": "http://dev.pastapp.net:3003/",
94
+ "text": "testing silliness",
95
+ "pos": 41,
96
+ "len": 17,
97
+ "amended_len": 40
98
+ }
99
+ ]
100
+ }
101
+ },
102
+ "is_muted": false,
103
+ "follows_you": true,
104
+ "you_can_follow": true,
105
+ "verified_domain": "pastapp.net",
106
+ "name": "Pastapp",
107
+ "created_at": "2013-12-17T16:19:15Z",
108
+ "cover_image": {
109
+ "url": "https://d2rfichhc2fb9n.cloudfront.net/image/5/QjCA-gJ9S_5CNQuffledCTyYge17InMiOiJzMyIsImIiOiJhZG4tdXNlci1hc3NldHMiLCJrIjoiYXNzZXRzL3VzZXIvNmEvZTEvNzAvNmFlMTcwMDAwMDAwMDAwMC5qcGciLCJvIjoiIn0",
110
+ "width": 3000,
111
+ "is_default": false,
112
+ "height": 697
113
+ },
114
+ "verified_link": "http://pastapp.net",
115
+ "you_blocked": false
116
+ },
117
+ "you_reposted": false,
118
+ "reply_to": "43418737",
119
+ "you_starred": false,
120
+ "thread_id": "43418737",
121
+ "pagination_id": "43419207"
122
+ },
123
+ {
124
+ "annotations": [
125
+ {
126
+ "type": "com.ayadn.user",
127
+ "value": {
128
+ "username": "aya_tests",
129
+ "avatar_image": {
130
+ "url": "https://d2rfichhc2fb9n.cloudfront.net/image/5/mIRingbIUWKkeHVrF_CGfcBH2P17InMiOiJzMyIsImIiOiJhZG4tdXNlci1hc3NldHMiLCJrIjoiYXNzZXRzL3VzZXIvMWMvNDkvOTAvMWM0OTkwMDAwMDAwMDAwMC5qcGciLCJvIjoiIn0",
131
+ "width": 200,
132
+ "is_default": false,
133
+ "height": 200
134
+ },
135
+ "name": "Big Jim",
136
+ "env": {
137
+ "locale": "fr_FR.UTF-8",
138
+ "platform": "darwin14.0.0",
139
+ "ruby": "2.1.3"
140
+ },
141
+ "id": "185581"
142
+ }
143
+ },
144
+ {
145
+ "type": "com.ayadn.client",
146
+ "value": {
147
+ "url": "http://ayadn-app.net",
148
+ "version": "2.0.beta",
149
+ "author": {
150
+ "username": "ericd",
151
+ "id": "69904",
152
+ "name": "Eric Dejonckheere",
153
+ "email": "eric@aya.io"
154
+ }
155
+ }
156
+ }
157
+ ],
158
+ "num_stars": 0,
159
+ "num_reposts": 0,
160
+ "num_replies": 0,
161
+ "source": {
162
+ "link": "http://www.ayadn-app.net",
163
+ "name": "Ayadn",
164
+ "client_id": "hFsCGArAjgJkYBHTHbZnUvzTmL4vaLHL"
165
+ },
166
+ "text": "@aya_tests re",
167
+ "created_at": "2014-11-14T20:06:13Z",
168
+ "id": "43418930",
169
+ "canonical_url": "https://alpha.app.net/aya_tests/post/43418930",
170
+ "entities": {
171
+ "mentions": [
172
+ {
173
+ "is_leading": true,
174
+ "pos": 0,
175
+ "id": "185581",
176
+ "len": 10,
177
+ "name": "aya_tests"
178
+ }
179
+ ],
180
+ "hashtags": [
181
+
182
+ ],
183
+ "links": [
184
+
185
+ ]
186
+ },
187
+ "machine_only": false,
188
+ "user": {
189
+ "you_muted": false,
190
+ "you_can_subscribe": true,
191
+ "is_following": true,
192
+ "is_follower": true,
193
+ "timezone": "Europe/Berlin",
194
+ "you_follow": true,
195
+ "counts": {
196
+ "following": 12,
197
+ "posts": 1380,
198
+ "followers": 3,
199
+ "stars": 5
200
+ },
201
+ "canonical_url": "https://alpha.app.net/aya_tests",
202
+ "id": "185581",
203
+ "locale": "fr_FR",
204
+ "type": "human",
205
+ "annotations": [
206
+ {
207
+ "type": "net.app.core.directory.homepage",
208
+ "value": {
209
+ "url": "http://aya.io"
210
+ }
211
+ },
212
+ {
213
+ "type": "net.app.core.directory.blog",
214
+ "value": {
215
+ "url": "http://aya.io"
216
+ }
217
+ }
218
+ ],
219
+ "username": "aya_tests",
220
+ "avatar_image": {
221
+ "url": "https://d2rfichhc2fb9n.cloudfront.net/image/5/mIRingbIUWKkeHVrF_CGfcBH2P17InMiOiJzMyIsImIiOiJhZG4tdXNlci1hc3NldHMiLCJrIjoiYXNzZXRzL3VzZXIvMWMvNDkvOTAvMWM0OTkwMDAwMDAwMDAwMC5qcGciLCJvIjoiIn0",
222
+ "width": 200,
223
+ "is_default": false,
224
+ "height": 200
225
+ },
226
+ "description": {
227
+ "text": "This is a test account. Nothing to see here, move along.",
228
+ "entities": {
229
+ "mentions": [
230
+
231
+ ],
232
+ "hashtags": [
233
+
234
+ ],
235
+ "links": [
236
+
237
+ ]
238
+ }
239
+ },
240
+ "is_muted": false,
241
+ "follows_you": true,
242
+ "you_can_follow": true,
243
+ "name": "Big Jim",
244
+ "created_at": "2013-11-02T17:06:51Z",
245
+ "cover_image": {
246
+ "url": "https://d2rfichhc2fb9n.cloudfront.net/image/5/nbzo6W-D5fi8vX788PISqRAuBEF7InMiOiJzMyIsImIiOiJhZG4tdXNlci1hc3NldHMiLCJrIjoiYXNzZXRzL3VzZXIvMmIvNDkvOTAvMmI0OTkwMDAwMDAwMDAwMC5qcGciLCJvIjoiIn0",
247
+ "width": 1198,
248
+ "is_default": false,
249
+ "height": 382
250
+ },
251
+ "you_blocked": false
252
+ },
253
+ "you_reposted": false,
254
+ "reply_to": "43418737",
255
+ "you_starred": false,
256
+ "thread_id": "43418737",
257
+ "pagination_id": "43418930"
258
+ },
259
+ {
260
+ "annotations": [
261
+ {
262
+ "type": "com.ayadn.user",
263
+ "value": {
264
+ "username": "aya_tests",
265
+ "avatar_image": {
266
+ "url": "https://d2rfichhc2fb9n.cloudfront.net/image/5/mIRingbIUWKkeHVrF_CGfcBH2P17InMiOiJzMyIsImIiOiJhZG4tdXNlci1hc3NldHMiLCJrIjoiYXNzZXRzL3VzZXIvMWMvNDkvOTAvMWM0OTkwMDAwMDAwMDAwMC5qcGciLCJvIjoiIn0",
267
+ "width": 200,
268
+ "is_default": false,
269
+ "height": 200
270
+ },
271
+ "name": "Big Jim",
272
+ "env": {
273
+ "locale": "fr_FR.UTF-8",
274
+ "platform": "darwin14.0.0",
275
+ "ruby": "2.1.3"
276
+ },
277
+ "id": "185581"
278
+ }
279
+ },
280
+ {
281
+ "type": "com.ayadn.client",
282
+ "value": {
283
+ "url": "http://ayadn-app.net",
284
+ "version": "2.0.beta",
285
+ "author": {
286
+ "username": "ericd",
287
+ "id": "69904",
288
+ "name": "Eric Dejonckheere",
289
+ "email": "eric@aya.io"
290
+ }
291
+ }
292
+ }
293
+ ],
294
+ "num_stars": 0,
295
+ "num_reposts": 0,
296
+ "num_replies": 0,
297
+ "source": {
298
+ "link": "http://www.ayadn-app.net",
299
+ "name": "Ayadn",
300
+ "client_id": "hFsCGArAjgJkYBHTHbZnUvzTmL4vaLHL"
301
+ },
302
+ "text": "@aya_tests 1\n2\n3",
303
+ "created_at": "2014-11-14T20:05:44Z",
304
+ "id": "43418888",
305
+ "canonical_url": "https://alpha.app.net/aya_tests/post/43418888",
306
+ "entities": {
307
+ "mentions": [
308
+ {
309
+ "is_leading": true,
310
+ "pos": 0,
311
+ "id": "185581",
312
+ "len": 10,
313
+ "name": "aya_tests"
314
+ }
315
+ ],
316
+ "hashtags": [
317
+
318
+ ],
319
+ "links": [
320
+
321
+ ]
322
+ },
323
+ "machine_only": false,
324
+ "user": {
325
+ "you_muted": false,
326
+ "you_can_subscribe": true,
327
+ "is_following": true,
328
+ "is_follower": true,
329
+ "timezone": "Europe/Berlin",
330
+ "you_follow": true,
331
+ "counts": {
332
+ "following": 12,
333
+ "posts": 1380,
334
+ "followers": 3,
335
+ "stars": 5
336
+ },
337
+ "canonical_url": "https://alpha.app.net/aya_tests",
338
+ "id": "185581",
339
+ "locale": "fr_FR",
340
+ "type": "human",
341
+ "annotations": [
342
+ {
343
+ "type": "net.app.core.directory.homepage",
344
+ "value": {
345
+ "url": "http://aya.io"
346
+ }
347
+ },
348
+ {
349
+ "type": "net.app.core.directory.blog",
350
+ "value": {
351
+ "url": "http://aya.io"
352
+ }
353
+ }
354
+ ],
355
+ "username": "aya_tests",
356
+ "avatar_image": {
357
+ "url": "https://d2rfichhc2fb9n.cloudfront.net/image/5/mIRingbIUWKkeHVrF_CGfcBH2P17InMiOiJzMyIsImIiOiJhZG4tdXNlci1hc3NldHMiLCJrIjoiYXNzZXRzL3VzZXIvMWMvNDkvOTAvMWM0OTkwMDAwMDAwMDAwMC5qcGciLCJvIjoiIn0",
358
+ "width": 200,
359
+ "is_default": false,
360
+ "height": 200
361
+ },
362
+ "description": {
363
+ "text": "This is a test account. Nothing to see here, move along.",
364
+ "entities": {
365
+ "mentions": [
366
+
367
+ ],
368
+ "hashtags": [
369
+
370
+ ],
371
+ "links": [
372
+
373
+ ]
374
+ }
375
+ },
376
+ "is_muted": false,
377
+ "follows_you": true,
378
+ "you_can_follow": true,
379
+ "name": "Big Jim",
380
+ "created_at": "2013-11-02T17:06:51Z",
381
+ "cover_image": {
382
+ "url": "https://d2rfichhc2fb9n.cloudfront.net/image/5/nbzo6W-D5fi8vX788PISqRAuBEF7InMiOiJzMyIsImIiOiJhZG4tdXNlci1hc3NldHMiLCJrIjoiYXNzZXRzL3VzZXIvMmIvNDkvOTAvMmI0OTkwMDAwMDAwMDAwMC5qcGciLCJvIjoiIn0",
383
+ "width": 1198,
384
+ "is_default": false,
385
+ "height": 382
386
+ },
387
+ "you_blocked": false
388
+ },
389
+ "you_reposted": false,
390
+ "reply_to": "43418737",
391
+ "you_starred": false,
392
+ "thread_id": "43418737",
393
+ "pagination_id": "43418888"
394
+ }
395
+ ]
396
+ }
@@ -65,7 +65,6 @@ describe Ayadn::Annotations do
65
65
  },
66
66
  nicerank: {
67
67
  threshold: 2.1,
68
- cache: 48,
69
68
  filter: true,
70
69
  unranked: false
71
70
  },
@@ -160,5 +159,4 @@ describe Ayadn::Annotations do
160
159
  end
161
160
  end
162
161
 
163
-
164
162
  end
@@ -66,7 +66,6 @@ describe Ayadn::NiceRank do
66
66
  },
67
67
  nicerank: {
68
68
  threshold: 2.1,
69
- cache: 48,
70
69
  filter: true,
71
70
  unranked: false
72
71
  },
@@ -60,7 +60,6 @@ def init_stubs
60
60
  },
61
61
  nicerank: {
62
62
  threshold: 2.1,
63
- cache: 48,
64
63
  filter: true,
65
64
  unranked: false
66
65
  },
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ayadn
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Dejonckheere
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-17 00:00:00.000000000 Z
11
+ date: 2014-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -299,6 +299,7 @@ files:
299
299
  - lib/ayadn/view.rb
300
300
  - lib/ayadn/workers.rb
301
301
  - spec/helpers.rb
302
+ - spec/integration/action_spec.rb
302
303
  - spec/mock/@ericd.json
303
304
  - spec/mock/@m.json
304
305
  - spec/mock/ayadn.sqlite
@@ -308,6 +309,7 @@ files:
308
309
  - spec/mock/files.json
309
310
  - spec/mock/fwr_@ayadn.json
310
311
  - spec/mock/int.json
312
+ - spec/mock/mentions.json
311
313
  - spec/mock/nicerank.json
312
314
  - spec/mock/nicerank.log
313
315
  - spec/mock/posted.json
@@ -354,6 +356,7 @@ specification_version: 4
354
356
  summary: App.net command-line client.
355
357
  test_files:
356
358
  - spec/helpers.rb
359
+ - spec/integration/action_spec.rb
357
360
  - spec/mock/@ericd.json
358
361
  - spec/mock/@m.json
359
362
  - spec/mock/ayadn.sqlite
@@ -363,6 +366,7 @@ test_files:
363
366
  - spec/mock/files.json
364
367
  - spec/mock/fwr_@ayadn.json
365
368
  - spec/mock/int.json
369
+ - spec/mock/mentions.json
366
370
  - spec/mock/nicerank.json
367
371
  - spec/mock/nicerank.log
368
372
  - spec/mock/posted.json