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.
- checksums.yaml +4 -4
- data/.gitignore +4 -0
- data/CHANGELOG.md +73 -52
- data/README.md +17 -3
- data/ayadn.gemspec +3 -4
- data/doc/01-index.md +6 -5
- data/doc/02-install.md +23 -1
- data/doc/03-first-steps.md +22 -28
- data/doc/04-options.md +1 -1
- data/doc/05-streams.md +29 -9
- data/doc/06-post.md +13 -5
- data/doc/07-actions.md +63 -1
- data/doc/08-listings.md +112 -4
- data/doc/09-accounts.md +17 -3
- data/doc/10-nicerank.md +5 -5
- data/doc/11-blacklist.md +8 -14
- data/doc/12-alias.md +1 -13
- data/doc/14-set.md +8 -110
- data/doc/15-nowplaying.md +16 -4
- data/doc/18-contact.md +14 -13
- data/doc/19-examples.md +2 -0
- data/lib/ayadn/action.rb +322 -183
- data/lib/ayadn/alias.rb +17 -45
- data/lib/ayadn/annotations.rb +1 -1
- data/lib/ayadn/api.rb +7 -8
- data/lib/ayadn/app.rb +99 -12
- data/lib/ayadn/authorize.rb +92 -57
- data/lib/ayadn/blacklist.rb +52 -62
- data/lib/ayadn/check.rb +81 -74
- data/lib/ayadn/cnx.rb +77 -26
- data/lib/ayadn/databases.rb +890 -105
- data/lib/ayadn/debug.rb +30 -89
- data/lib/ayadn/descriptions.rb +876 -329
- data/lib/ayadn/endpoints.rb +2 -2
- data/lib/ayadn/errors.rb +9 -9
- data/lib/ayadn/extend.rb +8 -1
- data/lib/ayadn/fileops.rb +10 -8
- data/lib/ayadn/mark.rb +79 -56
- data/lib/ayadn/migration.rb +427 -0
- data/lib/ayadn/nicerank.rb +74 -72
- data/lib/ayadn/nowplaying.rb +123 -60
- data/lib/ayadn/nowwatching.rb +26 -10
- data/lib/ayadn/pinboard.rb +12 -7
- data/lib/ayadn/post.rb +40 -37
- data/lib/ayadn/profile.rb +5 -2
- data/lib/ayadn/scroll.rb +20 -5
- data/lib/ayadn/search.rb +30 -22
- data/lib/ayadn/set.rb +146 -50
- data/lib/ayadn/settings.rb +66 -67
- data/lib/ayadn/status.rb +459 -234
- data/lib/ayadn/stream.rb +80 -46
- data/lib/ayadn/switch.rb +51 -47
- data/lib/ayadn/tvshow.rb +47 -15
- data/lib/ayadn/version.rb +1 -1
- data/lib/ayadn/view.rb +119 -60
- data/lib/ayadn/workers.rb +144 -92
- data/lib/ayadn.rb +7 -8
- data/spec/mock/ayadn/accounts.sqlite +0 -0
- data/spec/mock/ayadn.sqlite +0 -0
- data/spec/unit/annotations_spec.rb +12 -13
- data/spec/unit/api_spec.rb +3 -4
- data/spec/unit/blacklistworkers_spec.rb +18 -23
- data/spec/unit/databases_spec.rb +51 -36
- data/spec/unit/endpoints_spec.rb +5 -2
- data/spec/unit/extend_spec.rb +24 -0
- data/spec/unit/nicerank_spec.rb +13 -13
- data/spec/unit/post_spec.rb +47 -36
- data/spec/unit/set_spec.rb +67 -96
- data/spec/unit/view_spec.rb +12 -6
- data/spec/unit/workers_spec.rb +38 -12
- data/tags +1285 -0
- metadata +29 -39
- data/spec/mock/aliases.db +0 -0
- data/spec/mock/blacklist.db +0 -0
- data/spec/mock/bookmarks.db +0 -0
- data/spec/mock/channels.db +0 -0
- data/spec/mock/index.db +0 -0
- data/spec/mock/nicerank.db +0 -0
- data/spec/mock/pagination.db +0 -0
- data/spec/mock/users.db +0 -0
- 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
|
17
|
+
`ayadn set color date yellow`
|
18
18
|
|
19
19
|
`ayadn set counts default 30`
|
20
20
|
|
21
|
-
`ayadn set counts
|
21
|
+
`ayadn set counts global 100`
|
22
22
|
|
23
|
-
`ayadn set timeline
|
23
|
+
`ayadn set timeline name false`
|
24
24
|
|
25
|
-
`ayadn set timeline
|
25
|
+
`ayadn set timeline compact true`
|
26
26
|
|
27
|
-
`ayadn set
|
27
|
+
`ayadn set scroll spinner true`
|
28
28
|
|
29
|
-
`ayadn set
|
29
|
+
`ayadn set scroll date false`
|
30
30
|
|
31
|
-
`ayadn set
|
31
|
+
`ayadn set backup posts true`
|
32
32
|
|
33
33
|
`ayadn set formats table width 80`
|
34
34
|
|
35
|
-
`ayadn set formats
|
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 -
|
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
|
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 -
|
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
|
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
|
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
|
-
[@
|
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
|
-
[@
|
23
|
-
[@sr_rolando](http://app.net/sr_rolando)
|
19
|
+
[@blumenkraft](http://app.net/blumenkraft)
|
24
20
|
[@charl](http://app.net/charl)
|
25
|
-
[@
|
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
|
-
[@
|
28
|
-
[@
|
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...
|