ayadn 1.7.2 → 1.7.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: 0b3446f30e2035384926d37687d0063e8babc1f2
4
- data.tar.gz: 3cc304f22b3d4e73b1d80a22ec079959b6032dab
3
+ metadata.gz: a3fa11aebafb50de81803f096315afad28f111c7
4
+ data.tar.gz: e5cdfc47373c3cbfb956701320f641d049f279af
5
5
  SHA512:
6
- metadata.gz: b9cf55b0587c5399cfc8684f54bf7af4ea0e7d45b6a357774e837b4eb3d59834b1ddfb27c9ebc0cd74b74b1735402922879d18df72af97addb3ea5f778216714
7
- data.tar.gz: 3c8dc7b8fe631221157c8d36994f205a3504cfc56b0977d7b336d446c72cf71e54b79da311550792a0a0985e7f1f3cab22215800b3b35b7548553dada1002e26
6
+ metadata.gz: f7e8d412005c5008c75ee4127c31f403bbcef9da09d5b0f51bf69329c5fde654f5e02ca662444b9759e77bddc9186f13222968241b92bbe44e4c2d60821f03a5
7
+ data.tar.gz: 402269792d12923b31a01f951f29f8fa91d2b94793e407fdbd36eb53dacc0bcaa99c35e9f6cbc23a356d6fad13dae0c6983a04783f9cd90f93d49d9180c79e32
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # 1.7.3 (2014-09-08) - 'Scanners'
2
+
3
+ - New: option to reply to a reposted post
4
+ - New: you can change the users lists order with `set`
5
+ - New: you can change the table width with `set`
6
+ - Docs: the documentation has been fixed and updated
7
+
1
8
  # 1.7.2 (2014-09-04) - 'Fortress'
2
9
 
3
10
  - Fixed: option to retrieve only specified channels in Channels
data/doc/01-index.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # AYADN
2
2
 
3
- [Ayadn](https://github.com/ericdke/na) is an [App.net](http://app.net) command-line client.
3
+ [App.net](http://app.net) command-line client.
4
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
6
 
@@ -9,20 +9,25 @@ The purpose of Ayadn is to let you use all the features of App.net from the cons
9
9
  - reply to users
10
10
  - write fast single-line or complex multi-line posts
11
11
  - embed pictures in posts
12
+ - embed online video in posts
13
+ - embed movie poster in posts
12
14
  - view/scroll the Global stream with spammers filtered out
13
15
  - view/scroll posts from specific users or posts mentioning a user
14
16
  - follow/unfollow users, star/repost/mute/block/unstar/etc
15
- - create/manage silent bookmarks for conversations
17
+ - create local bookmarks for conversations
16
18
  - get information about users and their followers/followings
17
19
  - search for words, hashtags, post annotations, channels, etc
18
20
  - extract links from conversations, streams, posts, etc
19
21
  - list and download your files
20
22
  - view (and write to) all your channels including Broadcasts, Patter, Ohai, etc
21
- - #nowplaying from iTunes or Last.fm, with album art and store link
23
+ - 'nowplaying' from iTunes or Last.fm, with album art and store link
24
+ - 'movie' creates a post from a movie title with poster, plot, and link
25
+ - 'tvshow' creates a post from a TV show title with poster, plot, and link
22
26
  - view/send private messages
23
27
  - view geolocation data in streams
24
- - create/manage silent black lists of users, mentions or hashtags
25
- - create/manage aliases for easier use of channels ids
28
+ - create silent black lists of users, mentions or hashtags
29
+ - create aliases for easier use of channels ids
30
+ - update your user profile
26
31
  - export links and text from a post to Pinboard
27
32
  - option to export almost any stream or object in JSON
28
33
  - options: set the number of posts by request, show only new posts, etc
data/doc/02-install.md CHANGED
@@ -14,9 +14,9 @@ Uninstall:
14
14
 
15
15
  ## OS X, LINUX, BSD
16
16
 
17
- Please use something like RVM or RBENV to install Ruby if necessary.
17
+ If you need to install Ruby it's better to use something like RVM or RBENV.
18
18
 
19
- You can also use the Ruby shipped with your system but it will require root privileges.
19
+ You can of course use the Ruby shipped with your system but it will require root privileges and is not recommended.
20
20
 
21
21
  ## WINDOWS
22
22
 
@@ -105,7 +105,7 @@ And for the subcommands:
105
105
 
106
106
  ## SHORTCUTS
107
107
 
108
- Most examples will include the 'complete' command followed by the 'shortcut' command.
108
+ Most examples in the documentation include the 'complete' command followed by the 'shortcut' command.
109
109
 
110
110
  Of course, using Ayadn is much faster with the shortcut commands.
111
111
 
@@ -156,6 +156,6 @@ Shortcuts:
156
156
 
157
157
  `ayadn -co 23362788`
158
158
 
159
- `ayadn -se movies hollywood`
159
+ `ayadn -s movies hollywood`
160
160
 
161
161
  `ayadn -FO @ericd`
data/doc/04-options.md CHANGED
@@ -2,12 +2,14 @@
2
2
 
3
3
  Note: options are only described once in this manual (in the first example for 'Streams', 'Timeline').
4
4
 
5
- However, options are available for mosts of streams!
5
+ **However, options are available for mosts of streams!**
6
6
 
7
7
  They're described only once *for readability purposes*.
8
8
 
9
- You can check if a command has specific options with
9
+ You can always check if a command has specific options with
10
10
 
11
11
  `ayadn help COMMAND`
12
12
 
13
+ or, for subcommands:
13
14
 
15
+ `ayadn COMMAND help SUBCOMMAND`
data/doc/05-streams.md CHANGED
@@ -19,17 +19,21 @@ Scroll your timeline with:
19
19
 
20
20
  `ayadn -tl -s`
21
21
 
22
- Note: Ayadn pulls the stream every 3 seconds by default.
22
+ #### SCROLL
23
23
 
24
- It means you can launch up to 3 scroll streams at a time _per account_.
24
+ A note about `--scroll`.
25
25
 
26
- You can bring that value down to 1 second if you're using only _one_ scroll stream per account at a time, 2 seconds if you're using _two_ scroll streams, and so on and so forth.
26
+ **Ayadn pulls the stream every 3 seconds by default.**
27
27
 
28
- If Ayadn ends up making too many requests to ADN, it will display an alert message with instructions then stop running.
28
+ It means you can launch up to 3 scroll streams at a time _per account_ if you want.
29
29
 
30
- So if you plan on launching many Ayadn scrolling instances at once, you should *set* the timer parameter accordingly (App.net accepts 5000 requests per hour per account maximum).
30
+ To launch even more streams at the same time, increment the timer by one second for each stream.
31
31
 
32
- Note: you can show an animated spinner while waiting for new posts, see the "SET" chapter.
32
+ Example: to launch 10 streams, set the timer to 12 seconds *before launching the streams* with `ayadn set scroll timer 12`.
33
+
34
+ On the contrary, you can bring that value down to 1 second if you're using only _one_ scroll stream per account at a time.
35
+
36
+ App.net accepts 5000 requests per hour per account maximum. If Ayadn ends up making too many requests to ADN, it will display an alert message with instructions, then it will exit.
33
37
 
34
38
  ### COUNT
35
39
 
@@ -73,7 +77,7 @@ Displays only the new posts in the stream since your last visit.
73
77
 
74
78
  ### RAW
75
79
 
76
- Displays the raw response from the App.net API instead of the formatted Ayadn output. For debugging and learning purposes.
80
+ Displays the raw response from the App.net API instead of the formatted Ayadn output.
77
81
 
78
82
  `ayadn timeline --raw`
79
83
 
@@ -276,13 +280,11 @@ Search for App.net channels by searching WORD(S) in their description.
276
280
 
277
281
  If the channel (let's say 24573) is public, you can read its messages with `ayadn -ms 24573` or `ayadn -ms my_alias`.
278
282
 
279
- # RANDOM
283
+ ## Search ADN annotations
280
284
 
281
- Show series of random posts from App.net. Just for fun :)
285
+ For the developers -or the adventurous-, there's a command to search for annotations types.
282
286
 
283
- `ayadn random`
284
-
285
- `ayadn -rnd`
287
+ `ayadn search --annotations net.app.ohai.location`
286
288
 
287
289
  # USER INFO
288
290
 
@@ -303,3 +305,11 @@ Show informations about a post.
303
305
  `ayadn postinfo 23362788`
304
306
 
305
307
  `ayadn -pi 23362788`
308
+
309
+ # RANDOM
310
+
311
+ Show series of random posts from ADN. Just for fun :)
312
+
313
+ `ayadn random`
314
+
315
+ `ayadn -rnd`
data/doc/06-post.md CHANGED
@@ -6,13 +6,13 @@ Simple and fast way to post a short sentence/word to App.net.
6
6
 
7
7
  `ayadn -P Hello from Ayadn`
8
8
 
9
- `ayadn -P @ericd hello Eric`
9
+ `ayadn -P @ericd Hello Eric`
10
10
 
11
11
  You have to put your text between single quotes if you're using punctuation:
12
12
 
13
13
  `ayadn -P 'Hello from Ayadn, guys!'`
14
14
 
15
- But remember you can't then use any `'` character!
15
+ *But remember you can't use any quote character inside the quotes...*
16
16
 
17
17
  **So you should rather use either the _write_ or the _auto_ method for posting.**
18
18
 
@@ -20,7 +20,7 @@ But remember you can't then use any `'` character!
20
20
 
21
21
  Multi-line post to App.net.
22
22
 
23
- This is the recommended way to post elaborate text to ADN:
23
+ *This is the recommended way to post elaborate text to ADN:*
24
24
 
25
25
  `ayadn write`
26
26
 
@@ -28,7 +28,9 @@ This is the recommended way to post elaborate text to ADN:
28
28
 
29
29
  It will show you a prompt where you can type anything, including special characters and Markdown links.
30
30
 
31
- Hit ENTER to create line breaks and paragraphs.
31
+ Hit ENTER to create line breaks.
32
+
33
+ Hit ENTER, SPACE, ENTER to create paragraphs compatible with all clients.
32
34
 
33
35
  Cancel your post with CTRC-C or send it with CTRL-D.
34
36
 
@@ -66,6 +68,15 @@ If you reply to a post containing multiple mentions, your text will be inserted
66
68
 
67
69
  `ayadn -R 3`
68
70
 
71
+ If you reply to a reposted post, Ayadn will reply to the original post, complying with the ADN guidelines.
72
+
73
+ However, if needed, you can reply to the reposted post with the `--noredirect` option:
74
+
75
+ `ayadn -R --noredirect 23344556`
76
+
77
+ `ayadn -R -n 23344556`
78
+
79
+
69
80
  # PM (PRIVATE MESSAGE)
70
81
 
71
82
  Send a private message to a specific user.
@@ -102,7 +113,7 @@ Examples:
102
113
 
103
114
  ```
104
115
  ayadn -P Meet my cat -E lolcat.jpg
105
- ayadn -P "@ericd Hey, meet my pets" -E ~/lolcat.jpg ./doge.jpeg
116
+ ayadn -P "@ericd Hey, meet my pets" -E ~/lolcat.jpg ~/doge.jpeg
106
117
  ayadn -W -E ~/lolcat.png
107
118
  ayadn -R 23362460 -E "Desktop/dancing lolcat.gif"
108
119
  ayadn pm @ericd -E /users/dad/lol\'cat.JPG /users/mom/my\ doge.PNG
@@ -132,7 +143,7 @@ You can embed a movie poster in a normal post with option `-M`.
132
143
 
133
144
  This is compatible with other options, eg embedding other images.
134
145
 
135
- Warning: contrary to the `movie` command, this option doesn't check with the user if the movie is valid. The poster is retrieved from IMDb and is automatically embedded in the post.
146
+ *Warning: contrary to the `movie` command, this option doesn't check with the user if the movie is valid. The poster is retrieved from IMDb and is automatically embedded in the post.*
136
147
 
137
148
  Examples:
138
149
 
@@ -141,4 +152,3 @@ ayadn -P "I'll be back" -M terminator
141
152
  ayadn -W -M truman show -E ~/Pics/my_face.jpg
142
153
  ayadn -R 23362460 -M the dark knight
143
154
  ```
144
-
data/doc/07-actions.md CHANGED
@@ -6,9 +6,9 @@ Delete a post.
6
6
 
7
7
  `ayadn -D 23365251`
8
8
 
9
- # DELETE MESSAGE
9
+ # DELETE_M
10
10
 
11
- Delete a message.
11
+ Delete a private message.
12
12
 
13
13
  You have to specify channel id (or alias) then message number.
14
14
 
@@ -108,44 +108,44 @@ Download a file from your App.net storage (any file posted with other ADN client
108
108
 
109
109
  # PIN
110
110
 
111
- Export a post's link and text, with tags, to your Pinboard account.
111
+ Export a post's url, text and link(s) to your Pinboard account and add optional tags.
112
112
 
113
- `ayadn pin 22790201 Ayadn gem update`
113
+ `ayadn pin 22790201 Ayadn Ruby dev`
114
114
 
115
- `ayadn pin 26874913 duel swords france`
115
+ `ayadn pin 26874913 duel swords france history`
116
116
 
117
117
  # UPDATE
118
118
 
119
- Update your user profile.
120
-
121
- Use option `--delete` or `-D` to delete the field.
119
+ - Update your user profile
122
120
 
123
121
  `ayadn --update --bio`
124
122
 
125
123
  `ayadn -U --bio`
126
124
 
127
- `ayadn --update --bio --delete`
128
-
129
- `ayadn -U --bio -D`
130
-
131
125
  `ayadn -U --name`
132
126
 
133
127
  `ayadn -U --twitter`
134
128
 
135
- `ayadn -U --twitter -D`
136
-
137
129
  `ayadn -U --blog`
138
130
 
139
- `ayadn -U --blog -D`
140
-
141
131
  `ayadn -U --web`
142
132
 
143
- `ayadn -U --web -D`
144
-
145
133
  `ayadn -U --avatar ~/Pics/myface.jpg`
146
134
 
147
- Avatar: the uploaded image will be cropped to square and must be smaller than 1 MB. The optimal size is 200×200 pixels.
135
+ *Avatar: the uploaded image will be cropped to square and must be smaller than 1 MB. The optimal size is 200×200 pixels.*
148
136
 
149
137
  `ayadn -U --cover ~/Pics/mycats.jpg`
150
138
 
151
- Cover: the uploaded image must be at least 960 pixels wide and less than 4 MB in size.
139
+ *Cover: the uploaded image must be at least 960 pixels wide and less than 4 MB in size.*
140
+
141
+ - Use option `--delete` or `-D` to delete the field
142
+
143
+ `ayadn --update --bio --delete`
144
+
145
+ `ayadn -U --bio -D`
146
+
147
+ `ayadn -U --twitter -D`
148
+
149
+ `ayadn -U --blog -D`
150
+
151
+ `ayadn -U --web -D`
data/doc/08-listings.md CHANGED
@@ -24,13 +24,13 @@ You can see your own list by using *me* instead of *@username*:
24
24
 
25
25
  # CHANNELS
26
26
 
27
- List your active App.net channels.
27
+ List all your active App.net channels.
28
28
 
29
29
  `ayadn channels`
30
30
 
31
31
  `ayadn -ch`
32
32
 
33
- Retrieve only specified channel(s) with option `--id`:
33
+ Retrieve a unique channel, or specific channel(s), with option `--id`:
34
34
 
35
35
  `ayadn -ch --id 55123`
36
36
 
@@ -95,3 +95,21 @@ List them all:
95
95
  `ayadn files -a`
96
96
 
97
97
  `ayadn -fl -a`
98
+
99
+ ## OPTIONS
100
+
101
+ ### LIST
102
+
103
+ You can reverse the default lists order with a `set` command:
104
+
105
+ `ayadn set formats list reverse false`
106
+
107
+ (defaults to true since Ayadn version 1.7.3)
108
+
109
+ ### TABLE
110
+
111
+ You can change the width of the lists table if the default size doesn't fit well in your terminal:
112
+
113
+ `ayadn set formats table width 80`
114
+
115
+ (min: 60, max: 90, default: 75)
data/doc/09-accounts.md CHANGED
@@ -18,13 +18,13 @@ Switch between your authorized accounts.
18
18
 
19
19
  `ayadn switch @ericd`
20
20
 
21
- `ayadn switch @otheraccount`
21
+ `ayadn switch @mysecretaccount`
22
22
 
23
23
  Alternative syntax:
24
24
 
25
25
  `ayadn -@ ericd`
26
26
 
27
- `ayadn -@ otheraccount`
27
+ `ayadn -@ mysecretaccount`
28
28
 
29
29
  List your authorized accounts:
30
30
 
data/doc/10-nicerank.md CHANGED
@@ -22,7 +22,7 @@ An idea of the scale:
22
22
 
23
23
  - A user posting a lot of automated links without being active otherwise will be < 2
24
24
 
25
- - A new ADN user will typically start with 2
25
+ - A new ADN user will typically start with 2.1
26
26
 
27
27
  - A regular user will always be > 2
28
28
 
@@ -32,27 +32,24 @@ An idea of the scale:
32
32
 
33
33
  *Again, this is not a popularity ratio: far from it. It only serves as a filter for bots and spam.*
34
34
 
35
+ ## Threshold
35
36
 
36
- ## Activate NiceRank
37
-
38
- NiceRank is disabled by default.
39
-
40
- Enable it with:
37
+ Set the NiceRank threshold.
41
38
 
42
- `ayadn set nicerank filter true`
39
+ You can use an integer or a float (only one decimal).
43
40
 
44
- My advice is to also filter out the few users that NiceRank haven't analyzed yet, as most of them are bots:
41
+ Any user with a NiceRank smaller than this value will be ignored.
45
42
 
46
- `ayadn set nicerank filter_unranked true`
43
+ `ayadn set nicerank threshold 2.5`
47
44
 
48
- ## Threshold
45
+ `ayadn set nicerank threshold 3`
49
46
 
50
- Set the NiceRank threshold.
47
+ (default: 2.1)
51
48
 
52
- Any user with a NiceRank smaller than this value will be ignored.
49
+ ## Desactivate NiceRank
53
50
 
54
- `ayadn set nicerank threshold 2`
51
+ NiceRank is enabled by default on new Ayadn installations, but can be disabled if needed:
55
52
 
56
- ## Deactivate NiceRank
53
+ `ayadn set nicerank filter false`
57
54
 
58
- It's the same as above, with *false* instead of *true*.
55
+ `ayadn set nicerank filter_unranked false`
data/doc/11-blacklist.md CHANGED
@@ -20,11 +20,15 @@ Oh, and you can import blacklist databases from other accounts, too.
20
20
 
21
21
  Adds an item to your blacklist.
22
22
 
23
- Available items: client, hashtag, mention.
23
+ Available items: client, hashtag, user, mention.
24
24
 
25
25
  `ayadn blacklist add mention @shmuck`
26
26
 
27
- Add a mention:
27
+ Add a user:
28
+
29
+ `ayadn -K add user @shmuck`
30
+
31
+ Add a mention of a user:
28
32
 
29
33
  `ayadn -K add mention @shmuck`
30
34
 
@@ -40,10 +44,14 @@ Add a hashtag:
40
44
 
41
45
  Removes an item from your blacklist.
42
46
 
43
- Available items: client, hashtag, mention.
47
+ Available items: client, hashtag, user, mention.
44
48
 
45
49
  `ayadn blacklist remove mention @shmuck`
46
50
 
51
+ Remove a user:
52
+
53
+ `ayadn -K remove user @shmuck`
54
+
47
55
  Remove a mention:
48
56
 
49
57
  `ayadn -K remove mention @shmuck`
@@ -78,6 +86,8 @@ You can add/remove several elements to/from the blacklist at once.
78
86
 
79
87
  (For usernames, '@' prefix will automatically be added if missing.)
80
88
 
89
+ `ayadn -K add user shmuck jerk mrspammer`
90
+
81
91
  `ayadn -K add mention shmuck jerk mrspammer`
82
92
 
83
93
  `ayadn -K add client ifttt pourover twitterfeed`
data/doc/13-bookmark.md CHANGED
@@ -6,7 +6,7 @@ Usage:
6
6
 
7
7
  `ayadn mark add 30594331`
8
8
 
9
- `ayadn mark add 30594331 'convo title'`
9
+ `ayadn mark add 30594331 convo title`
10
10
 
11
11
  `ayadn mark list`
12
12
 
@@ -22,7 +22,9 @@ Usage:
22
22
 
23
23
  `ayadn mark add 30594331`
24
24
 
25
- `ayadn mark add 30594331 'convo title'`
25
+ `ayadn mark add 30594331 talking about stuff`
26
+
27
+ `ayadn mark add 30594331 'This convo about x, y and z is cool!'`
26
28
 
27
29
  You don't have to specify the root post of the conversation, any post within the thread will work.
28
30
 
data/doc/14-set.md CHANGED
@@ -10,6 +10,8 @@ You can get a list of configurable parameters with
10
10
 
11
11
  ## EXAMPLES
12
12
 
13
+ These are just a few examples.
14
+
13
15
  `ayadn set color username green`
14
16
 
15
17
  `ayadn set color mentions yellow`
@@ -28,9 +30,11 @@ You can get a list of configurable parameters with
28
30
 
29
31
  `ayadn set scroll timer 5`
30
32
 
31
- `ayadn set nicerank filter true`
33
+ `ayadn set formats table width 80`
34
+
35
+ `ayadn set formats list reverse false`
32
36
 
33
- `ayadn set timeline show_spinner true`
37
+ ## RESET
34
38
 
35
39
  To reset the configuration to default values:
36
40
 
@@ -38,7 +42,7 @@ To reset the configuration to default values:
38
42
 
39
43
  ## LIST
40
44
 
41
- Example list of configured items in Ayadn.
45
+ *Example* list of configured items in Ayadn.
42
46
 
43
47
  `ayadn -sg` will show your own list.
44
48
 
data/doc/15-nowplaying.md CHANGED
@@ -20,4 +20,6 @@ It will also grab a 30 seconds preview and the album art from the iTunes Store.
20
20
 
21
21
  `ayadn -np -l`
22
22
 
23
- Same behaviour and options as above.
23
+ Ayadn will grab information from your Last.fm account, format it, insert the *#nowplaying* hashtag then ask for your confirmation before posting it.
24
+
25
+ It will also grab a 30 seconds preview and the album art from the iTunes Store. You can prevent this behavior by adding the `--no-url` option (short: `-n`).
data/doc/16-movie.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # MOVIE (nowwatching)
2
2
 
3
- Create a post from (part of) a movie title. Includes movie poster, IMDb url and hashtag.
3
+ Create a post from (part of) a movie title.
4
+
5
+ Includes movie poster, IMDb url and hashtag.
4
6
 
5
7
  Usage:
6
8
 
@@ -26,21 +28,12 @@ This is useful for remakes:
26
28
 
27
29
  (gives the 1972 version)
28
30
 
29
- ## ALIASES
30
-
31
- `ayadn nowwatching godfather II`
32
-
33
- `ayadn imdb -a conan`
34
-
35
31
  ## HASHTAG
36
32
 
37
- You can modify the hashtag with 'set':
33
+ You can modify the default hashtag with 'set':
38
34
 
39
35
  `ayadn set movie hashtag movietime`
40
36
 
41
37
  `ayadn set movie hashtag adnmovieclub`
42
38
 
43
39
  (default is 'nowwatching')
44
-
45
-
46
-
data/doc/17-tvshow.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # TVSHOW (nowwatching)
2
2
 
3
- Create a post from (part of) a TV show title. Includes show poster, IMDb url and hashtag.
3
+ Create a post from (part of) a TV show title.
4
+
5
+ Includes show poster, IMDb url and hashtag.
4
6
 
5
7
  Usage:
6
8
 
data/doc/18-contact.md CHANGED
@@ -10,6 +10,10 @@
10
10
 
11
11
  ## THANK YOU
12
12
 
13
+ This is a list of the first people who helped me when I started developing Ayadn.
14
+
15
+ I can't keep up and update the list, of course, there's too many of you awesome geeks. ;)
16
+
13
17
  [@matigo](http://app.net/matigo)
14
18
  [@ksniod](http://app.net/ksniod)
15
19
  [@donnywdavis](http://app.net/donnywdavis)
@@ -27,3 +31,5 @@
27
31
  [@jextxadore](http://app.net/jextxadore)
28
32
  [@jvimedia](http://app.net/jvimedia)
29
33
  [@fredvd](http://app.net/fredvd)
34
+
35
+ See also the Ayadn CHANGELOG file...
data/doc/19-examples.md CHANGED
@@ -38,6 +38,6 @@ Shortcuts:
38
38
 
39
39
  `ayadn -co 23362788`
40
40
 
41
- `ayadn -se movies hollywood`
41
+ `ayadn -s movies hollywood`
42
42
 
43
43
  `ayadn -FO @ericd`
data/lib/ayadn/action.rb CHANGED
@@ -556,7 +556,9 @@ module Ayadn
556
556
  puts Status.replying_to(post_id)
557
557
  replied_to = @api.get_details(post_id)
558
558
  Check.no_post(replied_to, post_id)
559
- post_id = @workers.get_original_id(post_id, replied_to)
559
+ unless options[:noredirect]
560
+ post_id = @workers.get_original_id(post_id, replied_to)
561
+ end
560
562
  if replied_to['data']['repost_of']
561
563
  if post_id == replied_to['data']['repost_of']['id']
562
564
  replied_to = @api.get_details(post_id)
data/lib/ayadn/app.rb CHANGED
@@ -423,6 +423,7 @@ module Ayadn
423
423
  option :youtube, aliases: "-Y", type: :array, desc: "Embed a Youtube video in the new post"
424
424
  option :vimeo, aliases: "-V", type: :array, desc: "Embed a Vimeo video in the new post"
425
425
  option :poster, aliases: "-M", type: :array, desc: "Embed a movie poster, from title, in the new post"
426
+ option :noredirect, aliases: "-n", type: :boolean, desc: "Do not respond to the original post but to the reposted one if possible"
426
427
  def reply(id)
427
428
  ayadn = Action.new
428
429
  ayadn.reply(id, options)
data/lib/ayadn/cnx.rb CHANGED
@@ -66,6 +66,9 @@ module Ayadn
66
66
  end
67
67
  puts "\nConnection error.".color(:red)
68
68
  Errors.global_error({error: e, caller: caller, data: [url]})
69
+ rescue URI::InvalidURIError => e
70
+ puts "\nConnection or authorization error.".color(:red)
71
+ Errors.global_error({error: e, caller: caller, data: [url]})
69
72
  rescue => e
70
73
  Errors.global_error({error: e, caller: caller, data: [url]})
71
74
  end
data/lib/ayadn/errors.rb CHANGED
@@ -3,6 +3,7 @@ module Ayadn
3
3
  class Errors
4
4
 
5
5
  def self.global_error(args)
6
+ abort(Status.wtf) if Logs.nil?
6
7
  Logs.rec.error "--BEGIN--"
7
8
  Logs.rec.error "CAUSE: #{args[:error]}"
8
9
  Logs.rec.debug "DATA: #{args[:data]}"