ayadn 1.8.2 → 2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
data/doc/14-set.md CHANGED
@@ -14,130 +14,28 @@ These are just a few examples.
14
14
 
15
15
  `ayadn set color username green`
16
16
 
17
- `ayadn set color mentions yellow`
17
+ `ayadn set color date yellow`
18
18
 
19
19
  `ayadn set counts default 30`
20
20
 
21
- `ayadn set counts search 100`
21
+ `ayadn set counts global 100`
22
22
 
23
- `ayadn set timeline directed false`
23
+ `ayadn set timeline name false`
24
24
 
25
- `ayadn set timeline show_real_name false`
25
+ `ayadn set timeline compact true`
26
26
 
27
- `ayadn set timeline show_date false`
27
+ `ayadn set scroll spinner true`
28
28
 
29
- `ayadn set backup auto_save_sent_posts true`
29
+ `ayadn set scroll date false`
30
30
 
31
- `ayadn set scroll timer 5`
31
+ `ayadn set backup posts true`
32
32
 
33
33
  `ayadn set formats table width 80`
34
34
 
35
- `ayadn set formats list reverse false`
35
+ `ayadn set formats table borders false`
36
36
 
37
37
  ## RESET
38
38
 
39
39
  To reset the configuration to default values:
40
40
 
41
41
  `ayadn set defaults`
42
-
43
- ## LIST
44
-
45
- *Example* list of configured items in Ayadn.
46
-
47
- `ayadn -sg` will show your own list.
48
-
49
- ```
50
- +------------------+---------------------------------+--------------------+
51
- | Category | Parameter | Value(s) |
52
- +------------------+---------------------------------+--------------------+
53
- | timeline | directed | 1 |
54
- +------------------+---------------------------------+--------------------+
55
- | timeline | deleted | 0 |
56
- +------------------+---------------------------------+--------------------+
57
- | timeline | html | 0 |
58
- +------------------+---------------------------------+--------------------+
59
- | timeline | annotations | 1 |
60
- +------------------+---------------------------------+--------------------+
61
- | timeline | show_source | true |
62
- +------------------+---------------------------------+--------------------+
63
- | timeline | show_symbols | true |
64
- +------------------+---------------------------------+--------------------+
65
- | timeline | show_real_name | true |
66
- +------------------+---------------------------------+--------------------+
67
- | timeline | show_date | true |
68
- +------------------+---------------------------------+--------------------+
69
- | timeline | show_spinner | true |
70
- +------------------+---------------------------------+--------------------+
71
- | counts | default | 50 |
72
- +------------------+---------------------------------+--------------------+
73
- | counts | unified | 50 |
74
- +------------------+---------------------------------+--------------------+
75
- | counts | global | 100 |
76
- +------------------+---------------------------------+--------------------+
77
- | counts | checkins | 50 |
78
- +------------------+---------------------------------+--------------------+
79
- | counts | conversations | 200 |
80
- +------------------+---------------------------------+--------------------+
81
- | counts | photos | 50 |
82
- +------------------+---------------------------------+--------------------+
83
- | counts | trending | 50 |
84
- +------------------+---------------------------------+--------------------+
85
- | counts | mentions | 50 |
86
- +------------------+---------------------------------+--------------------+
87
- | counts | convo | 50 |
88
- +------------------+---------------------------------+--------------------+
89
- | counts | posts | 50 |
90
- +------------------+---------------------------------+--------------------+
91
- | counts | messages | 50 |
92
- +------------------+---------------------------------+--------------------+
93
- | counts | search | 200 |
94
- +------------------+---------------------------------+--------------------+
95
- | counts | whoreposted | 50 |
96
- +------------------+---------------------------------+--------------------+
97
- | counts | whostarred | 50 |
98
- +------------------+---------------------------------+--------------------+
99
- | counts | whatstarred | 200 |
100
- +------------------+---------------------------------+--------------------+
101
- | counts | files | 100 |
102
- +------------------+---------------------------------+--------------------+
103
- | formats | table | width = 75 |
104
- +------------------+---------------------------------+--------------------+
105
- | colors | id | blue |
106
- +------------------+---------------------------------+--------------------+
107
- | colors | index | red |
108
- +------------------+---------------------------------+--------------------+
109
- | colors | username | green |
110
- +------------------+---------------------------------+--------------------+
111
- | colors | name | magenta |
112
- +------------------+---------------------------------+--------------------+
113
- | colors | date | cyan |
114
- +------------------+---------------------------------+--------------------+
115
- | colors | link | yellow |
116
- +------------------+---------------------------------+--------------------+
117
- | colors | dots | blue |
118
- +------------------+---------------------------------+--------------------+
119
- | colors | hashtags | cyan |
120
- +------------------+---------------------------------+--------------------+
121
- | colors | mentions | red |
122
- +------------------+---------------------------------+--------------------+
123
- | colors | source | cyan |
124
- +------------------+---------------------------------+--------------------+
125
- | colors | symbols | green |
126
- +------------------+---------------------------------+--------------------+
127
- | colors | nicerank | cyan |
128
- +------------------+---------------------------------+--------------------+
129
- | backup | auto_save_sent_posts | false |
130
- +------------------+---------------------------------+--------------------+
131
- | backup | auto_save_sent_messages | false |
132
- +------------------+---------------------------------+--------------------+
133
- | backup | auto_save_lists | false |
134
- +------------------+---------------------------------+--------------------+
135
- | scroll | timer | 3 |
136
- +------------------+---------------------------------+--------------------+
137
- | nicerank | threshold | 2.0 |
138
- +------------------+---------------------------------+--------------------+
139
- | nicerank | filter | true |
140
- +------------------+---------------------------------+--------------------+
141
- | nicerank | filter_unranked | true |
142
- +------------------+---------------------------------+--------------------+
143
- ```
data/doc/15-nowplaying.md CHANGED
@@ -8,18 +8,30 @@ OS X only.
8
8
 
9
9
  `ayadn nowplaying`
10
10
 
11
- `ayadn -np`
11
+ `ayadn -NP`
12
12
 
13
13
  Ayadn will grab information from your running iTunes, format it, insert the *#nowplaying* hashtag then ask for your confirmation before posting it.
14
14
 
15
- 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`).
15
+ It will also grab a link to the album and the album artwork from the iTunes Store (you can prevent this behavior by adding the `--no_url` option (short: `-n`).
16
16
 
17
17
  ## Last.fm
18
18
 
19
19
  `ayadn nowplaying --last-fm`
20
20
 
21
- `ayadn -np -l`
21
+ `ayadn -NP -l`
22
22
 
23
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
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`).
25
+ It will also grab a link to the album and the album artwork from the iTunes Store (you can prevent this behavior by adding the `--no_url` option (short: `-n`).
26
+
27
+ ## Options
28
+
29
+ Specify a custom hashtag:
30
+
31
+ `ayadn -NP -h listeningto`
32
+
33
+ Specify a custom text:
34
+
35
+ `ayadn -NP -t "I loved this song so much when I was young."`
36
+
37
+ Works with iTunes and Last.fm.
data/doc/18-contact.md CHANGED
@@ -10,26 +10,27 @@
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.
13
+ This is a list of people who helped me developing Ayadn by giving me awesome feedback and support.
14
14
 
15
15
  I can't keep up and update the list, of course, there's too many of you awesome geeks. ;)
16
16
 
17
- [@matigo](http://app.net/matigo)
18
- [@ksniod](http://app.net/ksniod)
19
- [@donnywdavis](http://app.net/donnywdavis)
20
- [@manx](http://app.net/manx)
17
+ [@bazbt3](http://app.net/bazbt3)
21
18
  [@bcallah](http://app.net/bcallah)
22
- [@0xmf](http://app.net/0xmf)
23
- [@sr_rolando](http://app.net/sr_rolando)
19
+ [@blumenkraft](http://app.net/blumenkraft)
24
20
  [@charl](http://app.net/charl)
25
- [@jws](http://app.net/jws)
21
+ [@cirrusuk](http://app.net/cirrusuk)
22
+ [@donnywdavis](http://app.net/donnywdavis)
23
+ [@hutattedonmyarm](http://app.net/hutattedonmyarm)
24
+ [@isaacjw](http://app.net/isaacjw)
26
25
  [@joeltimmins](http://app.net/joeltimmins)
27
- [@berklee](http://app.net/berklee)
28
- [@nguarracino](http://app.net/nguarracino)
26
+ [@jvimedia](http://app.net/jvimedia)
27
+ [@jws](http://app.net/jws)
28
+ [@ksniod](http://app.net/ksniod)
29
+ [@ludolphus](http://app.net/ludolphus)
30
+ [@manx](http://app.net/manx)
31
+ [@matigo](http://app.net/matigo)
29
32
  [@matthewlang](http://app.net/matthewlang)
33
+ [@nguarracino](http://app.net/nguarracino)
30
34
  [@schmidt_fu](http://app.net/schmidt_fu)
31
- [@jextxadore](http://app.net/jextxadore)
32
- [@jvimedia](http://app.net/jvimedia)
33
- [@fredvd](http://app.net/fredvd)
34
35
 
35
36
  See also the Ayadn CHANGELOG file...
data/doc/19-examples.md CHANGED
@@ -41,3 +41,5 @@ Shortcuts:
41
41
  `ayadn -s movies hollywood`
42
42
 
43
43
  `ayadn -FO @ericd`
44
+
45
+ *Most of the times a passive action (reading, searching, etc) shortcut will be downcase and an active action shortcut (posting, deleting, etc) will be upcase.*