ayadn 1.8.2 → 2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +4 -0
  3. data/CHANGELOG.md +73 -52
  4. data/README.md +17 -3
  5. data/ayadn.gemspec +3 -4
  6. data/doc/01-index.md +6 -5
  7. data/doc/02-install.md +23 -1
  8. data/doc/03-first-steps.md +22 -28
  9. data/doc/04-options.md +1 -1
  10. data/doc/05-streams.md +29 -9
  11. data/doc/06-post.md +13 -5
  12. data/doc/07-actions.md +63 -1
  13. data/doc/08-listings.md +112 -4
  14. data/doc/09-accounts.md +17 -3
  15. data/doc/10-nicerank.md +5 -5
  16. data/doc/11-blacklist.md +8 -14
  17. data/doc/12-alias.md +1 -13
  18. data/doc/14-set.md +8 -110
  19. data/doc/15-nowplaying.md +16 -4
  20. data/doc/18-contact.md +14 -13
  21. data/doc/19-examples.md +2 -0
  22. data/lib/ayadn/action.rb +322 -183
  23. data/lib/ayadn/alias.rb +17 -45
  24. data/lib/ayadn/annotations.rb +1 -1
  25. data/lib/ayadn/api.rb +7 -8
  26. data/lib/ayadn/app.rb +99 -12
  27. data/lib/ayadn/authorize.rb +92 -57
  28. data/lib/ayadn/blacklist.rb +52 -62
  29. data/lib/ayadn/check.rb +81 -74
  30. data/lib/ayadn/cnx.rb +77 -26
  31. data/lib/ayadn/databases.rb +890 -105
  32. data/lib/ayadn/debug.rb +30 -89
  33. data/lib/ayadn/descriptions.rb +876 -329
  34. data/lib/ayadn/endpoints.rb +2 -2
  35. data/lib/ayadn/errors.rb +9 -9
  36. data/lib/ayadn/extend.rb +8 -1
  37. data/lib/ayadn/fileops.rb +10 -8
  38. data/lib/ayadn/mark.rb +79 -56
  39. data/lib/ayadn/migration.rb +427 -0
  40. data/lib/ayadn/nicerank.rb +74 -72
  41. data/lib/ayadn/nowplaying.rb +123 -60
  42. data/lib/ayadn/nowwatching.rb +26 -10
  43. data/lib/ayadn/pinboard.rb +12 -7
  44. data/lib/ayadn/post.rb +40 -37
  45. data/lib/ayadn/profile.rb +5 -2
  46. data/lib/ayadn/scroll.rb +20 -5
  47. data/lib/ayadn/search.rb +30 -22
  48. data/lib/ayadn/set.rb +146 -50
  49. data/lib/ayadn/settings.rb +66 -67
  50. data/lib/ayadn/status.rb +459 -234
  51. data/lib/ayadn/stream.rb +80 -46
  52. data/lib/ayadn/switch.rb +51 -47
  53. data/lib/ayadn/tvshow.rb +47 -15
  54. data/lib/ayadn/version.rb +1 -1
  55. data/lib/ayadn/view.rb +119 -60
  56. data/lib/ayadn/workers.rb +144 -92
  57. data/lib/ayadn.rb +7 -8
  58. data/spec/mock/ayadn/accounts.sqlite +0 -0
  59. data/spec/mock/ayadn.sqlite +0 -0
  60. data/spec/unit/annotations_spec.rb +12 -13
  61. data/spec/unit/api_spec.rb +3 -4
  62. data/spec/unit/blacklistworkers_spec.rb +18 -23
  63. data/spec/unit/databases_spec.rb +51 -36
  64. data/spec/unit/endpoints_spec.rb +5 -2
  65. data/spec/unit/extend_spec.rb +24 -0
  66. data/spec/unit/nicerank_spec.rb +13 -13
  67. data/spec/unit/post_spec.rb +47 -36
  68. data/spec/unit/set_spec.rb +67 -96
  69. data/spec/unit/view_spec.rb +12 -6
  70. data/spec/unit/workers_spec.rb +38 -12
  71. data/tags +1285 -0
  72. metadata +29 -39
  73. data/spec/mock/aliases.db +0 -0
  74. data/spec/mock/blacklist.db +0 -0
  75. data/spec/mock/bookmarks.db +0 -0
  76. data/spec/mock/channels.db +0 -0
  77. data/spec/mock/index.db +0 -0
  78. data/spec/mock/nicerank.db +0 -0
  79. data/spec/mock/pagination.db +0 -0
  80. data/spec/mock/users.db +0 -0
  81. data/spec/unit/status_spec.rb +0 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bc40902646614f7f39c512c4d8d7628c708ef905
4
- data.tar.gz: bb3f83c664b67aaca653b8db7b94c67ae3a91ff2
3
+ metadata.gz: c1b09b74834052e1267aa323844891a09876e715
4
+ data.tar.gz: 2bdb03f76102438274b874cabb81c5af148dcd8f
5
5
  SHA512:
6
- metadata.gz: ebcc7f9b8c6a404f2b324ac9f0a68235bf85a071f137ee3d97d2af4791cea10a41916bdf3c7cf292a0187f52365fb44befc8ce710fbadeb74df6319759a14a09
7
- data.tar.gz: 079b43ae0ee6e536e1acdf1aaefb639940c93bc59dce831efbc32600eb97a3e40823dd3f21415cf177dc76dbdfe76f9a0f92f97c79f59174d66fe10b4fec30cc
6
+ metadata.gz: f4849d039e5cdb5ee8c10e7ff5e5085324a0b4992c9bd40b7051c007fc477a21280ab866dea6d68d0d6f50bd9d92af25280e414b954ef65dfe00f1be80986266
7
+ data.tar.gz: faae501b8bfc0e2a676d986d344c471d3a1c983d65730baf4b5148f4491a906155abe43b994d18f6c3e858550e0c85ac3a9190b355c6f8dd398ce556db942fc6
data/.gitignore CHANGED
@@ -4,6 +4,7 @@
4
4
  .config
5
5
  .yardoc
6
6
  .tags*
7
+ tags
7
8
  Gemfile.lock
8
9
  InstalledFiles
9
10
  _yardoc
@@ -12,8 +13,11 @@ lib/bundler/man
12
13
  pkg
13
14
  rdoc
14
15
  spec/reports
16
+ spec/mock/ayadn.log
15
17
  test/tmp
16
18
  test/version_tmp
17
19
  tmp
18
20
  token
19
21
  fake.db
22
+ .ruby-version
23
+ *.zip
data/CHANGELOG.md CHANGED
@@ -1,12 +1,33 @@
1
- # 1.8.2 - 2014-10-31 - 'Asylum'
1
+ ## 2.0 - 2014-11-15 - 'The Piper At The Gates Of Dawn'
2
+
3
+ - SQLite database. Means FAST!
4
+ - Unified style for statuses, questions and alerts
5
+ - NowPlaying: better results, custom hashtag, custom text
6
+ - Channels: option to show only broadcasts/PMs/patter/other
7
+ - Users lists: sort by username, name, total posts or posting frequency
8
+ - Star/unstar/repost/unrepost/userinfos accept several targets
9
+ - Ayadn instances share access to the blacklist
10
+ - Unauthorize an Ayadn user account
11
+ - Posts index resolution is active by default
12
+ - Option: force view to be temporarily "compact"
13
+ - Setting: show tables borders (default: true)
14
+ - Setting: short date in timeline when scrolling (default: true)
15
+ - Setting: blacklist active (default: true)
16
+ - Spinner: better display when scrolling
17
+ - Simplified, shorter settings names
18
+ - NiceRank filter for Global is cached in-memory
19
+ - Inline help and online docs have been updated
20
+ - Code has been optimized. Bugs have been squashed.
21
+
22
+ ## 1.8.2 - 2014-10-31 - 'Asylum'
2
23
 
3
24
  - Fix: directed posts in timeline, bis
4
25
 
5
- # 1.8.1 - 2014-10-31 - 'Stockholm'
26
+ ## 1.8.1 - 2014-10-31 - 'Stockholm'
6
27
 
7
28
  - Fix: directed posts in timeline
8
29
 
9
- # 1.8.0 - 2014-10-29 - 'Cascadeur'
30
+ ## 1.8.0 - 2014-10-29 - 'Cascadeur'
10
31
 
11
32
  - New: command to view all unread PMs
12
33
  - New: channel commands can update unread status (default: true)
@@ -18,7 +39,7 @@
18
39
  - Update: debug info included in posts annotations
19
40
  - Update: gem dependencies
20
41
 
21
- # 1.7.7 - 2014-10-26 - 'The Twins'
42
+ ## 1.7.7 - 2014-10-26 - 'The Twins'
22
43
 
23
44
  - Fix: max characters information when sending to a channel
24
45
  - Fix: line break at the end of stream if compact view
@@ -30,43 +51,43 @@
30
51
  - New: option to show OEmbed links from channels/messages
31
52
  - New: extracted links are exported to a json file
32
53
 
33
- # 1.7.6 - 2014-10-25 - 'Barrie'
54
+ ## 1.7.6 - 2014-10-25 - 'Barrie'
34
55
 
35
56
  - Fix: channels parser (response != 200, working status)
36
57
  - Fix: settings list with compact view
37
58
 
38
- # 1.7.5 - 2014-10-20 - 'Cirrus'
59
+ ## 1.7.5 - 2014-10-20 - 'Cirrus'
39
60
 
40
61
  - New: option to display a compact view for the timeline
41
62
  - Fix: character count in reply with Markdown links
42
63
 
43
- # 1.7.4 - 2014-09-21 - 'Elton'
64
+ ## 1.7.4 - 2014-09-21 - 'Elton'
44
65
 
45
66
  - Fix: nowplaying (show artwork)
46
67
  - Fix: nowwatching (show posting account)
47
68
  - Fix: tvshow (show posting account)
48
69
 
49
- # 1.7.3 - 2014-09-08 - 'Scanners'
70
+ ## 1.7.3 - 2014-09-08 - 'Scanners'
50
71
 
51
72
  - New: option to reply to a reposted post
52
73
  - New: you can change the users lists order with `set`
53
74
  - New: you can change the table width with `set`
54
75
  - Docs: the documentation has been fixed and updated
55
76
 
56
- # 1.7.2 - 2014-09-04 - 'Fortress'
77
+ ## 1.7.2 - 2014-09-04 - 'Fortress'
57
78
 
58
79
  - Fixed: option to retrieve only specified channels in Channels
59
80
  - Fixed: validators for Set
60
81
  - New: better tests suite
61
82
 
62
- # 1.7.1 - 2014-09-02 - 'Poltergeist'
83
+ ## 1.7.1 - 2014-09-02 - 'Poltergeist'
63
84
 
64
85
  - New: update your user profile (full name, bio (user description), avatar, cover, Twitter username, blog url, web url)
65
86
  - Update profile: option to delete the field instead of updating
66
87
  - New: option to retrieve only specified channels in Channels
67
88
  - New: option to display raw response in Channels
68
89
 
69
- # 1.7.0 - 2014-08-21 - 'Private Investigations'
90
+ ## 1.7.0 - 2014-08-21 - 'Private Investigations'
70
91
 
71
92
  - New: embed a Youtube video in a normal post with option `-Y`
72
93
  - New: embed a Vimeo video in a normal post with option `-V`
@@ -78,7 +99,7 @@
78
99
  - Fixed: value displayed when setting NiceRank
79
100
  - Refactored a few classes and methods
80
101
 
81
- # 1.6.0 - 2014-08-04 - 'Beetlejuice'
102
+ ## 1.6.0 - 2014-08-04 - 'Beetlejuice'
82
103
 
83
104
  - New command: 'movie'. Create a post from a movie title (with link + movie poster). Customisable hashtag (default: '#nowwatching').
84
105
  - New command: 'tvshow'. Create a post from a TV show title (with link + show poster). Customisable hashtag (default: '#nowwatching'). Option to display a banner instead of a poster.
@@ -89,11 +110,11 @@
89
110
  - Fixed: bookmark convos.
90
111
  - General code cleaning and refactoring.
91
112
 
92
- # 1.5.1 - 2014-07-27 - 'Holograms'
113
+ ## 1.5.1 - 2014-07-27 - 'Holograms'
93
114
 
94
115
  - Improved accuracy of iTunes Store requests for NowPlaying
95
116
 
96
- # 1.5.0 - 2014-07-25 - 'Nozomi'
117
+ ## 1.5.0 - 2014-07-25 - 'Nozomi'
97
118
 
98
119
  - In 'convo', both the post id you've requested and the post it replies to are marked with arrows
99
120
  - Same feature in the view after a reply
@@ -106,19 +127,19 @@
106
127
  - Skipped objects are logged if debug is enabled
107
128
  - Force delete obsolete config keys / force create mandatory ones (less checks in the code, more stability)
108
129
 
109
- # 1.4.6 - 'Roman'
130
+ ## 1.4.6 - 'Roman'
110
131
 
111
132
  - Temporary fix for filepaths instability when uploading pictures
112
133
 
113
- # 1.4.5 - 2014-07-19 - 'Sébastien'
134
+ ## 1.4.5 - 2014-07-19 - 'Sébastien'
114
135
 
115
136
  - Fixed a crash when iTunes Store URL contained exotic characters
116
137
 
117
- # 1.4.4 - 'Randolph'
138
+ ## 1.4.4 - 'Randolph'
118
139
 
119
140
  - Fixed a database problem in PM and SEND
120
141
 
121
- # 1.4.3 - 2014-07-17 - 'Sergent Stretch'
142
+ ## 1.4.3 - 2014-07-17 - 'Sergent Stretch'
122
143
 
123
144
  - NowPlaying is compatible with iTunes and Last.fm. Default: iTunes. Add `--last-fm` or `-l` to get Last.fm last played track instead
124
145
  - NowPlaying audio link has been replaced with an iTunes Store link
@@ -128,29 +149,29 @@
128
149
  - Automatically fixes the arguments order for 'post' if needed when uploading a picture
129
150
  - General code cleaning
130
151
 
131
- # 1.4.2 - 2014-07-15 - 'Caligula'
152
+ ## 1.4.2 - 2014-07-15 - 'Caligula'
132
153
 
133
154
  - Ayadn is more resilient to connectivity errors
134
155
  - Better handling of filenames when uploading
135
156
 
136
- # 1.4.1 - 'Oh boy'
157
+ ## 1.4.1 - 'Oh boy'
137
158
 
138
159
  - A few fixes in the NowPlaying section
139
160
 
140
- # 1.4.0 - 2014-07-14 - 'Florian'
161
+ ## 1.4.0 - 2014-07-14 - 'Florian'
141
162
 
142
163
  - New feature: embed one or several pictures within a post (in write, post, reply, and pm)
143
164
  - Nowplaying inserts preview URL and album art from iTunes Store (you can prevent this with: `--no-url`)
144
165
 
145
- # 1.3.2 - 'Max'
166
+ ## 1.3.2 - 'Max'
146
167
 
147
168
  - Fixed: Global stream crashed if NiceRank was enabled but unreachable
148
169
 
149
- # 1.3.1 - 2014-06-16 - 'Nico'
170
+ ## 1.3.1 - 2014-06-16 - 'Nico'
150
171
 
151
172
  - NiceRank threshold is a float again. Default value is 2.1
152
173
 
153
- # 1.3.0 - 2014-06-09 - 'K'
174
+ ## 1.3.0 - 2014-06-09 - 'K'
154
175
 
155
176
  - Updated the NiceRank API url
156
177
  - NiceRank filter is more efficient (checks is_human + real_person)
@@ -163,18 +184,18 @@ Features:
163
184
  - Clear the contents of the blacklist database (ayadn -K clear)
164
185
  - Clear the contents of the bookmarks database (ayadn mark clear)
165
186
 
166
- # 1.2.10 - 'Anders'
187
+ ## 1.2.10 - 'Anders'
167
188
 
168
189
  - Fixed the non-installing unicode_utils Gem
169
190
 
170
- # 1.2.9 - 2014-05-29 - 'Kirschen'
191
+ ## 1.2.9 - 2014-05-29 - 'Kirschen'
171
192
 
172
193
  - NiceRank database auto-limits to 10000 users
173
194
  - Better handling of connection errors
174
195
  - Better display of emojis
175
196
  - General code cleaning
176
197
 
177
- # 1.2.8 - 2014-05-27 - 'Hans'
198
+ ## 1.2.8 - 2014-05-27 - 'Hans'
178
199
 
179
200
  - No more Ruby 1.9.3
180
201
  - Search for users: returns a detailed view of users containing word(s) in their bio/description
@@ -183,11 +204,11 @@ Features:
183
204
  - Search for words in messages (PMs)
184
205
  - Better display of the starred and replied_to symbols
185
206
 
186
- # 1.2.7 - 'Roman'
207
+ ## 1.2.7 - 'Roman'
187
208
 
188
209
  - Conform remove_arobase in Switch
189
210
 
190
- # 1.2.6 - 'Saket'
211
+ ## 1.2.6 - 'Saket'
191
212
 
192
213
  - NiceRank enabled by default on new installs
193
214
  - NiceRank cache expires after 48h by default
@@ -196,15 +217,15 @@ Features:
196
217
  - More debug info
197
218
  - Misc fixes related to recent features
198
219
 
199
- # 1.2.5 - 'Bis repetita'
220
+ ## 1.2.5 - 'Bis repetita'
200
221
 
201
222
  - Fix the NiceRank filter staying on true
202
223
 
203
- # 1.2.4 - 2014-05-25 - 'Stoopid me'
224
+ ## 1.2.4 - 2014-05-25 - 'Stoopid me'
204
225
 
205
226
  - Fix the copy/paste error in Settings
206
227
 
207
- # 1.2.3 - 'Taylor'
228
+ ## 1.2.3 - 'Taylor'
208
229
 
209
230
  - Text containing '#' but not an hashtag: not colorized
210
231
  - Add/remove several elements to/from blacklist at once
@@ -214,37 +235,37 @@ Features:
214
235
  - Option for showing debug messages
215
236
  - Show spinner = true
216
237
 
217
- # 1.2.2 - 2014-05-21 - 'Chris'
238
+ ## 1.2.2 - 2014-05-21 - 'Chris'
218
239
 
219
240
  - No more empty lines in the scroll
220
241
  - Spinner while waiting for posts (false by default)
221
242
  - Hashtags support accented characters
222
243
 
223
- # 1.2.1 - 2014-05-20 - 'Vinz'
244
+ ## 1.2.1 - 2014-05-20 - 'Vinz'
224
245
 
225
246
  - Fixed the exclusion bug in NiceRank filters
226
247
  - Improved the truncation in Mark list
227
248
  - Changes to match changes in NiceRank API
228
249
 
229
- # 1.2.0 - 2014-05-19 - 'Jason'
250
+ ## 1.2.0 - 2014-05-19 - 'Jason'
230
251
 
231
252
  - @matigo's NiceRank filter for the Global stream
232
253
 
233
- # 1.1.3 - 2014-05-17 - 'Kevin'
254
+ ## 1.1.3 - 2014-05-17 - 'Kevin'
234
255
 
235
256
  - Bookmark a conversation
236
257
  - List, delete, rename bookmarks
237
258
 
238
- # 1.1.2 - 'Craig'
259
+ ## 1.1.2 - 'Craig'
239
260
 
240
261
  - URL for the docs
241
262
 
242
- # 1.1.1 - 2014-05-07 - 'State Of The Onion'
263
+ ## 1.1.1 - 2014-05-07 - 'State Of The Onion'
243
264
 
244
265
  - Star and unstar a reposted post
245
266
  - Nowplaying shows an error message if iTunes is closed or not currently playing any track
246
267
 
247
- # 1.1.0 - 2014-04-28 - 'Leviathan'
268
+ ## 1.1.0 - 2014-04-28 - 'Leviathan'
248
269
 
249
270
  - Show who's writing, and who's the recipient
250
271
  - Less help text when writing, more concise
@@ -256,38 +277,38 @@ Features:
256
277
  - New command: photos stream
257
278
  - New command: delete message (private or in a channel)
258
279
 
259
- # 1.0.13 - 2014-04-25 - 'Charlotte'
280
+ ## 1.0.13 - 2014-04-25 - 'Charlotte'
260
281
 
261
282
  - New layout for '#nowplaying'
262
283
  - Compact index.db and pagination.db if necessary
263
284
  - New api urls
264
285
  - Fix 'download file'
265
286
 
266
- # 1.0.12 - 'Rolando'
287
+ ## 1.0.12 - 'Rolando'
267
288
 
268
289
  - Fixed an error in: authorizing an account if its folders already exists
269
290
 
270
- # 1.0.11 - 'Chris'
291
+ ## 1.0.11 - 'Chris'
271
292
 
272
293
  - There was a typo in the last version that caused a bug in the PM command
273
294
 
274
- # 1.0.10 - 'Johannes'
295
+ ## 1.0.10 - 'Johannes'
275
296
 
276
297
  - Fixes the help bug (doubled commands)
277
298
  - Auto adds the @ if missing in pm
278
299
 
279
- # 1.0.9 - 'Brian'
300
+ ## 1.0.9 - 'Brian'
280
301
 
281
302
  - Fixes the stubborn 'nowplaying' database bug
282
303
 
283
- # 1.0.8 - 2014-04-16 - 'Laurent'
304
+ ## 1.0.8 - 2014-04-16 - 'Laurent'
284
305
 
285
306
  - Better error messages/logs (specifically when HTTP errors)
286
307
  - Token is anonymized if in error logs
287
308
  - No more database error when canceling a 'nowplaying' post
288
309
  - Better mentions colorization
289
310
 
290
- # 1.0.7 - 2014-04-13 - 'Hugo'
311
+ ## 1.0.7 - 2014-04-13 - 'Hugo'
291
312
 
292
313
  - Machine-only messages in channels are now viewable
293
314
  - Don't output "Downloading" if options = raw in messages view
@@ -295,28 +316,28 @@ Features:
295
316
  - Removed username in front of ">>" in Auto (in case the authd user changed)
296
317
  - Compatibility with Windows is broken
297
318
 
298
- # 1.0.6 - 2014-04-12 - 'Matthew'
319
+ ## 1.0.6 - 2014-04-12 - 'Matthew'
299
320
 
300
321
  - Fixed a bug where post_max_chars was displayed instead of message_max_chars
301
322
  - Show raw JSON in messages even if no data
302
323
 
303
- # 1.0.5 - 'Joel'
324
+ ## 1.0.5 - 'Joel'
304
325
 
305
326
  - Fixed the colorization for mentions
306
327
  - Added tests for colorization
307
328
 
308
- # 1.0.4 - 2014-04-06 - 'Jeremy'
329
+ ## 1.0.4 - 2014-04-06 - 'Jeremy'
309
330
 
310
331
  - Fixed 'reply to an indexed stream' for Ruby < 2.1
311
332
  - More tests for Databases
312
333
  - Tests for Blacklist
313
334
  - Tests for Set
314
335
 
315
- # 1.0.3 - 'Donny'
336
+ ## 1.0.3 - 'Donny'
316
337
 
317
338
  - Fixed the bug introduced by the last bugfix (yes, I know... sigh...)
318
339
 
319
- # 1.0.2 - 'Mark'
340
+ ## 1.0.2 - 'Mark'
320
341
 
321
342
  - Fixed a critical bug in Reply (when the original post was a repost)
322
343
  - Tests for Databases
@@ -324,7 +345,7 @@ Features:
324
345
  - Better layout for checkins
325
346
  - Better alert message if error 429
326
347
 
327
- # 1.0.1 - 2014-04-04 - 'Phoenix'
348
+ ## 1.0.1 - 2014-04-04 - 'Phoenix'
328
349
 
329
350
  Release!
330
351
 
data/README.md CHANGED
@@ -7,7 +7,7 @@ AYADN
7
7
 
8
8
  [App.net](http://app.net) command-line client.
9
9
 
10
- The purpose of Ayadn is to let you use all the features of App.net from the console without any headaches... and then more: power, freedom and fun!
10
+ With Ayadn, you can use all the features of App.net from the console without any headaches... and then more: power, freedom and fun!
11
11
 
12
12
  - view/scroll all streams
13
13
  - view/scroll conversations
@@ -20,7 +20,7 @@ The purpose of Ayadn is to let you use all the features of App.net from the cons
20
20
  - view/scroll posts from specific users or posts mentioning a user
21
21
  - follow/unfollow users, star/repost/mute/block/unstar/etc
22
22
  - create local bookmarks for conversations
23
- - get information about users and their followers/followings
23
+ - get detailed information about users and their followers/followings
24
24
  - search for words, hashtags, post annotations, channels, etc
25
25
  - extract links from conversations, streams, posts, etc
26
26
  - list and download your files
@@ -30,7 +30,7 @@ The purpose of Ayadn is to let you use all the features of App.net from the cons
30
30
  - 'tvshow' creates a post from a TV show title with poster, plot, and link
31
31
  - view/send private messages
32
32
  - view geolocation data in streams
33
- - create silent black lists of users, mentions or hashtags
33
+ - create silent black lists of users, mentions, clients or hashtags
34
34
  - create aliases for easier use of channels ids
35
35
  - update your user profile
36
36
  - export links and text from a post to Pinboard
@@ -79,3 +79,17 @@ ADN Directory: [Ayadn](https://directory.app.net/app/345/ayadn/)
79
79
  # FEEDBACK
80
80
 
81
81
  Feedback and/or contributions are very welcomed!
82
+
83
+ # SCREENSHOTS
84
+
85
+ Examples on Mac OS X, with iTerm2 + Solarized theme.
86
+
87
+ ![followers list](https://www.dropbox.com/s/es0o4sq7w05y2ps/ayadn200followerslistsmall.png?dl=1)
88
+
89
+ ![mentions stream in classic view](http://dl.dropboxusercontent.com/s/16d7u5wjsd3un1j/ayadn200mentions.png)
90
+
91
+ ![conversation in compact view](http://dl.dropboxusercontent.com/s/3nl5fhguhzr61x9/ayadn200convocompact.png)
92
+
93
+ ![posting to App.net](http://dl.dropboxusercontent.com/s/74ehkepj9u1ffbz/ayadn200posting.png)
94
+
95
+ ![list of commands](https://dl.dropboxusercontent.com/s/4cuprxyc2xtjm1w/ayadncommands.png)
data/ayadn.gemspec CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
12
12
  spec.description = %q{App.net command-line client: toolbox to access and manage your ADN data, show your streams, post, manage conversations, star/follow/repost... and many, many more.}
13
13
  spec.homepage = "http://ayadn-app.net"
14
14
  spec.license = "MIT"
15
- spec.metadata = { "documentation" => "http://ayadn-app.net/doc/" }
15
+ spec.metadata = { "documentation" => "https://github.com/ericdke/na/tree/master/doc" }
16
16
 
17
17
  spec.bindir = 'bin'
18
18
  spec.files = `git ls-files`.split("\n")
@@ -31,14 +31,13 @@ Gem::Specification.new do |spec|
31
31
  spec.add_dependency "unicode_utils", "~> 1.4"
32
32
  spec.add_dependency "spotlite", "~> 0.8"
33
33
  spec.add_dependency "tvdb_party", "~> 0.7"
34
+ spec.add_dependency "amalgalite", "~> 1.3"
35
+ spec.add_dependency "fast_cache", "~> 1.0"
34
36
 
35
37
  spec.add_development_dependency "bundler", "~> 1.6"
36
38
  spec.add_development_dependency "rake", "~> 10.3"
37
39
  spec.add_development_dependency "rspec", "~> 3.1"
38
- spec.add_development_dependency "rb-fsevent", "~> 0.9"
39
- spec.add_development_dependency "guard-rspec", "~> 4.3"
40
40
  spec.add_development_dependency "coveralls", "~> 0.7"
41
- #spec.add_development_dependency "fakefs", "~> 0.5"
42
41
 
43
42
  spec.post_install_message = "Thank you for installing Ayadn!"
44
43
  end
data/doc/01-index.md CHANGED
@@ -1,8 +1,9 @@
1
- # AYADN
1
+ AYADN
2
+ =====
2
3
 
3
4
  [App.net](http://app.net) command-line client.
4
5
 
5
- The purpose of Ayadn is to let you use all the features of App.net from the console without any headaches... and then more: power, freedom and fun!
6
+ With Ayadn, you can use all the features of App.net from the console without any headaches... and then more: power, freedom and fun!
6
7
 
7
8
  - view/scroll all streams
8
9
  - view/scroll conversations
@@ -15,7 +16,7 @@ The purpose of Ayadn is to let you use all the features of App.net from the cons
15
16
  - view/scroll posts from specific users or posts mentioning a user
16
17
  - follow/unfollow users, star/repost/mute/block/unstar/etc
17
18
  - create local bookmarks for conversations
18
- - get information about users and their followers/followings
19
+ - get detailed information about users and their followers/followings
19
20
  - search for words, hashtags, post annotations, channels, etc
20
21
  - extract links from conversations, streams, posts, etc
21
22
  - list and download your files
@@ -25,7 +26,7 @@ The purpose of Ayadn is to let you use all the features of App.net from the cons
25
26
  - 'tvshow' creates a post from a TV show title with poster, plot, and link
26
27
  - view/send private messages
27
28
  - view geolocation data in streams
28
- - create silent black lists of users, mentions or hashtags
29
+ - create silent black lists of users, mentions, clients or hashtags
29
30
  - create aliases for easier use of channels ids
30
31
  - update your user profile
31
32
  - export links and text from a post to Pinboard
@@ -40,4 +41,4 @@ There's also two exclusive antispam and filtering features: a blacklist of users
40
41
 
41
42
  Last but not least: Ayadn supports multiple ADN accounts!
42
43
 
43
- Authorize as many accounts as you wish, and simply switch between them in a second.
44
+ Authorize as many accounts as you wish, and simply switch between them in a second.
data/doc/02-install.md CHANGED
@@ -20,4 +20,26 @@ You can of course use the Ruby shipped with your system but it will require root
20
20
 
21
21
  ## WINDOWS
22
22
 
23
- Ayadn 1.x isn't compatible with Windows: there's too many issues due to external Gems and POSIX-dependant tools.
23
+ Ayadn 1.x isn't compatible with Windows: there's too many issues due to POSIX-dependent tools.
24
+
25
+ ## MIGRATE
26
+
27
+ The database format has changed between 1.x and 2.x: if you already have one or several authorized accounts, Ayadn will ask you to run the `migrate` command once per account. You only have to do this once.
28
+
29
+ You can also, if you wish, start anew and delete your `~/ayadn` folder before authorizing a new user with Ayadn 2.x.
30
+
31
+ ## DEPENDENCIES
32
+
33
+ Ayadn depends on these Gems:
34
+
35
+ amalgalite
36
+ daybreak
37
+ fast_cache
38
+ pinboard
39
+ rainbow
40
+ rest-client
41
+ spotlite
42
+ terminal-table
43
+ thor
44
+ tvdb_party
45
+ unicode_utils
@@ -6,10 +6,6 @@ You have to give Ayadn the authorization to use your App.net account.
6
6
 
7
7
  Just run
8
8
 
9
- `ayadn authorize`
10
-
11
- or
12
-
13
9
  `ayadn -auth`
14
10
 
15
11
  to register a new user.
@@ -32,51 +28,45 @@ or
32
28
 
33
29
  `ayadn -@ ericd`
34
30
 
31
+ You can also unauthorize a user with or without deleting its folders:
32
+
33
+ `ayadn unauthorize @ericd`
34
+
35
+ or
36
+
37
+ `ayadn -UA -D @ericd`
38
+
35
39
  ## DATA
36
40
 
37
41
  All Ayadn files and folders are created in your 'home' folder.
38
42
 
39
- On Mac OS X, it looks like this:
40
-
41
43
  ```
42
- /Users/ericdke/ayadn/
43
- ├── accounts.db
44
- /Users/ericdke/ayadn/ericd
44
+ /Users/user/ayadn/
45
+ ├── accounts.sqlite
46
+ /Users/user/ayadn/ericd
45
47
  ├── auth
46
48
  │   └── token
47
- ├── backup
48
49
  ├── config
49
50
  │   ├── api.json
50
51
  │   ├── config.yml
51
52
  │   └── version.yml
52
53
  ├── db
53
- │   ├── aliases.db
54
- │   ├── blacklist.db
55
- │   └── users.db
54
+ │   └── ayadn.sqlite
56
55
  ├── downloads
57
56
  ├── lists
58
57
  ├── log
59
58
  │   └── ayadn.log
60
59
  ├── messages
61
- ├── pagination
62
- │   ├── index.db
63
- │   └── pagination.db
64
60
  └── posts
65
61
  ```
66
62
 
67
- Each authorized account has its set of folders and databases.
68
-
69
- This is also the repository of the configuration file:
70
-
71
- `config.yml`
72
-
73
- Although there's the `set` command in Ayadn to configure most parameters, you can of course edit the file manually.
63
+ Each authorized account has its set of folders, a config file and a database.
74
64
 
75
65
  If you're not sure if your config file is up to date or properly filled and you want to benefit from the new options in Ayadn, run
76
66
 
77
67
  `ayadn set defaults`
78
68
 
79
- and it will create a brand new file with optimal values.
69
+ and it will create a brand new file with default values.
80
70
 
81
71
  ## HELP
82
72
 
@@ -98,23 +88,27 @@ Examples:
98
88
 
99
89
  And for the subcommands:
100
90
 
101
- `ayadn blacklist help import`
91
+ `ayadn blacklist help delete`
102
92
 
103
93
  `ayadn alias help create`
104
94
 
95
+ It also works with the shortcuts:
96
+
97
+ `ayadn help -tl`
98
+
99
+ `ayadn help -K`
105
100
 
106
101
  ## SHORTCUTS
107
102
 
108
- Most examples in the documentation include the 'complete' command followed by the 'shortcut' command.
103
+ Examples in the documentation include the complete command followed by its shortcut version.
109
104
 
110
105
  Of course, using Ayadn is much faster with the shortcut commands.
111
106
 
112
107
  If you're like me, you'll even want to create aliases in bash/zsh or TextExpander snippets for the combinations of Ayadn commands and options you use the most...
113
108
 
114
-
115
109
  ## EXAMPLES
116
110
 
117
- Just a few examples to give you a hint at the flexible syntax.
111
+ Just a few examples of commands to give you a hint at the flexible syntax.
118
112
 
119
113
  Complete:
120
114
 
data/doc/04-options.md CHANGED
@@ -4,7 +4,7 @@ Note: options are only described once in this manual (in the first example for '
4
4
 
5
5
  **However, options are available for mosts of streams!**
6
6
 
7
- They're described only once *for readability purposes*.
7
+ They're described only once to ensure this documentation keeps being readable.
8
8
 
9
9
  You can always check if a command has specific options with
10
10